Skip to content
All lessons

Teach your agent to be lazy

The best code is the code the agent never wrote. A short ladder that keeps diffs small.

Oct 15, 2026 · 1 min read

Agents are eager. Ask for a cache and you get a cache class, a config file and a factory. Most of the time you wanted one line.

The ladder

Stop at the first rung that holds:

  1. Does this need to exist at all?
  2. Is it already in this codebase?
  3. Does the standard library do it?
  4. Only then: the smallest code that works.

Make it stick

Writing the ladder into every prompt gets old fast. Install it once as a skill and the agent climbs it on its own.