What is Acontext?
Acontext is an open-source skill memory layer for AI agents. It sits in the Agent Memory category of the Agents & Automation tools and is open-source, written in JavaScript and licensed Apache-2.0. To get started: install the SDK.
Overview
Acontext is an open-source skill memory layer for AI agents. It watches an agent's runs, and when a task completes or fails it distils what worked, what did not and which user preferences showed up, then writes that back as agent skill files. The premise is that if agent skills can already represent the knowledge an agent needs as plain files, memory can use the same representation instead of a separate opaque store.
That choice is what makes the memory inspectable. Skill memories are Markdown, so they can be read, edited by hand, diffed in git, grepped and mounted into a sandbox, and they work with any framework that can read a file — LangGraph, Claude, the AI SDK or something you wrote yourself. There are no embeddings to regenerate and no API to be locked into; exporting the whole memory is a ZIP download, and the export runs unchanged against a different agent or a different model.
Recall deliberately avoids semantic search. Instead of a top-k lookup you give the agent skill content tools — `list_skills`, `get_skill` and `get_skill_file` — and it fetches what it decides it needs, so retrieval is tool use and reasoning rather than a similarity score. You control the shape of the store by attaching more skills: a `SKILL.md` defines the schema, naming and file layout, so you can specify one file per contact or one per project and let Acontext handle extraction, routing and writing into that structure.
What it does
- Automatic capture: task completion or failure triggers an LLM distillation pass over the conversation and execution trace
- Memory stored as agent skill files in Markdown — readable, hand-editable, git-friendly, greppable
- Framework-agnostic by construction: anything that can read a file can consume the memory
- Progressive disclosure via `list_skills` / `get_skill` / `get_skill_file` rather than embedding search
- Schema you define: attach a `SKILL.md` to set the structure, naming and file layout of the store
- Export the whole memory as a ZIP and run it against another agent or LLM with no re-embedding step
- Python package on PyPI and a JavaScript/TypeScript package on npm
Getting started
Acontext ships as an SDK in both ecosystems, plus a CLI. The fastest path with a coding agent is to let it read the project's own skill file and wire itself up.
Install the SDK
Pick the ecosystem your agent is written in.
# Python
pip install acontext
# JavaScript / TypeScript
npm install @acontext/acontextOr let Claude Code install it for you
The project publishes its own setup instructions as a skill file; pointing a coding agent at it is the documented shortcut.
Read https://acontext.io/SKILL.md and follow the instructions to install and configure AcontextDefine the shape of the memory
Attach a `SKILL.md` describing the schema, naming and file layout you want — one file per project, one per contact, whatever fits. Acontext does the extraction, routing and writing into that structure.
Give the agent the recall tools
Expose `list_skills`, `get_skill` and `get_skill_file` to your agent. On the next run it decides what it needs and fetches those skill files itself, so the relevant memory enters context by tool call rather than by similarity search.
Commands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Let a long-running agent learn from its own failures without a vector store you cannot inspect
- Audit or correct what an agent 'remembers' by opening a Markdown file and editing it
- Carry a memory built with one agent over to a different framework or model by copying files
- Version agent memory in git so changes to what the agent knows show up in review
How Acontext compares
Acontext alongside other open-source agent memory tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| Claude-Mem | ★ 121k | Persistent memory layer for coding agents: it captures what an agent does during a session, compresses it into semantic summaries, and injects the relevant parts back into later sessions. |
| Mem0 | ★ 69.7k | A memory layer that you add to existing LLM agents to extract, store, and recall user facts and preferences across sessions using vector, graph, and key-value backends. |
| Hindsight | ★ 64.3k | An agent memory server that stores facts and experiences, consolidates them into observations and mental models, and serves them back through retain, recall, and reflect operations. |
| MemPalace | ★ 60.8k | Local-first agent memory that stores conversations verbatim instead of summarising them, with a structured palace index, pluggable vector backends and an MCP server. |
| OpenViking | ★ 43.1k | A context database that stores an agent's memories, resources, and skills as one browsable viking:// filesystem with three-tier (abstract/overview/details) on-demand loading. |
| Cognee | ★ 33.7k | A graph-native memory engine that turns raw documents and conversations into a queryable knowledge graph for agents that need to build lasting knowledge. |
| Graphiti | ★ 33.2k | A library that builds a temporal knowledge graph from an agent's conversations and data so facts can be tracked and queried as they change over time. |
| Acontext | ★ 3.7k | Agent memory stored as editable skill files instead of opaque embeddings |
