Skip to content
Conduit

mcp server

agent-memory-kit

Memory patterns, context strategies, and persistence recipes for AI agents. Sliding window, vector recall, hybrid memory, MCP memory servers, and more.

FreeAutomation-Tech/agent-memory-kitcommunitylistedunreviewed

Set up

Runs on your computer. Pick your agent and operating system.

This project does not publish an install method we can turn into a config. Follow the README instead.

README

synced Oct 27, 2026

Agent Memory Kit — Memory Patterns for AI Agents

License: MIT Patterns: 5 Frameworks: 3 GitHub Repo

Memory patterns, context strategies, and persistence recipes for AI agents. The #1 unsolved pain point in production AI agents — session persistence and context management.

Why Agent Memory?

Agent memory is the hottest unsolved problem in AI engineering (2026). Three repos in this space hit 220K+ stars in a single week. Every production agent eventually needs:

  • Remembering what happened last turn
  • Surfacing relevant past conversations
  • Managing context windows without losing information
  • Persisting state across sessions
  • Choosing what to forget

This kit solves that. Patterns, not abstractions. Grab what works.

What's Inside

Memory Patterns

PatternUse Case
Sliding WindowKeep last N turns — simple, cheap, works for short sessions
Summary CompressionSummarize older context to fit within token limits
Vector RecallSemantic search over past conversations using embeddings
Hybrid MemoryShort-term window + long-term vector recall combined
Episodic vs SemanticSeparate specific events from general knowledge

Memory Strategies

StrategyDescription
Session PersistenceSave/load agent state across restarts
Cross-Session RecallRemember user preferences and past sessions
Context WindowingManage context windows for long-running agents
Cache-Aware DesignMaximize prompt caching for memory operations

MCP Integration

GuideDescription
MCP Memory Server ConfigConfigure MCP memory servers for agent persistence
MCP Memory IntegrationConnect MCP tools to agent memory systems

Memory Prompts

PromptUse Case
Memory InjectionSystem prompt patterns for injecting memory context
Context SummarizationPrompts for summarizing conversation history
Recall InstructionsInstructions for agents to recall and use past info

Framework Guides

FrameworkDescription
LangGraph MemoryMemory patterns in LangGraph agents
LlamaIndex MemoryMemory in LlamaIndex workflows
CrewAI MemoryMemory in CrewAI multi-agent systems

Quick Start

git clone https://github.com/FreeAutomation-Tech/agent-memory-kit.git
cd agent-memory-kit

# Browse memory patterns
ls patterns/

# Use a pattern
cat patterns/sliding-window.md

# Run an example
python examples/chat-memory.py

# Test memory patterns
python -m pytest tests/

Structure

patterns/            # Core memory patterns
strategies/          # Memory management strategies
mcp/                 # MCP memory server integration
prompts/             # System prompts for memory
frameworks/          # Framework-specific guides
examples/            # Runnable Python examples
tools/               # Memory analysis tools
tests/               # Test files

Usage

# Read a pattern
cat patterns/hybrid-memory.md

# Try the chat memory example
python examples/chat-memory.py

# Analyze your context usage
python tools/context_analyzer.py --log conversation.log

# Test memory patterns
python tools/memory_test.py --pattern sliding-window

Related Repositories

License

MIT — see LICENSE.


If you find this useful, please consider giving it a star ⭐ — it helps others discover it too!

Thank you for your support! 🙏

↑↓ navigate openesc close