Delegent: Let a 2B Laptop Model Do the Legwork and Cut the Bill by Two Thirds
A senior engineer who greps every file personally is an expensive way to grep. That is roughly how frontier coding agents run today, and Delegent, from Lingwei Gu and Jimmy Lin at the University of Waterloo, puts a price on it. The frontier model stays in charge and writes the answer. Looking up code, running tests and searching documents go to a small model on local hardware. Nothing is trained. Paper: https://arxiv.org/abs/2611.33098 . Code: https://github.com/castorini/delegent
With GPT-6.1-Sol leading and Qwen3.8-27B doing the legwork, the frontier bill on 50 DeepSWE tasks falls from $2.11 to $0.70 per task, with 29 solved either way. Swap in MiniCPM5-2B, small enough for a laptop, and it is $0.71 with 30 solved. Across 694 search questions the cost falls to 41% and the correct count is identical, 663 and 663. Paying API prices for the 27B model leaves a DeepSWE task at 38% of the original. The baseline uses prompt caching too, so this is not a cache trick.
The surprise is where the saving comes from. Delegent sits on top of Claude Code, which already hands work to subagents. In the stock setup GPT-6.1-Sol starts them on 98% of DeepSWE tasks, and since they also run on the frontier model, they account for 53% of its cost. A short instruction about what to delegate does about three fifths of the job by the authors' count, and the small model does the rest. Drop the instruction and the 2B helper costs seven solved tasks, 22 against 29. The management memo matters more than the intern.
The savings depend on the boss. Claude Opus 5.5 plans first and delegates mostly to check the ground, so its cost falls only to 69%. Short tasks save less, and 11% of the smallest actually cost more. It is also slower: the median DeepSWE task takes 38 minutes instead of 25, and short SWE-bench tasks about twice as long. The samples are 50 to 75 coding tasks, and the authors claim no performance gain, only no loss. The 2B model also edited source files in 9 of 50 runs, so check its diffs.
Our take: try the instruction before buying a GPU. It needs no hardware and by the paper's table gets frontier cost down to 60% on its own.
Disclosure: articles on this site are written with Claude, which is made by Anthropic. Delegent is built on Anthropic's Claude Code.
← Back to all articles
With GPT-6.1-Sol leading and Qwen3.8-27B doing the legwork, the frontier bill on 50 DeepSWE tasks falls from $2.11 to $0.70 per task, with 29 solved either way. Swap in MiniCPM5-2B, small enough for a laptop, and it is $0.71 with 30 solved. Across 694 search questions the cost falls to 41% and the correct count is identical, 663 and 663. Paying API prices for the 27B model leaves a DeepSWE task at 38% of the original. The baseline uses prompt caching too, so this is not a cache trick.
The surprise is where the saving comes from. Delegent sits on top of Claude Code, which already hands work to subagents. In the stock setup GPT-6.1-Sol starts them on 98% of DeepSWE tasks, and since they also run on the frontier model, they account for 53% of its cost. A short instruction about what to delegate does about three fifths of the job by the authors' count, and the small model does the rest. Drop the instruction and the 2B helper costs seven solved tasks, 22 against 29. The management memo matters more than the intern.
The savings depend on the boss. Claude Opus 5.5 plans first and delegates mostly to check the ground, so its cost falls only to 69%. Short tasks save less, and 11% of the smallest actually cost more. It is also slower: the median DeepSWE task takes 38 minutes instead of 25, and short SWE-bench tasks about twice as long. The samples are 50 to 75 coding tasks, and the authors claim no performance gain, only no loss. The 2B model also edited source files in 9 of 50 runs, so check its diffs.
Our take: try the instruction before buying a GPU. It needs no hardware and by the paper's table gets frontier cost down to 60% on its own.
Disclosure: articles on this site are written with Claude, which is made by Anthropic. Delegent is built on Anthropic's Claude Code.
Comments