agent-memory-systems

Design agent memory architectures using vector stores, chunking strategies, and retrieval patterns.

Updated Jun 12, 2026
Ready to run
npx skills add https://github.com/bilacchi/agents-skills --skill agent-memory-systems-bilacchi
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: agent-memory-systems
Source: https://github.com/bilacchi/agents-skills/tree/main/skills/agent-memory-systems
Command: npx skills add https://github.com/bilacchi/agents-skills --skill agent-memory-systems-bilacchi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI agents without memory start every interaction from zero, losing user context, preferences, and past experiences. This Skill provides architecture patterns for building short-term and long-term agent memory using the CoALA cognitive framework (semantic, episodic, procedural memory), so agents can store, retrieve, and forget information correctly. ## Core Features & Use Cases - Memory Type Architecture: Implement semantic (facts), episodic (experiences), and procedural (how-to) memory using frameworks like LangMem, MemGPT/Letta, and Mem0. - Vector Store Selection: Decision matrix and code patterns for Pinecone, Qdrant, Weaviate, ChromaDB, and pgvector based on scale, filtering, and cost. - Chunking & Retrieval Patterns: Fixed-size, semantic, structure-aware, and contextual chunking strategies plus hybrid search, reranking, and metadata filtering. - Memory Lifecycle Management: Background memory formation, consolidation, conflict resolution, and utility-based decay to prevent stale or contradictory memories. - Use Case: You are building a support agent that must remember user preferences across sessions. Use this Skill to set up a Qdrant-backed episodic memory store with metadata filtering, time-decay scoring, and background consolidation. ## Quick Start Ask the agent to design a long-term memory system for your chatbot using LangMem and a vector store, including chunking and retrieval patterns.

Frequently Asked Questions about agent-memory-systems

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add long-term memory to an AI agent?▼

Use a memory framework like LangMem, MemGPT, or Mem0 backed by a vector store. Store semantic memory (user profiles), episodic memory (past interactions), and procedural memory (learned patterns) in separate namespaces, then retrieve relevant entries at runtime with metadata filtering.

Which vector database should I use for agent memory?▼

Pinecone suits enterprise scale with billions of vectors, Qdrant offers the best metadata filtering, Weaviate supports hybrid search, ChromaDB is ideal for prototyping, and pgvector works well under 1M vectors if you already use PostgreSQL.

What chunk size should I use for embedding documents?▼

A general range is 256-512 tokens, but optimal size depends on content type: 512 for documentation, 1000 for code, 256 for conversations. Test multiple sizes against real queries and measure retrieval recall before committing.

Why does semantic search return irrelevant memories?▼

Semantic similarity is not the same as relevance. Without metadata filters like user_id, type, and date, retrieval matches topically similar but wrong content. Always filter by metadata first, then consider hybrid search and cross-encoder reranking.

How do I handle outdated or contradictory agent memories?▼

Apply time-decay scoring so recent memories rank higher, update preferences in place instead of appending, and run periodic consolidation that clusters similar memories and merges conflicts using an LLM.

Can I mix different embedding models for queries and documents?▼

No. Documents and queries must use the same embedding model because different models produce incompatible vector spaces. Track the embedding model in metadata and re-embed all documents when migrating to a new model.