TL;DR
Agensh is a decentralized multi-agent framework that eliminates the traditional "central orchestrator" bottleneck, allowing AI agent networks to scale up to 1,024 workers. By replacing a central manager with a lightweight coordination infrastructure and an asynchronous cooperation loop, Agensh achieves massive performance boosts and faster completion times on complex software engineering tasks.
What Problem Does This Paper Address?
Most current multi-agent systems rely on an orchestrator-worker structure: a single "boss" agent creates a plan, decomposes tasks, assigns them to worker agents, and aggregates the results. While this works for small teams, it creates a severe bottleneck when scaling up. The central orchestrator quickly becomes overwhelmed by the cognitive load of managing dozens of concurrent workers, resolving conflicts, and integrating code.
To expand the frontier of what AI teams can accomplish within tight time budgets, we need a way to scale the number of agents without hitting this management ceiling.
Methods
The authors introduce Agensh, a decentralized multi-agent harness where agents self-organize. Instead of taking orders from a central coordinator, every agent independently and asynchronously executes a five-step multi-agent cooperation loop:
- Gather Context: Read the user's goal, peer progress, and messages to figure out what needs to be done.
- Claim Sub-task: Autonomously propose a sub-task and announce it to the group to avoid duplicate work.
- Take Action: Work locally using available tools to solve the sub-task.
- Verify Results: Test local progress against acceptance criteria.
- Merge Progress: Integrate the completed work back into the main codebase, resolving any conflicts along the way.
This loop is entirely supported by a lightweight agentic organization infrastructure consisting of three components:
- Shared Workspace: Powered by Gitea (a Git platform), allowing agents to manage private branches and merge code into a main branch.
- Message Interface: Powered by Mattermost, enabling team-wide announcements and urgent, direct one-to-one messaging to resolve task overlaps.
- Shared Context: An append-only database where agents log observations, confirmed facts, active claims, and failed approaches so peers don't repeat mistakes.
Crucially, Agensh is implemented as a prompt-based workflow layer on top of existing single-agent harnesses (like Copilot), making it highly modular and plug-and-play.
Datasets
Agensh was evaluated using ProgramBench, a highly demanding benchmark for agentic software engineering. The task requires an agent organization to reconstruct complex software repositories entirely from scratch within a strict 6-hour time budget, without any internet access.
The evaluation focused on the five hardest tasks in the benchmark: FFmpeg (multimedia processing), gromacs (molecular simulation), pandoc (document conversion), PHP-src (language interpretation), and ctags (code indexing). These codebases span thousands of files and millions of bytes of source code.
Key Insights and Ideas
- Agent Count as a Scaling Dimension: Just as scaling compute or parameters improves LLM capabilities, scaling the sheer number of cooperating agents serves as a powerful new dimension for boosting organizational intelligence.
- Emergent Self-Organization: One of the most fascinating findings is that as the agent count scales, increasingly sophisticated organizational structures naturally emerge without being explicitly programmed.
- At 8 agents, basic peer coordination occurs.
- At 32 agents, agents actively manage integration and peer reviews.
- At 128 agents, standardized workflows and review relationships form.
- At 1,024 agents, full role specialization and redundancy emerge, with some agents naturally stepping into specialized "integrator" roles to handle code merges.
Key Results
- Higher Accuracy: Across the five toughest ProgramBench tasks, scaling from 1 to 128 agents raised the mean final test-pass rate from 19.31% to 28.78%—an approximate 49% relative improvement.
- Massive Scaling on Pandoc: For the pandoc task, the framework successfully scaled to 1,024 agents, driving the final test-pass rate up to 55.06% (compared to just 33.89% for a single agent).
- Reduced Latency: Larger agent organizations achieved comparable performance metrics much faster than smaller teams. For example, on pandoc, 128 agents crossed the 30% test-pass rate mark within 30 minutes, a threshold that 8 agents took 90 minutes to reach, and a single agent never reached within the first two hours.
Limitations and Future Work
While the paper demonstrates impressive scaling properties, certain practical challenges are noted:
- Scope Contention: To prevent over a thousand agents from stepping on each other's toes initially, the authors had to implement a staggered activation strategy (launching one agent every 30 seconds at first, then every 3 seconds).
- Merge Conflicts: As agent counts grow, the frequency of textual merge conflicts increases, requiring robust version control and agents capable of resolving complex code branches.
Future work is not explicitly detailed in a dedicated section, but the results open up promising avenues for exploring decentralized AI organizations capable of tackling massive, multi-hour engineering problems under strict time constraints.
Summary updated