Hypermnesic
Read-only access to a Markdown vault: search and recall notes, inspect graph context, resolve entities, explore topics, discover folders, and read note contents.
search: hybrid lexical + semantic retrieval over the index, returning ranked hits with paths, headings, scores, channels, snippets, and recency;
kcontrols hit count.hypermnesic_search: identical namespaced alias for clients that auto-prefix tool names.
build_context: expand a note via incoming/outgoing wikilinks up to a chosen depth.
resolve: map an entity/page name to an existing vault path or null if ambiguous/missing.
think: explore a topic with related notes, Socratic prompts, and unlinked related pairs without writing.
list_folders: discover folder taxonomy, writability, protected reasons, note counts, and AGENTS.md/CLAUDE.md guidance.
read_note: read full markdown content of a committed, indexed note by repo-relative path; out-of-vault/non-indexed paths return not found.
Search/think outputs include degradation and manual-reindex signals; all tools are read-only, and no write/commit tool is exposed in this schema.
Enables read-only access to the hypermnesic memory vault from within Obsidian via a companion plugin, allowing users to query and browse their agent-written notes and memories over the tailnet.
hypermnesic
One brain. Every AI. Yours.
Your second brain lives as plain Markdown in a Git repo you host. ChatGPT, Claude, and your coding agents — on your laptop and your phone — all read and write that same brain through one endpoint. Obsidian is how you browse it.
Here's the part that matters: because every AI keeps curating the same notes, your memory doesn't just persist — it compounds. Every fact captured, every correction, every link added makes the next answer from every assistant sharper. Per-app memory traps you in silos; one shared brain gets smarter each day — and it's plain files you own, not rows in a vendor's database.

Every memory is a real Git commit — reviewable, revertible, yours. The search index is a disposable projection of your files; delete it and rebuild it any time. A reindex can never lose a memory.
Who it's for: developers and power note-takers who want durable agent memory they own — plain files in their own Git history, reachable by every assistant, with no vendor lock-in.
Status: public v0.1.0 release. The engine is licensed under AGPL-3.0-only; the companion plugin ships from the separate GPL-3.0
hypermnesic-companionrepository.
Related MCP server: auxly-memory-cli
Why it compounds

