CerebeCerebe Docs
Cerebe Factory

Configure

Where Cerebe reads its settings, what to commit, and the commands that inspect and change them.

Cerebe reads three kinds of settings. Only the first is committed.

FileWhereHoldsCommit it?
cerebe.yamlRepository rootThe team file: agent behavior, denied commands, doctrine, docs layout, skills, verification routesYes
Workstation rulesYour user config directoryThe local critic fleet and its review policy, one entry per repositoryNo, it lives outside every checkout
cerebe.local.yamlRepository rootYour personal overrides of cerebe.yamlNo, cerebe install adds it to .gitignore

The workstation rules file is $XDG_CONFIG_HOME/cerebe/config.yaml on Linux and macOS, or ~/.config/cerebe/config.yaml when that variable is unset. On Windows it is %APPDATA%\cerebe\config.yaml. Each repository gets its own entry, keyed by its origin remote, and a default entry covers the rest.

A repository adopted with an older release may commit cerebe/config.json instead. Local review still reads it when the workstation file has no entry for that repository. cerebe init --migrate moves those rules to your workstation and their verification settings into cerebe.yaml.

Choose the local critics

The local fleet starts empty: no critics, quorum 0, and local review off. Change it with cerebe model:

cerebe model add claude          # or cursor, codex, gemini, kimi
cerebe model add cursor          # a second critic, so a quorum of 2 can be met
cerebe model list                # critics, models, and quorum
cerebe model set claude <modelId>
cerebe model quorum 2            # how many must complete; 1 is valid for one critic
cerebe model remove claude       # removing the last critic turns local review off
cerebe model reset               # back to the empty fleet

Each critic runs the vendor CLI you are already signed in to, on your own subscription. There are no API keys to manage. cerebe inspect sends each enabled critic a trivial prompt to confirm its CLI is installed and signed in.

Review policy keys

These keys live in your workstation rules (or a committed cerebe/config.json). cerebe config set writes them to the file local review reads for this repository.

KeyDefaultWhat it does
aggregation.quorum0How many critics must complete for a binding verdict. cerebe model keeps it in step with the fleet.
aggregation.blockingSeverities["blocker", "high"]Finding severities that hold a push.
aggregation.blockOnMissingReviewon once a critic is enabledBlock a push when the commit has no review yet.
aggregation.blockOnReviewErrortrueTreat a critic that errored as a missing verdict.
criticTimeoutScaled to the review's sizeEach critic's time budget, such as "20m".
context.guidanceFilesEmptyFiles the critic reads as your rules. List AGENTS.md first. For coding-session support, see Load your guidance files.
context.promptFragmentsEmptyExtra prompt files with the quality bar specific to this repository.
incrementalReviewOffOn a later round of the same change, review only what changed since the last round.
cerebe config set criticTimeout '"20m"'
cerebe config set incrementalReview true

The value is one JSON value, so a string needs its own quotes. cerebe config set checks the result against the schema and writes nothing if the key or value is invalid. Use cerebe model for critics.

The local critic is advisory. It never changes how the hosted cerebe/critic check judges a pull request; that panel's policy is set on the Platform.

Reviewed Forge settings

The signed-in console API, POST /api/v1/fleet/forge-configuration, accepts validateOnly: true alongside the scope, base revision and complete namespace values. A successful proposal returns outcome: "valid", proposalId and the unchanged base revision. It has not stored the configuration or approved its review.

After the configured review approves the proposal, submit the ordinary write with the same base revision and values. Omitting validateOnly, or setting it to false, uses the ordinary write path; an unapproved change remains refused. Only outcome: "stored" confirms that the configuration was written.

The team file: cerebe.yaml

cerebe install writes a minimal cerebe.yaml. Every key is optional. A typical file:

schemaVersion: 1
behavior:
  autonomy: proceed-until-blocked
tools:
  deny:
    - git push --force
    - git reset --hard
    - git clean
policy:
  locks:
    - behavior.doctrine
    - tools.deny
    - critics.quorum
docs:
  manifesto: docs/PRINCIPLES.md
  adrDir: docs/ADR
  cycleDocsDir: docs/roadmap/cycles
skills:
  verify:
    enabled: true
  • docs tells Cerebe where your documentation lives. Cycle-doc validation, the bundled skills, and the MCP server read it. See Cycle docs.
  • skills lists the bundled skills cerebe skills install --all renders. See MCP server and skills.
  • evidence declares verification routes. See Verification routes.

How values resolve

Values resolve in one cascade, lowest first:

  1. built-in defaults
  2. an extends preset, pinned to a full commit SHA
  3. the committed cerebe.yaml
  4. your cerebe.local.yaml
  5. environment variables and command-line flags

Keys listed in policy.locks are mandatory: a local or environment override of them is ignored. By default those are behavior.doctrine, tools.deny, and critics.quorum. Some keys, such as evidence, hooks, and mcp, are committed-only, so local overrides of them are always ignored.

Inspect and check

cerebe config get tools.deny --explain   # value, every layer, and the winning layer
cerebe config render                     # the fully resolved config
cerebe config check                      # the committed file meets the floor
cerebe config check --base origin/main   # ...and does not loosen guardrails against main
cerebe config migrate                    # rename a leftover darkfactory.yaml to cerebe.yaml

cerebe config check fails when the committed file drops below the built-in floor, for example by removing a denied command, a required doctrine pack, or an inherited lock. With --base it also fails a change that loosens any of them, even when the result is still above the floor. Run it in CI to block a pull request that weakens your guardrails.

Validate what you write

cerebe.yaml, cerebe.local.yaml, and your workstation rules are checked each time they load, and a key the CLI does not know is an error. A misspelled key in cerebe.yaml makes cerebe doctor report [FAIL] config.parses with the key's line and a suggestion, such as unknown key "behaviour" (did you mean "behavior"?). Until you fix it, the post-commit hook skips the review and the pre-push hook blocks pushes. An unknown key in the workstation rules stops cerebe model and cerebe doctor with unexpected additional properties. A committed cerebe/config.json is not checked when it loads, so an unknown key there is ignored.

cerebe schemas validate checks a file before you rely on it:

cerebe schemas validate cerebe.yaml
cerebe schemas validate ~/.config/cerebe/config.yaml
cerebe schemas validate cerebe/config.json     # a committed legacy file
cerebe schemas emit --all --out-dir schemas/   # for editor completion or your own CI

It prints OK for a valid file, or FAIL and each problem: for cerebe.yaml, the key's line and column, and a suggestion when one is close. The schemas are embedded in the binary, so re-emit them after you upgrade.

cerebe doctor reports on the same files, and cerebe doctor --fix repairs missing wiring. See the CLI reference.

On this page