Join the discussion
Write your take first — we'll ask for email only when you're ready to publish.
- Hacker News
- Here's the 20 line bash version I whipped up a while back cuz yes lazy about writing good commit messages.
Supports claude and gemini with model selection and goes into the githook such that when you type `git commit` it invokes and generates the message.
https://gist.github.com/torqu3e/c08f4aa4e80fba66dce6c35d63dd...
by torqu3e - Hey all - disclaimer I'm one of Cell's friends and encouraged them to release their utility on Pypi for others. It quickly became one of my favorite tools that I use every day.
`git commit` is gone, `uvx gac` is in!
by glitch253 - I've been using LMStudio to run a local LLM (Qwen3-4B) to generate commit messages using this command:
```
git diff --staged --diff-filter=ACMRTUXB | jq -Rs --arg prompt 'You are an assistant that writes concise, conventional commit messages. Always start with one of these verbs: feat, fix, chore, docs, style, refactor, test, perf. Write a short!! message describing the following diff:' '{model:"qwen/qwen3-4b-2507", input:($prompt + "\n\n" + .)}' | curl -s http://localhost:1234/v1/responses -H "Content-Type: application/json" -d @- | jq -r ".output[0].content[0].text"
```
by ah27182 - Chiming in with my alternative, like others' but uses simonw's `llm`:
However, in practice, I notice the generated messages focus more on the what than the why. So it's rare I use them verbatim.git upstream-diff | llm --system-fragment cl-description.mdby paulirish - Neat project. If you're looking for something simpler just to use w/ Claude Code, a simple call to "claude -p" can work: https://github.com/nicksergeant/dotfiles/blob/master/zshrc#L...by nicksergeant
- There's three types of people: those who already write excellent commit messages explaining the why, those who write decent ones explaining the what, and those who write garbage commit messages. Empirically, the first set is small. This tool will help the middle type be more efficient, and help the last type drastically.
Well done OP.
by cypriss9 - I don’t get these kind of tools. A commit should be the why of a change, not a summary of what it is, anyone can either get that themselves or just read the code if they desire. What you can not get from the code is the _why_ which only you as the author can put.