One set of engineering rules for every AI coding agent on your project, managed from a sidebar in VS Code.
ext install WyvernSystemsLLC.ai-rulebookAI coding agents are fast, but without guidance they drift: they touch code nobody asked them to change, skip the tests, and leave the docs out of date. AI Rulebook gives them a short, consistent set of engineering rules to follow in every session.
The rules live in your project's AGENTS.md, the shared instructions file read by Cursor, Cline, opencode, Windsurf, and supported GitHub Copilot features. Claude Code picks them up through a one-line @AGENTS.md import in CLAUDE.md. Commit both files and every teammate and every tool works from the same rules, with nothing extra to install.
A sidebar lets you turn each rule on or off. Every toggle edits that rule's section of AGENTS.md in place, and anything you wrote outside the managed block stays exactly as you left it.
<!-- ai-rulebook:start -->
<!-- ai-rulebook:rule scope enabled -->
## Scope
- Change only what the task requires. ...
<!-- ai-rulebook:end-rule scope -->
<!-- ai-rulebook:rule git disabled -->
<!-- ai-rulebook:end-rule git -->
<!-- ai-rulebook:end -->Rules are written to AGENTS.md, so Cursor, Cline, opencode, Windsurf, GitHub Copilot, and Claude Code all read the same instructions.
Sidebar checkboxes turn each rule on or off, and a status bar count such as AI 5/6 shows how many are active.
Only the block between its markers is managed. Your own text is preserved, and a block with damaged markers is never overwritten.
The Tests rule names your real command, detected from npm, pnpm, yarn, bun, Cargo, Go, pytest, or a Makefile.
Projects that already use an AI agent get the rule pack automatically on open. Turn that off with a single setting.
Off by default. Tells agents to keep judgment on the main model and delegate searches, edits, and check runs to cheaper subagents.
Search for AI Rulebook in the Extensions panel, or install it from the VS Marketplace or Open VSX.
If the project already uses an AI agent, the rule pack installs automatically. Otherwise run “AI Rulebook: Install / update rule pack” from the Command Palette.
Use the AI Rulebook sidebar to switch individual rules on or off.
Teammates and terminal tools such as Claude Code and opencode then get the same rules without installing anything.
No. Each GitHub release includes a standalone AGENTS.md. Copy it into your project root and replace the placeholder test command with your own.
No. It adds or updates one block between its own markers and leaves everything else in the file alone. If those markers are damaged, it stops rather than guess.
Yes. Claude Code reads CLAUDE.md, so the extension adds a single @AGENTS.md import line there. Your existing CLAUDE.md instructions are kept.
No. Rules are instructions, not enforcement. Agents can still miss them, especially late in long sessions, so restate the rule that matters when that happens.
Yes. Set aiRules.autoInstallOnOpenWorkspace to false in your settings.