Skip to content

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.

Terminal window
pip install kunji
kunji 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.

Terminal window
git add .
kunji @commit
feat(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 footer

If nothing is staged, @commit uses your unstaged changes instead.

Terminal window
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:

Terminal window
git commit -e -m "$(kunji @commit --raw)"
Terminal window
kunji @commit -m groq:llama-3.3-70b-versatile
kunji @commit -m ollama:qwen2.5

@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.

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.