LAGO reuses specialist agents to solve coding tasks
LAGO: Language Agents with Reusable Growing Options · arXiv:2610.19843

In plain words
When one computer agent handles a big coding task, it has to plan, search files, make changes, test them, and recover from mistakes. LAGO is a system that lets a coordinating agent hand parts of a task to specialists and reuse successful specialists later.
On the same 150 coding issues, LAGO solved more than two other systems rerun with the same model. The comparison did not match their context windows or computing budgets, so it cannot show which part of LAGO made the difference.
The research
When a coding task takes many steps, one agent must plan, find relevant context, edit files, test its changes, and recover from errors. Could a system reuse specialists for recurring subtasks while still checking their work? That is the question LAGO addresses.
LAGO assigns subtasks to reusable or newly created specialists, then checks their work and keeps successful additions in a library.
The paper asks whether agents can handle complex tasks without repeating familiar subtasks or relying on one long tool-use chain. LAGO lets a coordinating agent retrieve or create specialist agents, check their work, and reuse successful specialists across tasks.
On 150 shared code-repair issues, LAGO resolved more issues than two other systems rerun with the same model and evaluator. This suggests the full LAGO scaffold helped in that comparison, though the test cannot identify which component was responsible.
The shared comparison covers 150 tasks, and the paper estimates about ±8 percentage points of binomial uncertainty at that size. Its smaller component tests are noisy and do not fully separate the value of reusable skills from the effect of the prompts that come with them.
What the evidence shows
- A system for reusable specialists
LAGO is a meta-agent framework for tasks that can be split into subtasks. A coordinating agent assigns each part to a specialist it retrieves from a library or creates when needed, checks the specialists' results, and can keep successful new specialists for later tasks.
This addresses two problems described in the paper: one agent can struggle to manage a long sequence of planning and tool use, while fixed-role teams may solve recurring subtasks from scratch.
- A shared code-repair comparison
The main test, SWE-bench Verified, asks systems to patch real GitHub issues so the official tests pass. The official Docker evaluator counts each issue as resolved or unresolved, without partial credit.
On the same 150 issues with the same frozen Qwen3.5-35B-A3B model, temperature, attempt limit, and evaluator, LAGO resolved 60.3%; rerun Terminus 2 resolved 57.3%, and mini-SWE-agent resolved 49.3%.
- A diagnostic test of components
A separate component test asks what changes when parts of LAGO are removed or altered. On the same 50 issues, the full system resolved 30; disabling decomposition resolved 26, shuffling reused content resolved 28, and disabling the library resolved 24.
These results support a role for the library on this task set, but the authors describe the effects as noisy, and the shuffled content did not match every property of the original.
- Other tasks offer limited evidence
The paper also checks whether similar patterns appear in other settings. SWE-bench Pro tests longer-horizon repository repairs; with the DeepSeek-V3.2 executor fixed, its evaluator counted 40% of tasks resolved for a fine-tuned Qwen3-30B coordinator versus 34% for the base coordinator.
BrowseComp tests open-domain questions requiring multi-step information retrieval; its score is mean accuracy across English and Chinese questions. Dual-DeepSeek LAGO averaged 46%, against 33% for a single-agent system. These small, different-system comparisons do not isolate one cause.
Deep
- Original paper authors
- Yuran Wu, Mengkang Hu, Qionglin Qiu, Fanqing Meng, Qiguang Chen
- Submitted to arXiv
- License
- CC BY 4.0