FeatureBench: Benchmarking Agentic Coding for Complex Feature Development

Qixing Zhou, JiaCheng Zhang, Haiyang Wang, Rui Hao, Jiahe Wang, Minghao Han, Yuxue Yang, Shuzhe Wu, Feiyang Pan, Lue Fan, Dandan Tu, Zhaoxiang Zhang

The Shift from Bug Fixing to Feature Development

As large language models (LLMs) increasingly act as autonomous software developers, evaluating their true coding capabilities has become critical. Most current coding benchmarks, such as the widely used SWE-bench, primarily focus on bug fixing. These tasks typically involve small, localized patches within a single pull request. However, real-world software engineering is dominated by feature development—building new capabilities that span multiple files, require complex architectural planning, and involve numerous commits over time.

Existing benchmarks suffer from three major limitations when evaluating these broader capabilities:

  1. Static Nature: They are prone to data leakage, as LLMs are often trained on the very repositories used for testing.
  2. Narrow Scope: They rely heavily on handcrafted tasks that fail to capture the messy, interconnected complexity of real-world codebases.
  3. Ambiguity: Task descriptions are frequently too vague for automated, execution-based evaluation. This leads to situations where an agent writes "correct" code that fails tests simply due to minor interface mismatches.

To address this, researchers have introduced FeatureBench, a scalable benchmark that shifts the evaluation of AI coding agents from simple bug-fixing to complex, multi-file feature development.

Methods: Automated Task Extraction

To build FeatureBench, the authors developed an automated, test-driven pipeline to extract feature-level tasks from popular open-source Python repositories.

FeatureBench Task Extraction Pipeline

The process involves several key steps:

  • Dynamic Tracing: The system executes existing unit tests and uses Python’s tracing capabilities to build a dependency graph of the code triggered during the test.
  • Node Classification: An LLM is employed to identify "top-level" objects (the core feature being tested) versus "auxiliary" components (utilities and helpers).
  • Automated Extraction: Using a Breadth-First Search (BFS) on the dependency graph, the system isolates the feature code while ensuring the rest of the repository remains fully functional.

Tasks are categorized into two difficulty levels:

  • Level 1 ($L_1$): Incremental development, where the agent adds a new feature to an existing codebase.
  • Level 2 ($L_2$): Implementing a feature entirely from scratch based on a strict interface specification.

Crucially, solutions are verified using an execution-based evaluation protocol. Agents must pass "Fail-to-Pass" (F2P) tests to prove the new feature works, and "Pass-to-Pass" (P2P) tests to ensure they haven't introduced regressions into existing features.

The FeatureBench Dataset

The resulting FeatureBench dataset is significantly more complex than its predecessors. It includes:

  • 200 high-quality evaluation tasks curated from 24 real-world GitHub repositories, including heavyweights like transformers, pandas, and mlflow.
  • 3,825 executable environments packaged in Docker to guarantee reproducible testing.

When compared to benchmarks like SWE-bench, SWE-Dev, and commit0, FeatureBench tasks require vastly more context. On average, agents must implement roughly 790 lines of code, compared to just ~33 lines in SWE-bench.

Key Insights and Results

The benchmark reveals a massive performance cliff between fixing a bug and building a feature. The complexity of managing cross-file dependencies and maintaining architectural integrity remains a significant frontier for AI.

Performance Comparison of LLM Agents on FeatureBench

The results highlight how much room for improvement remains for agentic coding:

  • The Feature Gap: While top-tier models like Claude 4.5 Opus can resolve over 74% of bug-fix tasks on SWE-bench, it achieved only an 11.0% resolved rate on the FeatureBench Full set.
  • Top Performers: GPT-5.1-Codex (Medium Reasoning) led the pack slightly with a 12.5% resolved rate, underscoring that even the most advanced models struggle with multi-file feature generation.
  • Cross-File Blindness: The most common failure mode was NameError. Agents often write code that looks correct in isolation but fails to properly reference or import components from other files in the repository.
  • LLM "Laziness": Agents frequently exhibit "idle habits," such as hallucinating interfaces or guessing attribute names instead of performing the necessary file-reading to understand the existing codebase.
  • Efficiency Concerns: Current agents are incredibly "token-hungry," often consuming over a million input tokens to attempt a single complex task.

Interestingly, an ablation study showed that providing agents with "Visible Unit Tests" (allowing them to see the tests they are trying to pass) significantly boosted performance. For example, Claude's success jumped from ~11% to over 60%, suggesting that better "test-driven" reasoning is a highly promising path forward.

Limitations and Future Work

Currently, FeatureBench is limited to Python repositories and requires codebases to have high-quality, runnable unit test suites to function properly. Furthermore, running these agents is computationally expensive due to the multi-step planning and execution required.

However, because the benchmark is execution-based and automated, it can generate a continuous stream of new, verifiable training data. This helps mitigate the "data exhaustion" problem in LLM training. In the future, the authors plan to scale the benchmark to more languages and explore how FeatureBench can be used to fine-tune agents specifically for long-horizon software engineering tasks.

Summary updated

BibTeX
@inproceedings{zhou2026featurebench,
  author = {Qixing Zhou and JiaCheng Zhang and Haiyang Wang and Rui Hao and Jiahe Wang and Minghao Han and Yuxue Yang and Shuzhe Wu and Feiyang Pan and Lue Fan and Dandan Tu and Zhaoxiang Zhang},
  title = {{FeatureBench: Benchmarking Agentic Coding for Complex Feature Development}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=41xrZ3uGuI},
}
Figure