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, or its review completed fewer critics than the quorum.
aggregation.blockOnReviewErrortrueTreat a critic that errored as a missing verdict when the quorum was met. An explicit false shows that error and allows the push. It does not allow a short quorum.
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.

Forge settings

A person saves Forge settings in the dashboard. A Save stores at once when the values pass the schema and cross-field checks. No review, proposal or approval step gates it. Agents cannot save these settings with an agent credential, a host credential or an MCP tool, so an agent that wants a change asks a person through the work tracker.

  • A Team's host settings (forge.hosts) and its name are on Settings → Agent permissions (/settings/agent-permissions).
  • The Site's Forge settings are on Settings → Site configuration (/settings/site).

Saving needs the Site's org:relay:manage permission. A refused Save leaves the settings unchanged, and the page says why. A Team host reads its own settings with cerebe forge settings.

Change a Team's host settings

Pick the Team, change its hosts' settings in named fields, and click Save once. Save changes host settings only: the Team's other Forge settings, such as its repository access rules and role holders, are saved as they are.

Under Forge team, each Team is listed by its name. A Team without a name is listed by the machines registered to it, with its mission below. A Team with no name and no machine yet is listed by its mission. When only one Team is listed, the page opens it.

Each host has its own tab. Add a host starts one blank or as a copy of another host. Removing a host also takes it out of the other hosts' dispatch targets. A host's settings are named fields, each with a short explanation, in these sections: placement, provider accounts, launch gates, runners, routing, dispatch targets, seats, admission, and the offline window and write guard.

The page checks each value as you change it and marks a problem at its field. It sends no Save until every problem is fixed. One Save stores the changes to every host, and each host picks up its new settings the next time it reads them.

If someone else saved the Team's settings while you were editing, your changes stay on the page. Click Save again to replace theirs, or Discard to see what they saved.

Name a Team

Pick the Team, type its name in Team name, and click Save name. People then pick the Team by that name. Save name changes the name only. It needs the same org:relay:manage permission as a Save.

A name has 1 to 64 characters, not counting spaces at its start and end. It can't match another Team's name in the Site, ignoring case and spacing. It can't contain a tab, a line break or another hidden character, or an ID. It can't contain anything that looks like a credential, such as the word "password", "secret" or "token". The page checks the name as you type and says what to fix.

When the name is saved, the page says so and lists the Team by it. If Cerebe refuses the name, the stored name stays as it was. The page says why and keeps your name in the field. If someone renamed the Team after the page read its name, Cerebe refuses yours and the page shows the Team's current name. Click Save name again to replace it. If Cerebe can't confirm the save, the page says so and reads the Team list again. If the list doesn't show your name, save it again. If you pick another Team before you save a name you typed, the page asks first.

Change the Site's Forge settings

Settings → Site configuration shows the Site's configuration, and its forge.* values as JSON in an edit box. Edit them and click Save. The edit starts from every stored forge.* value, so a value you do not change is saved as it was. If someone saved after you loaded the page, the page loads the current revision and keeps your edits, so you can check them and save again.

Save through the console API

The dashboard saves through the signed-in console API, POST /api/v1/fleet/forge-configuration. Its body has four fields and no others: scopeKind, scopeId, revision and values. A body that still carries validateOnly, with any value, fails with HTTP 422 and leaves the settings unchanged. The result is outcome: "stored" with the new revision, or outcome: "refused" with the reason and, when known, the current revision. A refusal leaves the settings unchanged.

FieldValue
scopeKindsite or forge_team.
scopeIdThe signed-in Site's ID for site, or the Team's teamId for forge_team. The scope's read returns it.
revisionThe revision you read. A stale revision is refused as revision_conflict. An absent first Team configuration has revision zero.
valuesThe complete forge namespace for the scope. A Save replaces the namespace, so a forge.* key you leave out is removed.

The signed-in session supplies the Site and the person.

Read before you save

GET /api/v1/fleet/forge-configuration/forge-teams lists the Teams you may read, each with its teamId, name (displayName, null until it has one), machines (hosts) and mission. Read a Team with GET /api/v1/fleet/forge-configuration/forge-team/{teamId}, or the Site with GET /api/v1/fleet/forge-configuration/site. Each read returns the scope's scopeKind, scopeId, revision and configuration. Send that scopeId and revision, and every forge.* key you want to keep, with your change. The dashboard pages do this for you.

Name a Team through the console API

PUT /api/v1/fleet/forge-configuration/forge-teams/{teamId}/name names a Team. Send displayName, the new name, and expectedDisplayName, the displayName you read (null for a Team without a name), and no other field. The result is outcome: "stored" with the stored displayName, or outcome: "refused" with the reason. If the name changed after you read it, the reason is name_changed and the result carries the Team's current name as displayName. A refusal leaves the name unchanged.

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