Memory model
25%Senior signals
- ✓Separates active plan/working set, conversation history, durable facts, artifacts, and external records.
- ✓Defines authority and versioning instead of letting summaries overwrite source evidence.
Design context curation, compression, retrieval, and durable memory for agents operating across many hours and context windows.
Design memory and context management for an agent that works on a project for days, uses many tools, and must resume accurately after context compaction.
Use this as one discussion aid, not a single correct answer. Your design should follow from the requirements, scale, and trade-offs you establish.
graph LR
A["Design Context and Memory for a Long-Running Agent"]
A --> F1["Memory tiers and source-of-truth model"]
A --> F2["Context selection, compaction, and eviction"]
A --> F3["Retrieval indexing, freshness, and provenance"]
A --> F4["Concurrent updates and consistency"]
A --> F5["Quality, privacy, cost, and long-horizon evaluation"]This is an evaluation framework, not a single model answer. Strong designs may make different choices when their assumptions and trade-offs are explicit.
Practice drawing this system component-by-component on a live whiteboard while the interviewer probes at your target level.
Start Interview