CLI overview
Review agent-written code on your workstation before you open a pull request.
The cerebe CLI reviews commits on your workstation before you open a pull
request. A review runs one or more critics: coding agent CLIs you are signed in
to, such as Claude Code, Codex, or Cursor, that read the commit's diff against
your repository's rules.
Pull request reviews run on the hosted Platform. The Cerebe GitHub App posts
them as the cerebe/critic check (plans and pricing).
The loop
cerebe install arms a post-commit hook and a pre-push hook (see
Install) but leaves local review off. Turn it on with
cerebe model add cursor (or claude, codex, gemini, kimi). Until then,
commits are not reviewed, and the pre-push hook does not block a push for lack
of a review. With a critic added, the loop is:
git commit -m "feat: ..." # post-commit runs the review in the background
cerebe watch # follow the review as it runs
git push # pre-push waits for the review; blocks on blocker / highThe commands
| Command | What it does |
|---|---|
cerebe review | Review a commit, HEAD by default. The post-commit hook runs it for each commit. |
cerebe watch | Show a live view of this branch's reviews. |
cerebe status --commit HEAD | Print one commit's verdict and each critic's status. |
cerebe show --commit HEAD | Print one commit's full review: findings, severities, and reasoning. |
cerebe findings --range origin/main..HEAD | List the recorded findings of every commit in a range, without re-running a review or the gate. |
cerebe stats | Summarize review runs, gate events, and bypasses. |
cerebe verify | Run the verification routes your change arms and record their evidence. |
cerebe doctor | Check git, the hooks, cerebe.yaml, the agent-context files, and each critic's CLI. |
cerebe upgrade | Move cerebe and cyclone to the newest stable release in your current major version. |
Every command, with its flags and exit codes, is in the CLI reference.
The critics
Each critic runs its coding agent CLI on your own subscription, so there are no
API keys to manage. With one critic, the quorum is 1. Adding a second, such as
cerebe model add codex beside cursor, raises the quorum to 2, so both must
complete before the gate has a verdict. cerebe model list shows the critics
and the quorum. Both live in your workstation rules, outside the repository;
see Configure.