A research team introduces WikiTrace, a memory system for LLM agents that links stored lessons to the task trajectories from which they were derived. It aims to reduce a known problem with external memory: agents can fail because they follow an incorrect lesson or apply a valid one in the wrong way.
Such lessons are often inferred from whether a task succeeded or failed, then supplied without the original trajectory. The agent therefore has no way to check whether a rule is accurate or applies to a new situation. WikiTrace stores each concise insight alongside an explanation of why the associated attempt succeeded or failed, as well as the raw trajectory.
For a new task, the agent starts with its stored insights. If a lesson lacks details needed for action, conflicts with another, or came from a failed attempt, the agent can follow links and use terminal tools to inspect the trajectory, then supplement or correct the insight. The authors report that WikiTrace outperformed existing memory approaches and a comparison baseline given the same insights across five agentic benchmarks, while also reducing memory-induced degradation. The source does not name the benchmarks or provide scores. Code is available, and the original entry provides further methodological details: Hugging Face Daily Papers.