Loading patterns…
Context Write Patterns(CWP)
Systematic externalization of context through scratchpads, note-taking, and file system integration for unlimited persistent context
In 30 seconds
- What
- Agent externalizes working memory to files and scratchpads, storing intermediate thoughts and context outside the prompt across sessions.
- When to use
- Long-running tasks where context grows beyond token limits or work must resume after interruption with full state recovery.
- Watch out
- File I/O becomes a bottleneck; stale or corrupted external state causes agent to act on outdated information.
Ask the AI expert about this pattern
Opens the assistant with your question prefilled. You review it before sending.
Context Write Patterns: Overview
Systematic externalization of context through scratchpads, note-taking, and file system integration for unlimited persistent context
- External memory through file system operations
- Scratchpad-based note-taking during agent execution
- Persistent context storage across sessions
- Structured information externalization
The Agent Architect
One pattern, one tradeoff, one production failure story. A short weekly briefing for people building agentic systems.
Weekly email, one-click unsubscribe. We only use your address to send the briefing.
References
The papers, specifications, and repositories this pattern is based on.
From the engineer behind this catalog
Get your agent architecture reviewed
This page documents one pattern. Your system runs dozens, and most failures live in how they fit together. Have the whole design reviewed against the 288 patterns in this catalog: architecture, reliability, evaluation and cost, every finding mapped to the pattern that fixes it.
€750 instead of €1,500, one week, written report and walkthrough call, until 30 September