Consistency as Leverage
The biggest efficiency lever is the codebase, not the prompt.
The Principle
Section titled “The Principle”- Predictable code beats a tuned prompt
- A tuned prompt over an inconsistent codebase still rediscovers conventions every task
- Context cost: three error-handling styles means reading all three
- Correction loops: unpredictable code produces plausible-but-wrong guesses
- Verification cost: reviewers diff against a known pattern cheaply
- Prompt optimization is linear; consistency compounds across every task and agent
What It Looks Like
Section titled “What It Looks Like”- One project structure, so file location follows from purpose
- Naming strict enough to guess an identifier before reading it
- Documented architecture, so “how do we do X” has one answer
- One error-handling idiom and one testing approach per repo
Where a Convention Lives
Section titled “Where a Convention Lives”- Lint rule or hook: when the convention is mechanically checkable
- Standing instructions: when it is a convention the agent must follow but no check enforces yet (Memory & Context)
- Doc: when it is rationale, the why behind a convention
- Promote from instructions to lint as soon as a check can enforce it
Signal of Violation
Section titled “Signal of Violation”- Tuning the prompt to fix a codebase problem: the prompt grows while the same convention misses recur
- Several idioms for one concern: agent output copies whichever file it read last
- A checkable convention left as prose: review flags the same lint-able miss again and again
- No known pattern to diff against: every review reads each line from scratch
Implemented By
Section titled “Implemented By”- Mechanical Scaffolding: code generates the structure
- Repository Context: indexed code makes conventions cheap to find
- Skills & Prompts: write conventions down once
- Memory & Context: standing instructions load conventions every session
Open Questions
Section titled “Open Questions”- Brownfield default: freeze the dominant pattern, ratchet, or enforce only in new code?
Proposal: Discussion #6
