NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

AgencyBench: Benchmarking the Frontiers of Autonomous Agents in 1M-Token Real-World Contexts

Keyu Li, Junhao Shi, Yang Xiao, Mohan Jiang, Jie Sun, Yunze Wu, Dayuan Fu, Shijie Xia, Xiaojie Cai, Tianze Xu, Weiye Si, Wenjie Li, Dequan Wang, Pengfei Liu

TL;DR

AgencyBench is a new, highly demanding benchmark designed to evaluate autonomous LLM agents in complex, long-horizon, real-world scenarios that require an average of 1 million tokens and 90 tool calls per task. By introducing an automated evaluation pipeline featuring a user simulation agent and a Docker sandbox, the benchmark eliminates human-in-the-loop bottlenecks and uncovers significant performance gaps, framework synergies, and distinct behavioral "personalities" among frontier models.

What Problem Does This Paper Address?

While Large Language Models (LLMs) are increasingly deployed as autonomous agents to solve real-world problems, evaluating them accurately remains a massive challenge. Existing benchmarks suffer from two primary flaws:

  1. Narrow Scope and Short Horizons: Most benchmarks focus on isolated capabilities (like basic tool use or short-turn coding) and fail to capture the multi-step, long-horizon nature of actual engineering or research workflows.
  2. The Human-in-the-Loop Bottleneck: Real-world tasks often require iterative feedback to guide an agent toward a solution. Relying on human experts to provide this feedback during evaluation makes scaling up testing slow, expensive, and difficult to reproduce.

To bridge this gap, the authors introduce AGENCYBENCH, an automated evaluation framework designed to push frontier models to their absolute limits in realistic, long-context environments.

Methods

AGENCYBENCH introduces a hierarchical task design where agents must complete sequential tasks within an isolated workspace. To solve the evaluation scalability problem without losing the realism of human interaction, the authors developed a fully automated pipeline:

  • User Simulation Agent: Instead of a human tester, a simulated user agent (powered by Claude-4-Sonnet) analyzes the agent's intermediate outputs against strict task rubrics and provides iterative, targeted feedback to prompt self-correction.
  • Docker-Based Remote Sandbox: Once the agent finishes a task, its deliverables are synced to an isolated Docker container. The sandbox emulates human-computer operations—such as rendering user interfaces, recording videos, and executing scripts—to generate visual and functional artifacts.
  • Multimodal Judging System: To score the final outputs (on a 0–10 scale), the framework combines a Text-based Judge (evaluating code quality and logic) and a Vision-based Judge (evaluating dynamic UI behavior and aesthetics via screenshots/recordings).
Figure 2: AGENCYBENCH Rollout Generation and Evaluation Pipeline. Rollout generation takes place within workspace, where the agent receives task queries and deliverables, completing tasks through multi-turn interactions with the environment (e.g., tool execution results and feedback from the user simulation agent). Upon task completion, deliverables are synced to a Docker sandbox for operation execution (e.g., UI actions), and resulting artifacts are transferred to eval-space for scoring (0−10) via rule-based or LLM-based judges based on task rubrics.

Datasets

The primary contribution is the AGENCYBENCH dataset itself, which consists of 32 real-world scenarios broken down into 138 distinct tasks. These tasks span 6 core agentic capabilities: Game Development, Front-End Development, Back-End Development, Code Generation, Research, and Model Context Protocol (MCP) tool use.

Compared to existing benchmarks like GAIA2 or UltraHorizon, AGENCYBENCH drastically scales up context length and interaction depth, requiring an average of 1M tokens and 90 multi-turn tool uses per scenario.

Figure 1: Overview of AGENCYBENCH. Left: Distribution of the 32 scenarios and 138 tasks across 6 distinct agentic capabilities. Right: Comparison with existing benchmarks. AGENCYBENCH focuses on diverse, long- horizon real-world tasks, requiring an average of 1M tokens and 90 multi-turn tool uses. It integrates a user simulation agent for iterative feedback and a Docker-based sandbox for automated rubric-based assessment.

An example scenario included in the dataset involves developing a Gomoku game completely from scratch across five sequential tasks, moving from static board initialization to complex diagnostics and stress testing.

An Illustrative Evaluation Scenario: Developing a Gomoku Game

Key Insights and Ideas

  • Model "Personalities" in Tool Use: Granular analysis of tool logs revealed distinct cognitive styles. For instance, GLM-4.6 acts as a "Navigator," frequently listing directories to gather context, while GPT-5.2 and Claude-4.5-Sonnet act as "Executors," aggressively running shell commands to test code empirically.
  • "Surgeons" vs. "Rewriters": When modifying code, GPT-5.2 behaves like a surgeon, using precise file-replacement tools to make localized edits. Conversely, GLM-4.6 prefers overwriting entire files, which is safer but highly token-inefficient.
  • Ecosystem Synergy (Home-Field Advantage): Proprietary models perform significantly better when paired with their native agent frameworks. For example, Claude-4.5-Opus saw a massive 20.5% performance boost when evaluated inside the native Claude-Agent-SDK compared to a generalist scaffold.
  • The Feedback Responsiveness Gap: While some models (like GPT-5.2 and Kimi-K2-Thinking) show dramatic performance gains when given a second or third chance via user simulation feedback, others (like DeepSeek-V3.2) struggle to self-correct, stubbornly sticking to erroneous paths despite external critique.

Key Results

  • Proprietary vs. Open-Source: Closed-source models substantially outperform open-source alternatives, averaging a score of 48.4% vs. 32.1%.
  • Top Performers: GPT-5.2 achieved the highest overall average score (56.5%) and demonstrated the highest Attempt Efficiency (success rate per attempt).
  • Resource Efficiency: Grok-4.1-Fast emerged as the most economically viable model, leading in Token Efficiency by achieving competitive scores with minimal token consumption, whereas Claude-4.5-Sonnet ranked lowest due to excessive token generation.
Efficiency Comparison Across Models

Limitations and Future Work

The authors note two main limitations of this work:

  1. Snapshot in Time: The rapid evolution of LLMs means that any benchmark is a temporary snapshot, and this study could not exhaustively cover every intermediate checkpoint or fine-tuned variant.
  2. Digital-Only Environments: AGENCYBENCH is strictly confined to software-based agents operating within a computer interface. It does not evaluate embodied or multimodal physical agency, such as robotics, which remains a promising direction for future benchmarking efforts.

Summary updated

BibTeX
@inproceedings{li2026agencybench,
  author = {Keyu Li and Junhao Shi and Yang Xiao and Mohan Jiang and Jie Sun and Yunze Wu and Dayuan Fu and Shijie Xia and Xiaojie Cai and Tianze Xu and Weiye Si and Wenjie Li and Dequan Wang and Pengfei Liu},
  title = {{AgencyBench: Benchmarking the Frontiers of Autonomous Agents in 1M-Token Real-World Contexts}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.337},
}
Figure