Loading patternsโฆ
Hierarchical Memory
Multi-level memory structure with different retention policies
In 30 seconds
- What
- Organizes agent memory into tiers with different retention rules, automatically moving items between levels based on importance and access patterns.
- When to use
- Long-running agents handling thousands of interactions where keeping everything in active memory becomes too slow or expensive.
- Watch out
- Promotion and demotion logic can silently lose critical context if importance scoring misses what actually matters for your tasks.
Ask the AI expert about this pattern
Opens the assistant with your question prefilled. You review it before sending.
Hierarchical Memory: Overview
Multi-level memory structure with different retention policies
- Multi-tier storage
- Importance-based retention
- Automatic promotion/demotion
- Efficient retrieval
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.
- Memory Hierarchies in Computer Architecture (Hennessy & Patterson, 2019)
- Computer Architecture: A Quantitative Approach (Memory Hierarchy)
- Modern Operating Systems: Memory Management (Tanenbaum, 2014)
- Database System Concepts: Storage and File Structure
- LangChain: Memory Systems with Hierarchical Storage
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