Write git commit messages with AI
Writing a good commit message takes a minute you’d rather spend coding. kunji’s @commit
prompt reads your staged changes and writes a message for you: a short subject line and a
body that explains what changed.
Set up once
Section titled “Set up once”pip install kunjikunji keys add groq # or openai, anthropic, gemini, ollama, …Any provider works. Fast, cheap models are perfect for commit messages; a local Ollama model costs nothing and keeps your code on your machine.
Use it
Section titled “Use it”git add .kunji @commitfeat(chat): show cost and token count after every reply
- add meta line with model, tokens, cost and latency- keep the running total in the chat footerIf nothing is staged, @commit uses your unstaged changes instead.
Commit in one step
Section titled “Commit in one step”git commit -m "$(kunji @commit --raw)"--raw prints plain text with no colours or cost line. To review it first, open it in your
editor:
git commit -e -m "$(kunji @commit --raw)"Pick a model for commits
Section titled “Pick a model for commits”kunji @commit -m groq:llama-3.3-70b-versatilekunji @commit -m ollama:qwen2.5Make it match your team’s style
Section titled “Make it match your team’s style”@commit is a saved prompt, so you can make your own version, for example to always use
Conventional Commits or to add a ticket number. See
Saved prompts → Create your own.
Is my code sent anywhere?
Section titled “Is my code sent anywhere?”Only the diff is sent, and only to the AI provider you chose, directly from your computer. With Ollama nothing leaves your machine. See Privacy and security.