mlsanityData to 7 Oct 2026

StateTape: Action-Conditioned Evidence Lifecycle Modeling for Long-Horizon Coding Agents

arXiv 2609.36319 ↗First posted 28 Sep 2026cs.AIcited by 0

New in LLM agents and tool use; no direction yet. LLM agents and tool use

Abstract (arXiv)

Despite the recent success of coding agents built on large language models, it remains challenging to run them over long horizons, since every observation is appended to the context and the context grows with each one. History-based maintenance is a common remedy, which masks or summarizes old observations, or prunes what a model reads as useless, and bounds the context at little cost. However, it decides from the text of the history alone and sees nothing of how the code is connected. Since a coding agent edits code many times over a single task, and each write can change what code elsewhere means, such maintenance may keep records a write has falsified, drop ones that still hold, and miss code the agent needs next. To overcome these challenges, this paper proposes StateTape, a novel and scalable framework that rewrites a coding agent's context as the repository changes rather than as the context grows. The key idea of StateTape is to model the repository as a symbol-level code graph, whose dependencies and language rules expose which symbols a write can affect. Upon this graph, a tape marks the symbols each write changed, which turns staleness from an inference about text into an observation of the agent's writes. We propose a per-write procedure in which the tape nominates the records a write could have falsified while a small manager model settles what the write log cannot, and further provide a theoretical analysis and TraceBench, a benchmark that labels what an agent is holding against what is actually needed. Empirically, we demonstrate that StateTape can effectively clear falsified records and retrieve what is needed, and thus achieve a higher resolve rate in all experiments spanned by six coding agents and three edit-heavy benchmarks with little computational overhead.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 33 of its 36 references that are in the map. First posted on arXiv 28 Sep 2026.

Builds on

33 of 36 references.

References · 33

  1. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  2. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  3. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
  4. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 956
  5. 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 800
  6. 2024Executable Code Actions Elicit Better LLM Agentscited by 537
  7. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
  8. 2024AutoCodeRover: Autonomous Program Improvementcited by 272
  9. 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 254
  10. 2025Measuring AI Ability to Complete Long Software Taskscited by 142
  11. 2024RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graphcited by 88
  12. 2025LocAgent: Graph-Guided LLM Agents for Code Localizationcited by 82
21 more
  1. 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databasescited by 62
  2. 2025The Illusion of Diminishing Returns: Measuring Long Horizon Execution in LLMscited by 62
  3. 2025SWE-EVO: Benchmarking Coding Agents in Long-Horizon Software Evolution Scenarioscited by 49
  4. 2025Reducing Cost of LLM Agents with Trajectory Reductioncited by 44
  5. 2024GraphCoder: Enhancing Repository-Level Code Completion via Code Context Graph-based Retrieval and Language Modelcited by 40
  6. 2025The Complexity Trap: Simple Observation Masking Is as Efficient as LLM Summarization for Agent Context Managementcited by 40
  7. 2026SWE-Pruner: Self-Adaptive Context Pruning for Coding Agentscited by 40
  8. 2025The OpenHands Software Agent SDK: A Composable and Extensible Foundation for Production Agentscited by 39
  9. 2025Context as a Tool: Context Management for Long-Horizon SWE-Agentscited by 38
  10. 2026Dive into Claude Code: The Design Space of Today's and Future AI Agent Systemscited by 33
  11. 2025Code Graph Model (CGM): A Graph-Integrated Large Language Model for Repository-Level Software Engineering Taskscited by 27
  12. 2026SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Taskscited by 24
  13. 2026ContextBench: A Benchmark for Context Retrieval in Coding Agentscited by 23
  14. 2026SWE-Marathon: Can Agents Autonomously Complete Ultra-Long-Horizon Software Work?cited by 19
  15. 2025LoCoBench-Agent: An Interactive Benchmark for LLM Agents in Long-Context Software Engineeringcited by 16
  16. 2026Learning Agent-Compatible Context Management for Long-Horizon Taskscited by 12
  17. 2026Escaping the Context Bottleneck: Active Context Curation for LLM Agents via Reinforcement Learningcited by 8
  18. 2026CORE-Bench: A Comprehensive Benchmark for Code Retrieval in the Era of Agentic Codingcited by 7
  19. 2026Slipstream: Trajectory-Grounded Compaction Validation for Long-Horizon Agentscited by 5
  20. 2026ChainSWE: Benchmarking Coding Agents on Multi-Bug Software Maintenancecited by 2
  21. 2026The Working Set of a Coding Agent: Coherence Debt in Repository-Scale Taskscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026StateWise: Diagnosing and Repairing Persistent Operational State Before Agent Actions
  2. 2026MemTrace: State-Consistent Memory for Long-Horizon Coding Agents
  3. 2026Turning Interaction History into Execution State: A Runtime Layer for Long-Horizon Coding Agents
  4. 2026Trace as State: Reasoning Traces as Conditional States for Long-Context Transformers
  5. 2026StateComp: Learning When to Compress History in Long Horizon Agents
  6. 2026Impact Is Not Invalidation: Ask About the Claim, Not the Diff
  7. 2026AI Guardrail Survival under Single-Cycle Agentic Self-Summarization
  8. 2026What Context Does a Coding Agent Actually Need to Act?