Agent Memory and Knowledge Guides

Coding agents forget what they learned once a session ends unless you give them memory. This hub covers the tools and ideas that help: persistent memory layers, codebase knowledge graphs, local code and document search, and knowledge bases that an LLM keeps up to date.

Most guides are deep dives into one project, explaining how it stores and retrieves context, how to install it and where it falls short. They include Claude-Mem for Claude Code, Agentmemory and Engram for local memory, CodeGraph and Understand Anything for codebase graphs, Zilliz Claude Context for semantic code search, and zg for local search. Two guides unpack Andrej Karpathy's LLM wiki and knowledge base workflow, and a comparison of memory layers helps you choose one on pricing, self-hosting and fit.

Start with the comparison if you are picking a tool, or with Karpathy's LLM wiki if you want the idea first. Vector databases are covered in the Agent Infrastructure hub.

Start here

Memory tools and ideas explained

Deep diveKarpathy's LLM Knowledge Bases: The Post-Code AI WorkflowBreaks down Karpathy's workflow for turning raw documents into a personal knowledge base maintained by an LLM, with tools to try.Deep diveUnderstand Anything Deep Dive: Codebase Knowledge Graphs That Teach Developers and AI AgentsReviews Understand Anything, which turns codebases and docs into interactive knowledge graphs for coding agents and new developers.Deep diveCodeGraph Guide: Local Code Knowledge Graph for AI AgentsDescribes how CodeGraph indexes a repo into a local graph for coding agents, with architecture, setup, limits and a verdict.Deep diveAgentmemory Deep Dive: Persistent Memory for Claude Code, Codex, Cursor, and MCP AgentsReviews Agentmemory, a local memory layer for coding agents that combines hooks, MCP, keyword and vector search, with setup steps and caveats.Deep diveClaude Context Guide: Semantic Code Search MCP for Claude CodeReviews Zilliz Claude Context, a Milvus-backed hybrid code search MCP for Claude Code, with architecture, bugs, costs and when grep wins.Deep diveEngram: Encrypted Local Memory for AI AgentsDescribes Engram, a local memory daemon with an encrypted vault, true deletion, an MCP server and an open storage format.Deep divezg (zvec-grep): Local-First Search for Developers and AI AgentsIntroduces zg, an open-source CLI and MCP server combining ripgrep, BM25 and vector search for local code and document retrieval by agents.

Browse other topics

AntigravityAI ModelsAgent InfrastructureCoding Agents & IDEsMCP & Agent ToolsTesting, Observability & SecurityVoice, Video & Design AIAI for BusinessBrowser, Scraping & SearchClaude CodeAgent Skills & RulesAI Data & Fine-TuningAll comparisons