open source · MIT
Commit messages, written by the agent you already pay for.
gitcap hands your staged diff to Claude Code, Codex, Gemini, Grok, or whichever coding agent you're logged in to, and gives you back a clean Conventional Commit. No new API keys. When one agent's plan runs out, the next one takes over.
uv tool install gitcap
then stage something and run gitcap commit
a1f3e9c How it works
-
It finds your agents
gitcap reads only what's already on your machine: agent programs on your
PATH, their login files, and how recently their session logs changed. The agent you used last goes first. It never opens your tokens. -
Your agent writes the message
The agent runs once, in its non-interactive mode, inside an empty temporary folder with its tools switched off, so it can't read or change your repo. You review it: c commit, e edit, r regenerate.
-
The next one takes over
Plan expired, credits gone, logged out? gitcap moves to your next agent, then a local model, then Groq's free API. An agent that failed waits at the back of the line until it works again. gitcap only gives up when there's nothing left to try.
7c04b2d Works with what you have
Every agent below runs on your own subscription or login. API keys in your environment work too.
- Claude Code
claude -pDefaults to Haiku: fast and cheap - Codex
codex execRead-only sandbox - Gemini CLI
gemini -pGoogle login or API key - Grok CLI
grok -pTools and subagents off - Kimi Code
kimi --quiet -pMoonshot login or API key - Qoder CLI
qodercli -pTools off - Cursor Agent
cursor-agent -pCursor login - Copilot CLI
copilot -pGitHub login - OpenCode · Crush
opencode run · crush runYour configured provider - Local models
Ollama · LM Studio · llama.cppPrivate, free, sized to the model's context - Groq
free API keyThe last resort when nothing else is available
e52d81a Small things that add up
- You see what it cost
- Every message shows the agent, the model, how long it took, and the exact token counts and cost the agent reported.
- Big diffs still fit
- The diff is trimmed separately for each backend. Every file keeps its header, lockfiles are left out, and when a backend says the prompt is too large, gitcap shrinks it and retries.
- Fast to start
- No AI SDKs to load: two small dependencies. A check for updates runs in the background and never slows a command down.
- Matches your history
- Recent commit subjects go into the prompt, so new messages follow the scopes and style your repo already uses.
0b9e6f4 Commands
gitcap commit | Write a message for staged changes, review it, commit. Works from any folder in the repo. |
gitcap commit -n | Dry run: print the message only. |
gitcap commit -y | Commit without reviewing. |
gitcap commit -c "hotfix for login" | Give the agent extra context. |
gitcap commit -a grok | Use only this agent, this once. |
gitcap agents | Your agents, in the order they'll be tried, with any that are paused and why. |
gitcap agents --retry | Give paused agents another chance right away. |
gitcap config --agent claude | Try this agent first; the rest stay as fallback. |
gitcap config --groq-key gsk_… | Add Groq's free API as a last resort. |
gitcap upgrade | Update to the latest release (uv tool, pipx or pip). |
gitcap uninstall | Remove gitcap, its settings and caches. |
HEAD Changelog
Read straight from CHANGELOG.md, so this always matches the latest release.
Loading the changelog…