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
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.
Model performance tends to degrade beyond a certain context length, even if the window technically supports it.
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.
Memory edits and retrieval are entirely self-directed: MemGPT autonomously updates and searches through its own memory based on the current context.
Writing context means saving it outside the context window to help an agent perform a task.
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.
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.
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.”
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.
Sources
- MemGPT: Towards LLMs as Operating SystemsPacker et al.
- 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.
- Context EngineeringLangChain, Jul 2, 2025
Note-taking via a “ scratchpad ” is one approach to persist information while an agent is performing a task.
- Effective harnesses for long-running agentsJustin Young, Anthropic, Nov 26, 2025
- Context Engineering for AI Agents: Lessons from Building ManusYichao 'Peak' Ji, Manus
- Run long horizon tasks with CodexDerrick Choi, OpenAI, Feb 23, 2026
The most important technique was durable project memory.
- Context Engineering for Personalization - State Management with Long-Term Memory NotesEmre Okcular, OpenAI, Jan 5, 2026
- How Claude remembers your projectAnthropic
Added Nov 14, 2026