# Small local model cuts Claude Code agent costs by two thirds

A University of Waterloo preprint keeps an expensive frontier model in charge of coding and search tasks. Routine legwork goes to a small model on a single GPU, and the authors report no loss in tasks solved.

- Category: Agents
- Readiness level: III (Open source) on Science Underway's four-step scale, as proposed
- Published: 2026-11-26
- Editor: Stefan Perdal
- URL: https://scienceunderway.com/articles/small-local-model-cuts-claude-code-agent-costs-by-two-thirds

## The study

Delegent: A Multi-Agent Harness That Reduces Cost without Sacrificing Performance (preprint, not peer reviewed). arXiv 2611.33098. https://arxiv.org/abs/2611.33098

## At a glance

- What it shows: An expensive AI model can stay in charge of a task while a small, cheap model does the routine work, such as searching code and running tests. On long coding tasks this cut the expensive model's bill to about a third, and it solved as many tasks as before.
- What it does not show: It does not show that results get better, only that they do not get worse on these tests. It also does not count the cost of running the small model on one's own hardware, and it has not been tried in a real company.
- Why it matters: Long-running AI agents are costly because the big model rereads its growing history at every step. Moving routine steps to a small model is a simple change that needs no training, and it could cut bills sharply.

## What the study shows

Lingwei Gu and Jimmy Lin at the University of Waterloo built a harness, the software that runs an AI agent's loop of thinking and tool use. It sits on top of Claude Code, Anthropic's coding agent. A frontier model, meaning a large, top-tier commercial model, leads every task. It plans, writes the code changes and gives the final answer. A small language model (SLM) on a local GPU does the legwork: finding relevant code, reproducing bugs, running tests and searching documents. The SLM sends back only a short report, which the frontier model reads before acting. No model is trained or fine-tuned. The paper is a preprint and has not been peer reviewed.

The main frontier model was GPT-6.1-Sol. The SLMs were Qwen3.8-27B in a compressed 8-bit form, which needs one workstation GPU, and MiniCPM5-2B, which fits on a laptop. The baseline was the same frontier model working alone in the same setup, with prompt caching on, so repeated input was already billed at a discount.

The authors report that on DeepSWE, a benchmark of long software tasks, the frontier model's cost fell from about $2.11 to $0.70 per task. It solved 29 of 50 tasks either way. The 2B laptop model gave almost the same saving. On two versions of SWE-bench, a widely used set of real code fixes, cost fell to between about a third and a half.

On 694 search questions, the system answered exactly as many correctly as the frontier model alone, at 41% of the cost. Savings were largest where the model had to read whole documents, and smallest on one benchmark where a command-line search returned only matching lines.

Savings grew with task length. On short tasks, delegation cut cost to about 60% and sometimes cost more. On tasks needing over 200 steps, cost fell to about a quarter. A short written instruction telling the frontier model what to delegate mattered a lot. Without it, the 2B model lost 7 of 29 solved tasks. Delegation also made work slower: the median DeepSWE task took 38 minutes instead of 25.

## Our reading

In our reading, the useful idea is the division of labour. Earlier cost-saving methods mostly pick one model to handle a whole task, so a weak model can fail the whole job. Here the expensive model never hands over the decision. It hands over chores and checks what comes back. That explains why even a 2B model did not hurt results once the instruction was in place.

The second lesson is that Claude Code already splits work into subagents, but by default those subagents also run on the frontier model. The authors find that these subagents accounted for about half of the frontier bill on DeepSWE. Much of the saving comes simply from sending that existing work to a cheaper model, and from telling the frontier model to take fewer steps itself.

A concrete example: a team running overnight coding agents on large bug backlogs might cut its frontier API bill by more than half, if it has a spare workstation GPU. A developer waiting at the keyboard for a quick fix gains less. Short tasks save little and take about twice as long.

The rest of the article (what it means, limits, what to watch) is free for members: https://scienceunderway.com/articles/small-local-model-cuts-claude-code-agent-costs-by-two-thirds

## How this was made

An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.

---
Source: Science Underway, https://scienceunderway.com/. Please link to the article when you cite it.
