A local SLM does the legwork: Delegent cuts frontier agent cost 67% with no loss in solved tasks

Delegent: A Multi-Agent Harness That Reduces Cost without Sacrificing Performance

Lingwei Gu, Jimmy Lin

cs.AI, cs.IR

2026-11-25

Delegent routes Claude Code subagent calls to a local SLM while the frontier model stays in charge: DeepSWE frontier cost falls to 33%, search to 41%, solved tasks unchanged.

What problem this solves

Agent bills have a structural problem: the model re-reads its entire context at every step, so a coding agent that takes a hundred steps pays for a hundred ever-longer prompts. Much of that work is legwork that any competent model can do: locating code, reproducing a bug, running tests, reading documents. Existing agents bill all of it at frontier prices, subagents included. Subscription users burn quota on it; API users pay cash for it.

The established ways to mix cheap and expensive models are cascades (a cheap model answers first, escalate if it fails) and routers (a trained selector picks one model per query). Both decide at task level: whoever gets the job must finish it alone, and a 2B model rarely survives that test. Delegent drops the granularity to the subtask. The frontier model keeps the task and hands off the chores to a small model running on the user's own GPU.

Method

Delegent wraps Claude Code rather than modifying it. Four mechanisms:

Nothing is trained, so both models are drop-in parts. No SLM output is accepted without the frontier model reading it first, and the final answer always comes from the frontier model. That is the structural reason performance holds.

Results

Frontier: GPT-6.1-Sol at high reasoning effort. SLMs: Qwen3.8-27B-FP8 and the laptop-scale MiniCPM5-2B.

Task setAlone, solved+27B SLMFrontier cost
SWE-bench Verified (50)464644%
SWE-bench Pro (75)636337%
DeepSWE (50)292933%, $2.11 down to $0.70 per task
Search, all sets (694)66366341%

Eight of nine evaluations cut cost by more than half with no drop in solved tasks; no set differs by more than three questions, and TRQA actually gains three. The 2B model saves as much as the 27B on DeepSWE: 30 of 50 solved, 29 alone, at 34% cost. Priced at cloud API rates, the 27B adds about ten cents per DeepSWE task, keeping the total at 38%.

Where the savings come from: left alone, Sol spawns subagents on 98% of DeepSWE tasks, those subagents also run Sol, and they account for 53% of its cost. Moving them to the SLM explains 80% of the saving, and the main loop shrinks from 84 to 46-48 turns. Longer tasks save more: tasks needing 200+ calls alone drop to about a quarter of the cost, tasks under 25 calls only reach 60%, and 11% of those get more expensive.

Two ablations carry the most insight. The instruction is what keeps performance flat: without it the 2B SLM loses 7 of 50 tasks; with it both SLMs match the frontier alone, and about three fifths of the saving traces to the instruction, two fifths to the SLM swap. The frontier model's habit sets the ceiling: Opus 5.5 plans before acting (18 turns, first edit at turn 7), hands over only 21 turns, and lands at 69% cost; Sol works a long edit-test-fix loop (84 turns), hands over 94, and lands at 34%. The more legwork the frontier model used to do itself, the more delegation saves.

The cost is time: the median DeepSWE task goes from 25 to 38 minutes, and short tasks roughly double.

Why it matters

This is harness engineering, not model research, but it is a bill teams can copy directly: open source, training-free, no changes to Claude Code itself, and one workstation GPU, or a laptop with the 2B, removes about two thirds of the most expensive part. Subscription users save quota, API users save money. Against cascades and routers, subtask-level division of labor puts a 2B model in the usable range for the first time. It is incremental engineering; it improves no model's capability, and the entire value sits in the cost numbers and the no-loss evidence.

Limitations

The authors' own list: coverage is agentic coding and search only; Opus was tested on DeepSWE alone and the 2B on coding alone; the harness builds on Claude Code, which Opus may be tuned for, so coding results may skew its way; the paper claims no performance gain, only no loss, since models use delegation differently (Sol to save effort, Opus to double-check itself); latency of roughly 1.5 to 2x may not suit interactive use.

Open questions from the read. The saving depends heavily on the corpus interface: over ClimbMix, where BM25 returns whole documents, cost falls to 25-33%, but over BrowseComp-Plus's own corpus, where rg returns only matching lines, it falls to just 63%; the claim that the former better represents the web is a judgment, not a measurement. Main runs use high rather than max reasoning effort, for affordability, so extrapolations to the strongest setting deserve a discount. On 11% of short tasks delegation costs more, so it is not a free switch. Search logs kept no per-call token counts, so SLM cost is priced for coding only.

Terms

Source

What people are saying

Related papers

All paper explainers