PaperarXiv:2611.33098 · cs.AI · Nov 24, 2026
Delegent: A Multi-Agent Harness That Reduces Cost without Sacrificing Performance
Lingwei Gu, Jimmy Lin
This is a practical, well-instrumented harness engineering result, and its cost accounting includes caching. However, the headline credits the SLM with savings that come largely from the instruction and from a baseline that also routes Haiku-class auxiliary calls to the frontier model. In the one ablation where an instruction-only baseline exists, that baseline solves more tasks. Single runs on 50-75 tasks cannot support the 'no loss' framing as stated.
Novelty
2 out of 5Rigor
2 out of 5Reproducibility
4 out of 5Relevance to harnesses
5 out of 5
TL;DR
Delegent puts a relay in front of an unmodified Claude Code. Main-loop calls go to a frontier model (GPT-6.1-Sol). Subagent and auxiliary calls go to a local SLM (Qwen3.8-27B-FP8 or MiniCPM5-2B). A short instruction tells the frontier model to delegate investigation and verification. On DeepSWE, frontier cost falls from $2.110 to $0.704 per task (29 vs 29 solved). On search, frontier cost falls to 41% (663 vs 663 correct over 694 questions). The paper's own ablation complicates the headline: the instruction alone, with subagents still on the frontier model, cuts cost to 60% and solves 34 vs 29 (single runs, DeepSWE only). The 'no loss' claim is made against a weaker baseline than the paper itself builds, and the abstract's 66-67% coding figures are the best of three coding sets.
Adversarial review by Harness Hub · Nov 27, 2026 · read full text · Suggest a correction
Original abstract (authors’ text, select to expand)
Agents built on frontier language models are expensive. At every step, the frontier model re-reads its entire context and executes every subtask regardless of its difficulty. This paper explores the simple thesis that much of this cost can be removed by delegating easy subtasks to a small language model, or SLM, that runs on hardware one already owns. To test it, we build Delegent, a simple and effective agent harness built on Claude Code, in which the frontier model stays in charge of every task but hands focused subtasks, such as investigating code, running tests, and searching a corpus, to SLM subagents. Existing approaches such as cascades and model routers usually choose which model executes the entire task, whereas in Delegent, the frontier model always leads the execution and delegates easy subtasks to the SLM. No router or model is trained, so either model can be swapped freely. With the help of a 27B FP8 SLM, Delegent reduces the frontier cost of long-horizon coding by 67% and of agentic search by 59%, with no loss in task performance, and even a 2B SLM that fits on a laptop reduces the coding cost by 66%. The savings grow with the legwork that the frontier model would otherwise do itself, and a short instruction, which leaves the main coding tasks to the frontier model, accounts for most of the saving and keeps the 2B SLM from losing tasks. Code: https://github.com/castorini/delegent
Authors’ note
11 pages, 2 figures, 5 tables
Filed underharnessmulti-agentagentsllm
Summary
The harness makes three changes to Claude Code. First, a relay routes model calls by role: the main loop goes to the frontier model, while subagents and the auxiliary model go to a vLLM-served SLM, with per-task prompt-cache keys on both sides. Second, for search, a Delegate tool runs AREX-Turbo-style SLM subagents, and the harness checks each quoted evidence line verbatim against the cited document. Third, a short instruction explains per-step re-read cost and asks the frontier model to delegate investigation and testing but make code edits itself. No model is trained. The evaluation covers three coding sets (50 SWE-bench Verified, 75 SWE-bench Pro, 50 DeepSWE v1.1) and search sets totalling 694 questions. Most runs use GPT-6.1-Sol at high effort. Cost is the frontier model's API charge with caching. The SLM is priced only for coding, at Chutes API rates for the 27B model. Results and analysis: - Table 1 reports frontier relative costs of 33-53% on coding, with solve counts within one task of the baseline. - Table 2 reports 41% overall on search with identical aggregate correct counts (663). - Section 5 attributes 80% of the coding saving to moving Claude Code's default subagents onto the SLM. In the baseline these subagents run on GPT-6.1-Sol and account for 53% of its cost. - Table 3 attributes roughly three fifths of the saving to the instruction and two fifths to the SLM. - Table 4 shows Claude Opus 5.5, which plans before acting, saves less (69% relative cost).
Key findings
- DeepSWE (50 tasks), Table 1: frontier alone solves 29 at $2.110/task. +Qwen3.8-27B-FP8 solves 29 at $0.704 (33%). +MiniCPM5-2B solves 30 at $0.712 (34%).
- Savings are smaller on shorter coding sets (Table 1): Verified relative cost is 44% (Qwen) and 53% (MiniCPM); Pro is 37% and 44%.
- Pricing the 27B SLM at API rates gives a total DeepSWE cost of $0.806 (38%) and a SWE-bench Verified cost of $0.139 (57%) (Table 1).
- Search, all 694 questions (Table 2): 663 correct both alone and with delegation; frontier cost $0.091 vs $0.037 (41%). BrowseComp-Plus over its own corpus saves least (63%). Per-set counts drop by one on several sets (193 vs 192, 72 vs 71, 66 vs 65); TRQA's 64 vs 67 offsets these losses.
- Instruction ablation (Table 3): without the instruction, Sol + MiniCPM solves 22 of 50 vs 29 alone. With the instruction, Sol + Sol subagents solves 34 at 60% cost, and Sol + Qwen solves 29 at 33%.
- Savings scale with task length (Figure 2): median relative cost 0.62 for tasks under 25 frontier calls (11% of these cost more) and 0.26 for tasks over 200 calls.
- In the baseline, Claude Code subagents run on GPT-6.1-Sol on 98% of DeepSWE tasks and account for 53% of its cost. Moving them to the SLM explains 80% of the saving (Section 5).
- Claude Opus 5.5 as the frontier model saves less: 69% relative cost, 38 vs 34 solved (Table 4).
- Median DeepSWE latency rises from 25 to 38 minutes; short SWE-bench Verified tasks take about twice as long (Section 4).
The paper at a glance
- User task enters the stock Claude Code main loop
- Relay routes main-loop calls to the frontier model (GPT-6.1-Sol) with a per-task prompt-cache key
- Instruction (CLAUDE.md or system prompt) tells the frontier model to delegate investigation, tests and searching
- Subagent and auxiliary calls go to the local SLM via vLLM, each subagent pinned to one replica
- SLM subagent returns only a short report; for search, the harness verifies evidence quotes verbatim
- Frontier model checks facts and writes the final patch or answer
Data table
| Method | $ |
|---|---|
| Frontier model alone | 2.11 $ |
| Delegent + Qwen3.8-27B-FP8 (this paper) | 0.704 $ |
| Delegent + MiniCPM5-2B (this paper) | 0.712 $ |
Why it matters
This paper is directly usable by anyone running Claude Code or a similar loop. The main mechanism is mundane. Claude Code already spawns subagents, and in this baseline they, along with the auxiliary calls normally sent to Haiku, run on the expensive model and account for about half of its cost. Re-pointing them at a cheap local model and adding a short instruction about what to delegate removes most of the frontier bill on long tasks. Three lessons transfer beyond this harness. First, savings scale with how much legwork the frontier model would do on its own, so short tasks benefit less and sometimes cost more. Second, the delegation instruction matters as much as the cheap model. Without it, a 2B SLM loses tasks. With it, the frontier model on its own subagents gets cheaper and, in one run, solves more. The paper's ablation attributes roughly three fifths of the saving to the instruction, so the cheapest first step for a harness builder is the prompt, not the local GPU. Third, the frontier model's working style determines the payoff: a plan-first model like Opus saves far less. Whether moving subagents to an SLM costs accuracy relative to an instruction-tuned frontier-only setup (34 vs 29 on DeepSWE) cannot be settled from single runs on 50 tasks. Latency roughly doubles on short tasks, which matters for interactive use.
Issues (10)
- High severityWhere in paper: Table 3; Section 5 'Is the instruction necessary?'; Section 3 'Baseline'
The 'no loss in task performance' claim is measured against a baseline without the delegation instruction. Table 3 shows that adding only the instruction, with subagents still on GPT-6.1-Sol, reaches 34 solved at 60% cost, versus 29 solved at 33% for Sol + Qwen. The headline compares the system with the instruction against a baseline without it, so gains from the instruction are credited to SLM delegation. Against the stronger same-harness baseline, the SLM may cost tasks; single runs cannot tell. The instruction-only configuration is reported only on DeepSWE, not on Verified, Pro, or search.
- High severityWhere in paper: Table 1; Table 2; Limitations 'No claim of improved performance'
Equivalence claims rest on single runs over small samples (50 DeepSWE, 50 Verified, 75 Pro), with no repeated seeds, confidence intervals or equivalence tests. Differences of 0-1 tasks (29 vs 29, 46 vs 47, 63 vs 62) are presented as 'no loss', although the Limitations section concedes runs are non-deterministic. On search, the aggregate 663 vs 663 masks one-question drops on BrowseComp-Plus (193 vs 192, 72 vs 71) and DSQA find all (66 vs 65), offset by TRQA (64 vs 67). At this n, the data show absence of evidence of a loss, not demonstrated equivalence.
- Medium severityWhere in paper: Section 3 'Baseline'; Section 2 'Routing model calls by role'
The baseline is more expensive than stock Claude Code. It routes 'the calls that Claude Code sends to Haiku by default' to the frontier model, while Delegent sends them to the SLM. Part of the reported saving comes from removing a cost that a default deployment would already pay at small-model prices. The paper does not separate this component.
- Medium severityWhere in paper: Abstract; Table 1; Appendix B 'Hardware'
The abstract's coding figures are the best of three sets. The 67% reduction (Qwen) and 66% (MiniCPM5-2B) are DeepSWE only. On SWE-bench Verified, relative costs are 44% and 53%, and the total with the SLM priced is 57% (Table 1). The '2B fits on a laptop' claim was never tested on a laptop: MiniCPM5-2B ran on H200, RTX PRO 6000 Blackwell, RTX 6000 Ada and L40S GPUs, with each replica serving several concurrent episodes.
- Medium severityWhere in paper: Appendix C
Task samples are drawn only from tasks that all compared systems finished without an infrastructure failure. If SLM configurations are more prone to infrastructure failures (for example timeouts, the 131k SLM context, or vLLM issues), those tasks are silently excluded. The paper does not report how many tasks were dropped, or for which system.
- Medium severityWhere in paper: Section 3 'Cost'; Table 2; Limitations 'Cost of the SLM'
The cost metric excludes the SLM by definition. Search SLM cost is never priced because 'our search logs keep no per-call token counts', even though search subagents make up to 495.7 SLM calls per question (BrowseComp-Plus over ClimbMix). GPU amortization and power are not counted. The MiniCPM5-2B configuration has no SLM price at all.
- Low severityWhere in paper: Appendix B 'Frontier model on search'
Harness settings differ between conditions on search. With delegation, the frontier model's own tool output on BrowseComp-Plus is cut at 12,000 characters instead of Claude Code's 30,000. The paper reports the cut applied to 18 of 395 calls, so the effect is likely small, but it is a cost reduction applied only to the proposed system.
- Low severityWhere in paper: Appendix B 'Reruns and later runs'
Compaction reruns may favour long runs. Episodes that compacted and then failed were rerun with the full 1M-token context. The policy applied to all systems, but it reruns only failures, and the baseline's longer contexts make it more likely to compact. Counts per system are not reported.
- Low severityWhere in paper: Appendix B 'Hardware'; Table 4; Limitations 'Coverage of tasks and models'
The Claude Opus 5.5 setup is atypical and hard to interpret. Due to budget, it was 'served through Claude subagents, each call with a clean context', and it runs on Claude Code, which the authors note may favour it. The Table 4 contrast between Sol and Opus therefore mixes model behaviour with serving differences.
- Low severityWhere in paper: Section 3 'Metrics'
Search answers are graded by GPT-6.1-Sol at low effort, the same model as the frontier agent. The same judge is applied to all systems, so this mostly affects absolute accuracy, not the comparison.
Questions for the authors
- What are the solve rate and cost of the instruction-only configuration (Sol + Sol subagents) on SWE-bench Verified, SWE-bench Pro and the search sets?
- How much of the saving remains if the baseline sends Claude Code's auxiliary calls to a small API model instead of the frontier model?
- How many tasks per system were excluded by the 'finished without an infrastructure failure' filter?
- With 3-5 seeds per configuration on DeepSWE, what is the variance in solved count, and does the 34 vs 29 gap under the instruction persist?
- What is the SLM token volume and priced cost on search, where SLM calls reach 495.7 per question?
- What are the latency and solve rate when MiniCPM5-2B is actually served on laptop-class hardware?
- How many episodes per system were rerun after compaction, and how many of those reruns succeeded?
Related in the directory
Open-source projects
Open source · Anthropic
Open source · musistudio
Open source · SWE-bench
More tools on the same problem
Products and open-source projects in the directory closest in meaning to this paper.
Open source · Princeton NLP / SWE-agent
Open source · LangChain
Open source · LangChain
Open source · AMAP-ML
Open source · Seth Hobson
Open source · microsoft
Related papers
arXiv:2611.33893 · cs.MA · Nov 25, 2026
LLM-based coding agents are increasingly used for long-horizon tasks such as building an entire program from a specification. Products like Codex and Claude Code let an agent delegate work to parallel subagents, multiplying run cost, yet it remains unclear whether and when delegation produces a better program. We compare a single agent with a main agent delegating to subagents on repository-construction tasks from NL2Repo and ProgramBench (which also provides an executable reference program). We compare scores at equal time and equal cost, run intervention experiments, and analyze fine-grained behavior. On randomly drawn tasks, parallel subagents raise hidden-test pass rates by only about 1 to 5 percentage points at up to 3.8x the cost of a single agent. Their gain is larger on hard tasks, where we find evidence of three mechanisms. Self-checking: with GPT-5.6 Sol, one sentence telling a single agent to probe the reference program first recovers most of this gain at a fraction of the cost; from GPT-5.6 Sol to GPT-6.1 Sol, the gain shrinks as single agents check their own work more. Fresh context: in extended runs, a single agent that periodically starts a new session with an empty conversation makes faster early progress in every comparison than one that resumes its conversation. Modularity: multi-agent runs produce more modular code (more files and shorter functions), closer to the upstream source. We observe similar patterns in a smaller replication with Opus 5.5 on Claude Code. Overall, subagents help when (i) a single agent stops checking too early, (ii) a long session keeps editing with little improvement, or (iii) modular code helps on the task; otherwise, they mainly add cost.
Zhiheng Lyu, Chengyu Yin +1
arXiv:2610.34577 · cs.AI · Oct 25, 2026
Agent harnesses enable large language models to act through tools, observe the results, and iteratively work toward a task goal. Verification checks and revises agents' work to improve output quality. Yet there is limited guidance on how harnesses should organize this effort. We study verification as an axis of test-time scaling by examining when to intervene, who checks the work, and how checking leads to revision. Our framework spans four layers of the agent lifecycle: initial instructions, mid-turn reminders, completion gates, and independent review. We compare 17 designs across seven frontier coding models on Terminal-Bench (TB) and SWE-bench Verified (SWE), and introduce VisualBench for expert evaluation of visual and interactive artifacts. Initial instructions and execution-time reminders yield modest, model-dependent average gains on the coding benchmarks, without substantially increasing average output token use. Completion gates can yield larger gains but may substantially increase cost. Independent review by a critic offers a more favorable accuracy-cost tradeoff, improving average accuracy by 5.9-9.5 percentage points on TB and 3.9-6.6 on SWE at 1.13-1.25 and 1.00-1.04 times baseline cost, respectively. On VisualBench, independent review achieves net preferences of 13.2-23.8 points over the baseline across its four designs, exceeding the evaluated L0-L2 designs. Additional review rounds or independent critics further improve average TB accuracy by up to 3.5 percentage points. Together, these results provide empirical guidance for verification design in agent harnesses and support independent review as a practical axis of test-time scaling.
Zhengxin Zhang, Erkang Zhu +4
arXiv:2611.32946 · cs.AI · Nov 24, 2026
The use of AI agents among the general public has been increasing exponentially throughout 2026, though it is often hard for users to determine which configuration is most effective for their personal use. To help provide clarity here we introduce ShellBench, 100 day-to-day tasks based on more than 10 million user requests, each set in a realistic workspace with messy files and competing data sources, and graded for both correctness and safety. We evaluate 12 models across 5 agent harnesses at 3 reasoning levels for a total of 53,100 rollouts, 20% of which are on tasks designated for public release. We find that model choice impacts performance more than harness choice, but the three leading models differ by only 1.1 percentage points. GPT-6.1 Sol passed 61.4% of attempts at about one-sixth of GPT-6 Astra's estimated token cost per attempt, while GPT-6 Astra led at 62.5%. We also found that harness choice had little effect on either performance or safety with all harnesses scoring between 42.9 (Claude Code) and 45.2 (OpenClaw) for pass@1.
Vincent Koc, Aditya Washikar +11
arXiv:2611.30365 · cs.AI · Nov 23, 2026
A Large Language Model (LLM), its harness, and the test-time compute budget jointly determine its behavior. Consequently, the same underlying model, embedded in different agentic workflows or allocated different amounts of test-time compute, can exhibit markedly different performance. Psychologists face an analogous challenge when evaluating human performance: the same person may behave differently under different incentives and levels of deliberation. Psychological tasks therefore provide an ideal testbed for studying such behavioral variation. However, when adapted to LLMs, these tasks are typically text-transcribed, replaying fixed, language-rendered experiments as static prompts. This format is ill-suited to agent evaluation, where actions can alter future observations and task states. Conversely, although dynamic environments are prevalent in the evaluation of LLM agents, they rarely ask whether the resulting behavior is human-like. Here, we bridge this gap by transforming psychological tasks into dynamic environments in which agents can interact and by using a learned human-policy model to evaluate how compatible the resulting behavioral trajectories are with human behavior. Across these environments, we find that this compatibility varies with an LLM's agentic configuration and the psychological task, and that memory raises it mainly by making choices more predictable rather than more human-like. These findings motivate a more holistic evaluation of LLM agents in psychology-inspired environments, accounting for both the backbone model and its agentic scaffold.
Yi-Fei Cao, Tianxin Huang +2
arXiv:2610.28909 · cs.AI · Oct 20, 2026
Deep research systems iteratively plan, gather evidence, synthesize, and revise, making end-to-end latency a key bottleneck for interactive use. Almost all production systems are built on autoregressive (AR) language models and inherit left-to-right decoding in planning and long-form writing. We present DiffResearch, an open multi-agent deep research framework that places a diffusion language model (dLLM) at the core of every stage, and measure how a diffusion backbone changes latency and report quality. Holding the agentic scaffold, retrieval code, prompts, and evaluation fixed, we swap the backbone between an open diffusion model and a comparable AR model. Across 100 Deep Research Bench tasks, the diffusion backbone is roughly 6 times faster end-to-end, driven by order-of-magnitude reductions in planning and writing. We further introduce dFast, a decomposition mode that reads intermediate denoising states and extracts subqueries before generation finishes, providing a 1.99 times median speedup for decomposition in isolation with no loss of report quality. On the benchmark's RACE rubric, dFast obtains the best overall score among the three configurations. Finally, in a public system-level leaderboard snapshot, an instance built on a stronger diffusion model ranks above several commercial systems. We release DiffResearch under an Apache-2.0 license.
Alan-Barsag Gazzaev, Alexey Gavrilov +2
arXiv:2611.24324 · cs.AI · Nov 18, 2026
AI coding agents have become one of the most popular applications of large language models. Yet, agentic AI comes at the cost of a tremendous amount of GPU compute resources, which limits its profitability and its viability at scale. In this paper, we investigate whether smaller, cheaper models can cut this cost without sacrificing accuracy. We evaluate 36 popular large and small open-weight models released since 2024 on a software engineering benchmark, and find that recent small models are closing the accuracy gap compared to their large counterparts. We investigate the structure of this gap and find that the gap is highly concentrated around hard tasks that small language models fail to solve while achieving remarkably good accuracy for easy and medium complexity tasks. Following this observation, we show that by utilizing a hybrid inference strategy that tries a small model first and escalates to a large one only when needed, we can achieve up to 33% reduction in total GPU-hour costs and 16.4% on all tasks from SWE-bench Verified, without sacrificing accuracy. Strikingly, this simple cascade nearly matches an oracle-style task router, highlighting a practical path for deploying cost-aware coding agents in production without complex learned task routers and with minimal engineering complexity.
Boxi Zhou, German Sviridov +2