R297 · Agent principles and patterns › Harness building blocks

Keep the frontier model in charge, give the legwork to a small local one

Read the original

Authors Lingwei Gu, Jimmy Lin

cost-controlmulti-agentsmall-modelsagent-harnessevaluation

Most attempts to cut agent cost ask which model should run a task. Cascades try the cheap model and escalate on failure; routers classify the request and pick a tier. Both decide at the level of the whole task, which means both carry the same risk: the cheap model gets the wheel, and when it is out of its depth the task is lost or the escalation pays twice.

A paper from the University of Waterloo (arXiv:2611.33098, 24 November 2026) tries the opposite arrangement. The frontier model leads every task, start to finish. It never hands over control. What it hands over are subtasks — reading code, running tests, searching a corpus — to subagents running a small model on hardware you already own. The harness is called Delegent, it is built on an existing coding-agent harness, no router and no model is trained, and either side can be swapped freely.

The headline result: with a 27B model quantised to FP8 as the subagent, frontier cost on long-horizon coding falls to a third of baseline, agentic search to 41%, and the number of tasks solved does not move. A 2B model that fits on a laptop does nearly as well on coding.

Why this works at all: the frontier model was already delegating

The most useful finding in the paper is not the saving but the explanation of it. The coding harness already spawns subagents by default — it just spawns them on the frontier model. In the baseline runs, the frontier model starts subagents on 98% of the hardest task set, and those subagents collectively make more calls than the main loop and account for 53% of its cost.

So more than half the bill was already going to delegated work. The harness simply changes who receives it. That accounts for 80% of the saving.

The remaining 20% is a behavioural change in the frontier model itself, and it is the more interesting part. Per task it takes 46–48 turns instead of 84. It reads and edits code about as often as before — the thinking is not outsourced — but its own test runs drop from roughly eight per task to one or two, and the ~23 calls per task it previously spent maintaining a task list and messaging subagents nearly vanish. Because only reports come back rather than raw tool output, the volume of tool output reaching its context shrinks by 11–24% depending on the task set.

That is the real lesson: a long agent trajectory is mostly not reasoning. It is file reads, test invocations, search results and self-administration, all of which re-enter the frontier model's context on every step and all of which are cheap to produce elsewhere.

The instruction is the load-bearing component

The design includes one short natural-language instruction telling the frontier model to keep the main coding work and delegate the legwork. It is easy to read that as a prompt-engineering detail. The ablation says otherwise.

Without the instruction, delegating to a small model roughly halves frontier cost — and loses tasks. With the weaker 2B subagent, the system solves 22 of 50 against 29 for the frontier model alone. The small model, left to find its own role, takes on work it cannot do.

With the instruction, the same configurations solve 29–30 of 50 at a third of the cost. So the instruction is not what produces the saving, which delegation alone mostly achieves; it is what protects task performance while the saving happens. The paper also notes the brief the frontier model writes for each subagent grows from 45 words to 130 under the instruction — clearer delegation, not just more of it.

The saving depends on the frontier model's habits

This is the caveat most likely to be dropped in summary, and it is large.

The main results use one frontier model, which works in a long loop of editing, testing and fixing: 84 turns per task, first edit at turn 18. Under delegation it hands off about 94 turns per task, mostly after it has started editing, and its cost falls to 34% of baseline.

A second frontier model was tested on the hardest set only. It plans before it acts: 18 turns per task, first edit at turn 7. It delegates mainly before its first edit, to learn about the code, handing off 21 turns. Its cost falls to 69% of baseline — a saving of under a third, not two thirds.

Same harness, same instruction, same subagent, half the benefit. The amount of legwork available to delegate is a property of how the lead model chooses to work, and the paper is explicit that how much work gets delegated depends on how well the frontier model follows the instruction, which will differ again for other models. Anyone planning a budget on these figures needs to measure their own lead model.

What the subagents actually do

For coding, the subagents inherit the host harness's own subagent machinery, with calls routed by role to either the frontier model or the local one, and cache-aware serving on both sides.

For search, there is more structure, and it is worth copying. The subagent returns an answer with quoted evidence, its sources and a confidence — and the harness checks each quote against its source before the frontier model sees it. The subagent's prompts and tools are borrowed from an existing search agent precisely because its reports already cite a source for every claim, which is what makes the check possible.

That pattern generalises past this paper. If a cheap model's output must be trusted by an expensive one, make the cheap model's report checkable by construction — quotes with provenance, verified mechanically — rather than asking the expensive model to judge whether it looks right. The frontier model receives findings it can verify cheaply and still decides the answer itself.

Cost accounting, done honestly

The paper reports frontier cost on the grounds that it is the metered, scarce resource and both small models fit on hardware a user can own. That framing could hide a subsidy, so it also prices the subagent at a commercial provider's rates for the same quantised model: about $0.039 per million input tokens, a tenth of that for input repeated from the subagent's previous request — which is 86–90% of its input in these runs — and $1.25 per million output tokens.

At those prices the 27B subagent adds roughly ten cents to a long coding task, which leaves total cost at 38% of baseline rather than 33%. On short tasks the penalty is proportionally worse: 57% rather than 44%. So the saving survives paying retail for the small model, but it shrinks, and it shrinks most on the tasks where there was least legwork to move.

Two methodological points raise confidence in the comparison. Every system, baseline included, uses the provider's prompt cache with a stable per-task key, so savings are measured against a cached baseline rather than against an artificially expensive one. And the baseline sends every call to the frontier model, including calls the host harness would normally route to a cheaper model by default — which makes the baseline more expensive than real-world default behaviour, and is disclosed.

The costs the paper names itself

The limitations section is unusually direct, and every item is load-bearing:

Failure modes to plan for

Review checklist

Connections

See R297 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.