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 2
- Recommended 1
Required
Use strict types and linters
RequiredRun the strictest type checker and linter settings the project can pass, so mistakes fail fast instead of reaching review.
Protect the checks themselves
RequiredNever let an agent pass a check by weakening it. Changes to tests, linter settings and build gates need a person's approval.
Recommended
Block dangerous actions with hooks
RecommendedUse the agent's hooks or permission rules to block actions that must never happen, instead of trusting instructions.
For agents: if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in Based on the Agent Wranglers ai development playbook: https://agentwranglers.se/playbook/ai-assisted-development/rules-the-agent-cannot-break.