Skip to main content
The quickest fix is often to ask your agent: “Diagnose why Actual is failing.” The actual skill knows every error the CLI can return and all five runners, so it can find the cause and retry without you reading logs. The sections below cover the same problems for when you work in a terminal.

The CLI is missing or too old

In a repository with .actual/rules/, your agent stops to tell you the actual command isn’t installed, or that it’s too old, and offers to install or upgrade it. The plugin starts that conversation when a session starts; the message it hands your agent begins “Actual plan-stage governance is configured for this repository (.actual/rules/ is present), but the actual CLI is not on PATH, so plans are not being checked.” The plugin runs every check through the Actual CLI, which installs separately. The plugin needs CLI 0.8.0 or later, rule files with a YAML header need 0.9.0, and governance in Codex needs 0.15.0. On a CLI too old to read your rule files’ headers, the checks stand down rather than judge the wrong scope. Install or upgrade with the package manager you used, then confirm the version:
actual version names how your copy was installed and the command that upgrades it. See Install the CLI.

The plugin does nothing in a repository

The plugin stays silent in a repository without rule files under .actual/rules/. Run actual rules ls in the repository to see the rule documents the checks read, with their counts and any warnings.
  • No rule files yet. Add a decision: signed out, actual adr new writes it under docs/adr/ with its rule file. Signed in, accepted decisions arrive through the pull request Actual AI opens. See Write and draft decisions.
  • Rule files in a subfolder. The checks read only the .md files directly under .actual/rules/, and skip a subfolder without a word.
  • Decisions that don’t govern. A decision whose status is draft, deferred, rejected or similar is read by no check.
  • Rules in another directory. In a monorepo subproject, point the plugin at the right directory with ACTUAL_RULES_DIR. See Settings.
  • Governance turned off. ACTUAL_PLAN_GATE=off in the agent’s environment turns the checks off.

A check couldn’t run

The plugin shows a notice such as “Actual plan governance did not run: no runner available (…).” or “Actual implementation governance did not run: …”, and the turn goes on. Run by hand, the check’s panel ends with “Could not check: no runner available (…).” The checks judge your rules with a model, through a runner. This notice means no runner could be used, or the judge’s call failed or timed out. The check fails open: the plan or change goes through unchecked, and --json reports status as not_checked with exit code 0, as it does when no rule applies.
  • actual runners lists the five runners and what each one needs. With nothing configured, the checks try claude-cli, then anthropic-api; inside Codex they try codex-cli and openai-api first.
  • When the message says “runner: <name> in the config pins stage 2 to that backend, so no other was tried”, fix that runner or remove the runner key from the config file.
  • A call that times out ends with “Runner timed out after …s”. For actual adr-bot, raise invocation_timeout_secs; the checks keep their own, shorter limits.
  • In CI, read status from --json: exit code 0 alone can’t tell “checked and clean” from “could not check”.

Runner sign-in problems

A runner that isn’t installed or signed in stops the command with exit code 2 and a message naming the fix: “Insufficient credits” (exit code 3) comes from the model provider: add credits on its billing page. Keys set in the environment win over keys in the config file; see Environment variables.

Signed out of Actual AI

Commands that work with your organization’s decisions, such as actual advisor and actual adr list, stop with “Not signed in to Actual AI” (exit code 2) when there’s no usable sign-in. This sign-in is separate from your runner’s: the checks and actual rules run without it. Plain actual whoami reads only the credentials on your machine. actual whoami --check (CLI 0.15.0 or later) asks the server:
  • Exit code 2: the server no longer accepts the sign-in, after a sign-out on another machine, a revoke or a refused renewal. Run actual login again.
  • Exit code 3: the server couldn’t be reached or failed. Your sign-in may be fine; try again later.
See Sign in.

Codex runs no checks

Codex runs a plugin’s hooks only once you trust them. Open /hooks in the Codex CLI, or Settings → Hooks in the app, review the plugin’s hooks and trust them. Codex records that trust against the plugin’s content, so after each plugin update the hooks show as modified and stay off until you review them again. Governance in Codex also needs CLI 0.15.0 or later. actual plan-check --help names codex-hook on a CLI that has it. See Codex.

A rule keeps blocking

By default a check denies a rule at most three times in a session, then stops blocking on it, so a rule the agent can’t satisfy never traps a session. ACTUAL_PLAN_CHECK_MAX_ROUNDS and ACTUAL_IMPL_CHECK_MAX_ROUNDS change that limit for each check. When the check is wrong for this change, override the rule instead of waiting it out: choose Override in the dialog, type /actual-cli:override <rule-id|all> [code] [reason] in Claude Code, or type actual override <rule-id|all> [code] [reason] as a message in Codex. See Overrides. actual check-override in a terminal refuses to run inside an agent’s shell, or in a terminal Claude Code itself launched: “check-override must be run interactively, from an ordinary terminal — not through a script, an agent’s tool call, or a terminal Claude Code itself launched.” Run it from a separate, plain terminal window. Every round and override is recorded in ~/.actualai/actual/plan-check-overrides.log.

Rule changes don’t show up

The checks find the rules for a plan, path or change through a scope index cached under the CLI’s config directory. The cache is keyed by the exact contents of every rule file, so an edit, addition, removal or rename rebuilds it on the next run. To rebuild it anyway, run actual rules index --rebuild, or pass --rebuild to actual plan-check, actual impl-check or actual rules select. actual rules index --clear removes every cached index, other repositories’ included, then rebuilds this one.

Diagnostics to collect

  • Ask your agent to diagnose. The actual skill runs a read-only script that checks the CLI and its version, the runner binaries, the runner’s sign-in, which keys are set (never their values), the config file, the git repository and actual status.
  • ACTUAL_HOOK_DEBUG=1 with claude --debug shows what the plugin’s hooks did: the rules directory, the CLI’s exit status, why a reply was dropped and how much context briefing has used.
  • ACTUAL_TELEMETRY_DEBUG=1, set before you start Claude Code, logs every telemetry event to ~/.actualai/actual/telemetry-debug/<session id>.jsonl, and the plan and Stop checks name that file in their message. See Privacy and telemetry.
  • The CLI’s own reports: actual --version, actual version, actual config show (keys redacted), actual runners, actual auth and actual whoami.
When the CLI reports “Internal error”, or a fix here doesn’t help, open an issue on actual-software/actual-cli with what you ran and what it printed.