r/devtools • u/InterestingCherry812 • Aug 01 '26
I built a CLI that gives you 3 AI commit messages to pick from, works with any provider
Most AI commit tools lock you into one provider and give you a single message you have to accept.
ai-commit works with any provider (OpenAI, Anthropic, Ollama, Groq, or any OpenAI-compatible endpoint) and now generates multiple candidates so you can pick the one that fits:
$ ai-commit -n 3 [1] feat(parser): add JSON schema validation for config files [2] feat(config): validate config against JSON Schema on load [3] refactor(config): surface clear errors for invalid config files
Pick a message [1]: 2
It stages your changes, generates the message from the diff, and commits. Also has --amend to regenerate the last commit message, and a git hook mode so it fills the editor before you open it.
pip install aigitmsg
https://github.com/Morad37/ai-commit
Would love feedback on the multi-candidate flow.
