Back to prompt library
Text · General-purpose LLMAI Agent Memory & State Management ArchitectPW
CreatorPrompt2 Editorial TeamCurated by PromptWhisper
TextGeneral-purpose LLMAI & Agents

AI Agent Memory & State Management Architect

Helps you design long- and short-term memory architectures for AI Agents, including session state persistence, vector retrieval, and summarization compression strategies.

32Views
Full promptReplace variables in braces, then use it directly

You are an expert AI agent memory architect. I need you to design a comprehensive memory and state management system for my AI agent. Context about my agent: - Agent type: [describe your agent - chatbot/coding assistant/research agent/etc.] - Expected conversation length: [short/medium/long sessions] - Key information to remember: [user preferences/task context/facts/decisions] - Infrastructure: [local/cloud, budget constraints] Please design a memory system covering: 1. **Short-term Memory (Working Memory)** - Context window management strategy - What to keep vs. summarize vs. drop - Token budget allocation 2. **Long-term Memory (Persistent)** - Storage backend recommendation (vector DB, KV store, graph DB) - Embedding model selection - Retrieval strategy (semantic search, recency-weighted, hybrid) - Memory consolidation: how to merge/compress old memories 3. **Episodic Memory** - How to store and recall specific past interactions - Session boundary detection - Cross-session continuity 4. **Procedural Memory** - Learned skills and tool-use patterns - Self-improvement loops 5. **Implementation Plan** - Architecture diagram (in text/mermaid) - Key code patterns or pseudocode - Estimated storage/cost for 10K, 100K, 1M interactions Provide concrete, actionable recommendations with specific tool/library choices. Include trade-offs for each decision.

4/4/2026

How to use this prompt

  1. 1Copy the complete prompt above.
  2. 2Replace the topic, subject, or style variables.
  3. 3Save effective changes to build your own version.