Stop adding rules to CLAUDE.md and automate the checks
The author describes how Claude Code rewrote a migration file under drizzle/ even though CLAUDE.md said not to edit those files, and found that the conventions file linked from CLAUDE.md had already been broken. Prohibitions written in Markdown are only requests and do not stop an agent, so the author argues for checks that run automatically. The author uses the word harness[1] for the rules, checks and guardrails around an AI agent, and says it should be built from deterministic mechanisms such as Hooks[2], lint[3], type checks, tests and permission settings.
The author cites a talk by Lauren Tan at AI Engineer CODE 2026, where she works on Grok Bot at SpaceX and says she and her team produce about 3,000 PRs a month and about 11,000 PRs a month with agents. Her main point is that when an agent repeats a mistake, a note in AGENTS.md should be replaced by a deterministic check such as lint, types or tests. Her "inverted trust pyramid" puts code, lint, types, compilers and tests at the base and human review at the top, where cost rises and reliability falls. Her team bans most code comments, because agents use them to justify workarounds that later agents copy, and it catches such workarounds with custom lint rules. The author concludes that trusting output that cannot be verified is the real Slop[4], whether a human or an AI wrote it.
The author built a personal tool, CC Harness Studio, a development environment that shows CLAUDE.md, AGENTS.md, skills, subagents, autonomous loops and Hooks on one screen. Before a run it checks broken @import links, duplicate instructions and token use, and it generates a blocking Hook from AGENTS.md prohibitions that can be tested with simulated JSON. All edits are written back to standard Markdown and .claude/ files, so ordinary config files remain if the tool is no longer used.






