Loading patternsโฆ
Working Memory Patterns(WMP)
Short-term context management for active cognitive processing
In 30 seconds
- What
- Maintains a limited set of active facts and goals during problem-solving, discarding or archiving lower-priority items as capacity fills.
- When to use
- Multi-step tasks where the agent must track intermediate results, current goals, and constraints without re-reading the full context each step.
- Watch out
- Agents often retain too much or the wrong information, causing later steps to reference stale data or lose critical constraints.
Ask the AI expert about this pattern
Opens the assistant with your question prefilled. You review it before sending.
Working Memory Patterns: Overview
Short-term context management for active cognitive processing
- Limited capacity management
- Active information maintenance
- Priority-based retention
- Real-time context updates
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.
- Working Memory: Theories, Models, and Controversies (Baddeley, 2012)
- The Magic Number 4 in Short-term Memory: A Reconsideration (Cowan, 2001)
- Working Memory Capacity: An Individual Differences Approach (Conway et al., 2005)
- Executive Functions and Working Memory (Miyake & Friedman, 2012)
- ACT-R: A Cognitive Architecture for Working Memory (Anderson, 2007)
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