Durable memory with sources, proof, history, and review for MCP-capable agents.
Evermatter turns an owned Markdown/Obsidian vault into a local knowledge substrate
for Codex, Claude Code, Cursor, chatbots, CLI agents, and any client that can
call MCP tools. Your files stay plain, local, portable, and editable outside the
server.
Either one installs uv, installs Evermatter, and walks you through evermatter setup,
which wires up every agent client on the machine — Claude Code and Codex both
get the MCP server, all ten skills, and the capture/retrieve hooks.
Safe to run again later — it skips whatever's already done. If it can't prompt
you interactively (e.g. run from another script), it prints the exact command to
run next instead of guessing. Prefer to run each step yourself? See below or the
full manual walkthrough in
QUICKSTART.md.
Claude Code: install as a plugin
The plugin carries the skills and hooks. Its MCP entry is an optional shared
HTTP URL; it deliberately does not auto-start a full stdio server in every
Claude Code session:
For local-only use, run evermatter setup --vault "/path/to/vault" --stdio.
Stdio is intentionally explicit because each client session owns its process
and can load its own embedding runtime.
The plugin was called exomem before the rename, and the marketplace keeps that name.
Claude Code moves an installed exomem plugin to evermatter on its own and tells you once.
For a plugin from Git, run /plugin install evermatter@exomem once to finish the move.
Then run /reload-plugins or restart Claude Code before you rerun setup.
The plugin's server key changed from exomem to evermatter too. Claude Code stores a
URL server's sign-in under that name, so you sign in again once:
Run /mcp in Claude Code.
Choose evermatter.
Finish the sign-in in your browser.
If the plugin has an MCP URL, its first session after the move shows a notice with this step.
The old token stays valid, and the hooks keep captures in a queue until you sign in.
The plugin's tools are now named mcp__plugin_evermatter_evermatter__*.
The skills inside it are evermatter-*.
Move an existing install to the Evermatter names
After you update the package, an install made before the rename keeps working until you run
evermatter setup or evermatter install-skill. Its exomem server key, tool names,
hooks, permission rules and managed instruction block still match. Those two commands
install the evermatter skills. They move each old exomem skill folder, with your
edits, to exomem-retired-skills beside the client's skills folder, where the client
does not load it.
To rename the server key and the instruction block too, run:
evermatter setup --migrate
Setup renames the exomem server key to evermatter in Claude Code and Codex, for stdio and URL servers.
For each URL server it renames, setup prints the sign-in step to use if the server shows as not connected. Both clients store a sign-in under the server name, so you sign in once.
A URL server that points at Evermatter Cloud keeps its exomem key. It moves with the Cloud plugin's address change, so you sign in once.
It rewrites the managed instruction block in CLAUDE.md and AGENTS.md.
It adds the mcp__evermatter__ prefix beside the old one in explicit checkpoint bindings.
It backs up each file it changes beside the original, once per run, as <file>.exomem-bak.
Restart Claude Code and Codex.
Claude Code keeps a project's local registration per directory. The command renames
the one for the current directory and lists the others. Run it in each of those
directories. A new install registers the evermatter key from the start, because
a new registration has no stored sign-in.
After the rename, if a server shows as not connected, sign in:
In Claude Code, run /mcp and choose evermatter.
In Codex, run codex mcp login evermatter.
The old token stays valid on the server, and the hooks keep captures in a queue until you sign in.
claude mcp remove deletes Claude Code's local copy of that token, so a restore from the
.exomem-bak backup also needs a new sign-in.
Setup never edits a permission rule or hook that you wrote. A rule that names
mcp__exomem__* stops matching for a server that the command renamed. Change it to
the mcp__evermatter__* prefix. A rule that names mcp__plugin_exomem_exomem__* stops
matching once the plugin is evermatter. Change it to mcp__plugin_evermatter_evermatter__*.
A rule still matches while a client holds an exomem server or Claude Code enables an
exomem plugin. evermatter setup --migrate and evermatter doctor list each rule
that nothing answers any more, with the file that holds it. Settings use the EVERMATTER_* prefix; see Configuration.
claude.ai and ChatGPT
Neither platform can install skills programmatically — upload is manual. Build
the archives, then upload them in the client's settings:
Point the client at your server as a connector (see
docs/remote-quickstart.md). Neither platform has a
hook system, so capture there is skill-driven rather than automatic.
Replace <version> with the newest release on
PyPI. An existing install named exomem
keeps upgrading under that name: rerun the one-line installer or
uv tool upgrade exomem, and do not install evermatter beside it.
evermatter --version --json is a model-free provenance check, so it also works in
the intentional lean CLI paired with a fuller managed service.
One command does the whole local setup: the wizard scans your vault and shows
what's already there, initializes Knowledge Base/, runs the doctor
preflight, registers the server with every client it detects (Claude Code and
Codex), and installs the skills into each. Last, it offers Evermatter's learning
instruction for each client's CLAUDE.md or AGENTS.md, and writes it only if
you agree. The instruction asks the agent to recall Evermatter before a task and
save what it learns.
If cwd .env or the process contains EVERMATTER_BASE_URL, setup registers its
canonical /mcp endpoint with Claude Code and Codex so they share the existing
service. Otherwise it uses the explicit local stdio fallback. Use --mcp-url
to choose a service directly, --stdio to force local stdio, and
--replace-client-registration when you deliberately want to replace an
existing manual route. Native clients handle OAuth; setup never stores bearer
tokens.
Config files it did not create are treated as yours: it merges rather than
overwrites, backs the file up first, and prints the diff.
Already have a vault full of notes? That's the normal case: adopt gives a
scan-first, read-only report of what's there, suggested knowledge packs, and
safe copy/compile-planning next actions. Evermatter only ever writes under Knowledge Base/ — your
existing files stay untouched unless you explicitly copy or compile selected material. See
QUICKSTART.md § Already have a vault full of notes?
for the full contract, including daily-notes vaults. Re-running setup is
safe; completed steps report [skipped]. Non-interactive:
evermatter setup --yes --vault "/path" --lean (add --learning-instruction to
place the learning instruction as well).
The individual steps (evermatter init / doctor / install-skill /
install-hook, plus claude mcp add) still exist as the manual path — see
QUICKSTART.md.
The skill installs under the Claude Code name exomem — the same name as the
connector, so skill, server, and tools all read as one product. The skill is
recommended for Claude Code —
the server gives Claude the tools, the skill is what makes it use them. Hooks
are local-client reliability helpers for Claude Code and Codex: a read-side
reminder before answers, a write-side reminder at natural stopping points, and
a shared local continuation checkpoint around compaction. The checkpoint stores
bounded structural evidence (repository state, artifact hashes/counts, and
transcript provenance hashes), never conversation, tool, summary, or artifact
content. It needs no MCP connection or Evermatter credential.
The read-side hook suppresses obvious control/status prompts like continue,
merge it, and are you done?, and can optionally upgrade that reminder to real
retrieved KB content (EVERMATTER_RETRIEVE_INJECT=1, opt-in; the legacy
KB_RETRIEVE_INJECT name still works) — or, with
EVERMATTER_RETRIEVE_INJECT=working_set, to a compiled recall_context packet
under a data header, bounded by EVERMATTER_RETRIEVE_INJECT_MAX_CHARS (default
4,000). For Codex, run
evermatter install-hook --client codex; for Claude Code, evermatter install-hook —
see
QUICKSTART.md § 7.
Both clients checkpoint on manual or automatic PreCompact and reinject on
SessionStart(compact|resume); Claude also checkpoints on SessionEnd. Pinned
Codex CLI 0.144.3 has no SessionEnd hook, so Evermatter does not invent one.
Other MCP clients can still use the server. If they do not support Skills,
have them call read_instructions() once at the start of the session; it returns the
same compact operating contract through MCP, including when to search, when to
save, workflow-skill discovery, upload guidance, and performance profiles. It
also teaches the authoring loop: search first, draft the typed note, run
suggest_links, write with the right tool, inspect warnings/suggestions, then
report the path.
How eagerly it does that is tunable: four prominence levels (off / light /
balanced / maximal), set with evermatter prominence <level> or pasted into a web
assistant's custom instructions. Clients with hooks default to balanced; web and
hosted default to maximal, because nothing there re-arms the check between turns.
See docs/prominence.md for the levels and the copy-paste
blocks.
Remote OAuth uses GitHub once to prove the configured login plus immutable user
ID, then issues an Evermatter-owned durable session. Operators can inspect and revoke
those sessions with evermatter auth sessions, evermatter auth revoke <session-id>,
and evermatter auth revoke --all; session administration is never an MCP tool.
The product model is intentionally simple: built-in AI memory remembers preferences and routing, while Evermatter stores durable governed knowledge with sources, proof, history, decisions, records, and review. See docs/product-model.md for the full mental model, docs/records.md for human-owned longitudinal Records, docs/tui.md for the interactive terminal UI (evermatter tui, optional tui extra), docs/review-studio.md for the packaged browser review loop, docs/epistemic-inbox.md for daily review and relation repair, docs/knowledge-packs.md for pack/admin details, and docs/workflow-skills.md for the named agent workflows.
For development, or to run the sample vault from a checkout instead of a
package install:
git clone https://github.com/substrate-systems/evermatter.git
cd evermatter
uv sync
uv run evermatter demo
After connecting, ask the agent to call read_instructions() before using the KB. Claude
Skills are still the best UX where available, but read_instructions() lets generic MCP
clients learn Evermatter's search/save/upload contract without a separate skill file,
including the write loop for compiled notes.
See docs/ai-assistant-guide.md for the copyable
standing instruction.
Docker (no Python on the host)
Images moved. Releases publish to ghcr.io/substrate-systems/evermatter.
The old ghcr.io/artexis10/exomem tags stop at the last release before the
rename and receive no updates. Change the image name in your docker run
lines and compose files to keep upgrading.
claude mcp add evermatter -- docker run -i --rm -v "/path/to/vault:/vault" -e EVERMATTER_VAULT_PATH=/vault ghcr.io/substrate-systems/evermatter:latest --transport stdio
Use :latest for the lean keyword/BM25 image, :ml for CPU hybrid search, or
:cuda for NVIDIA/Linux CUDA capability. CUDA images still boot CPU-default at
idle; opt into GPU residency with EVERMATTER_MODE=performance when you want it.
The image also runs as an always-on remote server via docker compose with a
tunnel sidecar — see docs/docker.md. Windows users with a live
vault should usually prefer the native install (WSL2 bind mounts miss live
file-watch events). macOS cannot serve a vault today: exomem's held-filesystem
substrate, which every governed write acquires a reserved-path root through, has
a Linux backend and a Windows backend and no darwin implementation, so exomem
refuses there and evermatter doctor says why.
The first start downloads search models in the background — find works
immediately with keyword ranking and upgrades to semantic search automatically
once the models land. Run evermatter warm to pre-download them ahead of time.
Resource modes
Evermatter is CPU-first by default so an idle server does not quietly occupy GPU
memory. Control the machine footprint without editing code:
evermatter mode quiet # low-resource: no heavy warm-up, evict caches, defer semantic reindex
evermatter mode normal # default: CPU steady-state, warm CPU caches allowed
evermatter mode performance # explicit opt-in for GPU-capable bulk/model work
evermatter status --resources --json
Use quiet before gaming or other foreground workloads. Keyword/BM25 freshness,
file-change freshness, inbound links, and resolver state stay live; expensive
semantic/CLIP reindex work can be deferred and is reported in resource status.
Run evermatter index or kb reconcile later to heal deferred semantic work.
Automatic quiet switching is optional. Its watcher skips GPU pressure queries
when you select quiet manually, pin a mode with EVERMATTER_MODE, or disable
EVERMATTER_AUTO_QUIET. Automatic quiet still monitors pressure so it can restore
the previous mode.
On affected WSL/NVIDIA systems, repeated Linux nvidia-smi processes can grow
the Windows driver's kernel memory and disrupt foreground work.
Microsoft WSL issue #12756
records a reproduction. For older Evermatter versions, a service configured with
EVERMATTER_AUTO_QUIET=0 stops its watcher after that service restarts.
An empty CUDA_VISIBLE_DEVICES also disables GPU work and GPU headroom queries.
These settings do not require a Windows reboot; existing driver state may remain.
What it does
Searches the vault you already own. Markdown stays in place; exomem does
not import copies into a proprietary note store.
Adopts messy vaults safely.adopt starts with a read-only report and
explicit copy and compile-planning options, so originals remain archival until you choose.
Retrieves across text and media. Markdown, PDFs, Office docs, images,
screenshots, audio, and video can become searchable through local extraction.
Keeps sources separate from conclusions. Raw captures, compiled notes,
entities, evidence, and superseded conclusions live in typed folders.
Surfaces review work. Audit and attention queues can show unprocessed
sources, stale notes, broken links, and close-by claims worth reviewing.
Measures, never judges. The server does deterministic work: search,
extraction, ranking, embeddings, file writes, and graph checks. Reasoning stays
in the client model.
Why use it
Most AI note tools make you move into their app or ingest your files into their
store. exomem works the other way around: agents come to your vault.
Compared with
Difference
Doc-chat / RAG apps
exomem works over live files instead of imported copies.
Measured retrieval quality — and speed. Retrieval is graded by a
reproducible golden-set eval harness, not asserted, and latency is measured
per lane at corpus scale: hybrid find() runs sub-second end-to-end at
50,000 notes (864 ms on the reference desktop, hot cache off), with the
keyword/BM25 lanes served from an FTS5 sidecar index in milliseconds —
built into stdlib SQLite, so it works on the lean install too. Methodology
and numbers in docs/benchmarks.md.
Simple front door
Agents should route normal user requests through simple actions first, then use the typed tools underneath.
Action
Use when the user says
Backed by
Save
"remember this", "log this", "this is a decision"
add, note, link, preserve
Adopt/import
"make this old vault usable", "import my notes safely"
adopt, overview
Ask
"what do we know about X?", "show the sources"
find, get
Prove
"save this for the warranty case", "show the evidence"
preserve, upload/download, find
Review
"what needs cleanup?", "what is stale?"
attention, audit, propose_compilation
Update
"this replaced the old conclusion", "fix that note"
edit, replace, reconcile
Connect
"link this to X", "what should this cite?"
link, suggest_links
Plan
"save this feature idea", "file this bug for later", "what matters this week"
plan_memory with inspect, create, query, add, update, or triage
Record
"log this session", "record this measurement", "update the mileage"
record_memory with inspect, create, query, append, or update
Core tools
exomem exposes typed MCP tools for common knowledge-base work:
Tool
Purpose
recall_context
Compile durable context for a raw turn, with no query: returns a map or resolves which anchors the turn is about, with a bounded working-memory packet, or abstains.
episode_memory
Record a bounded recap of what a conversation worked on, decided and left open, so the next session on any client sees it first; inspect an episode's revisions.
find
Search notes, sources, entities, and evidence with type/project/tag filters.
get
Read a full page or frontmatter.
add
Capture a raw source page.
note
Create compiled notes: research note, insight, failure, pattern, experiment, or production log.
edit
Patch an existing compiled page.
replace
Supersede an old conclusion with a new one and preserve the link between them.
preserve
Store binary or text evidence append-only.
audit
Check graph and corpus health.
attention
Surface review queues such as stale notes, close-by claims, and unprocessed sources.
overview
Bounded, read-only structure report of the vault or a subtree — works outside Knowledge Base/ and before init.
adopt
Existing-vault adoption: scan-only by default; can save a manifest, copy selected legacy text files as Sources, or return a compile plan while preserving originals.
record_memory
One front door for human-owned observed state: inspect, create, query, append, or targeted update a governed Record collection.
plan_memory
One front door for human-owned intended future state: inspect, create, query, add, update, or triage a Planning collection.
Tier-2 tools cover governance administration and filesystem escape hatches such
as listing directories, creating files, moving pages, trashing files, and
recovering from trash. Set
EVERMATTER_DISABLE_TIER2=1 if you want a smaller tool surface.
Every write records durable history in Knowledge Base/log.md. Service calls
also go to logs/exomem.log.
One operation, three doors
Every operation is declared once and exposed through:
MCP for agents.
CLI for terminal and scripts.
REST for personal HTTP integrations when EVERMATTER_REST_API_KEY is set.
Multimodal by default, resident only while working
The native release-service command installs the standard profile: local
embeddings, PDFs/Office documents, OCR bindings, ASR, and CLIP. Heavy models are
not loaded at service startup. Media jobs enter a durable queue, run serially in
one disposable child process, and the child exits after five idle minutes so its
RAM and MPS/MLX/CUDA state return to the host.
Manual/source installs can select the same capabilities directly:
uv sync --extra embeddings
uv sync --extra media
embeddings: local text embeddings plus CLIP image search.
media: OCR for images, PDF extraction, Office document extraction, and
faster-whisper ASR for audio/video.
CSV, TSV and JSON evidence uploads get dataset source cards for discovery and
exact queries. YAML, JSONL, XML and TOML exports get bounded text previews.
These paths need no optional extras; see source formats
for limits and governance behavior.
lean and hybrid remain available for constrained machines. Generated image
captioning and speaker diarization are advanced opt-ins, not requirements for
the standard multimodal path.
System tools: Tesseract is required for image OCR. On Windows:
winget install --id UB-Mannheim.TesseractOCR -e
GPU acceleration is useful but not required. Steady-state torch models default to
CPU in normal and quiet; performance is the explicit opt-in for capable
NVIDIA CUDA or Apple Silicon MPS/Metal paths. See
docs/deployment.md for CUDA, Blackwell, Apple Silicon,
diarization, and remote-service details.
Configuration
The server reads environment variables or a .env file. The main ones are:
Variable
Purpose
EVERMATTER_VAULT_PATH
Vault root containing the governed folder (default Knowledge Base/).
EVERMATTER_KB_DIRNAME
Name of the governed folder inside the vault (default Knowledge Base).
EVERMATTER_DISABLE_EMBEDDINGS
1 forces keyword/BM25-only search.
EVERMATTER_RECALL_MODEL
Names the recall encoder. Default: BAAI/bge-m3 on a personal server and a cloud cell, BAAI/bge-base-en-v1.5 on a hosted cell. A vault whose vectors came from another model is re-embedded in the background.
EVERMATTER_RECALL_REEMBED
off builds no new sidecar. A personal server keeps serving the old sidecar with its model; a cell keeps dense recall off.
Force all torch models to cuda, mps, or cpu. Normally leave unset and use evermatter mode.
EVERMATTER_MPS_FP16
On Apple Silicon, run bge/CLIP in fp16 on the Metal GPU — ~half the memory, faster encodes (default on; set 0 to keep fp32).
EVERMATTER_VIDEO_SCENE_FRAMES
Set to enable video scene detection + persisted, OCR'd scene-frame JPEGs (default off).
EVERMATTER_VIDEO_SCENE_THRESHOLD
Scene-boundary hash threshold in bits of 64 (default 10).
EVERMATTER_VIDEO_SCENE_MIN_SECS
Minimum scene duration in seconds; closer boundaries merge (default 4).
EVERMATTER_SEMANTIC_SEGMENTS
Set to enable timed transcripts + semantic segment retrieval for audio/video (default off).
EVERMATTER_WHISPER_MODEL
faster-whisper model size for ASR, such as base or small.
EVERMATTER_ASR_BACKEND
ASR engine: mlx (Apple Silicon Metal GPU, needs the media-mlx extra) or faster-whisper (CUDA/CPU). Default auto-selects MLX on Apple Silicon, else faster-whisper.
EVERMATTER_ASR_LANGUAGE
Language code to force for speech transcripts, such as et. Unset means the engine detects the language on speech. A reprocess request with a language takes precedence. A code the speech model does not publish fails the job.
EVERMATTER_MLX_WHISPER_MODEL
HF repo for the MLX ASR model (default mlx-community/whisper-large-v3-mlx; use mlx-community/whisper-large-v3-turbo for speed).
EVERMATTER_TESSERACT_CMD
Path to the tesseract binary if not auto-discovered.
EVERMATTER_CLAIM_LEVEL
1 enables the claim-level subsystem (default off).
EVERMATTER_CLAIM_POLARITY_NLI
1 opts into the frozen stance verifier (default off). It still runs only if the exact repository-pinned revision and declared artifact manifest are resident and verified.
EVERMATTER_CONTRADICTION_TOP_N
Caps the surfaced contradiction queue and therefore verifier enrichment (default 40; 0 is uncapped). This is the sole polarity-work bound.
EVERMATTER_CLAIM_NLI_MODEL is retired. Model identity comes only from the
in-repo pin registry; a value left in it selects nothing and is reported as
ignored by evermatter doctor.
The shipped pin is the multilingual
MoritzLaurer/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7
checkpoint at one exact upstream revision. Its admission fixtures check English,
German, French, Estonian, and mixed English/Estonian examples. That is bounded
evidence for those examples, not a promise of equal quality across every language
in the model card. Its labels are NLI relations: contradict, duplicate,
refine, or neutral. neutral includes unrelated, compatible, and uncertain
pairs; it never means “proved unrelated.”
Degradation modes
Optional tiers are absent by default and degrade to silence, not to a
substitute. What "absent" means, per tier:
Tier
Install
When absent
Semantic search
--extra embeddings
Keyword/BM25 retrieval; every surface still answers.
Media extraction
--extra media
Server-side OCR/ASR/PDF extraction is skipped; the model-driven upload text path still works.
Vector KNN (sqlite-vec)
with embeddings
Exact in-memory scan over the same vectors; identical results, more work.
Frozen stance verifier
--extra nli
Review-queue entries carry no model polarity label — never a differently-produced label under the verifier's name. Write responses, rankings, and every other surface are byte-identical to a build with no verifier tier at all; only evermatter doctor names the absence. The verifier runs only under an exact pinned revision and artifact-manifest digest, a versioned label map, and a green bounded multilingual fixture set, and it labels review-queue entries only. Hosted cells do not install or enable it.
Every setting takes the EVERMATTER_ prefix. The earlier EXOMEM_ and KB_MCP_
prefixes still work as aliases, so an existing .env or service file needs no
change. When one setting holds different values under two names, EXOMEM_ wins
over EVERMATTER_, and EVERMATTER_ wins over KB_MCP_. The service logs a
warning only when an EVERMATTER_ and an EXOMEM_ name differ; a KB_MCP_ name
that loses is ignored silently. For VAULT_PATH, STATE_ROOT and
HOSTED_STATE_ROOT, that difference stops the service instead. To settle it, set
the value once, under its EVERMATTER_ name, and remove the other name.
import exomem and python -m exomem likewise keep working as deprecated aliases.
Remote-only variables and full deployment notes are in
docs/deployment.md.
Project status
Evermatter is packaged on PyPI and follows the version policy in
docs/release.md. Run evermatter to use the CLI. Existing
scripts can still use exomem or kb.
License
Release v0.202.0 renamed Exomem to Evermatter
and changed the licence for the server, CLI and container images to FSL-1.1-ALv2.
The server, CLI and everything not listed below, except third-party files that carry their own
licence, are source-available under the
Functional Source License, Version 1.1, ALv2 Future License (FSL-1.1-ALv2).
Self-hosting is free, and so is every other use except a commercial product or service that
competes with it or with a service we offer using it. Each version becomes Apache-2.0 two
years after it is published. Earlier versions stay AGPL-3.0-or-later;
the licence change says what changed and from which release.
Path
Licence
plugins/ (the Claude Code and Evermatter Cloud client plugins)
The plugin hooks under plugins/claude-code/hooks/ are copies of src/exomem/_hooks/. The
source stays FSL-1.1-ALv2; the copies the plugin ships are Apache-2.0.
Evermatter Cloud offers its source from the app and from the MCP handshake, which names the
running release and this repository. The names Evermatter and Substrate Systems follow
TRADEMARK.md. Contributions need a signed CLA.
docs/cloud-security-model.md lists Evermatter Cloud's security claims and the evidence behind each one, with its limits.
Works well with
Use together with exomem: extensions, drivers, servers and companion tools.