Agent-Diff: Benchmarking LLM Agents on Enterprise API Tasks via Code Execution with State-Diff-Based Evaluation

Hubert M. Pysklo, Artem Zhuravel, Patrick D. WatsonEvalEval @ ACL 2026

TL;DR

This paper introduces Agent-Diff, a new benchmark for evaluating LLM agents on real-world enterprise API tasks. It uses containerized API replicas and a novel "state-diff" evaluation method to ensure reproducibility while maintaining ecological validity, allowing for more accurate assessment of agent capabilities in complex workflows.

What Problem Does This Paper Address?

Evaluating LLM agents that interact with real-world software APIs is challenging. Existing benchmarks often face a trade-off: either they use sandboxed environments that lack ecological validity (i.e., don't accurately reflect real-world interactions) or they use live services, which introduces variability and makes reproducible evaluation difficult. Furthermore, current evaluation methods often focus on the process (e.g., matching tool call sequences) rather than the outcome (i.e., whether the desired change in the environment occurred). This makes it hard to accurately measure an agent's ability to achieve goals in complex, multi-step enterprise workflows.

Methods

Agent-Diff tackles these challenges with two key innovations:

  1. State-Diff Contract: Instead of matching exact API call traces or parameters, Agent-Diff defines task success based on the change in the environment's state. It captures snapshots of the environment before and after an agent's actions and compares them. Task success is achieved if the expected state change occurred, and importantly, no unintended side effects were introduced. This "state-diff" approach is declarative and focuses on the outcome.
  2. Containerized API Replicas Sandbox: Agent-Diff provides a controlled environment where LLM agents interact with containerized replicas of enterprise APIs (like Slack, Box, Linear, Google Calendar). This ensures that all agents interact with identical service interfaces, enabling reproducible evaluations. The environment is isolated for each run, and initial states are seeded from templates.

The framework also incorporates a detailed taxonomy for tasks, considering factors like task horizon (number of API calls), operation profile (types of API actions), entity scope (single vs. multi-entity changes), information availability (explicit vs. implicit), and prompt ambiguity.

Datasets

The paper introduces the Agent-Diff benchmark, comprising 224 tasks across four enterprise services: Box (file management), Linear (project management), Slack (messaging), and Google Calendar (scheduling). These tasks are designed to cover a range of complexities and real-world workflows. The benchmark code and data are publicly released.

Key Insights and Ideas

  • Outcome-based evaluation is crucial: Focusing on the state change rather than the exact sequence of actions is a more robust way to evaluate agent success, especially in complex workflows where multiple valid execution paths exist.
  • Reproducibility and ecological validity can coexist: By using containerized API replicas and state-diff evaluation, Agent-Diff achieves both controlled, reproducible experiments and realistic interactions with enterprise APIs.
  • Documentation matters, but context is key: Providing relevant API documentation significantly improves agent performance (especially pass rates), but including all documentation can sometimes be detrimental, suggesting models struggle with context dilution.
  • Novelty drives documentation benefit: The impact of documentation is most pronounced for recently introduced APIs (like Box's Hub API), indicating that documentation is most valuable when it provides genuinely new knowledge rather than reiterating familiar patterns.
  • Top-performing agents are adaptive: Analysis of error recovery strategies shows that leading models tend to use proactive, information-seeking strategies (like breaking down tasks or verifying prerequisites) rather than simply retrying failed actions.

Key Results

  • Model Performance: Nine LLMs were evaluated, with scores ranging from 38.0 to 88.1. DeepSeek-v3.2 and Devstral-2512 emerged as top performers.
  • Documentation Effects: Providing relevant documentation increased overall pass rates by +7.0 percentage points (P=1.00), but assertion-weighted scores saw only a modest, non-significant gain (+2.4, P=0.73). This suggests documentation helps agents complete simpler tasks but offers diminishing returns on complex, multi-assertion tasks.
  • Service-Specific Performance: Performance varied across services, with Linear generally yielding higher scores, likely due to its more predictable API structure. Calendar proved challenging, especially for models struggling with temporal reasoning.
  • Error Analysis: Reasoning failures and parameter errors were the most prevalent error categories. Top-performing models exhibited significantly lower error rates, particularly in hallucination and incomplete execution.
  • Recovery Strategies: Proactive strategies like "break_into_steps" and "lookup_correct_value" were consistently associated with higher performance, while naive "retry_same" was universally detrimental.

Limitations and Future Work

  • Outlier Behavior: The paper notes that Llama-4-scout exhibited significantly different recovery strategy usage, potentially masking underlying patterns in other models. Future work could explore more robust outlier detection and analysis.
  • Causal Interpretation Caveats: While the study identifies associations between strategy use and performance, the observational nature of the data means strong causal claims are limited. Future work could explore causal inference methods.
  • API Coverage: While the benchmark covers 108 unique endpoints across four services, expanding to more services and a wider range of API types (e.g., gRPC) would increase its comprehensiveness.
  • Task Complexity: The benchmark focuses on code execution via APIs. Future work could explore agents that interact with GUIs or other modalities.
  • Documentation Impact Nuance: While documentation generally helps, the paper highlights the need for models to effectively filter and utilize relevant information, suggesting further research into prompt engineering and context management.

Summary updated

BibTeX
@inproceedings{pysklo2026agent,
  author = {Hubert M. Pysklo and Artem Zhuravel and Patrick D. Watson},
  title = {{Agent-Diff: Benchmarking LLM Agents on Enterprise API Tasks via Code Execution with State-Diff-Based Evaluation}},
  booktitle = {EvalEval @ ACL},
  year = {2026},
  url = {https://openreview.net/forum?id=IIyIrKwKFV},
}
Figure