PRO-LONG: Programmatic Memory Enables Long-Horizon Reasoning
On the map: LLM reasoning → Reasoning for agents, planning and code
also in 1 more
Abstract (arXiv)
Long-horizon tasks require sustained perception, reasoning, and exploration, and are a persistent challenge for large language model (LLM) agents. This gap is reflected in their limited performance on continual learning benchmarks such as ARC-AGI-3, especially when models are evaluated out of the box. Various agent harnesses have been proposed to close this gap, and each commits to a strategy for handling long sequences of observations, i.e., what information to save from the environment and how to load it into model context, a choice we argue is particularly consequential. Existing methods for context management face a significant tradeoff, as preserving more information makes retrieving relevant details less tractable. We propose PRO-LONG, a minimal context management framework built around programmatic memory for LLM agents in long-horizon, exploratory settings. PRO-LONG addresses the tradeoff by keeping a complete, structured interaction log and capitalizing on recent progress in coding agents to search this history efficiently. On the full ARC-AGI-3 public game set, PRO-LONG improves over a base coding agent by an average of 18.0 percentage points across frontier models, and matches or exceeds state-of-the-art specialized harnesses (up to 76.1% pass@1) while using 4.2-5.8x fewer tokens. With Fable 5, PRO-LONG achieves 97.4% best@2 at a total cost of 1,750. Relevant code and logs are available at https://github.com/alexisfox7/PRO-LONG.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 22 of its 30 references that are in the map. First posted on arXiv 22 Jul 2026.
Builds on
22 of 30 references.
Closest ancestors · 1
Same direction, newest first
Other references · 21
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 722
- 2024A Survey on the Memory Mechanism of Large Language Model based Agentscited by 622
- 2026SkillRL: Evolving Agents via Recursive Skill-Augmented Reinforcement Learningcited by 252
- 2025ARC-AGI-2: A New Challenge for Frontier AI Reasoning Systemscited by 171
- 2025Hierarchical Reasoning Modelcited by 167
- 2019On the Measure of Intelligencecited by 129
- 2025A Survey of Context Engineering for Large Language Modelscited by 120
9 more
- 2025From Human Memory to AI Memory: A Survey on Memory Mechanisms in the Era of LLMscited by 119
- 2025Recursive Language Modelscited by 94
- 2025Less is More: Recursive Reasoning with Tiny Networkscited by 38
- 2025Self-Improving Language Models for Evolutionary Program Synthesis: A Case Study on ARC-AGIcited by 34
- 2026ARC-AGI-3: A New Challenge for Frontier Agentic Intelligencecited by 29
- 2025ArcMemo: Abstract Reasoning Composition with Lifelong LLM Memorycited by 22
- 2026Executable World Models for ARC-AGI-3 in the Era of Coding Agentscited by 12
- 2026Coding Agents are Effective Long-Context Processorscited by 11
- 2025ARC-AGI Without Pretrainingcited by 3
Built on by
Citing papers per year: 2026: 9.
9 papers.
- 2026Prime Agent: A Self-Improving RLM Harnesscited by 8
- 2026Tycho: Active Abstraction with Programmatic World Models for ARC-AGI-3cited by 5
- 2026Twin: Playing an Unknown Game with a Test-Time Digital Twincited by 4
- 2026DiG-bench: Discovery in Gamescited by 2
- 2026Agents Can Use Base Models to Evade AI Detectioncited by 0
- 2026Coding Agent Memory Post-training: Unlocking the Memory Potential of Pre-trained File Operations for Long-Horizon Tasks via Reinforcement Learningcited by 0
- 2026Thinking Before Thinking: Scaling Agentic Inference Through Meta-Reasoningcited by 0
- 2026Schema: Discovering Unknown Environments via Agentic Program Inductioncited by 0
- 2026Tracing the Thoughts of a Coding Agent Playing ARC-AGI-3: Lessons for Continual Learningcited by 0
- 2026Tracing the Thoughts of a Coding Agent Playing ARC-AGI-3: Lessons for Continual Learning8 Oct 2026
- 2026Schema: Discovering Unknown Environments via Agentic Program Induction30 Sep 2026
- 2026Thinking Before Thinking: Scaling Agentic Inference Through Meta-Reasoning29 Sep 2026
- 2026Coding Agent Memory Post-training: Unlocking the Memory Potential of Pre-trained File Operations for Long-Horizon Tasks via Reinforcement Learning28 Sep 2026
- 2026Agents Can Use Base Models to Evade AI Detection25 Sep 2026
- 2026Prime Agent: A Self-Improving RLM Harness24 Aug 2026
- 2026Twin: Playing an Unknown Game with a Test-Time Digital Twin14 Aug 2026
- 2026DiG-bench: Discovery in Games12 Aug 2026
- 2026Tycho: Active Abstraction with Programmatic World Models for ARC-AGI-330 Jul 2026
Similar, not cited
Close in wording, no citation either way
- 2026SAM: State-Adaptive Memory for Long-Horizon Reasoning Agent
- 2026Beyond Memory: Harnessing Long-Horizon Agents with Explicit Belief States
- 2026AMA-Bench: Evaluating Long-Horizon Memory for Agentic Applications
- 2026ContextWeaver: Selective and Dependency-Structured Memory Construction for LLM Agents
- 2026The Horizon Gap: Planning, Memory, Execution, Training, and Evaluation for Long-Horizon LLM Agents
- 2025Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactions
- 2026Memory for Autonomous LLM Agents:Mechanisms, Evaluation, and Emerging Frontiers
- 2026MemWeaver: Weaving Hybrid Memories for Traceable Long-Horizon Agentic Reasoning