TL;DR
HAI-Agent introduces three governed "handoff interventions"—Delegation Review, Retrospective Reflection, and Verification Fork—to eliminate the "delegation tax" that typically plagues multi-agent systems. By strictly managing the boundaries where tasks are assigned and returned, it significantly boosts performance and reliability on long-horizon software engineering benchmarks like SWE-bench-Pro and Commit0-lite.
What Problem Does This Paper Address?
As Large Language Model (LLM) agents tackle increasingly complex, repository-level tasks, researchers have shifted toward Multi-Agent Systems (MAS) that partition work among specialized roles (e.g., planners, editors, verifiers). However, these systems often suffer from a "delegation tax": the coordination overhead actually makes them perform worse than robust single-agent baselines.
The authors trace this failure to two specific issues at the inter-agent handoff boundary:
- Context Loss: When a primary agent delegates a task, it often compresses its rich internal state into a vague, natural-language specification, leading sub-agents to miss implicit constraints.
- Weak Verification: Sub-agents often report task completion perfunctorily ("I'm done!"), and primary agents blindly incorporate these flawed results, allowing errors to compound silently.
Methods
HAI-Agent employs an orchestrator-worker architecture using three distinct roles: an Orchestrator for global planning, Explorers for read-only codebase navigation, and Engineers for implementation. To solve the delegation tax, the authors implement three mechanical interventions:
- Delegation Review (Pre-dispatch): An LLM-as-a-judge intercepts every task call. It checks for atomicity, self-containment (are all file paths and dependencies included?), and verifiability. If the task is underspecified, the Orchestrator is forced to revise it before the sub-agent ever starts.
- Retrospective Reflection (Pre-return): Before a sub-agent can "finish," it must perform a mandatory self-audit, reconciling its changes against the original requirements and providing evidence like test logs or diff summaries.
- Verification Fork (Post-return): This is the most critical gate. The system forks an independent verification process that inherits the Orchestrator’s global context but remains "uncorrupted" by the sub-agent's reasoning. It independently evaluates the work; if it fails, the changes are discarded, and the task is re-delegated with feedback.
Datasets
The framework was evaluated on two challenging, repository-scale benchmarks:
- SWE-bench-Pro: A high-fidelity benchmark of real-world GitHub issues. It focuses on non-trivial tasks where solutions span multiple files and require deep module understanding.
- Commit0-lite: A long-horizon benchmark requiring agents to implement entire Python libraries from scratch, given only a skeleton and a suite of unit tests. This stresses integration and dependency management.
Key Insights and Ideas
- Naive Delegation is a Liability: The authors found that simply "adding more agents" without governance actually hurts performance. On SWE-bench-Pro, a naive multi-agent setup performed worse (39.9%) than a single-agent baseline (41.6%).
- Protocols Matter More Than Raw Power: Interestingly, downgrading the model used for the interventions (e.g., using a smaller Qwen-35B model to perform the Verification Fork) still outperformed having no check at all. The structure of the protocol provides the safety, not just the "intelligence" of the verifier.
- Verification Asymmetry: The system exploits the fact that in software engineering, verification (running tests, checking diffs) is computationally cheaper and more objective than generation.
- Reducing Variance: One of the most significant "aha" moments was that these interventions don't just improve scores; they drastically reduce run-to-run variance, leading to much more predictable agent behavior.
Key Results
HAI-Agent demonstrated substantial gains across the board:
- SWE-bench-Pro: Resolved 47.2% of tasks using Qwen3.5-397B, a +4.0 absolute improvement over the SWE-Agent baseline.
- Commit0-lite: Achieved a 61.6% pass rate with Claude-4.5-Sonnet (+11.3 over baseline) and 59.8% with Qwen3.5 (+8.0).
- Reliability: The standard deviation across runs dropped to ~1.0, compared to ~2.8 for baselines.
Limitations and Future Work
- Computational Overhead: HAI-Agent is not a "free" upgrade. It consumes significantly more tokens (~5x on SWE-bench-Pro) because it spawns multiple sub-contexts. The authors view this as a structured form of "test-time scaling."
- Atomic Tasks: For simple, single-file fixes that fit in one context window, parallel single-agent sampling (Best-of-N) remains more efficient. HAI-Agent is specifically designed for "long-horizon" tasks where decomposition is mandatory.
- Planning Failures: Even with perfect handoffs, 52% of remaining failures were attributed to the Orchestrator's high-level planning and decomposition. Future work will likely focus on applying similar governance to the planning layer itself.
Summary updated