Reference

CLI reference

Every command and option in ContextBridge 0.3.3.

Options on every command

OptionMeaning
--root ROOTRepository root. Default: auto-detect.
-y, --yesApply the reviewed diff without prompting.
--redactRedact detected secrets instead of refusing.

Commands

CommandDescription
init [--local-only]Create the notes. --local-only adds contextbridge/ to .git/info/exclude.
save / checkpointSave a checkpoint. Options: --objective, --next, --next-path, --note.
work add TEXTAdd a work item. --status completed|attempted|planned, --path (repeatable), --evidence E1 (repeatable).
work set ID STATUSChange a work item's status. --evidence links runs.
run [--timeout N] -- CMDRun a command and record it as test evidence.
assume TEXTRecord an assumption. --file, --contains make it re-checkable.
decision add TITLEAdd a decision. --why, --rejected, --requirement, --code, --test, --depends, --consequence.
graph show|check|render|query TERM|trace IDInspect the decision graph.
drift [--json]Print findings comparing the checkpoint with the repository.
statusObjective, work counts, test-run totals and drift.
resume [--check] [--json]Resume safety gate plus the agent-neutral resume prompt.
session start NAME | finish NAME | listTrack parallel sessions. start takes --task, --agent, --claim (repeatable), --depends.
export -o FILEWrite a single-file bundle (scanned for secrets).
import BUNDLEImport a bundle through a reviewed diff.
scan PATHS...Scan files for secrets.

Exit codes

CodeMeaning
0Success, or gate READY / no drift.
1Drift or REVIEW_REQUIRED, or a recorded test run that failed.
2Error, secret detected, or gate BLOCKED.
3A diff was shown but not applied (declined, or no --yes without a terminal).