Skip to content
The Plain Paper

New method · Artificial intelligence

A small local model can handle agent busywork while the powerful model stays in charge

Delegent sends focused research and checking tasks to a smaller model running locally. Across 694 search questions, the frontier model answered 663 correctly—exactly as many as alone—at 41% of its cost.

In brief

  • The lead model keeps responsibility for decisions and the final answer; a local assistant handles delegated subtasks.
  • On DeepSWE, the lead model’s cost per task fell from 2.110 to 0.704 with Qwen, while both systems solved 29 tasks.
  • Across 694 search questions, the systems each answered 663 correctly; delegated search cost 41% as much for the lead model.
  • Results were not identical everywhere: the delegated system solved fewer tasks on some coding and search sets.
  • Delegation added time, and the reported cost savings mainly measure the lead model’s bill, not the full cost of running every assistant.

The background

A computer assistant can do a job by repeatedly asking a language model what to do, using tools such as file search or code tests, then showing it what happened. As the conversation grows, the model must process more of it at each step. That can make long tasks costly.

Think of the powerful model as a project lead who can ask a cheaper helper to investigate, gather facts, or check work. In this paper, the lead keeps control and makes the final decisions; the helper does not take over the whole job.

What the researchers did

The authors built Delegent on Claude Code, an existing coding-agent system. It routes the lead model’s requests to a frontier model—a high-capability model—and requests from its subagents to a small language model, or SLM, served on local hardware.

For coding, the lead asks subagents to investigate code or run checks, then receives their short reports. For search, a new Delegate tool sends focused questions to a search assistant; the system checks whether its quoted evidence appears in the cited documents. The lead reviews the reports and writes the final answer or code changes.

The team tested coding on SWE-bench Verified, SWE-bench Pro, and DeepSWE, and tested search on BrowseComp-Plus and datasets from CMASS. They compared the systems with a version that used the frontier model throughout, and tried two SLMs: a 27B model for coding and search and a 2B model for coding.

What they found

On DeepSWE, using Qwen brought frontier-model cost per task down from 2.110 to 0.704, or 33% of the baseline cost. Both versions solved 29 of the 50 tasks. With the 2B MiniCPM model, cost was 34% of baseline and 30 tasks were solved, compared with 29 by the baseline.

Across all 694 search questions, each system answered 663 correctly. Delegated search brought the frontier model’s cost per question to 0.037 dollars, compared with 0.091 dollars alone; the paper reports this as 41% of baseline cost. Savings varied: on BrowseComp-Plus over its own corpus, cost was 63% of baseline and the delegated system answered 192 questions correctly, compared with 193 alone.

There were also small performance drops in some comparisons. With the 2B model, the system solved 62 Pro tasks compared with 63 for the baseline. In search, it answered one fewer question on BrowseComp-Plus over ClimbMix and one fewer in DeepSearchQA’s find-all mode; the paper says no search set differed by more than three questions.

The authors found that savings tended to be larger when the lead model would otherwise make more calls. For coding tasks needing more than 200 baseline calls, the figure reports median relative cost of 0.26; for tasks needing fewer than 25 calls, it reports 0.62. They also found that a short instruction to delegate investigation and checking helped preserve coding performance, especially with the smaller model.

Of 41 head-to-head comparisons the paper prints, 37 favour its own contribution, 4 go against it.

  • Compared with Frontier model alone, 39 results: 35 favour the paper, 4 go against it.
  • Compared with Opus alone, 1 result: 1 favours the paper, 0 go against it.
  • Compared with Sol alone, 1 result: 1 favours the paper, 0 go against it.
