CodeSnitch
A VS Code extension that reviews your git diffs using AI, generating structured Markdown reports directly in your workspace.
Features
- Sidebar UI — dedicated activity bar panel for credentials and review controls
- Reviews staged, unstaged, or branch-compared diffs
- Generates a structured Markdown report with:
- 🔴 Critical Issues
- 🔵 Code Quality & Linting
- 🟠 Missing Pieces
- 🟡 Suggestions
- ⚪ Nitpicks
- ✅ Positives
- 📊 Review Score
- Saves reports to
.git-reviews/ in your workspace
- Multi-provider support — auto-detects the API type from your endpoint URL:
- Azure OpenAI Chat Completions (GPT-4o, GPT-4-turbo, etc.)
- Azure OpenAI Responses API
- Codex / Legacy Completions
- Anthropic Claude via Azure AI Foundry
- Connection ping — verifies credentials are working immediately on save
Setup
Click the CodeSnitch icon in the activity bar to open the sidebar.
In the Credentials section, fill in:
| Field |
Description |
| Endpoint URL |
Your AI service endpoint (see examples below) |
| API Key |
Your API key |
| Model / Deployment |
Deployment or model name, e.g. gpt-4o |
Click Save Credentials — the extension will immediately ping the service and show whether the connection is working.
Endpoint examples by provider
| Provider |
Example endpoint |
| Azure OpenAI Responses API |
https://YOUR_RESOURCE.openai.azure.com/openai/responses?api-version=2025-04-01-preview |
| Azure OpenAI Chat Completions |
https://YOUR_RESOURCE.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2024-02-01 |
| Azure APIM gateway |
https://YOUR_RESOURCE.azure-api.net/YOUR_PATH/openai/responses?api-version=2025-04-01-preview |
| Anthropic Claude (Azure AI Foundry) |
https://YOUR_RESOURCE.services.ai.azure.com/anthropic |
| Codex / Legacy Completions |
https://YOUR_RESOURCE.openai.azure.com/openai/deployments/code-davinci-002/completions?api-version=2024-02-01 |
The extension detects the API type automatically from the URL — no manual selection needed.
Credentials are stored in VS Code user settings (gitReview.azureEndpoint, gitReview.azureApiKey, gitReview.azureDeployment).
Usage
- Open the CodeSnitch panel from the activity bar
- In the Run Review section, select what to review:
- Staged changes — files added to the index (
git diff --staged)
- Unstaged changes — working tree changes (
git diff HEAD)
- Compare with branch — diff against another branch (
git diff <branch>)
- Click Run AI Review
- When complete, click Open Report to view the Markdown review
Reports are saved as review-YYYY-MM-DDTHH-MM-SS.md in .git-reviews/ at the workspace root.
Notes
- Diffs larger than ~12,000 characters are trimmed automatically to stay within token limits
- The connection ping on credential save uses minimal tokens (a single-word response check)
- Add
.git-reviews/ to your .gitignore if you do not want to commit review reports
| |