-
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Local, LLM-powered code review for your git diffs. CommitBrief reviews
staged and unstaged changes, arbitrary git diff ranges, and GitHub pull
requests against your project's own rules — from the terminal, with the
provider of your choice.
Note
This wiki documents only what ships in the binary. Every command, flag, and configuration key here was verified directly against the source.
-
Pick a scope — staged/unstaged changes, a
diffrange, or a GitHub PR. -
CommitBrief builds the prompt — your
COMMITBRIEF.mdrules plus the filtered diff, with secret and cost guards in front of every provider call. -
A provider reviews it — Anthropic, OpenAI, Gemini, Ollama, or a host
CLI (
claude/gemini). -
You get structured findings — severity-coded cards, JSON, or markdown,
with optional
--fail-ongating for CI.
| I want to… | Run | Page |
|---|---|---|
| Install CommitBrief | brew install CommitBrief/tap/commitbrief |
Installation |
| Configure a provider | commitbrief setup |
setup |
| Review staged changes | commitbrief |
Review |
| Review the working tree | commitbrief --unstaged |
Review |
| Review a commit range | commitbrief diff HEAD~3 HEAD |
diff |
| Review a GitHub PR | commitbrief remote pr 123 |
remote pr |
| Summarize a range in plain language | commitbrief summary main...develop |
summary |
| Generate a message and commit | commitbrief commit |
commit |
| Preview without spending tokens | commitbrief dry-run --staged |
dry-run |
| Gate CI on severity | commitbrief --fail-on=high |
Exit codes |
| Get machine-readable output | commitbrief --json |
Output formats |
| Install a git hook | commitbrief install-hook |
install-hook |
| Diagnose a broken setup | commitbrief doctor |
doctor |
-
Installation — Homebrew, Scoop,
go install, raw binaries. - Quick start — fresh install to first review in three steps.
-
First-time setup — what
setupwrites, and where.
Reviewing
- Review (default command) — review staged / unstaged changes.
-
diff— review anygit diffrange or commit. -
remote pr— review a GitHub pull request end to end.
Summarizing
-
summary— plain-language digest of a change set, grouped by area (read-only).
Committing
-
commit— generate a commit message and rungit commit.
Setup & configuration
-
init— scaffoldCOMMITBRIEF.mdandOUTPUT.md. -
setup— interactive provider / model wizard. -
config— get, set, and show config keys. -
providers— list, switch, and test providers. -
doctor— health-check the whole pipeline.
Integration
-
install-hook— wire CommitBrief into a git hook.
Inspect (no tokens spent)
-
dry-run— show the resolved pipeline and cost estimate. -
list— full command / flag reference plus active config.
Maintenance
- Configuration files — the two-tier YAML and merge order.
- Environment variables — keys and runtime overrides.
- Global flags — flags shared by every command.
- Filtering — the three-layer ignore plus path-filter pipeline.
- Providers overview — the nine review backends compared.
- Anthropic
- OpenAI
- Google Gemini
- DeepSeek / Mistral / Cohere — OpenAI-compatible APIs.
- Ollama (local)
-
claude-cli/gemini-cli/codex-cli— host-CLI-backed providers.
- Output formats — cards, JSON, markdown, clipboard.
-
COMMITBRIEF.md— the review-rules system prompt. -
OUTPUT.md— the local rendering template. -
JSON schema v1 — the locked
--jsoncontract.
- Cache behavior — keys, location, TTL, and savings.
- Secret scanner — the pre-send credential guard.
- Cost preflight — token-cost estimation and thresholds.
-
--fail-onand exit codes — CI gating semantics.
- Severity levels — what critical / high / medium / low / info mean.
- Localization (en, tr) — language selection and parity.
- Troubleshooting — common symptoms and fixes.
Home · Installation · Quick start · Troubleshooting · GitHub repo · Issues
CommitBrief — local, LLM-powered code review for git diffs. This wiki documents only what ships in the binary.
Getting started
Commands · reviewing
Commands · summarizing
Commands · committing
Commands · setup
Commands · integration
Commands · inspect
Commands · maintenance
Configuration
Providers
Output
Operations
Reference