Results as the paper prints them, with the difference worked out for this page
What was measuredResultCompared withDifference
Delegent with Qwen3.8-27B-FP8
reduction in frontier cost of long-horizon coding relative to the frontier model aloneAs stated in the abstract; 27B FP8 SLM67 %frontier model alone
reduction in frontier cost of agentic search relative to the frontier model aloneAs stated in the abstract; 27B FP8 SLM59 %frontier model alone
Delegent with MiniCPM5-2B
reduction in coding frontier cost relative to the frontier model aloneAs stated in the abstract; laptop-sized 2B SLM66 %frontier model alone
Frontier model alone on Verified (50)
tasks solvedSWE-bench Verified sample of 5046 tasks
Delegent with Qwen on Verified (50)
tasks solvedSWE-bench Verified sample of 5046 tasksFrontier model alone: 460 (0.0%)
frontier cost per taskSWE-bench Verified sample of 500.108 per taskFrontier model alone: 0.244-0.136 (-55.7%)
frontier cost relative to frontier model aloneSWE-bench Verified sample of 5044 %Frontier model alone: 100-56
Delegent with MiniCPM on Verified (50)
tasks solvedSWE-bench Verified sample of 5047 tasksFrontier model alone: 46+1 (+2.2%)
frontier cost per taskSWE-bench Verified sample of 500.129 per taskFrontier model alone: 0.244-0.115 (-47.1%)
frontier cost relative to frontier model aloneSWE-bench Verified sample of 5053 %Frontier model alone: 100-47
Frontier model alone on Pro (75)
tasks solvedSWE-bench Pro sample of 7563 tasks
Delegent with Qwen on Pro (75)
tasks solvedSWE-bench Pro sample of 7563 tasksFrontier model alone: 630 (0.0%)
Show 28 more results
More results, as the paper prints them
What was measuredResultCompared withDifference
Delegent with Qwen on Pro (75)
frontier cost per taskSWE-bench Pro sample of 750.227 per taskFrontier model alone: 0.617-0.390 (-63.2%)
frontier cost relative to frontier model aloneSWE-bench Pro sample of 7537 %Frontier model alone: 100-63
Delegent with MiniCPM on Pro (75)
tasks solvedSWE-bench Pro sample of 7562 tasksFrontier model alone: 63-1 (-1.6%)Goes against the paper
frontier cost per taskSWE-bench Pro sample of 750.274 per taskFrontier model alone: 0.617-0.343 (-55.6%)
frontier cost relative to frontier model aloneSWE-bench Pro sample of 7544 %Frontier model alone: 100-56
Frontier model alone on DeepSWE (50)
tasks solvedDeepSWE sample of 5029 tasks
Delegent with Qwen on DeepSWE (50)
tasks solvedDeepSWE sample of 5029 tasksFrontier model alone: 290 (0.0%)
frontier cost per taskDeepSWE sample of 500.704 per taskFrontier model alone: 2.110-1.406 (-66.6%)
frontier cost relative to frontier model aloneDeepSWE sample of 5033 %Frontier model alone: 100-67
Delegent with MiniCPM on DeepSWE (50)
tasks solvedDeepSWE sample of 5030 tasksFrontier model alone: 29+1 (+3.4%)
frontier cost per taskDeepSWE sample of 500.712 per taskFrontier model alone: 2.110-1.398 (-66.3%)
frontier cost relative to frontier model aloneDeepSWE sample of 5034 %Frontier model alone: 100-66
Frontier model alone on BrowseComp-Plus (200), own corpus
questions answered correctlyBrowseComp-Plus over its own corpus193 questions
Delegent with Qwen on BrowseComp-Plus (200), own corpus
questions answered correctlyBrowseComp-Plus over its own corpus192 questionsFrontier model alone: 193-1 (-0.5%)Goes against the paper
frontier cost per questionBrowseComp-Plus over its own corpus0.071 per questionFrontier model alone: 0.114-0.043 (-37.7%)
frontier cost relative to frontier model aloneBrowseComp-Plus over its own corpus63 %Frontier model alone: 100-37
Frontier model alone on BrowseComp-Plus (80), ClimbMix
questions answered correctlyBrowseComp-Plus over ClimbMix72 questions
Delegent with Qwen on BrowseComp-Plus (80), ClimbMix
questions answered correctlyBrowseComp-Plus over ClimbMix71 questionsFrontier model alone: 72-1 (-1.4%)Goes against the paper
frontier cost per questionBrowseComp-Plus over ClimbMix0.066 per questionFrontier model alone: 0.211-0.145 (-68.7%)
frontier cost relative to frontier model aloneBrowseComp-Plus over ClimbMix31 %Frontier model alone: 100-69
Frontier model alone on TRQA (68)
questions answered correctlyTRQA over ClimbMix64 questions
Delegent with Qwen on TRQA (68)
questions answered correctlyTRQA over ClimbMix67 questionsFrontier model alone: 64+3 (+4.7%)
frontier cost per questionTRQA over ClimbMix0.015 per questionFrontier model alone: 0.048-0.033 (-68.8%)
frontier cost relative to frontier model aloneTRQA over ClimbMix31 %Frontier model alone: 100-69
Frontier model alone on HotpotQA (204)
questions answered correctlyHotpotQA over ClimbMix198 questions
Delegent with Qwen on HotpotQA (204)
questions answered correctlyHotpotQA over ClimbMix198 questionsFrontier model alone: 1980 (0.0%)
frontier cost per questionHotpotQA over ClimbMix0.008 per questionFrontier model alone: 0.033-0.025 (-75.8%)
frontier cost relative to frontier model aloneHotpotQA over ClimbMix25 %Frontier model alone: 100-75

