Grafy News
Try Grafy free

New Delegent harness slashes AI agent costs via model delegation

Researchers have developed Delegent, a multi-agent harness that uses small language models for subtasks to reduce frontier model costs by up to 67%.

Illustration for the news story: New Delegent harness slashes AI agent costs via model delegationSource: Grafy Research Lab

Running complex AI agents powered by frontier models is becoming increasingly expensive because these models must re-read their entire context at every step. Researchers Lingwei Gu and Jimmy Lin have developed a new multi-agent harness called Delegent that significantly reduces these costs by delegating routine subtasks to smaller, more efficient models.

How does the Delegent harness work?

Unlike existing methods that use a "router" to decide which model should handle an entire task, or "cascades" that rely on a small model to guess an answer first, Delegent keeps the frontier model in charge of the entire process. According to the research paper, the frontier model acts as the leader, planning the overall task and deciding which specific pieces of "legwork" can be handed off to a small language model (SLM).

These subtasks typically involve repetitive or less cognitively demanding actions, such as searching a corpus, investigating specific lines of code, or running tests. The SLM subagents operate in their own tool loops and return a report to the frontier model. The frontier model then reviews this report to ensure accuracy before proceeding. This structure ensures that the high-reasoning capabilities of the frontier model are preserved for the final decision-making and synthesis, while the cheaper SLM handles the manual labor.

What are the cost savings of this approach?

Testing the Delegent harness revealed substantial reductions in the expense associated with using frontier models. The researchers found that when using GPT-6.1-Sol as the frontier model and a 27B parameter SLM, the cost for long-horizon coding tasks dropped by 67% on the DeepSWE benchmark. In agentic search tasks, the frontier model's cost was reduced by 59% without any loss in the number of questions answered correctly.

Remarkably, the savings remain high even when using extremely small models. The researchers noted that a 2B parameter model, such as MiniCPM5-2B, which is small enough to run on a standard laptop, still reduced coding costs by 66%. Because the SLM runs on hardware the user already owns, the primary savings come from the reduced token consumption of the expensive frontier model.

Can using smaller models hurt performance?

One of the primary concerns with delegating tasks to smaller models is the potential for a drop in accuracy. However, the authors of the paper state that Delegent achieved these cost reductions with no loss in task performance. This is largely because the frontier model does not blindly trust the SLM; it receives a report and performs its own checks.

In the search experiments, the harness even verified the evidence provided by the SLM by checking if the cited information was found verbatim in the source documents. By keeping the frontier model as the ultimate authority and only using the SLM for focused, constrained subtasks, the system maintains the reasoning quality of a much more expensive setup.

What makes Delegent different from other model routers?

Most current approaches to multi-model systems attempt to train a specialized router to pick the best model for a specific query. Delegent is different because it is "training-free." No specific model or router needs to be trained or fine-tuned to make the system work. This makes the architecture highly flexible, allowing users to swap in different frontier models or different SLMs as they become available.

The system is also designed to be modular. For example, the coding implementation is derived from Claude Code, but it inserts a relay that routes calls based on their role. Calls coming from the main loop are sent to the frontier model, while calls from subagents are directed to the local SLM. This allows existing agentic frameworks to be upgraded with delegation capabilities without a total rewrite of the underlying logic.

How can developers apply these findings?

For developers building long-horizon agents, the Delegent research suggests that the most effective way to scale is not necessarily to find a better router, but to design better coordination between different tiers of models. By identifying which parts of a workflow are "legwork" (like data retrieval or test execution) and which are "reasoning" (like architectural planning), developers can build much more sustainable AI applications.

While the Delegent harness is a research project, the principle of delegating subtasks to local models is highly relevant to anyone working in AI-assisted development. If you are currently building complex software using AI, you can explore how different models handle various stages of the coding process using Grafy Code, which provides a specialized environment for AI-driven development.

Frequently asked questions

Does Delegent require specialized training?

No, Delegent is a training-free harness. It does not require fine-tuning the frontier model or training a custom router to decide which model to use. This allows developers to swap different large and small models into the system freely, making it highly adaptable to new model releases without additional training costs.

Does using a small model decrease the accuracy of the agent?

No, the research indicates that Delegent maintains task performance while reducing costs. This is because the frontier model remains the primary decision-maker and reviews the reports provided by the small language model. The small model only performs specific subtasks, and the frontier model validates the results before proceeding with the main task.

Can a small language model run on a standard laptop?

Yes, the researchers demonstrated that even a 2B parameter model can be used effectively within the Delegent harness. Because these smaller models have much lower hardware requirements, they can run on local hardware like a laptop, providing significant cost savings on the frontier model without needing expensive workstation GPUs.


Source: Grafy Research Lab — Delegent: A Multi-Agent Harness That Reduces Cost without Sacrificing Performance