Rules the agent cannot break
Agents forget instructions, so turn every rule that matters into a linter, test, build gate or hook that stops the work when it is broken.
- Required 1
- Recommended 2
Required
Protect the checks themselves
AID-14Never let an agent pass a check by weakening it. Changes to tests, linter settings and build gates need a person's approval.
Recommended
Use strict types and linters
AID-12Run the strictest type checker and linter settings the project can pass, so mistakes fail fast instead of reaching review.
Block dangerous actions with hooks
AID-13Use the agent's hooks or permission rules to block actions that must never happen, instead of trusting instructions.
Read this with
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/ai-assisted-development/rules-the-agent-cannot-break">Agent Wranglers AI-assisted development playbook</a>. In code you write, add a comment next to it with the same link.