SWE Context Bench: A Benchmark for Context Learning in Coding
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Large language models are increasingly used as coding agents for software engineering tasks. Current benchmarks mainly evaluate whether the agent can correctly solve the request or fix the bugs. They largely treat tasks as independent and do not assess whether agents can reuse previous experience across related problems. As a result, the efficiency gains from reusing the previous experience remains difficult to measure. We introduce SWE-ContextBench, a benchmark designed to explicitly evaluate context understanding and retrieval in coding agents. SWE-ContextBench consists of 1,100 base tasks with another 376 related tasks derived from real dependency and reference relationships among GitHub issues and pull requests. SWE-ContextBench groups base tasks and related tasks with shared context across 51 unique repositories and 9 programming languages. The benchmark evaluates how accurately and efficiently agents solve related issues when prior cases are available in context. Using SWE-ContextBench, we study the behavior of multiple coding agents across varying context reuse settings and retrieval strategies. Our results show that accurately summarized and retrieved previous experience can significantly improve resolution accuracy and reduce runtime and token cost, particularly on harder tasks. In contrast, unfiltered or incorrectly selected context provides limited or negative benefits. These findings highlight the importance of context management and retrieval accuracy, and position SWE-ContextBench as a principled benchmark for studying context learning in coding agents.
Key facts. Cited by 8 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 24 of its 27 references that are in the map. First posted on arXiv 9 Feb 2026.
Builds on
24 of 27 references.
Closest ancestors · 1
Same direction, newest first
Other references · 23
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2023GAIA: a benchmark for General AI Assistantscited by 1,084
- 2025A-MEM: Agentic Memory for LLM Agentscited by 1,000
- 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 800
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 722
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 656
- 2025BrowseComp: A Simple Yet Challenging Benchmark for Browsing Agentscited by 616
- 2025GLM-4.5: Agentic, Reasoning, and Coding (ARC) Foundation Modelscited by 446
11 more
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 235
- 2025MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agentscited by 226
- 2025MemBench: Towards More Comprehensive Evaluation on the Memory of LLM-based Agentscited by 82
- 2025MemOS: An Operating System for Memory-Augmented Generation (MAG) in Large Language Modelscited by 68
- 2025WideSearch: Benchmarking Agentic Broad Info-Seekingcited by 66
- 2025Beyond a Million Tokens: Benchmarking and Enhancing Long-Term Memory in LLMscited by 52
- 2025LongCodeBench: Evaluating Coding LLMs at 1M Context Windowscited by 37
- 2025LoCoBench: A Benchmark for Long-Context Large Language Models in Complex Software Engineeringcited by 11
- 2023Knowledge-enhanced Agents for Interactive Text Gamescited by 10
- 2026MemoryRewardBench: Benchmarking Reward Models for Long-Term Memory Management in Large Language Modelscited by 2
Built on by
Citing papers per year: 2026: 8.
8 papers.
- 2026From Question Answering to Task Completion: A Survey on Agent System and Harness Designcited by 9
- 2026CODESKILL: Learning Self-Evolving Skills for Coding Agentscited by 6
- 2026When the Specification Emerges: Benchmarking Faithfulness Loss in Long-Horizon Coding Agentscited by 5
- 2026Learning to Commit: Generating Organic Pull Requests via Online Repository Memorycited by 3
- 2026Terminus-4B: Can a Smaller Model Replace Frontier LLMs at Agentic Execution Tasks?cited by 1
- 2026Claw-Anything: Benchmarking Always-On Personal Assistants with Broader Access to User's Digital Worldcited by 1
- 2026Decision-Aware Memory Cards: Counterfactual-Inspired Context Selection and Compression for Tool-Using LLM Agentscited by 1
- 2026Probe-and-Refine Tuning of Repository Guidance for Coding Agentscited by 0
- 2026Probe-and-Refine Tuning of Repository Guidance for Coding Agents18 Jun 2026
- 2026From Question Answering to Task Completion: A Survey on Agent System and Harness Design14 Jun 2026
- 2026Decision-Aware Memory Cards: Counterfactual-Inspired Context Selection and Compression for Tool-Using LLM Agents6 Jun 2026
- 2026Claw-Anything: Benchmarking Always-On Personal Assistants with Broader Access to User's Digital World25 May 2026
- 2026CODESKILL: Learning Self-Evolving Skills for Coding Agents25 May 2026
- 2026Terminus-4B: Can a Smaller Model Replace Frontier LLMs at Agentic Execution Tasks?4 May 2026
- 2026Learning to Commit: Generating Organic Pull Requests via Online Repository Memory27 Mar 2026
- 2026When the Specification Emerges: Benchmarking Faithfulness Loss in Long-Horizon Coding Agents17 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2026ContextBench: A Benchmark for Context Retrieval in Coding Agents
- 2026SWE-Explore: Benchmarking How Coding Agents Explore Repositories
- 2025Context as a Tool: Context Management for Long-Horizon SWE-Agents
- 2026SWE-Pruner: Self-Adaptive Context Pruning for Coding Agents
- 2026CORE-Bench: A Comprehensive Benchmark for Code Retrieval in the Era of Agentic Coding
- 2025SWE-PolyBench: A multi-language benchmark for repository level evaluation of coding agents
- 2026SWE Atlas: Benchmarking Coding Agents Beyond Issue Resolution
- 2026FastContext: Training Efficient Repository Explorer for Coding Agents