mlsanityData to 7 Oct 2026

Beyond Skill Evolution: Self-Evolving Context Management Policies for Long-Horizon Agent Harnesses

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

On the map: LLM agents and tool use → Agent skill learning and evolution also fits: Reinforcement learning for LLM agents

also in 1 more
Abstract (arXiv)

Harness evolution improves LLM agents by learning from execution trajectories, but existing experience- and skill-based methods are less effective on long-horizon tasks. As interactions grow, useful evidence can be buried by redundant or outdated context, making context management itself a key bottleneck. We introduce ContextEvo, a framework that learns a context policy from long-horizon trajectories. ContextEvo reconstructs the model-visible context at key decision points, identifies context-related failures, and applies targeted policy updates. Starting from the open-source Pi-agent harness, ContextEvo improves performance across three long-horizon task benchmarks, achieving results comparable to or better than several prominent agent harnesses, including Codex, OpenCode, and OpenClaw. Additional analyses show that fixed or locally evolved context strategies can fall short under long-horizon information pressure, while our methods adapt to the information demands of each environment.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Agent skill learning and evolution, one of 16 directions in LLM agents and tool use. Builds on 44 of its 51 references that are in the map. First posted on arXiv 28 Sep 2026.

Builds on

44 of 51 references.

Closest ancestors · 3

Same direction, newest first

  1. 2026SkillOpt: Executive Strategy for Self-Evolving Agent Skills22 May
  2. 2026CoEvoSkills: Self-Evolving Agent Skills via Co-Evolutionary Verification2 Apr
  3. 2026EvoSkill: Automated Skill Discovery for Multi-Agent Systems3 Mar

Other references · 41

  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. 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
  4. 2023Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Modelscited by 551
  5. 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 449
  6. 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 367
  7. 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 248
  8. 2025MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agentscited by 226
  9. 2025Plan-and-Act: Improving Planning of Agents for Long-Horizon Taskscited by 190
  10. 2025ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarizationcited by 132
  11. 2026MemSkill: Learning and Evolving Memory Skills for Self-Evolving Agentscited by 129
  12. 2025ACON: Optimizing Context Compression for Long-horizon LLM Agentscited by 126
29 more
  1. 2026Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnessescited by 119
  2. 2025Where LLM Agents Fail and How They can Learn From Failurescited by 118
  3. 2025Reinforcement Learning for Long-Horizon Interactive LLM Agentscited by 103
  4. 2024HiAgent: Hierarchical Working Memory Management for Solving Long-Horizon Agent Tasks with Large Language Modelcited by 101
  5. 2026Self-Harness: Harnesses That Improve Themselvescited by 79
  6. 2026Agentic Memory: Learning Unified Long-Term and Short-Term Memory Management for Large Language Model Agentscited by 72
  7. 2025Memory as Action: Autonomous Context Curation for Long-Horizon Agentic Taskscited by 62
  8. 2026AgentRx: Diagnosing AI Agent Failures from Execution Trajectoriescited by 53
  9. 2026DeepSWE: Measuring Frontier Coding Agents on Original, Long-Horizon Engineering Taskscited by 41
  10. 2026OSWorld 2.0: Benchmarking Computer Use Agents on Long-Horizon Real-World Taskscited by 29
  11. 2026Long-Horizon-Terminal-Bench: Testing the Limits of Agents on Long-Horizon Terminal Tasks with Dense Reward-Based Gradingcited by 20
  12. 2025COMPASS: Enhancing Agent Long-Horizon Reasoning with Evolving Contextcited by 19
  13. 2026Causal Agent Replay: Counterfactual Attribution for LLM-Agent Failurescited by 18
  14. 2026A Self-Evolving Framework for Efficient Terminal Agents via Observational Context Compressioncited by 12
  15. 2026Learning Agent-Compatible Context Management for Long-Horizon Taskscited by 12
  16. 2026Evo-Harness: Context-to-Harness Skill Compilation for Self-Evolving Agentscited by 12
  17. 2026MemPO: Self-Memory Policy Optimization for Long-Horizon Agentscited by 11
  18. 2026Remember When It Matters: Proactive Memory Agent for Long-Horizon Agentscited by 10
  19. 2026LongHorizon-Harness: Advancing Long-Horizon Agents for Real-World Taskscited by 9
  20. 2026ACM: Agentic Context Management for Long Horizon Taskscited by 8
  21. 2026When Continual Learning Moves to Memory: A Study of Experience Reuse in LLM Agentscited by 7
  22. 2026Verify Smarter, Evolve Further: Efficient Harness Evolution through Behavior-Aware Verificationcited by 7
  23. 2026ARC: Active and Reflection-driven Context Management for Long-Horizon Information Seeking Agentscited by 6
  24. 2026Retrieval-Augmented LLM Agents: Learning to Learn from Experiencecited by 6
  25. 2026HarnessEvolve: Learning from Reference Trajectories for Reliable Agent Self-Evolutioncited by 6
  26. 2026TRAJDEBUG: Tracing Error Lifecycle to Identify Critical Failures in Long-Horizon Agent Trajectoriescited by 5
  27. 2026Toward Reliable Context Compression for Long-Horizon Agents: An Empirical Study of Execution Instabilitycited by 5
  28. 2026Context as an Environment: Programmatic Context Management for Long-Horizon Agentscited by 2
  29. 2026Grow the Harness, Not the Context: From Strategy-Free Scaffolds to Reusable Specialist Agentscited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026EvoHarness-RL: Learning Self-Evolving Runtime Harness for Long-Horizon LLM Agents
  2. 2026Unified Context Evolution for LLM Agents
  3. 2026HarnessForge: Joint Harness and Policy Evolution for Adaptive Agent Systems
  4. 2026Adapting the Interface, Not the Model: Runtime Harness Adaptation for Deterministic LLM Agents
  5. 2026Adaptive Auto-Harness: Sustained Self-Improvement for Agentic System Deployment on Open-Ended Task Streams
  6. 2026EvolveNet: Collaborative Harness Evolution for Agent Self-Improvement
  7. 2026GenericAgent: A Token-Efficient Self-Evolving LLM Agent via Contextual Information Density Maximization (V1.0)
  8. 2026Learning from Research: Toward Lifelong Agent Harness Evolution