Anamnesis
A local-first interoperability layer that imports, normalizes, indexes, and serves existing agent memory across tools.
Anamnesis is not another memory product that asks users to start over. It is the bridge for memory that already exists in agent runtimes, SDKs, local caches, SQLite databases, JSON files, Markdown workspaces, and MCP resources.
Overview ·
Supported Sources ·
Architecture ·
Quick Start ·
CLI ·
Blueprint ·
Discord
Part of Ghast
Anamnesis is part of Ghast.
Ghast AI — private expertise, callable by agents. We're building the protocol that lets experts and teams offer their know-how as services AI agents can find, trust and pay for, starting with Ghast Workbench, our desktop AI agent workspace.
Links
Overview
Agent memory is fragmented. A user may have months of context in Codex, structured memories in mem0, sessions in Claude Code, and workspace notes in OpenClaw. These systems usually store memory in different formats and locations, so the context cannot move cleanly between agents.
Anamnesis solves that interoperability problem:
- Import existing memory from supported local stores and registered MCP resources.
- Normalize records into a shared schema with provenance, source identity, scope, timestamps, and content chunks.
- Index locally with SQLite FTS plus optional embeddings.
- Serve memory back to agents through CLI search, export, and MCP tools.
- Keep ownership at the source: the original agent or framework still creates the memory; Anamnesis aggregates and retrieves it.
This README describes the current source tree. “Supported” means an adapter crate and a CLI import path exist. It does not mean every upstream format has perfect semantic extraction yet. Precision varies by adapter, and the limitations section calls out the important gaps.
Current Surface
| Area | Current implementation |
|---|
| Language | Rust workspace, MSRV 1.85 |
| Binaries | anamnesis CLI and anamnesis-mcp server |
| Storage | SQLite metadata, chunks, audit events, lineage, FTS search |
| Retrieval | Keyword, vector, and hybrid search with source, instance, kind, scope, and time filters |
| Embeddings | Local deterministic embeddings by default, provider-ready interface |
| Import | Shared importer service used by CLI and MCP admin import path |
| Auto-sync | anamnesis watch daemon keeps the store current — fs-watches local sources, polls URL sources, refreshes embeddings; optional auto-start at login (launchd/systemd) |
| MCP | stdio and HTTP/SSE transports; search, read, list, doctor, watch_status, and gated admin import tools |
| Extraction | Session extraction crate and CLI command with mock/OpenAI/Anthropic provider options |
Supported Sources
anamnesis discover probes known local conventions for local adapters. anamnesis source add ... --path ... or --url ... is the authoritative way to register a source when the default detector is not appropriate.
Agent Runtimes