A-MEM: Self-Evolving Memory for Coding Agents
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
A-MEM is an innovative self-evolving memory system designed for coding agents, organizing knowledge into a dynamic Zettelkasten-style graph. It allows memories to evolve and connect over time, enhancing an agent's ability to recall and utilize information effectively. This system offers both semantic and structural search capabilities for a richer knowledge base.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
A-MEM is an innovative self-evolving memory system specifically designed for coding agents. Unlike traditional vector stores, A-MEM automatically organizes knowledge into a dynamic Zettelkasten-style graph, where memories don't just get stored, they evolve and connect over time. This system aims to provide agents with a more intelligent and interconnected knowledge base, improving their ability to recall and utilize information effectively.
Installation
Getting started with A-MEM is straightforward. You can install it via pip and integrate it with MCP-compatible agents like Claude Code.
First, install the a-mem package:
pip install a-mem
Then, add it to your Claude Code environment:
claude mcp add a-mem -s user -- a-mem-mcp \
-e LLM_BACKEND=openai \
-e LLM_MODEL=gpt-4o-mini \
-e OPENAI_API_KEY=sk-...
A session-start hook will automatically install, prompting Claude to use the memory system.
Examples
A-MEM exposes several tools for coding agents and can also be used directly via its Python API.
Agent Tool Usage (Conceptual):
# Store a memory (returns task_id immediately)
add_memory_note(content="Auth uses JWT in httpOnly cookies, validated by AuthMiddleware")
# Search later
search_memories(query="authentication flow", k=5)
# Deep search with connections
search_memories_agentic(query="security", k=5)
Python API Usage:
from agentic_memory.memory_system import AgenticMemorySystem
memory = AgenticMemorySystem(
llm_backend="openai",
llm_model="gpt-4o-mini"
)
# Add (auto-generates keywords, tags, context)
memory_id = memory.add_note("FastAPI app uses dependency injection for DB sessions")
# Search
results = memory.search("database patterns", k=5)
# Read full details
note = memory.read(memory_id)
print(note.keywords, note.tags, note.links)
Why Use A-MEM?
A-MEM offers several compelling features that enhance the capabilities of coding agents:
- Self-Evolving Memory: Memories are not static. When new knowledge is added, A-MEM automatically finds related memories, strengthens connections, updates context, and evolves tags, creating a dynamic knowledge graph.
- Semantic + Structural Search: It combines vector similarity with graph traversal, allowing agents to find memories by meaning and then explore their interconnected relationships for deeper insights.
- Peek and Drill: This feature enables efficient token usage by first capturing relevant memories via lightweight metadata (ID, context, keywords, tags) using breadth-first search. Agents can then drill depth-first into specific memories for full content, maximizing recall while minimizing token costs.
Links
- GitHub Repository: https://github.com/DiaaAj/a-mem-mcp
- PyPI: https://pypi.org/project/a-mem/
Related repositories
Similar repositories that may be relevant next.

Agent Sandbox: Secure Local Development for AI Coding Agents
August 17, 2026
Agent Sandbox provides a robust and secure local development environment specifically designed for collaborating with AI coding agents. It ensures minimal filesystem access, configurable network egress policies, and secure secret injection, protecting your local machine from potentially risky agent operations. This project supports various AI agents and integrates seamlessly with both CLI and popular IDE devcontainer setups.

AMD Skills: Empowering AI Agents with AMD's Optimized Software Stack
August 16, 2026
AMD Skills is the official catalog of AI agent skills from AMD, designed to empower AI agents with optimized software for AMD hardware. This repository provides knowledge, scripts, and conventions for working with AMD's stack, enabling seamless integration with major coding agents like Cursor, Claude Code, OpenAI Codex, and Gemini CLI.

agent-tackle-box: A Terminal Debugger for LangGraph & LangChain Agents
August 15, 2026
agent-tackle-box is a comprehensive toolkit for developing AI agents, featuring the powerful `agent-debugger`. This terminal debugger provides deep insights into LangGraph and LangChain agents. It allows developers to inspect state, monitor tool calls, and step through Python code, all within a unified Textual UI.

ADR: Uber's Enterprise Security System for AI Agents
August 14, 2026
ADR (Agentic AI Detection and Response) is an enterprise security system developed by Uber to secure AI agents. It offers critical capabilities like observability, security benchmarking, and threat detection, ensuring the safe operation of both employee and customer-facing AI applications. This open-source project is deployed in production at Uber and was accepted to MLSys 2026.
Source repository
Open the original repository on GitHub.