Per-app memory fragments: what you told ChatGPT is invisible to Claude, your phone's assistant forgets what your laptop's agent learned, and none of it is yours to move. A shared brain does the opposite — it turns every interaction into a flywheel:
Capture — any AI writes a note: a decision, a fact, a person, a meeting.
Curate — any AI links it, corrects it, or adds context the next time it's relevant.
Recall — every other AI retrieves it on the next question.
Compound — the brain grows denser and more useful with every turn, for all of them.
Because every write is a reviewable Git commit, one assistant's curation is safe, visible, and revertible for all the others. The brain is shared and trustworthy.
One endpoint, every client
Point any MCP-capable app at your endpoint URL and it just works — OAuth is automatic (log in through the browser once, then silent refresh):
ChatGPT, Claude (desktop, mobile, web) — add a custom connector.
Claude Code / Codex — the bundled plugin.
Your own agents — any MCP client, same URL.
Obsidian — a read-only companion over your tailnet, for browsing and serendipity.
On the machine that holds the vault, skip the network entirely and use the hypermnesic CLI.
Setup details are in the Quick start below.
How it's different
Most "agent memory" keeps your memories in their store. hypermnesic keeps them as plain Markdown in your Git repo; the search index is a throwaway projection you can delete and rebuild at will. Everything else follows from that one choice.
Question | Hypermnesic | Hosted memory layers |
Source of truth | Markdown files in your Git repo | Service-managed memory store |
Writes | Git-first commits — reviewable, revertible | API/app-managed writes |
Reach | One self-hosted OAuth endpoint every client shares | Per-product API or app feature |
Compounding | Every AI curates one shared brain | Memory siloed per app |
How it sits next to tools you may know:
mem0 / Zep — memory APIs over a managed vector (and graph) store. Reach for them if you want a hosted memory service; reach for hypermnesic if you want your files to be the memory.
Hindsight — also open-source agent memory, but it lives in its own vector store you run via Docker/cloud, and it posts a higher LongMemEval score on a more lenient judge axis. hypermnesic optimizes for owned, auditable, compounding files, not a leaderboard rank — read the honest comparability envelope in
harness/BENCHMARKS.md.Honcho — complementary, not competing. Honcho models who you are (preferences, style, theory-of-mind); hypermnesic holds what you know, in files. Use both.
A database-backed personal brain — I built one before this. The database drifted from the files, and I couldn't fully trust or move it. hypermnesic is the rebuild: files are truth, the index is disposable.
Full tool-by-tool detail — including when hypermnesic is the wrong fit — is in why hypermnesic.
Try it in under 5 minutes
uv tool install hypermnesic
hypermnesic local-proof --demo-dir /tmp/hypermnesic-demoThat creates a tiny Markdown git repo, projects it into the disposable index, recalls the
repo-relative source note, and previews the exact commit_note write diff without writing
it. No account, no service.
The demo source is an asciinema cast. It uses only a
generated /tmp/hypermnesic-demo vault and placeholder-safe paths.
Quick start
A. Prove local memory works
Start on the machine that holds the vault. You need only a git repo of markdown
notes. Dense embeddings improve ranking when OPENAI_API_KEY is configured, but the
proof also works offline in lexical mode.
# 1. install the engine from PyPI
uv tool install hypermnesic
# 2. prove recall from your own markdown files, with a dry-run write preview
hypermnesic local-proof /path/to/your/vault
# or try a tiny generated demo vault first
hypermnesic local-proof --demo-dir /tmp/hypermnesic-demoThe proof path validates a git-backed vault, projects committed markdown files into the
disposable .hypermnesic/ index, asks a natural-language question, returns the
repo-relative source markdown path, and shows a commit_note dry-run diff without
creating a write commit. The success milestone is Local memory works.
B. Self-host the endpoint
After the local proof succeeds, bring the shared endpoint online for remote apps. You need
Tailscale installed and logged in (tailscale up); hypermnesic
uses Tailscale Funnel for public HTTPS + automatic TLS, so there is no reverse proxy or
cert to manage.
hypermnesic setup /path/to/your/vault \
--public-url https://<your-host>.ts.net/mcp
# later, diagnose without changing services, secrets, funnel routes, or git
hypermnesic doctor /path/to/your/vault \
--public-url https://<your-host>.ts.net/mcpsetup renders + starts a user service, generates an owner-only consent secret
(~/.config/hypermnesic-cloud/cloud.env, chmod 600), configures the Tailscale funnel
(the /mcp mount + the OAuth discovery well-knowns), then verifies the live HTTPS
discovery chain before reporting success. Re-running it converges to the same state.
It prints milestone checks, your endpoint URL, and login instructions. --resource
defaults to --public-url; pass it only when the OAuth resource identifier differs.
doctor and status report local index health, remote reach, OAuth discovery, auth
challenge, write availability, dense key source/state, vector coverage, and client-specific
next actions without mutating state. Read tools also expose degraded_reason; a dense fill
that meets a 429 halves the request batch and retries (0.25 s → 0.5 s → 1 s) before giving
up, and after a persistent failure provider calls cool down while lexical/graph results keep
serving.
Dense key lookup is repo-scoped: process
OPENAI_API_KEY wins, otherwise the target vault's gitignored .env is used even when the
command or MCP server starts from another working directory. Live OpenAI smoke checks stay
opt-in with --check-dense-live. Dense diagnostics keep credential state separate from
projection state: missing indexes point to initialization, and stale/absent vectors point to
hypermnesic converge /path/to/vault --now --json before a full reindex.
By default, new OAuth clients request read; admins can make new approvals request both
read and write with --default-client-scopes read write or
HYPERMNESIC_DEFAULT_CLIENT_SCOPES=read,write. Cloud access tokens last 48 hours
(HYPERMNESIC_TOKEN_TTL_SECONDS / --token-ttl); refresh stays 30 days.
C. Connect a client (any remote app)
Point the app's MCP server at your endpoint URL — that's it. OAuth is automatic:
Claude / ChatGPT (cloud connectors), Claude Code plugin, Codex: add the MCP server URL
https://<your-host>.ts.net/mcp. On first connect the app discovers the OAuth server, opens a browser once for you to authorize, then silently refreshes. The OAuth metadata supports both confidential clients and public clients registered without a client secret.Read vs. write: read access is the default unless the endpoint admin configures
--default-client-scopes read write/HYPERMNESIC_DEFAULT_CLIENT_SCOPES=read,write. To grant thecommit_notewrite tool, approve write on the consent page (type your approval token from~/.config/hypermnesic-cloud/cloud.env). The consent page shows exactly which scopes you're granting, lets you reject or cancel, and explains how to revoke later.Client control: after authorization, inspect or revoke known grants on the engine host with
hypermnesic clients list /path/to/vaultandhypermnesic clients revoke /path/to/vault <grant-id> --apply.Claude Code / Codex plugin: install the plugin in
plugin/and setHYPERMNESIC_MCP_URLto your endpoint — the bundled.mcp.jsonis discovery-only and carries no host or token. Seeplugin/README.md.Obsidian companion: read-only over your tailnet — point it at the tailnet read route
http://<tailnet-ip>:8848/mcp(no OAuth; tailnet membership is the boundary). It ships from the publichypermnesic-companionrepository under GPL-3.0-or-later; the first companion release is0.3.0. Seeobsidian-plugin/README.mdand the license boundary below.
D. Use it locally (on the engine host)
The host that runs the engine skips the network entirely and uses the CLI:
hypermnesic local-proof /path/to/vault # first local value proof
hypermnesic retrieve /path/to/vault "what do we know about X" # hybrid search
hypermnesic think /path/to/vault "topic" # thinking-mode
hypermnesic resolve /path/to/vault "Some Entity" # name → page path
hypermnesic commit-note /path/to/vault notes/x.md --body "…" # git-first write (preview; --commit to land)
hypermnesic memory list /path/to/vault # inspect/control memory
hypermnesic memory forget /path/to/vault notes/bad.md # preview source removal
hypermnesic clients list /path/to/vault # inspect OAuth client grantsE. Know what belongs in Hypermnesic
Hypermnesic is for durable project memory: source-grounded facts, decisions, procedures, raw captures, generated summaries with citations, and current-state mirrors that should survive the current session as markdown/git truth.
It is not the default home for short-lived session state or behavioural preferences. For example, "user likes terse replies" belongs in Honcho or another adjacent behavioural memory layer by default, not in Hypermnesic. Secrets, credentials, private keys, bearer tokens, and unreviewed sensitive material should not be written at all.
Before writing, preserve raw evidence or cite source paths. If the destination is unclear, discover
writable locations first (list_folders / hypermnesic list-folders); that discovery also returns
direct root-local AGENTS.md guidance, or fallback CLAUDE.md guidance, for the requested root
when present, with local absolute paths and endpoint URLs redacted from the returned guidance.
See the memory taxonomy guide.
F. Run the daily loop
For daily work, use the loop capture -> triage -> recall -> write -> review -> clean up.
hypermnesic capture /path/to/your/vault "raw observation"
hypermnesic daily-review /path/to/your/vaultThe daily review is a generated, review-gated dashboard proposal that shows capture backlog, recent writes, generated surfaces, recall-mode reminders, degraded/offline state, and cleanup next actions. See daily workflows.
How it works
A hybrid retrieval engine over a git-tracked markdown corpus, a git-first write path, and the surfaces built on top:
Hybrid retrieval — SQLite FTS5 (lexical) fused with sqlite-vec KNN (dense; OpenAI
text-embedding-3-largeat 1536 dims) via RRF, degrading gracefully to lexical-only when embeddings are down.One admission rule, reconciled — every index lane reads the same eligible set: tracked, stage-0 regular Markdown, not denied by root/nested
.gitignorerules under Git semantics, outside the hard-skip directories; a non-Git corpus keeps ordinary discovery. Each successful pass reconciles the projection against that set (at unchangedHEADtoo), so an ignored, vanished or non-regular path loses its chunk/doc/FTS/dense rows atomically, and a re-admitted file reappears without a Markdown diff. Untracked drafts stay on disk; stage one for an authoring-host lexical preview, commit for replica/dense recall.Authority tier, not new scoring — archive (
_archive/), review scratch and generated output (rootreports//state/, anyopenwiki/) are secondary: they follow primary hits and never pad a one/two-primary result. The RRF weights,k0, candidate budget and recency behaviour are unchanged.Read-time convergence — every read first catches the index up to
HEAD, invalidates doc-surface vectors for changed markdown files, and closes a bounded slice of the dense lag for chunks and doc surfaces (at most 32 of each), so recall stays fresh without a manual reindex. A re-chunked file keeps the vectors of its unchanged chunks, so only new or edited chunks enter the lag.Bounded dense drain —
hypermnesic embed --batch 32 --budget 32processes at most 32 successful chunk inputs and 32 doc surfaces per pass, commits every successful subrequest immediately (the next pass resumes only what is missing), and reports actual counts,stale_left/docs_stale_leftand a status discriminator as one validated JSON object. An unrecovered 429 exits nonzero with sanitized provider code/type andaccount_state: unverified;hypermnesic embedwithout--budgetstill drains the whole backlog.Two serving lanes —
a single public OAuth MCP endpoint at
/mcp(Tailscale-funnel'd HTTPS; OAuth 2.1 with DCR + PKCE; read tools always, the gatedcommit_notewrite tool by scope), used by every remote client the same way;a tailnet read companion (
:8848, auth-off) for the Obsidian companion and the proactive per-prompt hook on tailnet devices.
By default a write-enabled serve requires OAuth (
write_enabled ⇒ auth-required). The advanced--allow-tailnet-writeopt-in accepts tailnet membership itself as the write boundary — permitting an auth-off, write-enabled serve, but only on a Tailscale CGNAT address (100.64.0.0/10). A non-tailnet bind is still refused (it would be a public write hole), and everycommit_noteguard (the blocklist write surface, protected-path refusal, diff-or-die gate, audit log) still applies. Use it only when the tailnet is your trust boundary and the public OAuth lane carries all untrusted traffic.Write path —
commit_notetakes a caller-supplied repo-relative path and commits it to git through a diff-or-die frontmatter gate and a blocklist write guard (write-anywhere-under-guards: a note may land anywhere in the vault except the protected classes —.git/,.github/, agent-instruction files likeCLAUDE.md/AGENTS.md,scripts//hooks//skills/, and build/CI/credential files — which are refused regardless of any allowlist), single-writer locks, and an append-only audit log. An explicit allowlist is an opt-in way to narrow the surface, not the default guard. The index follows as a projection — a reindex never loses a write. Write requires auth (write_enabled ⇒ auth-required).Memory control —
hypermnesic memorylists and inspects remembered files, exports markdown plus provenance, previews and applies git-backed forget/delete, reverts safe recent single-file writes, shows audit/refusal history, and answers what an agent may write using the same guard ascommit_note.Client control —
hypermnesic clientslists secret-free OAuth grant metadata and revokes grants without exposing bearer tokens, refresh tokens, approval credentials, or client secrets. The public cloud lane separately stores restart-survivable OAuth runtime state in owner-only.hypermnesic/cloud-oauth-state.json.Security — operator-consent gates the
writescope at login; audience-bound tokens (RFC 8707); refresh rotation + whole-grant revoke; a per-request consent CSP. Seedocs/2026-06-03-unified-write-anywhere-security-review.md.Human surfaces — thinking-mode, salience + spaced-review digest, serendipity connections, an always-organized navigation surface, frictionless capture→triage, multi-format sidecar extraction (PDF/DOCX/XLSX/PPTX/PNG), and a read-only Obsidian companion.
Benchmarks
On LongMemEval V1 (the _s 500-question set), hypermnesic's end-to-end QA accuracy is
88.6% overall / 90.2% task-averaged with a GPT-4.1 reader, and 83.6 / 87.1 with a
GPT-4o reader — both graded by the canonical gpt-4o-2024-08-06 judge. Session-level retrieval
recall@10 is 0.949 (every gold session in the top-10 for 94.9% of questions).
Read these honestly. They are on the matched GPT-4o-judge axis — the only
apples-to-apples memory-system comparison — where hypermnesic sits on par with Mastra
Observational Memory (84.2), +12 over Zep (71.2), and +23 over the no-memory
full-context floor (60.2). They are not comparable to the GPT-4.1-judged ~95%
leaderboard rows — that gap is judge leniency, not memory quality. The full methodology,
comparability envelope, per-ability tables, corrections log, and a re-runnable harness
(pinned dataset hash; bench extra required for the paid reader path) are in
harness/BENCHMARKS.md.
LongMemEval measures retrieval quality. It does not prove setup, consent, memory control, or remote-client operability. Product operability is gated by the local product smoke
(scripts/product_smoke.py), offline remote-contract tests, the
remote-client smoke checklist, and the
first-class product readiness checklist.
Docs
Start with the documentation index. Highlights:
ARCHITECTURE.md— how it works (the disposable-index invariant, retrieval, write path, serving lanes).docs/why-hypermnesic.md— the wedge and a tool-by-tool comparison (mem0, Letta, basic-memory, Hindsight, Honcho, Obsidian).docs/guides/getting-started.md— local proof, setup diagnosis, and failure modes.docs/guides/memory-control.md— inspect, export, forget/delete, revert, audit, and write-scope controls.docs/guides/consent-and-clients.md— consent scopes, reject/cancel, client grants, and revocation.docs/guides/remote-client-smoke-checklist.md— real-client OAuth/read/write/revoke smoke evidence.docs/launch/first-class-product-readiness-checklist.md— first-class product readiness checklist.docs/reference/— the MCP tool, CLI, and configuration references.docs/unified-oauth-mcp-deploy-runbook.md— the unified endpoint: topology, cutover, reverse.plugin/README.md— the Claude Code / Codex plugin (OAuth-discovery, distribution-generic).docs/plans/— the per-phase execution plans (the authoritative scope of record).docs/threat-model-commit-note.md+docs/2026-06-03-unified-write-anywhere-security-review.md— the write-path threat model and the public write-surface review.implementation-notes.md— running log of decisions and deviations.
Community
Welcome discussion — project overview, support boundaries, and contribution entry points.
Public roadmap — near-term launch work, contribution funnel, and current non-goals.
Develop
uv sync --extra dev
uv run pytest
uv run ruff check .
uv run python scripts/license_scan.py # zero AGPL/GPL/SSPL *dependency* gateCredentials
The OpenAI key is read from OPENAI_API_KEY (env var or a gitignored repo-root .env). It is
never written to the index, the audit log, or any output. An optional hard ceiling on embedding
spend is configured with HYPERMNESIC_SPEND_ENVELOPE — an absolute path to an existing state
file, reserving before every provider call and refusing when unusable; absent means unchanged
behavior (see the configuration
reference).
The OAuth consent secret lives only in
an owner-only env file. Public-lane OAuth client/token runtime state is stored in owner-only
.hypermnesic/cloud-oauth-state.json so clients can refresh across service restarts; it is never
logged or committed.
License
Hypermnesic is licensed under AGPL-3.0-only. See LICENSE.
The scripts/license_scan.py "zero AGPL/GPL/SSPL" gate is dependency-scoped: it governs
hypermnesic's third-party dependencies, keeping the dependency tree copyleft-free. It does not
govern — and is not contradicted by — the engine's own AGPL license: the gate excludes the
project's own distribution before classifying, so it stays green when the engine itself is licensed
AGPL-3.0. Third-party dependencies are permissive and verified copyleft-free on every CI run.
Engine ↔ companion license boundary. The Obsidian companion ships from a separate repository
under GPL-3.0; the engine is licensed under AGPL-3.0-only. Neither is a derivative of the
other, and that holds because they are separate processes that communicate only at arm's
length over the MCP network protocol (search / build_context / think), with no shared or
statically-linked code. The boundary stays true only while the companion does not vendor,
import, or statically link engine source (the read-only-over-the-wire invariant). Keep that
condition and the two licenses remain independent.
Available Tools
7 toolsbuild_contextARead-only
Pages reachable from a page via body wikilinks (in+out edges).
Inputs: path (required), depth. Returns: depth, start, context, manual_reindex_recommended
hypermnesic_searchARead-only
Hybrid (lexical + dense) search over the read-only index: functionally identical to search, exposed under this namespaced alias for clients that auto-prefix tool names with the server id. Fuses FTS5 lexical and sqlite-vec semantic ranking via reciprocal-rank fusion (degrading to lexical-only without embeddings) and returns the same ranked hits (path, heading, score, channels, snippet, git recency). Prefer search; reach for this alias only when your client requires the prefixed name. k caps the number of hits (default 10).
Inputs: query (required), k. Returns: hits, query, degraded_reason, degraded_lexical_only, +1 more
list_foldersARead-only
Discover the vault's folder taxonomy + writable locations before placing a note: child folders under root (drill-down) to depth levels, each with its writability, protected reason, and recursive note count, plus direct root-local AGENTS.md/CLAUDE.md guidance when present. Read-only; the writable flag matches what commit_note accepts. Narrow root to drill deeper when truncated is true.
Inputs: root, depth. Returns: root, depth, folders, omitted, +3 more
read_noteARead-only
Read the full markdown content of a single note by its repo-relative path (typically a path returned by search, resolve, or build_context). Read-only and bounded to indexed notes: a path that is not a committed note in the vault returns found: false with content: null, never an out-of-vault or traversal read. Use it to fetch a note's body after locating it with the other read tools.
Inputs: path (required). Returns: path, found, content, manual_reindex_recommended
resolveARead-only
Entity resolution: resolve a name to an existing page path (gbrain's get role), or null if ambiguous/missing. The caller strips .md (use slug) to form a wikilink target.
Inputs: name (required). Returns: name, slug, resolved, manual_reindex_recommended
searchARead-only
Hybrid retrieval over the read-only index: fuses SQLite FTS5 lexical search with sqlite-vec dense (semantic) ranking via reciprocal-rank fusion, degrading gracefully to lexical-only when embeddings are unavailable. Returns ranked hits (source markdown path, heading, fused score, matched channels, a snippet, and git recency) so an agent can recall facts, notes, and decisions from the vault by a natural-language query. k caps the number of hits (default 10).
Inputs: query (required), k. Returns: hits, query, degraded_reason, degraded_lexical_only, +1 more
thinkARead-only
Thinking-mode: related notes + Socratic prompts + related-but-not-yet-linked pairs. Pass the active note's path to exclude it from its own results. Never writes (wrote: false).
Inputs: topic (required), k, path, depth. Returns: note, topic, wrote, context, +6 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
There are two tools that perform identical search functionality (search and hypermnesic_search), creating ambiguity about which to use. Other tools are distinct but the overlap is confusing.
Most tools follow a verb or verb_noun pattern with consistent lowercase underscore naming. The hypermnesic_search is a namespaced alias that deviates from the pattern, but it is still clear.
With 7 tools covering read-only operations like search, read, resolve, list, and context building, the count is well-scoped for a read-focused knowledge vault assistant.
The tool set lacks any write operations such as creating or updating notes. This is a significant gap for a personal knowledge management system, as agents cannot record new information or modify existing notes.
Maintenance
Related MCP Connectors
One memory for every AI you work with: your rules, notes and decisions in your own Git repo.
Team memory for AI coding agents and code reviews, reviewed by humans and served over MCP.
Git collaboration for AI agents and people: tasks, hand-offs, reviews, teams, shared memory.
One memory, every AI. A shared, user-owned markdown memory your AI clients read and write over MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceOpen, Git-native memory protocol for MCP agents: stores memories as Markdown files in a Git repo, enabling portability, auditability, and human-editable memory across different AI agents.74 npm15MIT
- AlicenseNot gradedqualityBmaintenanceLocal-first, file-based memory layer for AI agents — one shared Markdown vault across Claude, Codex, Gemini, Cursor and any MCP client. Provides read/write memory tools with an audit trail, per-agent trust levels, and Git sync; no cloud and no lock-in.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to persist and share durable memory — appending session logs with checkpoints and handoffs, claiming and completing tasks, and recording decision records — all stored as plain Markdown and JSONL files in a git repository. Everything written is full-text searchable, and the server speaks MCP so MCP-aware clients can plug in directly with zero vendor lock-in.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI clients to read and write a self-hosted, git-backed graph of team memory nodes — searching, creating, updating, linking, and tracing the history of notes about what exists, its state, and what was done — over MCP (stdio or HTTP) or a plain REST API. Combines lexical and semantic search in an embedded index, so it works model-agnostically and even fully offline.1Apache 2.0