mlsanityData to 7 Oct 2026

SWE Context Bench: A Benchmark for Context Learning in Coding

arXiv 2602.08316 ↗First posted 9 Feb 2026cs.SE cs.AIcited by 8

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

  1. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May

Other references · 23

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  2. 2021Program Synthesis with Large Language Modelscited by 3,509
  3. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  4. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  5. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  6. 2023GAIA: a benchmark for General AI Assistantscited by 1,084
  7. 2025A-MEM: Agentic Memory for LLM Agentscited by 1,000
  8. 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 800
  9. 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 722
  10. 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 656
  11. 2025BrowseComp: A Simple Yet Challenging Benchmark for Browsing Agentscited by 616
  12. 2025GLM-4.5: Agentic, Reasoning, and Coding (ARC) Foundation Modelscited by 446
11 more
  1. 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
  2. 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 235
  3. 2025MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agentscited by 226
  4. 2025MemBench: Towards More Comprehensive Evaluation on the Memory of LLM-based Agentscited by 82
  5. 2025MemOS: An Operating System for Memory-Augmented Generation (MAG) in Large Language Modelscited by 68
  6. 2025WideSearch: Benchmarking Agentic Broad Info-Seekingcited by 66
  7. 2025Beyond a Million Tokens: Benchmarking and Enhancing Long-Term Memory in LLMscited by 52
  8. 2025LongCodeBench: Evaluating Coding LLMs at 1M Context Windowscited by 37
  9. 2025LoCoBench: A Benchmark for Long-Context Large Language Models in Complex Software Engineeringcited by 11
  10. 2023Knowledge-enhanced Agents for Interactive Text Gamescited by 10
  11. 2026MemoryRewardBench: Benchmarking Reward Models for Long-Term Memory Management in Large Language Modelscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 8.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026ContextBench: A Benchmark for Context Retrieval in Coding Agents
  2. 2026SWE-Explore: Benchmarking How Coding Agents Explore Repositories
  3. 2025Context as a Tool: Context Management for Long-Horizon SWE-Agents
  4. 2026SWE-Pruner: Self-Adaptive Context Pruning for Coding Agents
  5. 2026CORE-Bench: A Comprehensive Benchmark for Code Retrieval in the Era of Agentic Coding
  6. 2025SWE-PolyBench: A multi-language benchmark for repository level evaluation of coding agents
  7. 2026SWE Atlas: Benchmarking Coding Agents Beyond Issue Resolution
  8. 2026FastContext: Training Efficient Repository Explorer for Coding Agents