agentic-memory-management
Skill4 starsChanged 5 months agoMITView on GitHub
Gives an agent short-term memory (recent context within the LLM window) and long-term memory (persistent knowledge in external storage, usually a vector DB retrieved semantically). Use when an agent must maintain conversational context, track progress across multi-step tasks, personalize from user history, or learn from past interactions — anything beyond a single stateless exchange.
In this repository21 other files it gives its agents.
- agentic-evaluation-monitoringSkill
- agentic-exception-handlingSkill
- agentic-exploration-discoverySkill
- agentic-goal-setting-monitoringSkill
- agentic-guardrails-safetySkill
- agentic-human-in-the-loopSkill
- agentic-inter-agent-communicationSkill
- agentic-knowledge-retrievalSkill
- agentic-learning-adaptationSkill
- agentic-mcpSkill
- agentic-multi-agentSkill
- agentic-parallelizationSkill
- agentic-pattern-selectorSkill
- agentic-planningSkill
- agentic-prioritizationSkill
- agentic-prompt-chainingSkill
- agentic-reasoning-techniquesSkill
- agentic-reflectionSkill
- agentic-resource-aware-optimizationSkill
- agentic-routingSkill
- agentic-tool-useSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
What it is: Run a dual memory system: short-term contextual memory (windowing or summarizing recent turns) plus long-term memory (an …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Memory Management
Agentic Design Pattern 8 of 21 — distilled from Antonio Gulli, Agentic Design Patterns: A Hands-On Guide to Building Intelligent Systems (Ch. 8).
What it is. Run a dual memory system: short-term contextual memory (windowing or summarizing recent turns) plus long-term memory (an external/vector store written to and retrieved semantically), deciding what to persist, retrieve, and forget.
Reach for this when
- The agent must maintain context across a conversation
- It must track progress through a multi-step task
- Personalization from user preferences/history is needed
- It should recall facts or experiences across sessions
Don't reach for this when
- Stateless, single-shot tasks
- Memory adds complexity with no real recall need
- You'd be persisting everything indiscriminately
Shape of the solution
For short-term memory, keep the most relevant content in the context window (summarize older segments rather than dumping everything). For long-term memory, write durable facts to an external store and retrieve them semantically when relevant. Define explicit policies for what to persist, retrieve, and forget.
Common failure modes
- Context bloat from carrying too much forward
- Stale or contradictory stored memories
- Retrieval noise surfacing irrelevant facts
- Privacy of persisted data
Composes with
agentic-knowledge-retrieval— retrieval mechanics for long-term memoryagentic-learning-adaptation— learn from stored experienceagentic-multi-agent— shared memory across agents
Selection signals live in this skill's description (used for auto-triggering). To choose among all 21 patterns, see agentic-pattern-selector. Conceptual source: Antonio Gulli, Agentic Design Patterns: A Hands-On Guide to Building Intelligent Systems, Ch. 8 — original distillation from the text, not reproduced prose, code, or figures.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