What to be careful about

Delegation took longer. On DeepSWE, the median task took 38 minutes with Qwen and 25 minutes without delegation; a short SWE-bench Verified task took about twice as long. The authors say latency depends on the hardware and serving setup.

The cost figures primarily count what the frontier model is charged. For coding, the paper also estimates Qwen’s API cost and reports that total cost on DeepSWE was 38% of baseline; it does not price the SLM for search because its logs lack per-call token counts.

The evaluation covers coding and search, but not other kinds of work. The 2B model was tested only on coding, and the alternative frontier model was tested only on DeepSWE. The authors also note that runs are not deterministic, and report no statistical significance tests or uncertainty intervals.

How it fits with other research

SWE-bench asks an agent to use a code repository and an issue description to produce a fix, then evaluates that fix with tests hidden from the agent. SWE-bench Verified is a human-screened subset intended to exclude tasks with problematic descriptions or tests. These details help explain why this paper counts a coding task as solved only when its patch passes hidden tests.1

Papers here on the same methods and data

  1. 24 Nov 2026

    SOARS: System One Assisted Reranking for Agentic Search

    SOARS reranks search results as an agent works. On BrowseComp-Plus, GPT-5.4 Mini accuracy rose from 73.9% to 84.7%, while its search calls fell from 23 to 14.

    Also covers BrowseComp-Plus

  2. 23 Nov 2026

    Provenance Loss and Repair in Multilingual Compaction

    The method marks unstated details differently before an assistant discards a message. Across five models, it improved F1 in question answering and handovers, though some models tied or did worse than the simpler version.

    Also covers vLLM

Who can use it

The approach is aimed at people who use long-running coding or search agents and want to reduce the amount billed at frontier-model rates. The paper says its 2B SLM fits on a laptop, while its 27B model needs a workstation GPU; using a local model still requires suitable hardware and adds time.

Terms explained

Agent
A language model that works in a loop: it requests actions from tools, receives their results, and continues until the task is done.
Frontier model
The paper’s term for the more capable model that leads the task and produces the final answer or code change.
SLM
Small language model: a smaller model used here to carry out delegated subtasks.
Subagent
A separate tool-using assistant that works on a focused task and sends a report back to the lead model.
Prompt caching
Reusing repeated prompt text so the model provider charges less for that input.
BM25
A way to rank documents by how well their words match a search query.
Hidden tests
Checks used to judge whether a code change works; the coding agent does not see these tests while solving the task.

Questions this paper answers

How does Delegent use a small language model in a coding agent?

The frontier model remains in charge and delegates investigation and checking to SLM subagents. It reviews their reports and makes the code changes itself.

How much did Delegent reduce frontier-model cost on DeepSWE?

With Qwen, frontier cost per task was 0.704 rather than 2.110 for the frontier model alone, and the two systems each solved 29 of the 50 tasks.

Did Delegent keep search performance while lowering cost?

Across 694 questions, the delegated and baseline systems each answered 663 correctly. The paper reports frontier cost at 41% of baseline, although some individual sets had small drops in correct answers.

What are the main limitations of Delegent’s evaluation?

The experiments cover coding and search, with the 2B model tested only on coding and the alternative frontier model tested only on DeepSWE. Delegation adds latency, and search results do not include a price for the SLM.

The paper in detail

Everything below is recorded from the paper and matched against its text.

