--session <SESSION_ID> | | The session to override, as named in the deny message. One Claude Code conversation can govern more than one repository or monorepo subproject, so session_id alone does not identify a revision loop — pair it with --repo/--rules-dir (defaulting to the current directory, same as plan-check itself) naming which governed context to override. Run this from the same repo the denial came from and the defaults already match |
--rule <DOC_SLUG::RULE_ID>... | | A rule to override, as <doc-slug>::<rule-id> (also as printed in the deny message’s suggested override command). Repeatable — one override call can clear several rules at once, each recorded as its own audit-log entry |
--reason <TEXT> | | Why this rule is being overridden. Optional but encouraged; an override without one is still recorded (with its source and the gate that denied it). Without --reason-code, telemetry from a signed-in run sends this text, as described under --reason-code |
--reason-code <CODE> | | Why, as a code: misread (the check misread the change), not-here (the ADR doesn’t apply here), adr-wrong, adr-outdated, or accepted (the block is right, going ahead anyway). With --reason and no code, the override is recorded as other. Telemetry sends the code. For other, when you’re signed in to Actual, it also sends the --reason text, with anything that looks like a secret replaced by [redacted] and cut to 280 characters. Text given with one of the five codes, or from a signed-out run, stays on this machine. One of misread (The check misread the change), not-here (The ADR doesn’t apply here), adr-wrong (The ADR is wrong), adr-outdated (The ADR is out of date), accepted (The block is right, going ahead anyway). |
--claude-hook | | Hook mode, for the actual-cli plugin’s mod: read a UserPromptSubmit envelope on stdin and, if its prompt is /actual-cli:override <rule-id|all> [code] [reason] (a bare /override is accepted too), record that override. A first word after the target that names a --reason-code is the code; any other text is recorded as other. Does not require a terminal, and an unrecognized or unresolvable prompt records nothing. Prints hook JSON whose top-level overridden array lists the keys recorded, or nothing for a prompt that is not an override command; docs/CHECK_OVERRIDE_HOOK.md has the full contract. Refused when this process carries Claude Code’s CLAUDECODE marker, which every shell command an agent runs (and every settings hook) inherits and the mod’s own spawns do not: the envelope is only JSON on stdin, so without this an agent could pipe one in and clear its own denial. Like the terminal path’s check, this raises the cost of that rather than ruling it out. |
--via <HOW> | prompt | With --claude-hook: how the user issued the override, recorded as its source — prompt (typed as a message, the default) or dialog (chosen in the dialog the mod raises when a gate denies). One of prompt (Typed /actual-cli:override as a message in the session), dialog (Chose an override in the dialog the plugin’s mod raises when a gate denies). |
--gate <GATE> | | With --claude-hook: the gate whose denial this override answers. all then covers only the rules that gate is blocking now, and a bare rule id is matched against that gate’s blocking rules first. Without it, all covers every rule either gate is blocking. The mod’s dialog passes it, so choosing “Override all” on a plan denial never turns off a rule only impl-check was denying. One of plan (plan-check, the gate on a plan), impl (impl-check, the gate on a turn’s changes). |
--list-blocking | | With --claude-hook --gate: record nothing, and print the rules that gate is blocking now as {"blocking": ["<doc-slug>::<rule-id>", ...]}. The mod lists these in its dialog, so what the user is shown is exactly what /actual-cli:override all with the same --gate records |
--repo <PATH> | | Repository root to resolve the rules directory against. Defaults to the current directory — run this from the repo the denial came from, same as plan-check itself |
--rules-dir <PATH> | | Rules directory this override applies to, overriding <repo>/.actual/rules. Must match what the hook resolved for this session (ACTUAL_RULES_DIR, if the denial came from a monorepo subproject) — this is what makes the override land on the same governed context the denial came from, rather than a same-named but unrelated one |