CerebeCerebe Docs
Cerebe Factory

CLI reference

Upgrade, doctor, the review readers, verdict checks, efforts, roles, schemas, and prove-tests.

Every command accepts --help with its full flags. cerebe --help and cyclone --help list every command. cerebe covers review and the gate; cyclone covers cycle docs, objectives, and proof.

upgrade

cerebe upgrade moves cerebe and the cyclone beside it to one release, as one step. cyclone has no upgrade command of its own.

cerebe upgrade --check            # report only; writes nothing
cerebe upgrade                    # newest stable release in your current major
cerebe upgrade --channel beta     # include prereleases, for this run
cerebe upgrade --major            # allow a newer major version
cerebe upgrade --version 9.18.0   # install that release and hold it
cerebe upgrade --rollback         # restore the previous pair
ExitMeaning
0Upgraded, restored, or already current
1Error, including a rollback with no previous pair
2A major-version crossing was not confirmed
3Refused: a failed check, an install this command leaves alone, or a major without --major
10--check: a newer release exists in your major
11--check: only a newer major exists
12Pending: the swap or its finishing work is not done

Crossing a major version asks for confirmation on a terminal and needs --yes without one. An install managed by a package manager, such as Homebrew, Scoop, WinGet, or Nix, is refused with that manager's upgrade command.

The upgrade policy lives in your user config file, cerebe/config.yaml under your user config directory, not in a repository:

KeyValuesDefaultEnvironment
upgrade.modeauto, notify, offautoCEREBE_UPGRADE_MODE
upgrade.channelstable, betastableCEREBE_UPGRADE_CHANNEL
upgrade.majorsmanual, automanualnone
upgrade.checkIntervala duration24hCEREBE_UPGRADE_CHECK_INTERVAL
upgrade.noticetrue, falsetrueCEREBE_NO_UPDATE_NOTIFIER=1 turns it off

There is no version to pin in a repository. After an upgrade, run cerebe init in each repository to refresh its hooks and bundled plugins.

doctor

cerebe doctor          # human-readable check list
cerebe doctor --json   # the same report as JSON, for scripts and hooks
cerebe doctor --fix    # repair missing config wiring; makes no model call

doctor checks git, the git hooks, cerebe.yaml, the doctrine span in AGENTS.md, the agent-context files, each critic's CLI, the fleet and its quorum, and whether this machine is signed in. It exits 1 when a required check fails. Advisory warnings, such as a missing optional GEMINI.md, do not fail it. An empty local fleet is fine, because local review is opt-in.

If an upgrade's finishing step failed, cerebe doctor --retry-upgrade retries it once.

Read reviews

CommandWhat it prints
cerebe status --commit HEADThe verdict and each critic's status for one commit
cerebe show --commit HEADThe full review artifact: findings, severities, rationale
cerebe watchA live view of this branch's review loop
cerebe findings --range origin/main..HEADFindings across a range, without re-running the gate
cerebe statsA summary of review runs, gate events, and bypasses
cerebe postmortem <ref>The review rounds behind a commit, and what would have changed the loop

status, show, and findings accept --json. cerebe watch --json streams one JSON object per line; without a terminal, watch needs --json. From a main checkout with several worktrees, watch lets you pick one; --here attaches the current checkout.

Review artifacts are written to cerebe/reviews/<sha>.json, and the audit trail to cerebe/runs.ndjson. Both are ignored by git.

Read the Platform verdict

cerebe review-status --pr 42
cerebe review-status --pr 42 --repo your-org/your-repo --json

review-status reads the cerebe/critic check on the pull request's head and prints its review-result document: the machine-readable verdict, so scripts need not parse the Markdown summary. It exits 1 when there is no check yet, the check is still running, or the document describes another commit.

cerebe verdict verify https://github.com/your-org/your-repo/runs/123456789

verdict verify checks a signed cerebe/critic verdict: the signature, that the statement names that check run, repository, commit, and conclusion, and that the diff it reviewed matches the diff this checkout computes. Run it in a checkout of the repository with gh signed in. --skip-diff skips the diff comparison on a machine without the repository.

Sign in

cerebe login
cerebe logout

Reviews on your own agent subscriptions never need a sign-in. cerebe login connects this machine to Cerebe Factory for the commands that call it, such as effort and role. The session is kept in the OS keychain, or in a file only you can read where no keychain is available. cerebe doctor names which.

effort

cerebe effort drives hosted work from the shell: start an effort from a cycle or an issue, check its status, claim and run a task headless, and answer a task that is waiting on a person.