What the paper claims, in its own terms
  • Shown

    A local SLM can handle easy subtasks for a frontier model and reduce its cost without hurting task performance or requiring training.

    Holds when: The frontier model remains in charge and delegates only easy subtasks.

  • Shown

    Across eight of nine evaluations, frontier cost falls by more than half while task performance holds.

    Holds when: Three coding and five search datasets, with the two DSQA modes counted among evaluations as described by the authors.

  • Shown

    Delegent differs from cascades and routers because the frontier model always produces the final answer and the SLM performs delegated legwork.

  • Shown

    Savings increase as the frontier model's work on a task without delegation increases.

    Holds when: Coding analysis groups tasks by baseline frontier-call count; search savings are associated with how much the frontier model reads.

  • Shown

    With the delegation instruction, both tested SLMs match the frontier model-alone task performance on DeepSWE at about one-third of its frontier cost.

    Holds when: 50 DeepSWE tasks; results in the instruction ablation.

  • Shown

    Frontier-cost reduction is consistent across the evaluated task sets and models.

    Holds when: Within the paper's evaluated tasks and models.

The method, step by step
  1. Keep the frontier model in the main loop, responsible for planning, deciding what to delegate, assessing returned reports, and producing the final output.
  2. Route main-loop model calls to the frontier model and subagent calls to a locally served SLM through a relay.
  3. For coding, have the frontier model create focused briefs and use the existing Claude Code subagent tools; for search, use a Delegate tool and an AREX-Turbo-style search subagent.
  4. Run independent subtasks concurrently and return only each subagent's final report to the frontier model.
  5. For search, check evidence lines against the cited documents.
  6. Prompt the frontier model to delegate tool-heavy work and keep its own tool use to a few targeted checks.

New in this paper

  • Role-based routing between the frontier model and local SLM in the Claude Code harness.
  • The Delegate tool and evidence check for search.
  • The instruction that steers delegation while leaving main coding changes to the frontier model.

Taken from earlier work

  • Claude Code's agent loop and coding subagents.
  • AREX-Turbo prompts and tools for search, used without tuning and with its Google Scholar tool omitted.
  • vLLM for SLM serving.

Assumptions

  • The SLM runs on a single GPU under the user's control; the tested 27B model requires a workstation GPU and the 2B model fits on a laptop.
  • The frontier model reads and judges subagent reports before relying on them and remains responsible for the final answer.
  • Costs are frontier API charges with prompt caching; for coding, the Qwen SLM is additionally priced at API rates where reported.
