> ## Documentation Index
> Fetch the complete documentation index at: https://docs.actual.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Overrides

> Clear a rule a check denied for the rest of the session, and record why.

When `plan-check` or `impl-check` denies, the agent goes back to revise. When the denial is wrong, or you're going ahead anyway, you override the rule for the rest of the session and record why. Only you can: the CLI refuses an override that comes from the agent's own shell.

## Denials and their limits

In Claude Code, a plan that conflicts with a rule is denied before you see the approval dialog, and changes that conflict are denied at the end of the turn. The conflict goes back to the agent with the rule and the reason, and the turn continues until it's fixed.

Two limits keep governance out of the way of unrelated work. A rule stops blocking after three denied rounds in a session, counted per rule, so a new conflict always gets its own three. When the CLI is missing, outdated or fails, you get a message instead of a block. The round limit is set by `ACTUAL_PLAN_CHECK_MAX_ROUNDS` for plans and `ACTUAL_IMPL_CHECK_MAX_ROUNDS` for changes, and must be at least 1.

## The dialog in Claude Code

When a gate denies, Claude Code asks what should happen in its own select dialog:

* **Revise the plan to conform**, the recommended choice, sends the agent back to fix it.
* **Override all** overrides every rule that gate is blocking now, never a rule only the other gate is denying.

After **Override all**, a second question asks why: the check misread your change, the decision doesn't apply here, the decision is wrong, or it's out of date. If the block is right and you're going ahead anyway, choose **Other** and type `accepted`; anything else you type there is kept as your reason. The override is then recorded, and the plan goes on to its approval, or for a denied change, the turn ends.

Anything you type under **Other** in the first question goes to the agent as your answer. If you dismiss either question, nothing is overridden and the agent relays the denial.

The dialog needs the plugin's mod, which loads on Claude Code 2.1.287 or later. To let the agent revise on its own without asking, turn off **Governance: ask how to handle a denial** under `/plugin`, or set `ACTUAL_OVERRIDE_DIALOG=off`. The [unattended setting](https://docs.actual.ai/guides/unattended-agents-and-ci.md) turns the dialog off too.

## Override from the prompt

Type the command as a message at any time, which is also how to override some of the rules a gate is blocking and not others:

```text theme={null}
/actual-cli:override <rule-id|all> [code] [reason]
```

* `all` covers the rules the checks are blocking now. A rule id is the one the deny message prints.
* A named rule that isn't blocking is still overridden, and the reply says so.
* The first word after the target is read as the code, when it's one of the five below. The code and the reason are both optional.
* Use the full name. Claude Code registers plugin commands only under the plugin's prefix, so a bare `/override` comes back as an unknown command.

Like the dialog, the command needs the plugin's mod. In-session overrides need Actual CLI 0.13.0 or later, and 0.14.0 or later to record the code. [Slash command](https://docs.actual.ai/plugin/slash-command.md) is the reference.

## Reason codes

| Code | Meaning |
| - | - |
| `misread` | The check misread the change |
| `not-here` | The decision doesn't apply here |
| `adr-wrong` | The decision is wrong |
| `adr-outdated` | The decision is out of date |
| `accepted` | The block is right, and you're going ahead anyway |

A reason that doesn't start with one of the five codes is recorded with the code `other`. Telemetry sends the code. For an `other` override from a signed-in run, it also sends the typed reason, with anything that looks like a secret replaced by `[redacted]` and cut to 280 characters, and Actual AI shows it only to your organization's admins. Words you type after one of the five codes stay on your machine. Your reason does come back to the agent, though: later checks in the session repeat it in what they return, so it can reach the provider running your agent. Keep secrets out of it. [Privacy and telemetry](https://docs.actual.ai/resources/privacy-and-telemetry.md) has the details.

## Override from a terminal

When the dialog and the slash command aren't available, because the mod didn't load or the CLI is older, run `actual check-override` from an ordinary terminal:

```bash theme={null}
actual check-override --session <session-id> --rule <doc-slug>::<rule-id> --reason-code accepted --reason "Migration ships next sprint."
```

| Flag | What it sets |
| - | - |
| `--session <SESSION_ID>` | The session to override, as the deny message names it |
| `--rule <DOC_SLUG::RULE_ID>` | A rule to override, as the deny message prints it. Repeatable |
| `--reason-code <CODE>` | One of the five codes. Actual CLI 0.14.0 or later |
| `--reason <TEXT>` | Why. Without `--reason-code`, it's recorded as `other` |
| `--repo <PATH>`, `--rules-dir <PATH>` | The governed context the denial came from. Run the command from that repository and the defaults match; a monorepo subproject that set `ACTUAL_RULES_DIR` needs the same directory here |

The command runs only with a person at it: standard input has to be a real terminal, and the process can't carry Claude Code's `CLAUDECODE` or `CLAUDE_CODE_ENTRYPOINT` markers. A command refused from Claude Code's integrated terminal works from a separate terminal.

## Override lifetime

An override applies to both gates for the rest of the session, in the governed context it was made for: the session id together with the rules directory. A new session starts with every rule in force again.

## The override log

Every round and every override is recorded in `~/.actualai/actual/plan-check-overrides.log`, with how each override was issued (`terminal`, `session_prompt` or `session_dialog`), its code and reason, and which gate was blocking the rule. The CLI keeps the file readable only by you. The session's own record, under `~/.actualai/actual/plan-check-sessions/`, holds the reason and code too.

## Overrides stay with a person

The agent can't record an override for itself. The dialog's answer goes to the plugin, never to the agent, and the CLI refuses an in-session override from any process that carries Claude Code's `CLAUDECODE` marker, which every command the agent runs inherits. In Codex, it refuses one from a process carrying `CODEX_THREAD_ID` or `CODEX_SESSION_ID`. These checks raise the cost of an agent overriding itself; they're no cryptographic proof that a person acted.

## Overrides in Codex

Codex has no plugin commands, so there's no `/actual-cli:override`. When a check stops a Codex turn, type `actual override <rule-id|all> [code] [reason]` as your message, or choose **Override** in the picker where the agent can show one. [Codex](https://docs.actual.ai/guides/codex.md) covers both.

## Integrations

Tools that record overrides through the plugin's hook contract can read it on GitHub: [the check-override hook contract](https://github.com/actual-software/actual-cli/blob/main/docs/CHECK_OVERRIDE_HOOK.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.