AI Commit Assistant
VS Code extension that generates conventional git commit messages from staged changes using AI.
Features
- Generates commit messages following Conventional Commits format
- Uses AI to analyze staged changes and create meaningful messages
- Generates 3 options and picks one randomly for variety
- Supports custom LLM endpoints and models
- Debug logging for troubleshooting
Installation
- Clone the repository
- Run
npm install
- Run
./create-package.sh to build the extension
- Install the generated
.vsix file in VS Code
Configuration
| Setting |
Default |
Description |
afterootCommit.endpoint |
http://localhost/v1 |
LLM API endpoint |
afterootCommit.model |
(empty) |
Model name |
afterootCommit.token |
(empty) |
API token |
afterootCommit.maxTokens |
150 |
Max tokens for response |
afterootCommit.logging |
false |
Enable debug output |
Usage
- Stage your changes in Git
- Select the repository in Source Control panel
- Click the ✨ button in the Source Control toolbar
- Commit message will be auto-filled in the input box
Requirements
- VS Code 1.90.0+
- Git repository with staged changes
- Access to an OpenAI-compatible API
License
MIT
© 2026 Andriy Bukato (afteroot). All rights reserved.
| |