๐ง Meet CommitBro โ Your AI Git Sidekick
As devs, we spend hours writing clean, scalable, beautiful code...
...and then we do this:
git commit -m "update stuff"
๐ฌ Same. So I built a tool that helps.
โก What is CommitBro?
CommitBro is a CLI + FastAPI-based tool that uses local LLMs (like Starling, Mistral via Ollama) to generate helpful, meaningful commit messages based on your staged changes.
Think of it as ChatGPT, but:
- ๐ง For Git commits
- ๐ 100% local
- ๐ Speaks your language (literally)
โจ Features
- โ Suggests commit messages based on git diff --cached
- ๐ Accept or regenerate suggestions
- ๐ Multilingual support โ Hindi, Spanish, German, English, etc.
- โ๏ธ Local or remote model support (Mistral, Starling, TinyLlama, etc.)
- ๐ Privacy-first (uses Ollama, so your code stays on your machine)
- ๐ณ Optional FastAPI backend for remote training or expansion
- ๐ฆ Available on PyPI: pip install commitbro
๐งช How it works
You stage some code with
git add .
Run:
commitbro
CommitBro analyzes the diff and sends it to your selected LLM (via Ollama):
Suggested Commit Message:
> Fix login redirect for session timeout in /auth route
Accept this? [y/n/r]:
๐ Multi-language Support
During setup, choose your preferred language:
commitbro-setup
Supports:
- English
- Hindi
- Spanish
- German ...or whatever your model can handle ๐
๐งฐ Tech Stack
- Python ๐
- FastAPI โก
- Ollama + Starling/Mistral ๐ง
- Docker (optional)
- CLI with a little sprinkle of magic
๐ Try it out
pip install commitbro
GitHub: github.com/aidataguy/commitbro
๐ฌ Why I built this
I got tired of writing vague commit messages while building my own projects. I wanted something that:
- Saves time
- Keeps commits clean
- Doesnโt require sending my code to OpenAI
So... I built CommitBro. One laptop, one weekend, a couple sleepless nights, and a love for dev tools โค๏ธ
๐ฅ What's next?
- VS Code extension
- Web UI to try it out
- CI integration
- Developer-facing training dashboards ๐ Feedback welcome
Iโd love your thoughts, suggestions, or PRs.
If you try it, let me know what you think!
๐ github.com/aidataguy/commitbro
๐งโ๐ป Built by @aidataguy
Top comments (0)