Quickstart
doctor → run → audit verify → patch rollback — first governed session in minutes.
Goal: one task on a local repo, with a verifiable audit trail. ~5 min
What you’ll get
Section titled “What you’ll get”- Daemon healthy (
carina doctor) - A
safe-editsession fromcarina run - Audit replay + hash-chain verify
- How to list / roll back patches if the agent edited files
Fastest path
Section titled “Fastest path”Install & doctor
If you have not installed yet: Install.
carina doctorNeed a daemon explicitly?
carina daemon startcarina statusInteractive
carinaalso auto-starts the daemon.Run a task in a repo
run.sh cd /path/to/your/repocarina run "Summarize the top-level architecture of this repo"What this does (current CLI):
- creates a
safe-editsession incwd - submits the prompt as a task
- waits for completion (or use
--backgroundto return when queued)
Interactive shell:
carinaTool calls that mutate state hit the capability kernelFourteen capability types evaluated before side effects.. Higher risk may prompt for approval — that is expected.
- creates a
Inspect the audit trail
Use the session id printed by the CLI/TUI:
audit.sh carina sessionscarina audit SESSIONcarina audit verify SESSIONcarina report SESSIONaudit— raw event stream (decisions + effects)audit verify— tamper-evident hash chainEach event links to the previous hash; verify detects rewrite.report— violations, files, commands summary
Patches (if files changed)
patch.sh carina patch list SESSIONcarina patch show SESSION PATCH_IDcarina patch rollback SESSION PATCH_IDUnder
safe-edit, writes prefer PatchApply (transactional) over raw FileWrite.
Expected outcomes
Section titled “Expected outcomes”| Check | Good sign |
|---|---|
carina doctor | No hard failures |
carina run "…" | Task completes or waits on approval |
carina audit verify SESSION | Chain OK |
carina patch list SESSION | Empty if no file txns; else list with ids |
If it fails
Section titled “If it fails”| Problem | Fix |
|---|---|
daemon unreachable | carina daemon start · check ~/.carina/daemon.sock |
| Task stuck on approval | carina approve SESSION DECISION_ID or deny · see Policy |
| Model / auth errors | carina auth list · carina auth login <provider> |
| Doctor noise | carina doctor --json for machine-readable detail |
How this ties to Carina
Section titled “How this ties to Carina”This path exercises the three differentiators:
- Policy —
safe-editoncarina run - Audit —
audit+verify - Rollback —
patch rollback
Source of truth
Section titled “Source of truth”- CLI surface:
carina --help(also CLI reference) - Security defaults:
docs/security-model.md· Policy - Audit model:
docs/event/audit notes · Audit
Was this page helpful?
What went wrong?
Thanks for the feedback.
One vote per page is recorded during this session.