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.

Tau: A Minimalist Python Coding Agent for Your Terminal
September 8, 2026
Tau is a Python port of Pi's minimalist coding agent, designed to live in your terminal. It allows users to make requests like "explain this repo" or "add tests," and it can read files, edit code, and run commands. Beyond its utility, Tau also serves as a teaching project, demonstrating how coding agents are built with a small, readable codebase.

Awesome Harness Engineering: Building Reliable AI Agent Systems
September 7, 2026
Awesome Harness Engineering is a comprehensive curated list dedicated to the discipline of designing robust AI agent harnesses. It offers a wealth of resources, patterns, and templates essential for building reliable AI agent systems. Developers can explore tools, best practices, and foundational concepts across various critical areas of agent development.
Best of Agent Harnesses: A Curated List for AI Agent Development
September 7, 2026
RyanAlberts' Best of Agent Harnesses is a comprehensive, curated, and ranked list of over 100 AI agent harnesses and orchestration frameworks. It provides valuable insights for building reliable agentic systems, offering both human-readable guides and machine-readable formats for agents themselves. The repository is rescored weekly to ensure up-to-date recommendations.

Wasm Agents Blueprint: Run Python AI Agents in Your Browser with WebAssembly
September 3, 2026
Wasm Agents Blueprint is an innovative project from Mozilla AI that allows you to run Python-based AI agents directly in your web browser using WebAssembly (Wasm) and Pyodide. It bridges the gap between powerful Python AI frameworks, like the OpenAI Agents SDK, and browser-based applications. This blueprint eliminates the need for complex server setups or Docker containers, offering a streamlined way to experience AI agents.
Source repository
Open the original repository on GitHub.
12 counted GitHub visits