ContextBench: A Benchmark for Context Retrieval in Coding Agents
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
LLM-based coding agents have shown strong performance on automated issue resolution benchmarks, yet existing evaluations largely focus on final task success, providing limited insight into how agents retrieve and use code context during problem solving. We introduce ContextBench, a process-oriented evaluation of context retrieval in coding agents. ContextBench consists of 1,136 issue-resolution tasks from 66 repositories across eight programming languages, each augmented with human-annotated gold contexts. We further implement an automated evaluation framework that tracks agent trajectories and measures context recall, precision, and efficiency throughout issue resolution. Using ContextBench, we evaluate four frontier LLMs and five coding agents. Our results show that sophisticated agent scaffolding yields only marginal gains in context retrieval ("The Bitter Lesson" of coding agents), LLMs consistently favor recall over precision, and substantial gaps exist between explored and utilized context. ContextBench augments existing end-to-end benchmarks with intermediate gold-context metrics that unbox the issue-resolution process. These contexts offer valuable intermediate signals for guiding LLM reasoning in software tasks.
Key facts. Cited by 23 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 25 of its 33 references that are in the map. First posted on arXiv 5 Feb 2026.
Builds on
25 of 33 references.
Closest ancestors · 14
Same direction, newest first
- 2025Live-SWE-agent: Can Software Engineering Agents Self-Evolve on the Fly?17 Nov
- 2025Detecting Silent Failures in Multi-Agentic AI Trajectories6 Nov
- 2025Lingxi: Repository-Level Issue Resolution Framework Enhanced by Procedural Knowledge Guided Scaling13 Oct
- 2025Where LLM Agents Fail and How They can Learn From Failures29 Sep
- 2025An Empirical Study on Failures in Automated Issue Solving17 Sep
- 2025Trae Agent: An LLM-based Agent for Software Engineering with Test-time Scaling31 Jul
- 2025Prometheus: Towards Long-Horizon Codebase Navigation for Repository-Level Problem Solving26 Jul
- 2025Doc2Feat-Bench: Evaluating Documentation-Driven Feature Addition24 Jul
- 2025Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories23 Jun
- 2025SWE-PolyBench: A multi-language benchmark for repository level evaluation of coding agents11 Apr
- 2025Why Do Multi-Agent LLM Systems Fail?17 Mar
- 2025Beyond Final Code: A Process-Oriented Error Analysis of Software Development Agents in Real-World GitHub Scenarios16 Mar
2 more
Other references · 11
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2025OpenAI GPT-5 System Cardcited by 910
- 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 515
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
- 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 254
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 165
- 2025SWE-Lancer: Can Frontier LLMs Earn 1 Million from Real-World Freelance Software Engineering?cited by 99
- 2025SWE-bench Goes Live!cited by 74
- 2025SWE-Exp: Experience-Driven Software Issue Resolutioncited by 64
- 2025CodeClash: Benchmarking Goal-Oriented Software Engineeringcited by 9
Built on by
Citing papers per year: 2026: 23.
23 papers.
Sort:
By area:
- 2026Code as Agent Harnesscited by 40
- 2026SWE-Explore: Benchmarking How Coding Agents Explore Repositoriescited by 20
- 2026From Question Answering to Task Completion: A Survey on Agent System and Harness Designcited by 9
- 2026CORE-Bench: A Comprehensive Benchmark for Code Retrieval in the Era of Agentic Codingcited by 7
- 2026DeonticBench: A Benchmark for Reasoning over Rulescited by 4
- 2026Handoff Debt: The Rediscovery Cost When Coding Agents Take Over Interrupted Taskscited by 2
- 2026What Context Does a Coding Agent Actually Need to Act?cited by 2
- 2026The Devil Is in the Interface: Evaluating How Tool Architecture Shapes Coding Agent Behaviorcited by 2
- 2026Quantifying Overclaiming Propensity in Frontier LLM Agentscited by 2
- 2026Scaling Laws for Agent Harnesses via Effective Feedback Computecited by 1
- 2026Decision-Aware Memory Cards: Counterfactual-Inspired Context Selection and Compression for Tool-Using LLM Agentscited by 1
- 2026The Best Programming Language for Tokenmaxxing: An Investigation of Coding Agent Behavior Across Programming Languagescited by 1
11 more
- 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modelingcited by 1
- 2026Executable Code Knowledge: Code as a Native, Validation-Carrying Knowledge Representation for AI Coding Agentscited by 1
- 2026Theory of Code Space: Do Code Agents Understand Software Architecture?cited by 0
- 2026How Do Tool-Augmented LLM Agents Perform on Real-World Energy Analytics Tasks?cited by 0
- 2026CodeNib: A Multi-View Data System for Serving Repository Context to Coding Agentscited by 0
- 2026The Recall Trap: A Recall-Maximizing Retriever Configuration Reduces Issue Resolution in Fixed-Budget Code Contextcited by 0
- 2026Vulnerability Localization Benchmark: Measuring Agentic Security Analysis at Repository Scalecited by 0
- 2026The Missing Complement: State-Conditioned Minimal Sufficient Evidence for Coding Agentscited by 0
- 2026Compact Documentation for Coding Agents: A Benchmark, an Optimizer, and Why It Does Not Transfercited by 0
- 2026Evaluating Name-Only Directory Routing for One-Shot Code Searchcited by 0
- 2026StateTape: Action-Conditioned Evidence Lifecycle Modeling for Long-Horizon Coding Agentscited by 0
- 2026StateTape: Action-Conditioned Evidence Lifecycle Modeling for Long-Horizon Coding Agents28 Sep 2026
- 2026Evaluating Name-Only Directory Routing for One-Shot Code Search28 Sep 2026
- 2026Compact Documentation for Coding Agents: A Benchmark, an Optimizer, and Why It Does Not Transfer25 Sep 2026
- 2026Quantifying Overclaiming Propensity in Frontier LLM Agents17 Sep 2026
- 2026The Missing Complement: State-Conditioned Minimal Sufficient Evidence for Coding Agents17 Sep 2026
- 2026Vulnerability Localization Benchmark: Measuring Agentic Security Analysis at Repository Scale14 Sep 2026
- 2026Executable Code Knowledge: Code as a Native, Validation-Carrying Knowledge Representation for AI Coding Agents17 Aug 2026
- 2026The Recall Trap: A Recall-Maximizing Retriever Configuration Reduces Issue Resolution in Fixed-Budget Code Context14 Aug 2026
- 2026The Devil Is in the Interface: Evaluating How Tool Architecture Shapes Coding Agent Behavior11 Aug 2026
- 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modeling5 Aug 2026
- 2026CodeNib: A Multi-View Data System for Serving Repository Context to Coding Agents28 Jul 2026
- 2026The Best Programming Language for Tokenmaxxing: An Investigation of Coding Agent Behavior Across Programming Languages24 Jul 2026
11 more
- 2026How Do Tool-Augmented LLM Agents Perform on Real-World Energy Analytics Tasks?24 Jun 2026
- 2026What Context Does a Coding Agent Actually Need to Act?19 Jun 2026
- 2026From Question Answering to Task Completion: A Survey on Agent System and Harness Design14 Jun 2026
- 2026CORE-Bench: A Comprehensive Benchmark for Code Retrieval in the Era of Agentic Coding10 Jun 2026
- 2026Decision-Aware Memory Cards: Counterfactual-Inspired Context Selection and Compression for Tool-Using LLM Agents6 Jun 2026
- 2026SWE-Explore: Benchmarking How Coding Agents Explore Repositories5 Jun 2026
- 2026Handoff Debt: The Rediscovery Cost When Coding Agents Take Over Interrupted Tasks1 Jun 2026
- 2026Scaling Laws for Agent Harnesses via Effective Feedback Compute28 May 2026
- 2026Code as Agent Harness18 May 2026
- 2026DeonticBench: A Benchmark for Reasoning over Rules6 Apr 2026
- 2026Theory of Code Space: Do Code Agents Understand Software Architecture?28 Feb 2026
- 2026Code as Agent Harnesscited by 40
- 2026SWE-Explore: Benchmarking How Coding Agents Explore Repositoriescited by 20
- 2026From Question Answering to Task Completion: A Survey on Agent System and Harness Designcited by 9
- 2026CORE-Bench: A Comprehensive Benchmark for Code Retrieval in the Era of Agentic Codingcited by 7
- 2026Handoff Debt: The Rediscovery Cost When Coding Agents Take Over Interrupted Taskscited by 2
- 2026What Context Does a Coding Agent Actually Need to Act?cited by 2
- 2026The Devil Is in the Interface: Evaluating How Tool Architecture Shapes Coding Agent Behaviorcited by 2
- 2026Quantifying Overclaiming Propensity in Frontier LLM Agentscited by 2
- 2026Decision-Aware Memory Cards: Counterfactual-Inspired Context Selection and Compression for Tool-Using LLM Agentscited by 1
- 2026The Best Programming Language for Tokenmaxxing: An Investigation of Coding Agent Behavior Across Programming Languagescited by 1
- 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modelingcited by 1
- 2026Executable Code Knowledge: Code as a Native, Validation-Carrying Knowledge Representation for AI Coding Agentscited by 1
12 most cited of 19 All 19 (JSON)
- 2026StateTape: Action-Conditioned Evidence Lifecycle Modeling for Long-Horizon Coding Agents28 Sep 2026
- 2026Compact Documentation for Coding Agents: A Benchmark, an Optimizer, and Why It Does Not Transfer25 Sep 2026
- 2026Quantifying Overclaiming Propensity in Frontier LLM Agents17 Sep 2026
- 2026The Missing Complement: State-Conditioned Minimal Sufficient Evidence for Coding Agents17 Sep 2026
- 2026Vulnerability Localization Benchmark: Measuring Agentic Security Analysis at Repository Scale14 Sep 2026
- 2026Executable Code Knowledge: Code as a Native, Validation-Carrying Knowledge Representation for AI Coding Agents17 Aug 2026
- 2026The Devil Is in the Interface: Evaluating How Tool Architecture Shapes Coding Agent Behavior11 Aug 2026
- 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modeling5 Aug 2026
- 2026CodeNib: A Multi-View Data System for Serving Repository Context to Coding Agents28 Jul 2026
- 2026The Best Programming Language for Tokenmaxxing: An Investigation of Coding Agent Behavior Across Programming Languages24 Jul 2026
- 2026How Do Tool-Augmented LLM Agents Perform on Real-World Energy Analytics Tasks?24 Jun 2026
- 2026What Context Does a Coding Agent Actually Need to Act?19 Jun 2026
12 newest of 19 All 19 (JSON)
- 2026DeonticBench: A Benchmark for Reasoning over Rulescited by 4
- 2026DeonticBench: A Benchmark for Reasoning over Rules6 Apr 2026
Similar, not cited
Close in wording, no citation either way
- 2026SWE Context Bench: A Benchmark for Context Learning in Coding
- 2026CodeScout: Contextual Problem Statement Enhancement for Software Agents
- 2026Agent Retrieval Bench: Evaluating Repository Context Retrieval for Coding Agents
- 2026SWE-Adept: An LLM-Based Agentic Framework for Deep Codebase Analysis and Structured Issue Resolution
- 2025Understanding Code Agent Behaviour: An Empirical Study of Success and Failure Trajectories
- 2026Coupling Planning with Episodic Memory in LLM Agents for Software Issue Resolution
- 2026CodeCompass: Navigating the Navigation Paradox in Agentic Code Intelligence
- 2026Beyond Resolution Rates: Behavioral Drivers of Coding Agent Success and Failure