$ actual plan-check

Align coding agents with your architecture decisions

The Actual.AI Plugin for Claude Code and Codex checks each plan before your agent builds it, and each change before your agent hands back control, against the Architecture Decision Records (ADRs) in your repository.

  • Free and open source (MIT)
  • No account or sign-in
  • Claude Code and Codex
actual plan-check
$ actual plan-check --rules-dir ./.actual/rules \
    "Sign new access tokens using an HMAC shared secret for speed"
╭─ Plan check ─────────────────────────────────────────────────────────────────╮
│ Plan: Sign new access tokens using an HMAC shared secret for speed           │
│ Rules dir: ./.actual/rules                                                   │
│ Documents selected: 1                                                        │
│ Runner: claude-cli (claude-sonnet-4-6)                                       │
│ Rules checked: 2                                                             │
├──────────────────────────────────────────────────────────────────────────────┤
│ CONFLICT: R-OAUTH-001 (MUST)                                                 │
│       R-OAUTH-001 requires RS256 with JWKS-resolved key, but the plan use…   │
│       "Sign new access tokens using an HMAC shared secret for speed"         │
│ CONFLICT: R-OAUTH-002 (MUST_NOT)                                             │
│       R-OAUTH-002 forbids signing access tokens with a shared HMAC secret…   │
│       "Sign new access tokens using an HMAC shared secret for speed"         │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Error ──────────────────────────────────────────────────────────────────────╮
│                                                                              │
│ Error: plan does not conform: R-OAUTH-001: R-OAUTH-001 requires RS256 with   │
│ JWKS-resolved key, but the plan uses HMAC instead.; R-OAUTH-002: R-OAUTH-002 │
│ forbids signing access tokens with a shared HMAC secret, which is exactly    │
│ what the plan proposes.                                                      │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

How it works

Every plan and every change,

checked against your decisions

Before you approve

Plans checked against your rules

When Claude Code leaves plan mode, or a Codex Plan-mode turn ends, actual plan-check judges the plan against your rules and sends a conflicting plan back, naming the rule it breaks.

End of every turn

Changes checked before hand-back

actual impl-check judges the diff when a turn ends and keeps the agent working until the change conforms, whether or not the session used plan mode.

Your call

Overrides stay with people

You clear a denied rule for one session, in the session or with actual check-override, and the reason is logged. The agent can't clear its own denial.

Installation

Install automatically with the

Actual.AI Plugin

Claude Code or Codex

Recommended

Install the Actual.AI Plugin

Your coding agent's plans and code changes are checked against your repository's decisions.

  1. 1. Install the plugin

    Run these in a Claude Code session, one at a time.

    /plugin marketplace add actual-software/actual-skill
    /plugin install actual-cli@actual-cli-skills
  2. 2. Reload plugins

    Run this in the same Claude Code session so it picks up the new plugin.

    /reload-plugins
  3. 3. Install the CLI

    Run /actual and the skill will offer to install the Actual CLI. If your repository already has decisions, you'll get that offer without asking.

  4. 4. Sign in

    Optional

    Connect the CLI to your Actual AI account through your browser. The checks run signed out.

    actual login
  5. 5. Add decisions

    From your own terminal, actual adr new (CLI 0.14.0 or later) writes a decision into docs/adr/. Or merge the pull request app.actual.ai opens with your team's decisions.

    actual adr new "Use Postgres for storage" --policy "MUST: Services store relational data in Postgres."
  6. 6. Plan a change

    Ask Claude Code to plan or build a feature. A plan or change that conflicts with a decision goes back to the agent, with the rule it breaks.

Or install directly

Homebrew

macOS & Linux

brew install actual-software/actual/actual

Installs the native binary. The checks and actual rules work signed out.

npx

Zero install

npx @actualai/actual impl-check

No install needed. Works anywhere Node is available — great for CI and quick tries.

Clawhub

OpenClaw

clawhub install actual

Installs the skill only, never the CLI. OpenClaw needs actual on your PATH before it loads the skill, so install the CLI with Homebrew or npm first.

On Linux, the CLI needs glibc 2.39 or newer, however you install it. Check yours with ldd --version.

Frequently asked questions

It checks your coding agent's plans and changes against your team's architecture decisions. In Claude Code, the Actual.AI Plugin runs the checks for you: a plan that conflicts with a decision goes back to the agent before you approve it, and so does a change at the end of a turn. Codex runs the same checks; there a conflict stops the turn and you choose whether the agent revises or you override the rule. The same checks run from your terminal and in CI.
Yes. The Actual.AI Plugin is free, and its CLI is open source under the MIT license at github.com/actual-software/actual-cli. The checks, actual rules, actual adr new and actual adr check need no account and no sign-in. An Actual AI account is optional: signing in connects the CLI to your organization's decisions in Actual AI.
Install the Actual.AI Plugin in Claude Code or Codex, then run /actual ($actual in Codex) and the skill offers to install the CLI; Codex needs CLI 0.15.0 or later. Or install it yourself with Homebrew (brew install actual-software/actual/actual) or npm (npm install -g @actualai/actual). Then add your decisions under docs/adr/ with actual adr new (CLI 0.14.0 or later), from your own terminal, or merge the pull request app.actual.ai opens.
Upgrade each part the way you installed it. For Homebrew, run brew upgrade actual-software/actual/actual; for npm, run npm install -g @actualai/actual@latest. For source builds, run cargo install -f --git https://github.com/actual-software/actual-cli actual-cli. For a hand-downloaded CLI at 0.12.0 or later, run actual self-update from your own terminal; you must own the binary and its directory, which must be writable without sudo. Older CLIs need a fresh download of a signed release at 0.12.0 or later first; the Install the CLI page on docs.actual.ai covers signature and checksum verification and the macOS browser-download quarantine step. With npx, use npx @actualai/actual@latest <command>. For the plugin in Claude Code, run claude plugin marketplace update actual-cli-skills, then claude plugin update actual-cli@actual-cli-skills, and start a new Claude Code session. In Codex, run codex plugin marketplace upgrade actual-cli-skills, then codex plugin add actual-cli@actual-cli-skills, and trust the updated hooks again in /hooks. Your sign-in and rules are kept.Read the upgrade guide →
No. The checks and actual rules run signed out, in Claude Code, Codex and from your terminal, and actual adr new and actual adr check (CLI 0.14.0 or later) work on your repository's files without signing in. Signing in with actual login connects the CLI to your Actual AI account, where the other actual adr commands manage your organization's decisions.