Checks your coding agent's plans before approval and its changes at the end of every turn against the ADR rules committed in .actual/rules/, briefs it on the rules for each file it reads, and lets you override a denied rule from the session. Also writes ADRs with you, one at a time with adr-draft or a repository's foundation set with adr-bootstrap, and runs and troubleshoots the actual CLI, including adr-bot and the advisor on request
Align coding agents with your architecture decisions
Coding agents like to follow rules, especially when they are formatted as Architecture Decision Records (ADRs). Starting recently, they also like to write ADRs. You might find that your current repository already has rules in docs/adr. Rules like which database you store data in, how services call each other, and what must never be logged. When rules are generated organically, they are often too vague, too bloated, badly scoped, and become out of date over time.
Actual.AI Plugin puts well-scoped, well-formatted, automatically maintained rules in front of Claude Code and Codex, which should reduce your token usage and review time. See demos.actual.ai for examples. Once the ADRs are committed via the bootstrap command, Actual.AI Plugin:
Briefs the agent on the rules that govern each file as it reads or edits it, so the first draft already follows them.
Checks the plan against your rules before the agent builds on it.
Checks the changes at the end of every turn, and sends a conflict back to the agent with the decision it breaks and why.
Leaves the last word with you. You can override any rule, and the exception reason is recorded for later analysis.
Writes ADRs with you. The adr-draft skill creates, changes and removes decisions, and adr-bootstrap proposes a repository's first set from existing rules and agent logs.
In a repository with no rule files the plugin checks nothing; it tells your agent once that no decision governs the repository yet, and offers adr-bootstrap.
Documentation for the Actual.AI Plugin and the Actual CLI can be found at docs.actual.ai.
Getting started
1. Install the actual CLI
The CLI runs the checks, and the plugin does nothing without it, so installing the plugin includes installing the CLI. The plugin needs version 0.20.0 or later.
npm install -g @actualai/actual@latest
Or brew install actual-software/actual/actual. Either install keeps the CLI and the plugin up to date on their own, and it's for your machine, not a dependency of any repository. Other install options.
2. Install the plugin in your agent
Claude Code
Run each command on its own, as a message in a Claude Code session:
There's nothing to configure: every setting works as it is. If the installer says options are "not yet set" or shows a form of them, leave them as they are.
The CLI keeps itself and the plugin up to date as each session starts. Optionally, to have Claude Code update the plugin as well, run /plugin, open the Marketplaces tab, select actual-ai and choose Turn on auto-update (Enable auto-update in older versions of Claude Code). Updates in Claude Code.
actual plugin update turns on the plugin's hooks. It adds them to your own ~/.codex/hooks.json, after any hooks of yours, which stay as they are. Your next Codex thread asks you to review them: choose Trust all and continue, or trust them later in /hooks (Settings → Hooks in the app). Until you trust them, the hooks don't run and nothing is checked.
The plugin isn't in Codex's public plugin directory, which doesn't list plugins that carry hooks, so install it with the commands above. Codex plugin covers updates and removal.