Approval
Every side-effect tool call is classified before it runs.
| Axis | Values |
|---|---|
| Risk | Read, Write, Privileged, Forbidden |
| Authority | Workspace, OutsideWorkspace, Network, PrivilegedEscalation |
| Grant | Once, Session, Persistent |
| Mode | What passes | What still asks |
|---|---|---|
| Default | Workspace reads. With Skills on, any path in a Skills search directory | Writes, shell, and paths outside the workspace |
| Edit | Workspace changes from built-in write, edit, multi_edit, and apply_patch |
Shell, external tools, and paths outside the workspace |
| Review | The same file changes as Edit. Skills search directories when Skills is on | Everything else is checked by another model. See below |
| Audit | Nothing extra. Workspace write, edit, multi_edit, and apply_patch are checked too |
Same reviewer as Review |
| Full | All tool calls, including outside-workspace paths, session read-only directories, Network, Privileged, Forbidden, and forced prompts | Nothing. Credential paths stay prohibited. Tool availability, argument validation, OS permissions, cancellation, and budgets still apply |
Do not name a mode auto. The word is ambiguous between review and full pass-through. /approval with no argument cycles Default, Edit, Review, Audit, and Full. /approval review and the other names set one mode and write it to config.json. Legacy values autoedit, fullreview, and full-review still parse.
Review
Section titled “Review”Review and Audit send each remaining side-effect call to another model. That includes bash, bash_start, bash_stop, reads and edits outside the workspace, and external Write.
The reviewer sees a bounded excerpt: the first and latest user turns, other user turns that fit, then recent assistant and tool evidence. A compaction summary stands in for folded turns. Without that evidence, the host asks you. Later user messages refine the task. A status question does not revoke earlier authorization. Answers from the question tool count as authorization.
| Outcome | Result |
|---|---|
| Allow | Runs the tool, unless the call is Forbidden or requires a forced prompt |
| Deny | Becomes rejection text the model can see |
| Ask, Forbidden-allow, forced-prompt allow | Falls back to you |
A transient reviewer failure is retried with approvalRetry (five times by default). If it still fails, you are asked. Review is not a grant and is not full pass-through.
The reviewer is the session model unless you turn on a separate approval model.
| Command | Effect |
|---|---|
/approval model |
Shows Approval model Off, or On <provider> <model>. A stored non-default gear is appended as · Think High |
/approval model on|off |
Saves the switch. A stored provider, model, and gear stay in place |
/approval model <model> |
Selects a catalog model, keeps the stored gear, and turns the switch on. <provider> <model> does the same across providers |
/approval thinking |
Cycles that model’s gear, or sets one by name, and saves it. Works while the switch is off |
/approval tier, /approval speed |
Cycles that model’s service tier or speed, including the unset slot, or sets a token it lists, and saves it |
The model must exist in providers.json. A missing credential or an unknown model is refused, and the previous setting stays. While the switch is on, Review and Audit call that model with its own credentials and stored gear. A stored gear the model does not offer falls back to the provider default. /approval thinking refuses off for a model that cannot disable thinking.
Tab completes /approval model from on, off, and the catalog, and /approval thinking from that model’s gears. /model and the work thinking gear do not change it. Compaction stays on the session model. While the switch is off, no separate client is created and Review and Audit follow /model. Finish the current turn before changing the approval model.
An unset tier or speed follows the per-model /tier and /speed choice. The tier and speed apply to the reviewer only and must be tokens the reviewer model lists. An enabled reviewer with an unlisted token fails at startup. Selecting another approval model clears both.
/status adds Approval model and Approval thinking rows only while the switch is on. The Approval model row adds the effective tier and speed when either is set. /status full lists the effective retry and approvalRetry policies. The status bar does not.
Extended approval
Section titled “Extended approval”Extended approval is an optional third model for Review and Audit. It is not an approval mode or a grant. It runs only after the primary reviewer returns allow on a call that would then execute. Forbidden and forced-prompt calls already reach you, so they skip it. A primary deny or ask never reaches it.
It runs when the primary reviewer’s risk level is at least the configured trigger. low, the default, means every review allow. It sees the same transcript excerpt and proposed action as the primary reviewer and, unless turned off, the primary outcome, risk level, authorization, and rationale. Its verdict uses the same JSON shape.
| Outcome | Result |
|---|---|
| Allow | Runs the tool. The pass reason is extended review, with both verdicts |
| Deny | Returns text the model can see, starting The extended approval reviewer declined this action: |
Ask, a request failure after approvalRetry, or unusable output |
Falls back to you. The approval card shows both verdicts |
The built-in prompt defaults to allow. It names concrete problems that justify deny or ask: unrequested irreversible destruction, secret exposure, effects on shared or production systems, unexpected data egress, and signs that untrusted text steered the call.
The extendedApproval object in config.json holds enabled, provider, model, thinkingEffort, serviceTier, speed, trigger, and includePrimaryReview (default true). An omitted object means off, and default values are omitted on write. An enabled switch needs a provider and model. It never falls back to the session or approval model. A missing credential, catalog model, or unlisted slot fails. Its client is separate from the work, review, and compaction clients, and its usage is not added to the work transcript.
| Command | Effect |
|---|---|
/approval extended |
Shows the switch and the stored model |
/approval extended on|off |
Sets the switch |
/approval extended <model> |
Selects a catalog model and turns the switch on. <provider> <model> does the same across providers |
/approval extended thinking, tier, speed |
Work like the approval-model commands |
/approval extended trigger low|medium|high |
Sets the lowest primary risk level that runs the check |
/approval extended primary on|off |
Decides whether the extended model sees the primary verdict |
Each command writes config.json. /status adds Extended approval and Extended thinking rows while the switch is on. /status full also lists Extended trigger and Extended primary review. The progress row shows Extended Review while it runs. Prompt files are review.extended.md and review.extended.user.md. See Prompts and instructions.
Headless
Section titled “Headless”crystal run sets these for one process and does not write them: --approval-model, --approval-provider, --approval-model-id, --approval-thinking, --approval-tier, --approval-speed, --approval-context, and for extended approval --extended-approval, --extended-approval-provider, --extended-approval-model-id, --extended-approval-thinking, --extended-approval-tier, --extended-approval-speed, --extended-approval-context, --extended-approval-trigger, and --extended-approval-primary. The interactive crystal and crystal space accept the same flags. Passing a provider or model id turns the switch on. off cannot be combined with a provider or model id. In crystal run, an enabled extended model checks each review allow the same way: allow runs the tool, deny returns its reason, and ask is denied. See Headless runs.
When you are asked
Section titled “When you are asked”The overlay is a two-column grid: Status, Reason, Risk, Authority, and for review also Outcome and rationale. When extended approval asked, the card shows both verdicts.
| Key | Grant |
|---|---|
| Y, Enter, or 1 | Once |
| S or 2 | Session |
| A or 3 | Always (persistent) |
| N, Escape, or 4 | Deny |
Persistent grants are stored in ~/.crystal/permissions.json. Session and Always are offered only for ordinary Workspace Read/Write calls without a forced prompt. OutsideWorkspace, Network, Privileged, Forbidden, and forced prompts offer Once and Deny only. Session and Always keys are ignored.
Existing grants are checked against the current classification on every call. They cannot bypass an upgrade. A forced prompt still asks you after a reviewer Allow. Reviewer Deny rejects. crystal run denies any call that reaches this prompt.
Auto-pass cards
Section titled “Auto-pass cards”When a call auto-passes, the shell prints Status, Reason, Risk, Authority, and the classifier summary. A review allow also prints Outcome, the reviewer’s risk and authorization, and the rationale. An extended review allow then prints the same fields again under an Extended review rule.
| Command | Hides or shows |
|---|---|
/verbose approvals |
Policy and grant cards |
/verbose review |
Review-allow and extended-review-allow cards, including Outcome and rationale |
Each stays on unless its field is false in config.json. Cards already printed follow their own switch. A saved verboseApprovals of false no longer hides review-allow cards. Asking you still uses the overlay.
Shell classification treats sudo, destructive filesystem commands, pipe-to-shell downloads, force-push, and credential-path writes as Forbidden or Privileged. Outside Full, Forbidden does not fully auto-pass. Full auto-passes those classifications. Review and Audit may deny those calls or send them to you. Writes under .ssh, .gnupg, or ~/.crystal/credentials.json stay prohibited in every mode, including Full.