cs.AIOct 4, 2026

From Memory to Guide: Spatio-Temporal Composer for Procedural Coding Memory

Authors: Zhixuan Tan, Pengjie Gu, Zhao Li, Yihan Hu, Xu He, Dong Li, Jianye Hao

Organizations: The Chinese University of Hong Kong, Shenzhen · MemoraX AI

Abstract

Memory-augmented agents typically integrate procedural knowledge by injecting retrieved skills directly into text prompts. This approach dangerously equates readable text with reliable execution. To bridge this gap, we introduce From Memory to Guide, a novel paradigm that transitions procedural memory from passive text delivery to active, inference-time policy adaptation. We instantiate this paradigm through the Spatio-Temporal Composer, an active policy compiler that explicitly manages exactly how and when retrieved knowledge should be applied. Rather than treating skills as plug-and-play modules, Composer dynamically aligns historical knowledge with current environmental constraints (spatial adaptation) and precisely dictates its applicable lifecycle (temporal orchestration). It actively transforms static memories into strictly bounded Runtime Guides---equipping the agent with localized objectives and behavioral guardrails without requiring a single parameter update. Extensive evaluations on 13 demanding, long-horizon software engineering tasks in EngramBench demonstrate the clear advantages of this architecture. Composer not only robustly prevents context mismatch but drives an absolute pass-rate increase of 7.2 percentage points on the most complex tasks, while simultaneously slashing the main agent's token usage by 32.2%.

Figures & tables

Explore similar work

CardsList
  1. MemCompiler: Compile, Don't Inject -- State-Conditioned Memory for Embodied Agents

    May 8, 2026Xin Ding, Xinrui Wang, Yifan Yang +9Embodied AIMemory-Augmented Agents

  2. Structurally Aligned Subtask-Level Memory for Software Engineering Agents

    Feb 25, 2026Kangning Shen, Jingyuan Zhang, Chenxi Sun +2LLM Agent MemoryAgent Memory

  3. SWE-MeM: Learning Adaptive Memory Management for Long-Horizon Coding Agents

    Jun 26, 2026Shuzheng Gao, Wenhao Zeng, Zhaojian Yu +5Software Engineering AgentsMemory Management for LLM Agents