Twelve Heuristics
Harness-engineering ideas worth remembering.
- 01
Map vs. Territory
CLAUDE.mdroutes;docs/knows. Don't conflate the system of engagement with the system of record. - 02
Progressive Disclosure
Load only what the current task needs. Context isn't free, and more isn't better.
- 03
Mechanical Enforcement
If a rule matters, make it mechanical. Prose drifts, checks don't.
- 04
Skills vs. Docs
Skills are for workflows; docs are for knowledge. The wrong mechanism is worse than no mechanism.
- 05
Earn the Check
Coverage is cheap, false positives are not. Every mechanical check has to earn its slot or it trains you to ignore failures.
- 06
Errors as Remediation
Error messages are instructions written for the next agent. If a human (or model) can't act on the message, the check isn't done.
- 07
Fast Feedback Wins
Pre-commit beats CI for the same check. The earlier a violation surfaces, the cheaper it is to fix.
- 08
Immutable Decisions
ADRs are append-only. Supersede with a new record; never edit history.
- 09
Sub-Agents as Firewalls
Delegate research and investigation so the implementation context stays clean. Context discipline is the point, not the second agent.
- 10
Watch the Loop
The first iterations of any autonomous loop tell you whether your harness holds. The harness fails where you aren't looking.
- 11
Compound the Fixes
Every agent mistake is a harness improvement waiting to be made. Failure modes should compound, not recur.
- 12
Project as Source of Truth
Not the chat, not the agent, not the prompt. The repo outlives the session, the model, and the conversation.
Pick a heuristic to see what it says.