The Teaching Cost Law

Recurring per-session onboarding tax paid by any out-of-distribution tool.

A catering company staffs every event with temps. Each evening, before guests arrive, the manager spends twenty minutes explaining the company's own order-pad shorthand: circle for vegetarian, triangle for no nuts, a slash for "second course now." The shorthand is clever, and it is taught from zero every night, because no temp comes back twice. Over a season, those twenty minutes add up to more than the shorthand ever saved.

An agent is that temp. It starts every session with no memory of your tools, a condition the Guide calls the perpetual noviceLexicon · 09The Perpetual NoviceAn agent starting every session without accumulated interface familiarity.. Anything the model didn't already learn in pretraining has to be taught inside the session: in schema descriptions, examples, and the failed calls it makes while learning. The teaching cost law says that this onboarding is a recurring tax, paid every session, by every tool that is out of distribution.

In practice

Say a team replaces a plain run_sql tool with a custom query language that's neater for their data model. Here is an illustrative ledger for one session:

run_sqlCustom query tool
Tool description and examples in context~150 tokens~1,800 tokens
Calls that fail while the agent learns the syntaxusually 01–3, each a full turn
Calls saved per query by the nicer syntax01

The custom tool saves one call per query. It also costs roughly 1,650 extra tokens and a failed call or two before the first saving arrives. It wins only in sessions that run many queries, where the savings stack up after the lesson is paid. In short sessions it loses every time. Notice that the cost doesn't shrink with use, because the next session starts from zero again.

Why it matters

This is the build-versus-wrap question in numbers. A bespoke tool can look strictly better in a design review and still be more expensive in production, because the review sees it once and the agent meets it fresh thousands of times. The teaching cost also lands at the start of the session, before any productive work, and those tokens stay in the context window for every turn that follows.

What to do about it

H-05 Align with Interface Priors states the rule: stay in distribution by default, and justify every bespoke abstraction against its recurring teaching cost. H-09 Executable, Just-in-Time Micro-Docs shrinks the lesson when you do build something new, with one inline example instead of a manual. H-07 Local Handles & Progressive Disclosure defers the lesson, loading a specialized tool's documentation only in sessions that need it.

esc

Try “tokens”, “errors”, “stale”, “handoff” or “blast radius”.