DevOps-Gym: Benchmarking AI Agents in Software DevOps Cycle

Yuheng Tang, Kaijie Zhu, Bonan Ruan, Chuqi Zhang, Michael Yang, Hongwei Li, Suyue Guo, Tianneng Shi, Zekun Li, Christopher Kruegel, Giovanni Vigna, Dawn Song, William Yang Wang, Lun Wang, Yangruibo Ding, Zhenkai Liang, Wenbo Guo

Introduction

While AI agents have become remarkably good at writing code, their ability to manage the full software operations lifecycle remains largely untested. DevOps-Gym introduces the first end-to-end benchmark to evaluate AI agents across core DevOps workflows—building, monitoring, fixing, and testing—using real-world Java and Go projects. The evaluation reveals a stark reality: even state-of-the-art agents completely fail at executing end-to-end DevOps pipelines, highlighting a massive gap between current AI capabilities and real-world software engineering.

The DevOps Gap

The AI community has built excellent benchmarks for evaluating how well Large Language Models (LLMs) write code (e.g., HumanEval) or fix isolated bugs (e.g., SWE-bench). However, real-world software engineering is much more than just writing functions. It involves a complex, continuous DevOps cycle: configuring build systems, deploying applications, monitoring live system resources, diagnosing runtime anomalies, and writing regression tests.

Existing benchmarks generally evaluate agents in static, isolated environments, heavily skewing toward interpreted languages like Python. They lack the dynamic execution environments and tool-calling interfaces (like using top to check CPU usage or maven to build a project) required for operational tasks. This paper addresses this gap by creating a benchmark that forces AI agents to act like real-world DevOps engineers, making sequential decisions using command-line tools in live, containerized environments.

The DevOps-Gym Framework

To build a realistic DevOps benchmark, the authors designed a dynamic evaluation environment with standardized terminal tool interfaces. They distilled the DevOps cycle into four core stages: Build & Configuration, Monitoring, Issue Resolving, and Test Generation, plus an "End-to-End" pipeline that chains them all together.

The four core stages of the DevOps cycle evaluated in DevOps-Gym.

Recreating real-world DevOps failures is notoriously difficult. The team invested massive manual effort (often 10+ hours per task) to reconstruct environments, dependencies, and configurations from real GitHub issues. Unlike static code checks, tasks like "Monitoring" require the agent to observe a running container over time, use tools like ps or iostat, and diagnose subtle resource leaks or performance degradations. To ensure LLMs hadn't simply memorized the solutions during pre-training, the authors used a "prefix-completion" analysis to filter out repositories that showed high contamination risks.

The resulting DevOps-Gym dataset comprises 704 tasks collected from over 30 real-world Java and Go repositories:

  • Build & Configuration: 54 tasks (e.g., fixing build failures, migrating build systems).
  • Monitoring: 34 tasks (e.g., diagnosing memory leaks, CPU spikes).
  • Issue Resolving: 310 tasks (e.g., patching bugs).
  • Test Generation: 310 tasks (e.g., writing regression tests).
  • End-to-End: 18 pipeline tasks requiring sequential problem-solving across all stages.

Key Insights

  • The "Python Bias" is Real: Agents that perform exceptionally well on Python-based benchmarks see their performance plummet on compiled languages like Java and Go. LLMs struggle with the complex compilation processes, strict typing, and dependency management inherent to these ecosystems.
  • Agents Have an "Attention Deficit" in Monitoring: Monitoring requires processing continuous, temporal inputs (e.g., watching log streams over minutes). Agents frequently get distracted by early observations, exhaust their context windows, and fail to maintain the sustained attention needed to catch gradual anomalies.
  • Testing is Harder than Fixing: Surprisingly, agents are worse at generating high-quality regression tests than they are at writing the actual bug fixes. Writing a test requires deep dynamic reasoning about how a bug is triggered at runtime, whereas fixing a bug can sometimes be achieved through static pattern matching.
  • DevOps Tools are Out-of-Distribution: Agents consistently fail to use domain-specific tools correctly. They lack an underlying understanding of how tools like Maven or GoReleaser actually work, suggesting these tools are underrepresented in LLM training data.

Evaluation Results

The authors evaluated top-tier agent frameworks (OpenHands, mini-SWE-Agent, Claude Code) powered by leading LLMs (Claude-4-Sonnet, o4-mini, Gemini-2.5-Pro, DeepSeek-V3.1, Qwen3-Coder-30B).

Performance of various AI agents and models across the four DevOps stages.

Claude Code powered by Claude-4-Sonnet emerged as the best overall performer. Its stage-by-stage success rates were:

  • Build & Configuration: 51.85%
  • Monitoring: 20.56%
  • Issue Resolving: 23.87%
  • Test Generation: 13.87%

Crucially, End-to-End Pipeline Success was 0%. Not a single agent successfully completed a full four-stage pipeline task. Agents completely lack the context propagation and multi-stage planning capabilities required to chain DevOps tasks together.

Limitations and Future Work

The benchmark currently omits certain DevOps stages like CI/CD automation and cloud infrastructure management. These stages rely heavily on mutable external systems (like Kubernetes clusters or AWS APIs), making them incredibly difficult to evaluate in a reproducible, standardized way.

Future work will expand DevOps-Gym to include more programming languages, broader project types, and additional error categories. The authors also issue a call to action for the community to develop more capable agent architectures and train specialized models explicitly optimized for long-horizon, tool-heavy DevOps workflows.

Summary updated

BibTeX
@inproceedings{tang2026devops,
  author = {Yuheng Tang and Kaijie Zhu and Bonan Ruan and Chuqi Zhang and Michael Yang and Hongwei Li and Suyue Guo and Tianneng Shi and Zekun Li and Christopher Kruegel and Giovanni Vigna and Dawn Song and William Yang Wang and Lun Wang and Yangruibo Ding and Zhenkai Liang and Wenbo Guo},
  title = {{DevOps-Gym: Benchmarking AI Agents in Software DevOps Cycle}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=bP48r4dt7Z},
}
Figure