Agentic AI·Hard
Design Agent Memory Architecture for Long-Running Tasks
Asked at Anthropic, OpenAI, Adept
Design a memory architecture for an AI agent that executes multi-hour tasks involving hundreds of tool calls. The agent needs to remember what it has done, why it made decisions, what it learned, and user preferences — across both a single session and multiple sessions spanning days.
Scale Requirements
- Single task can span 8+ hours and involve 500+ tool calls
- Agent must maintain context across 50+ concurrent user sessions
- Context window for the underlying LLM is limited to 200K tokens
- Long-term memory should persist indefinitely and span thousands of past interactions
- Retrieval latency for relevant memories: under 100ms
Design Requirements
- Define a taxonomy of memory types the agent needs and their distinct requirements.
- Design the working memory system that keeps the agent on track within a single session.
- Design the long-term memory system for cross-session recall.
- Explain how you handle memory conflicts (contradictory information from different sessions).
- Address privacy and security: what should be forgotten, and when?
Your Answer
Unlock AI-powered scoring, all questions, and progress tracking.