AI Commit Message Generator
Generate intelligent commit messages using local AI (Ollama) with Bangla language support. Offline-first, fast, and privacy-focused.


✨ Features
🤖 AI-Powered Generation
- Local AI First: Uses Ollama for privacy and offline functionality
- Cloud Fallback: Supports OpenAI and Anthropic as backup options
- Smart Analysis: Analyzes git diffs, file types, and affected components
- Multiple Options: Generate 3 different commit message variations
🌍 Bangla Language Support
- First Extension with native Bangla (বাংলা) commit message support
- Maintains technical terms in English for clarity
- Seamless language switching
- < 3 seconds generation time
- Caching for faster repeated generations
- Optimized diff parsing
📝 Conventional Commits
- Follows Conventional Commits specification
- Supports all standard types:
feat, fix, docs, style, refactor, test, chore, perf, build, ci
- Optional emoji support (Gitmoji style)
🎯 Smart Features
- Team Templates: Custom templates with variables
- Release Notes: Auto-generate from commit history
- Message History: Browse and reuse past messages
- Source Control Integration: Direct integration with VS Code's Git panel
📦 Installation
- Install from VS Code Marketplace (search for "AI Commit Message Generator")
- Install Ollama for local AI (recommended)
- Pull a model:
ollama pull llama3.2
🚀 Quick Start
- Stage your changes in git
- Press
Ctrl+Shift+G (or Cmd+Shift+G on Mac)
- Select from generated options
- Click "Accept & Fill" to use the message
Or use the Command Palette:
AI Commit: Generate Commit Message
AI Commit: Generate Release Notes
AI Commit: View Message History
⚙️ Configuration
AI Provider Setup
Ollama (Recommended):
{
"aiCommitGenerator.aiProvider": "ollama",
"aiCommitGenerator.ollamaModel": "llama3.2",
"aiCommitGenerator.ollamaUrl": "http://localhost:11434"
}
OpenAI:
{
"aiCommitGenerator.aiProvider": "openai",
"aiCommitGenerator.openaiModel": "gpt-4o"
}
You'll be prompted for your API key on first use
Anthropic:
{
"aiCommitGenerator.aiProvider": "anthropic",
"aiCommitGenerator.anthropicModel": "claude-3-5-sonnet-20241022"
}
Language & Style
{
"aiCommitGenerator.language": "english", // or "bangla"
"aiCommitGenerator.includeEmoji": true,
"aiCommitGenerator.generateMultipleOptions": true,
"aiCommitGenerator.numberOfOptions": 3
}
Team Templates
Create .vscode/commit-templates.json:
{
"templates": [
{
"name": "Feature with ticket",
"pattern": "feat({scope}): {description} [#{ticket}]",
"variables": ["scope", "description", "ticket"]
}
]
}
🎨 Examples
English Commit Messages
feat(auth): add OAuth2 authentication flow
fix(api): resolve race condition in user service
docs: update installation instructions
Bangla Commit Messages
feat(auth): OAuth2 authentication flow যোগ করা হয়েছে
fix(api): user service এ race condition সমাধান করা হয়েছে
docs: installation নির্দেশনা আপডেট করা হয়েছে
With Emoji
✨ feat(auth): add OAuth2 authentication flow
🐛 fix(api): resolve race condition in user service
📝 docs: update installation instructions
🔧 Troubleshooting
Ollama Not Running
Error: Ollama is not running or not accessible
Solution: Start Ollama with ollama serve or switch to a cloud provider
No Staged Changes
Warning: No staged changes found
Solution: Stage your changes with git add before generating
Generation Timeout
Error: Generation timeout
Solution: Increase timeout in settings:
{
"aiCommitGenerator.maxGenerationTime": 5000
}
| Diff Size |
Ollama (llama3.2) |
OpenAI (gpt-4o) |
Anthropic (claude-3.5) |
| Small (<10 lines) |
0.8s |
1.2s |
1.1s |
| Medium (10-100 lines) |
1.5s |
1.8s |
1.7s |
| Large (>100 lines) |
2.3s |
2.5s |
2.4s |
Tested on: Intel i7-12700K, 32GB RAM, Windows 11
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📄 License
MIT License - see LICENSE file for details
🙏 Acknowledgments
📞 Support
Made with ❤️ by EonMirth | Empowering Developers Worldwide
🏢 About EonMirth
AI Commit Message Generator is proudly developed and maintained by EonMirth.
EonMirth creates innovative developer tools and solutions that enhance productivity and code quality. We believe in building tools that developers love to use.
Other EonMirth Products
- 🩸 Blood Bondhu - Blood donation platform for Bangladesh
- 💻 Developer Tools Suite - More productivity extensions coming soon
Connect with EonMirth