DEV Community

goufafa khobna
goufafa khobna

Posted on

Stop letting AI write terrible commit messages

Hey DEV community! 👋

Have you ever tried to paste a git diff into ChatGPT or Claude and asked for a commit message?

Usually, it spits out something extremely literal and useless like: Update app.js: Change line 42 from false to true.

It completely misses the architectural intent (the "Why") behind the change. A top AI researcher on Twitter was complaining about this exact problem recently, noting that it takes 5x longer to prompt the AI correctly than to just write the commit manually.

So, I decided to build a solution this weekend: CommitAI 🚀

What it does
It's a blazing fast, browser-based tool. You just paste your git diff, and it generates a senior-level commit message.

Instead of just reading the diff blindly, it uses a heavily engineered system prompt to infer the context behind your changes, and formats the output strictly following the Conventional Commits standard (type: subject \n\n body).

How to test it (It's free)
I wanted to make this tool accessible to everyone without paying for expensive server costs, so it runs 100% in your browser (Front-end only).

Go to CommitAI
Click the ⚙️ Settings button and plug in your own OpenAI API key (your key is saved locally in your browser and never touches my servers).
Paste your git diff and watch it generate a perfect commit in 2 seconds.
I built the UI with Vanilla JS, CSS, and a sleek Glassmorphism dark mode because I wanted something that actually looks good on a developer's screen.

Top comments (0)