Agentic engineering

Route by the shape of the task

Which model a job needs depends on what the output looks like and how cheaply you can check it, not on how important the job feels.

Listen to this note
A four-step ladder from tier 0, deterministic code, up to tier 3, open-ended judgment on a frontier model.

Every agent setup eventually asks the same question: does this job need the big model? The answer people reach for is “it depends how important it is.” That’s the wrong test. What a task needs is a property of its shape.

Two questions decide it

Is the output shape fixed? A yes or no, a list of file and line numbers, one of five categories, a filled-in template. Fixed shape is cheap. “Whatever the situation calls for” is expensive.

Can you check it for less than it cost to make? A search result can be verified with one command. A model’s opinion on whether an abstraction is right can’t be checked without redoing the thinking. Delegate what you can cheaply audit. A wrong but plausible answer from a cheap model that nobody checks costs more than never routing at all.

The ladder

  • Tier 0, deterministic. A lookup, a template, a calculation. Use code, not a model.
  • Tier 1, fixed shape and cheap to check. Searching, extracting, classifying, formatting. A small model.
  • Tier 2, a clear contract. Tests for existing code, docs from code, a single file from a precise spec. A mid-sized model.
  • Tier 3, open-ended judgment. Architecture, subtle root causes, security calls, settling a disagreement between two other models. The frontier model.

Start at the top and stop at the first tier that can do the job.

Tier 0 is the one everyone forgets

The instinct on hearing “send cheap work to a cheap model” is to build a cheap agent. But a lot of that work isn’t a model task at all. A model that prints a constant costs a round trip, adds seconds, and can hallucinate the constant. A shell function can’t. Always ask “can this be a script?” before asking “which model?”

Breaking work down is the real lever

A job that needs the big model as one blob often becomes four steps, three of which are tier 1. Most of the saving comes from decomposing the work, not from a clever router.

Watch the context window, not just the price

Small models often have much smaller context windows. A sweep across a big repo can blow through that on file reads alone, and then you’ve paid for a failure. In practice the context ceiling rules out a cheap model more often than the price rules in an expensive one.