AI Commit Assistant

Generate conventional and meaningful Git commit messages using the power of an LLM.
This VSCode extension analyzes your staged git diff
, sends it to a language model, and suggests a commit message you can edit or accept.
⚙️ Requirements
🚀 Installation
From VSCode Marketplace (recommended):
- Search for
AI Conventional Commit
in the Extensions panel.
- Click Install.
From source (development):
- Clone this repository.
- Run
npm install
to install dependencies.
- Press
F5
in VSCode to launch the extension in a new Extension Development Host window.
🏁 Getting Started
- Stage your changes in Git.
- Open the Source Control panel in VSCode.
- Click the AI Conventional Commit button or run the
AI Conventional Commit: Generate conventional commit
command.
- Review and edit the suggested commit message, then commit as usual.
✨ Features
- 📋 Uses staged changes (
git diff --cached
)
- 🧠 Summarizes changes into clean, conventional commit messages
- 🈯 Supports multiple languages: English, Spanish, French, German
- ✅ Keeps you in control: review and edit the message before committing
- 🛡️ No telemetry, no vendor lock-in
⚠️ Note: Multi-provider and endpoint configuration is planned but not implemented in this version.
Currently, it uses the OpenRouter API with the deepseek-chat
model.
🛠 Configuration
Add your OpenRouter API key and preferred language in your settings.json
:
{
"aiConvCommit.model": "your-preferred-model-here",
"aiConvCommit.apiKey": "your-api-key-here",
"aiConvCommit.language": "auto"
}
🧑💻 Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
🛡️ Security
If you discover a security vulnerability, please see SECURITY.md for how to report it.
📄 License
This project is licensed under the MIT License.