Stop adding rules to CLAUDE.md: automate verification to rein in AI coding agents
4310sy · x · 2026-11-29
A Japanese long-form article on "harness engineering" for AI coding agents, built on firsthand failures:
- The author wrote "never edit SQL under xxx/api/drizzle" in CLAUDE.md—Claude Code rewrote 0001.sql anyway; the referenced @docs/conventions.md link had long rotted.
- Core thesis: Markdown prohibitions are sticky notes with no enforcement power. What actually works are hooks, verification scripts, lint, and permission settings—deterministic gates that fire regardless of context length or model mood.
- Two failure modes of handwritten rule management: rules pile up and duplicate, burning tokens and burying the important ones; and open-ended "iterate until good" loops with no quality bar or failure cap burn tokens on pointless fixes.
- The author built a personal tool to audit his own harness wiring, arguing: don't add rules—automate verification.
More from coding & agent
- Manager of 30 merges 4,986 PRs in a month: "it's the agents running while I do my job" — PaulShellDev · 2026-11-29
- DSL vs JSON follow-up: LLM games where the engine enforces the rules — bye_ella · 2026-11-29
- Claude Sonnet builds endless cinematic train ride in pure three.js code — prasenx · 2026-11-29
- Local M5 Ultra 96GB test: quantized models on large repos, plus Claude judging frustrations — norenEnmotalen · 2026-11-29
- MCP servers can now ship skills alongside tools in Claude public beta — arpit_bhayani · 2026-11-29
- Codex burned through the 5-hour usage limit in just 7 prompts, user says while canceling — Kiraxarik · 2026-11-29