Skip to content

Consistency as Leverage

Ratified

The biggest efficiency lever is the codebase, not the prompt.

  • 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
  • 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
  • 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
  • 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
  • Brownfield default: freeze the dominant pattern, ratchet, or enforce only in new code?

Proposal: Discussion #6