mlsanityData to 14 Oct 2026

StateHarness: Maintaining Evolving Project State for Long-Horizon Coding Agents

arXiv 2610.17616 ↗First posted 13 Oct 2026cs.SE cs.CLcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Long-horizon coding requires agents to maintain an evolving view of the project they are changing: what problem is currently being solved, what has already been learned or modified, which other artifacts may be affected, and what work remains unresolved. When this information is scattered across a growing interaction history, local edits can become disconnected from their later consequences and progress can be difficult to carry forward. We introduce StateHarness, a runtime framework that maintains evolving project state without updating model parameters. The working agent records its current problem and hypothesis, important findings and decisions, discovered repository relationships, and unfinished work. Runtime support prompts record updates, searches for callers, tests, and documentation that may be affected by a change, and maintains a compact working brief for subsequent decisions. When behavioral signals accumulate, a separate diagnostic session revisits the recorded history and surfaces overlooked evidence. Across three repository-level evaluations, StateHarness improves task completion and several measures of change consistency. On RefactorBench, full-chain completion increases from 29.4% to 35.3% and cleanup-check accuracy from 87.0% to 95.4%. On five LHTB software-engineering tasks, mean reward improves from 0.427 to 0.576, exceeding LongHorizon-Harness at substantially lower recorded execution cost. On ChainSWE, bug-fix rate increases from 35.1% to 39.5% and residual debt decreases from 60 to 43 items, although pass-to-pass regressions increase. These results show that maintaining project state can improve long-horizon coding while introducing measurable execution and regression trade-offs.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 32 of its 37 references that are in the map. First posted on arXiv 13 Oct 2026.

Builds on

32 of 37 references.

Closest ancestors · 16

Same direction, newest first

  1. 2026CORVUS: Context Optimization and Reduction Via Underlying Synchronization for LLM Coding Agents20 Jul
  2. 2026ChainSWE: Benchmarking Coding Agents on Multi-Bug Software Maintenance1 Jul
  3. 2026SWE-INTERACT: Reimagining SWE Benchmarks as User-Driven Long-Horizon Coding Sessions29 Jun
  4. 2026SWE-MeM: Learning Adaptive Memory Management for Long-Horizon Coding Agents26 Jun
  5. 2026Getting Better at Working With You: Compiling User Corrections into Runtime Enforcement for Coding Agents11 Jun
  6. 2026SWE-Chain: Benchmarking Coding Agents on Chained Release-Level Package Upgrades14 May
  7. 2026SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Tasks25 Mar
  8. 2026When the Specification Emerges: Benchmarking Faithfulness Loss in Long-Horizon Coding Agents17 Mar
  9. 2026FeatureBench: Benchmarking Agentic Coding for Complex Feature Development11 Feb
  10. 2026SWE Context Bench: A Benchmark for Context Learning in Coding9 Feb
  11. 2026SWE-Pruner: Self-Adaptive Context Pruning for Coding Agents23 Jan
  12. 2025Context as a Tool: Context Management for Long-Horizon SWE-Agents26 Dec
4 more
  1. 2025SWE-EVO: Benchmarking Coding Agents in Long-Horizon Software Evolution Scenarios20 Dec
  2. 2025Reducing Cost of LLM Agents with Trajectory Reduction28 Sep
  3. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
  4. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May

Other references · 16

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  2. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  3. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  4. 2023MemGPT: Towards LLMs as Operating Systemscited by 1,389
  5. 2025Agentic Context Engineering: Evolving Contexts for Self-Improving Language Modelscited by 398
  6. 2025ReasoningBank: Scaling Agent Self-Evolving with Reasoning Memorycited by 284
  7. 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 279
  8. 2024RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graphcited by 91
  9. 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databasescited by 65
  10. 2025The Complexity Trap: Simple Observation Masking Is as Efficient as LLM Summarization for Agent Context Managementcited by 48
  11. 2026Long-Horizon-Terminal-Bench: Testing the Limits of Agents on Long-Horizon Terminal Tasks with Dense Reward-Based Gradingcited by 31
  12. 2025RefactorBench: Evaluating Stateful Reasoning in Language Agents Through Codecited by 30
4 more
  1. 2026AIRGuard: Guarding Agent Actions with Runtime Authority Controlcited by 13
  2. 2026LongHorizon-Harness: Advancing Long-Horizon Agents for Real-World Taskscited by 13
  3. 2026AgentTrap: Measuring Runtime Trust Failures in Third-Party Agent Skillscited by 12
  4. 2026Turning Interaction History into Execution State: A Runtime Layer for Long-Horizon Coding Agentscited by 4

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026AutoCompact: Learning When to Compact Context in Long-Horizon Coding Agents
  2. 2026StateWise: Diagnosing and Repairing Persistent Operational State Before Agent Actions
  3. 2026Self-Evolving Coding Agents
  4. 2026Returning to Development States: When Full Sandbox Snapshots Help Coding Agents
  5. 2026Beyond Isolated Tasks: A Framework for Evaluating Coding Agents on Sequential Software Evolution
  6. 2026Breaking, Stale, or Missing? Benchmarking Coding Agents on Project-Level Test Evolution
  7. 2026MemTrace: State-Consistent Memory for Long-Horizon Coding Agents
  8. 2026VibeMemBench: Evaluating Memory Systems for Coding Agents on Real Repository Coding Tasks