🧠 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

buildinpublic #opensource #git #llm #python #devtools