CerebeCerebe Docs
Cerebe Factory

Quickstart

Install the Cerebe CLI, get your first independent review, and require the check on your pull requests.

This page takes one GitHub repository from installing the Cerebe CLI to a required cerebe/critic check. Steps 1 to 3 review a commit on your workstation; step 4 adds the hosted review on pull requests.

For a hosted pull request review only, use First review. To choose between workstation and hosted reviews, start with Evaluate Factory.

Before you start

  • A clone of the repository with its GitHub URL as the origin remote.
  • A coding agent CLI you are signed in to: Claude Code, Cursor, Codex, Gemini, or Kimi.
  • For step 4, permission to install a GitHub App on the repository and to change its branch rules. Hosted reviews of a private repository need a workspace with a plan or a trial; see the pricing page.

1. Install the CLI

  1. From the repository, run the installer for your operating system.

    macOS and Linux:

    curl -fsSL https://cerebe.ai/install.sh | sh

    Windows (Command Prompt or PowerShell):

    powershell -ExecutionPolicy ByPass -c "irm https://cerebe.ai/install.ps1 | iex"

    You should see Cerebe initialized., then the cerebe doctor check list ending in All checks passed. Install explains what the installer writes.

  2. Commit the files the installer staged:

    git commit -m "chore: set up Cerebe" -- cerebe.yaml AGENTS.md CLAUDE.md

2. Get your first review

  1. Turn on local review with a critic for your coding agent CLI:

    cerebe model add cursor    # or claude, codex, gemini, kimi

    It prints cerebe model: enabled cursor; local review on (quorum 1).

  2. Make a change with your agent and commit it. The post-commit hook prints cerebe: review of <sha> backgrounded and runs the review in the background.

  3. Follow the review, then read the verdict:

    cerebe watch                  # live view of this branch's reviews; q quits
    cerebe status --commit HEAD   # the verdict and each critic's status
    cerebe show --commit HEAD     # every finding with its severity and reasoning

    When the review finishes, cerebe status prints APPROVED or CHANGES_REQUESTED. Findings at blocker or high hold your next push; lower severities are recorded and do not block.

3. Push through the gate

  1. Push the branch:

    git push

    The pre-push hook waits for a review that is still running, then blocks the push if the verdict has an open blocker or high finding.

  2. If the push is blocked, fix the finding in a new commit and push again. Do not amend: the verdict is bound to the commit and its diff, so an amended commit needs a review of its own. Local hooks lists every condition that blocks a push and how to bypass one that is outside your change.

4. Require the check on your pull requests

  1. Install the Cerebe GitHub App on the repository.
  2. Open a pull request. You should see the cerebe/critic check on it. The local review does not replace it: the App runs its own panel.
  3. After cerebe/critic has reported once, add it to the branch's required status checks. Make the check binding has the steps.

With the check required, a review that asks for changes (action_required) or could not complete (failure) blocks the merge.

Troubleshooting

  • The installer, cerebe doctor, or cerebe model add fails, or you installed an npm or pip package: see Install troubleshooting.
  • No review starts after a commit, a review reports NOT EVALUATED, a push is blocked without a review, or cerebe/critic never appears: see Troubleshooting.

On this page