A VS Code extension that automatically reviews your committed code using AI. Just commit your changes, and the extension analyzes your diff for possible security issues, logical errors, and risky patterns using Groq LLMs.
It installs a Git post-commit hook, runs a lightweight local review server, and displays structured AI feedback directly inside VS Code.
- Automatic Code Review: Triggers after every Git commit via post-commit hooks
- AI-Powered Analysis: Uses Groq's Llama3 model for intelligent code review
- Cross-Platform: Works on Windows, macOS, and Linux
- Real-time Results: Displays review results directly in VS Code
- Issue Detection: Identifies logic errors, security risks, performance issues, and code smells
- Actionable Feedback: Provides explanations, reasons, and suggested fixes
- Support for Multiple VS Code Workspaces: Automatically manages the review server for each opened workspace folder
- VS Code 1.106.0 or higher
- Node.js (for the local review server)
- Git repository
- Groq API key (free at console.groq.com)
Install from the VS Code Marketplace or download the .vsix file from the Releases.
-
Install the extension
-
Get a Groq API key from console.groq.com
-
Ensure a Git Repository Exists:
- Navigate to your project folder in VS Code
- Initialize a Git repository if not already done:
git init
-
Install the Git Hook
- From the Command Palette:
Post-Commit Reviewer: Setup Git Hook
This creates a post-commit hook that triggers reviews after each commit.
- From the Command Palette:
-
Configure the API key:
- Open command palette
Ctrl+Shift+Pon windows orCmd+Shift+Pon macOSPost-Commit Reviewer: Configure API Settings
- Enter your Groq API key
- Open command palette
-
Start the Review Server
- The server starts automatically whenever you open a folder.
You can still manage it manually:
Post-Commit Reviewer: Start Review Server Post-Commit Reviewer: Stop Review Server
- The server starts automatically whenever you open a folder.
You can still manage it manually:
-
Commit Normally
- Make Git commits as usual. The extension will automatically review your changes.
- Commit Code: Make a Git commit as usual
- Hook Triggers: Post-commit hook automatically calls the local server
- Diff Analysis: Server extracts the commit diff
- AI Review: Diff is sent to Groq's Llama3 for analysis
- Results Display: Review results appear in VS Code panel
-
You can configure the following settings through command palette:
Post-Commit Reviewer: Configure API Settings- Set your Groq API keyPost-Commit Reviewer: Setup Git Hook- Install the post-commit hookPost-Commit Reviewer: Show Review Panel- Open the review results panelPost-Commit Reviewer: Start Review Server- Start the local review serverPost-Commit Reviewer: Stop Review Server- Stop the local review serverPost-Commit Reviewer: Configure Server Port- Configure Server PortPost-Commit Reviewer: Toggle Auto-Start Server- Enable/disable auto-start of the review serverPost-Commit Reviewer: Create .env Template- Generate a .env template file for environment variables
├── extension.js # Main extension entry point
├── src/
│ ├── server.js # Node.js backend server
│ ├── hookManager.js # Git hook installation
│ └── reviewPanel.js # VS Code UI panel
└── run_review.js # Generated hook runner script
- Requires internet connection for AI analysis
- Large diffs may take longer to process
- Node must be installed for the local server to run
Enjoy automated code reviews!