14One agent

Structured note-taking

The agent writes notes to a file outside its context window and reads them back later.

Also called Agentic memory, Scratchpad, Durable project memory

Packer et al., Anthropic, LangChain, Manus, OpenAI

writesread laterAgentAgentContextNotesContextContext window
How to read this

The problem

Each new session starts with no memory of the work so far, and a model does worse as its context grows.

The core challenge of long-running agents is that they must work in discrete sessions, and each new session begins with no memory of what came before.
AnthropicEffective harnesses for long-running agentsNov 26, 2025
Model performance tends to degrade beyond a certain context length, even if the window technically supports it.
ManusContext Engineering for AI Agents: Lessons from Building Manus

Therefore

Structured note-taking, or agentic memory, is a technique where the agent regularly writes notes persisted to memory outside of the context window. These notes get pulled back into the context window at later times.
AnthropicEffective context engineering for AI agentsSep 29, 2025
Memory edits and retrieval are entirely self-directed: MemGPT autonomously updates and searches through its own memory based on the current context.
Packer et al.MemGPT: Towards LLMs as Operating Systems
Writing context means saving it outside the context window to help an agent perform a task.
LangChainContext EngineeringJul 2, 2025

In use

Claude Code

Auto memory lets Claude accumulate knowledge across sessions without you writing anything. As it works, Claude saves four kinds of notes for itself.
AnthropicHow Claude remembers your project

Manus

we treat the file system as the ultimate context in Manus: unlimited in size, persistent by nature, and directly operable by the agent itself.
ManusContext Engineering for AI Agents: Lessons from Building Manus

Derrick Choi of OpenAI, running Codex

I wrote the spec, plan, constraints, and status in markdown files that Codex could revisit repeatedly. That prevented drift and kept a stable definition of “done.”
OpenAIRun long horizon tasks with CodexFeb 23, 2026

Where it breaks

Notes that are never pruned fill up with outdated information.

Without careful pruning, memory stores will accumulate redundant and outdated information, degrading agent quality over time.
OpenAIContext Engineering for Personalization - State Management with Long-Term Memory NotesJan 5, 2026

Sources

  1. MemGPT: Towards LLMs as Operating SystemsPacker et al.
  2. Effective context engineering for AI agentsPrithvi Rajasekaran, Ethan Dixon, Carly Ryan, and Jeremy Hadfield, Anthropic, Sep 29, 2025
    Structured note-taking, or agentic memory, is a technique where the agent regularly writes notes persisted to memory outside of the context window.
  3. Context EngineeringLangChain, Jul 2, 2025
    Note-taking via a “ scratchpad ” is one approach to persist information while an agent is performing a task.
  4. Effective harnesses for long-running agentsJustin Young, Anthropic, Nov 26, 2025
  5. Context Engineering for AI Agents: Lessons from Building ManusYichao 'Peak' Ji, Manus
  6. Run long horizon tasks with CodexDerrick Choi, OpenAI, Feb 23, 2026
    The most important technique was durable project memory.
  7. Context Engineering for Personalization - State Management with Long-Term Memory NotesEmre Okcular, OpenAI, Jan 5, 2026
  8. How Claude remembers your projectAnthropic

Added Nov 14, 2026