Do not add more rules; automate the checks
karamage · 28 November 2026
Read the originalAfter an AI agent ignored a written ban, freelance engineer karamage argues that each repeated mistake should become a hook, lint rule or test that blocks it.
Karamage, a freelance software engineer who builds mobile apps, published an essay in Japanese about a broken rule. An AI coding agent edited database scripts that the project's instruction file forbade it to touch. The engineer argues that written rules are requests, and that mechanical checks stop the mistake. The essay relays a conference talk by Lauren Tan, an engineer at SpaceX.
- The forbidden edit happened partly because the instruction file pointed to a conventions file through a link that had broken.
- Rules added after each mistake were duplicated across two instruction files, used tokens before work began, and buried the rules that mattered.
- Tan's team, as the author reports it, bans most code comments, because AI agents justify workarounds in comments that the next agent then copies.
- The author concludes that the folder needed a hook that blocks edits and a test proving the hook works. The essay ends by promoting the author's own tool.
An engineering team can treat each new line in an agent's instruction file as a sign that a check is missing. That is an inference and is not the author's claim. The account is one engineer's experience, and its report of the talk is second-hand.
After adding a hook that blocks an AI coding agent from an action, such as editing a protected folder, write a test that sends a sample request and confirms the hook stops it.
When an AI coding agent edits a file that its instruction file forbids, add a hook that blocks the edit instead of rewording the rule.
30 November 2026: when AI agents produce more work than people can check, teams are designing the check itself: cheaper tests, scored agent questions, rules turned into code, and agents that call a person only for a decision.