Terms as the paper defines them
Cost
The amount charged to the frontier model, accounting for prompt caching; coding also reports the SLM at API prices.
Local
An SLM served on one GPU controlled by the user.
Training-free
No model is trained or fine-tuned, allowing the frontier model and SLM to be swapped freely.
Find one / find all
In find one, any correct answer is accepted; in find all, the answer must be the exact set.
Resolved
For coding, the final patch passes the task's hidden tests.
Methods, datasets and ideas it names
  • DelegentMethod · Introduced here

    An agent harness in which a frontier model leads each task and delegates focused subtasks to SLM subagents.

  • frontier modelConcept · Used

    The model that plans, decides what to delegate, judges reports, and writes the final patch or answer.

  • SLM subagentsConcept · Used

    Small-language-model agents that perform delegated subtasks in their own tool loops.

  • Claude CodeTool · Used

    The coding-agent harness on which Delegent is built.

  • vLLMTool · Used

    The serving system used for SLM calls.

  • AREXMethod · Used

    A family of deep research agents from which the search subagent design is borrowed.

  • AREX-TurboMethod · Used

    The smallest AREX agent, whose prompts and tools are used for the search SLM subagent.

  • SWE-bench VerifiedDataset · Studied

    A coding benchmark from which the authors sampled 50 tasks.

  • SWE-bench ProDataset · Studied

    A coding benchmark from which the authors sampled 75 tasks.

  • DeepSWE v1.1Dataset · Studied

    A coding benchmark used for the main coding evaluation and analyses.

  • BrowseComp-PlusDataset · Studied

    A search benchmark used over its own corpus and as a CMASS dataset over ClimbMix.

  • CMASSDataset · Used

    An agentic search benchmark over the ClimbMix corpus.

  • ClimbMixDataset · Used

    An open web corpus that agents access through BM25 search.

  • Total Recall QADataset · Studied

    One of the CMASS search datasets, abbreviated TRQA in the paper.

  • HotpotQADataset · Studied

    A CMASS dataset used in the search evaluation.

  • DeepSearchQADataset · Studied

    A CMASS dataset evaluated in find-one and find-all modes, abbreviated DSQA.

  • Qwen3.8-27B-FP8Tool · Used

    The 27B FP8 SLM evaluated for coding and search.

  • MiniCPM5-2BTool · Used

    The 2B SLM evaluated on coding tasks.

  • GPT-6.1-SolTool · Used

    The frontier model used in the main experiments.

  • Claude Opus 5.5Tool · Used

    An alternative frontier model evaluated on DeepSWE.

  • Delegation instructionMethod · Introduced here

    A brief instruction steering the frontier model to delegate investigation and verification while retaining the main coding work.

  • Subagent reportOther · Used

    The final subtask response returned to the frontier model without the subagent's tool outputs.

  • Evidence checkMethod · Introduced here

    A search-report check that looks up evidence lines in cited documents and notes whether they appear verbatim.

  • Resolved taskMeasure · Used

    A coding task whose final patch passes the hidden tests.

  • Search answer gradingInstrument · Used

    Search answers are graded against gold answers by Sol using the official BrowseComp-Plus grading prompt.

  • LatencyMeasure · Used

    Wall-clock time per task.

  • Frontier costMeasure · Used

    The frontier model's API charge with prompt caching taken into account.

  • Relative costMeasure · Studied

    Delegated-system frontier cost expressed relative to the frontier model alone.

  • BrowseComp-Plus corpusDataset · Used

    The corpus used for one BrowseComp-Plus search setup.

  • Frontier-model-alone baselineOther · Compared against

    The comparison system runs the frontier model without the delegation tool and instruction.

  • Search subagent toolsTool · Used

    The search subagent uses search, visit, context-update, and finish tools.

Limits the authors state
  • The evaluation covers agentic coding and agentic search only.
  • Opus is tested as the frontier model only on DeepSWE, and the 2B SLM only on coding.
  • Delegation and resulting savings may depend on how well a frontier model follows the instruction, which may vary across models.
  • Delegation increases latency; short coding tasks are about twice as slow at the median, and latency varies with serving hardware.
  • The authors do not price SLM usage for search because the logs lack per-call token counts.
  • They do not report an API price for MiniCPM5-2B.
  • The authors note that agent runs are not deterministic and performance gains are not guaranteed for every frontier model or task set.
  • The coding setup may favor Opus because Delegent builds on Claude Code, which Opus is likely tuned for.
How the evidence was gathered
Samples or repeats
Coding: 50 SWE-bench Verified tasks, 75 SWE-bench Pro tasks, and 50 DeepSWE v1.1 tasks; a 30-task DeepSWE subset for comparing the SLMs alone; search: 200 BrowseComp-Plus questions plus CMASS sets of 80 BrowseComp-Plus, 68 TRQA, 204 HotpotQA, and 71 DSQA questions in each of two modes. Analysis of cost by task uses 350 task pairs.
Uncertainty reported
No
Significance tested
No
Notes
The paper reports task counts, costs, and calls but no confidence intervals or significance tests. Agent runs are stated to be nondeterministic; infrastructure-failed runs were rerun under the described settings.
Code and data
Questions the paper leaves open
  • How well would Delegent work with frontier models other than the two tested, beyond Opus on DeepSWE?
  • How much would results change for other agentic task types or other frontier models' ability to follow the instruction?
  • What is the total SLM cost for search? The authors state that their search logs do not retain per-call token counts.

Sources

  1. 1Introducing SWE-bench Verified | OpenAIopenai.com

Paper details

Title
Delegent: A Multi-Agent Harness That Reduces Cost without Sacrificing Performance
Authors
Lingwei Gu, Jimmy Lin
Published
24 November 2026
Version read
v1
Field
Artificial intelligence
arXiv
2611.33098

This explanation was written for this site from the paper's own source. 133 passages and figures recorded from the paper were matched against its own text; 10 that could not be matched were left off this page. It does not judge whether the paper is right, and most papers on arXiv have not been peer reviewed. Read the paper before relying on a result.