cerebe effort start --issue your-org/your-repo#42
cerebe effort status --issue your-org/your-repo#42
cerebe effort join --harness claude-code
cerebe effort decide --effort <id> --task <id> --kind answer --body "Use the v2 API."

effort reads the gateway address from CEREBE_GATEWAY_URL and needs a credential. cerebe effort credential store --secret-stdin keeps one in the OS keychain. Exit 3 from join means the claimed task is paused for a person to answer or cancel.

forge settings

Forge host settings are available in v9.19.0 and later. Run cerebe forge settings --help to check your installed binary's options.

cerebe forge settings reads an enrolled Team host's reviewed configuration through the gateway. It accepts no host, Team or Site selector.

cerebe forge settings
cerebe forge settings --cache /path/to/kit/forge-settings.json

Forge host enrollment

The Platform derives the host, Team and Site from the credential's enrollment against a Team machine (session_host surface). A person-authorized credential mint accepts its UUID as hostSurfaceId; agent and runner mints cannot enroll a host. Store the credential with cerebe effort credential store --secret-stdin.

Forge settings response

The response includes siteId, teamId, hostId, revision, the host's host settings, permitted targets with their placement, source and fetchedAt. It uses the same gateway and credential as the effort commands. Placement requires current admission.

Forge settings authorization

Each online read checks permission, revoked keys, retired Teams and changed ownership. A host transferred to another Team needs fresh enrollment, including if it later transfers back. Known authorization or tool refusals invalidate the local cache.

Forge settings cache lifetime

A successful read atomically refreshes the kit-owned cache, normally ~/.cerebe/operations/forge-settings.json, with mode 0444. During a transport outage, its last-known-good snapshot is usable until the host block's reviewed lastKnownGoodHours expires.

Forge settings cache integrity

The cache's keyed hash binds it to the gateway and current host key. A changed key or gateway requires an online refresh before offline reuse. The key stays in its credential store. An absent, altered, expired or writable cache yields no settings; overlapping refreshes return host_settings_cache_busy.

Forge settings exit codes

Exit 0 returns settings, 1 reports a refused or unavailable read, and 2 reports invalid arguments.

Forge reservation startup

cerebe forge reserve and activation receipts include the reservation's stored workClass. cerebe forge run validates the activated class and the admitted provider, account, model and effort against that class's reviewed route before starting its configured adapter. A missing class or a mismatched route refuses startup.

The adapter receives this nonsecret context from the validated activation:

Environment variableValue
CEREBE_FORGE_NATIVE_PROVIDERAdmitted provider
CEREBE_FORGE_WORK_CLASSStored work class
CEREBE_FORGE_ROW_IDSession baton row ID
CEREBE_FORGE_RESERVATION_IDActivated reservation ID
CEREBE_FORGE_EXECUTION_IDActivated execution ID

The CLI constructs these values from the activation receipt and discards inherited copies. An adapter uses the admitted class to select its installation's required role and enforcement. It must refuse an unsupported class rather than infer a role from the provider or model.

For a managed tmux launch, TMUX and TMUX_PANE carry transport locations. The adapter must verify the actual process, pane, configured runner session and reservation binding before reporting a live worker. Those locations grant no role, account or authentication authority.

role

cerebe role reads your installation's role configuration and proposes changes to it.

cerebe role show <role-id>
cerebe role diff <role-id> <from-revision> <to-revision>
cerebe role propose <role-id> --text <text-id> --file new-text.md

A proposal files an activation request; no role subcommand activates anything. A member of the approval group activates it. Each line of a role text is checked against a style rubric before the proposal is filed, and a failing line is refused with exit 5.

schemas

cerebe schemas list
cerebe schemas validate cerebe.yaml
cerebe schemas validate cerebe/reviews/<sha>.json --schema review-artifact
cerebe schemas emit --all --out-dir schemas/
cerebe schemas sample --all --out-dir samples/

The published JSON Schemas cover cerebe.yaml, the workstation rules, cerebe/config.json, verification evidence, test evidence, review artifacts, the Platform review result, and the effort outputs. validate infers the schema from the path for config files; every other file needs --schema. It exits 1 when a file is invalid.

prove-tests

cerebe prove-tests checks that a marked test fails when the code it claims to pin is removed. See Prove a test can fail.

cyclone

CommandWhat it does
cyclone validateCheck a pull request's trailers against your cycle docs
cyclone docScaffold, validate, write, list, and resolve cycle docs, ADRs, and your own doc types
cyclone admit-prClassify a pull request as a plan or code change; print a reference branch ruleset
cyclone objectivesDerive objectives from acceptance criteria and check their bindings
cyclone proveReport which objectives their evidence proves

See Cycle docs.

On this page