~/projects/gitcommit-ai.md
GitCommit AI
An agentic, repository-aware Git commit assistant (git ai-commit) that learns how a repository writes commits and drafts messages in that style, checked by a deterministic critic before you see them.
- 6LLM providers behind one protocol
- 2-stagecritic: rules, then faithfulness
- offlineeval mode, no API key
Repository (opens in a new tab)All projects
How it works
- Staged diff + history
- Diff analyst
- Context retrieval
- Generator
- Critic ↺ rejected: back to “Generator”
- You confirm
- Staleness check + commit
What it does
- Detects the repository's commit convention and style profile from recent history, with a confidence score.
- A critic loop checks each draft against deterministic rules plus an LLM faithfulness check, and regenerates until it passes.
- Never stages files and refuses to commit if the staging area or HEAD changed while it was working.
- Supports Anthropic, Gemini, Hugging Face, OpenAI, OpenRouter and Ollama (local or remote), with an evaluation harness that replays your own history.