Unofficial. Obsidian Memex is an independent project, not affiliated with, endorsed by, or sponsored by Obsidian or Nous Research. Full notice.
Long-term memory for your Hermes agent, kept as Markdown files you can open.
The idea is older than the agent
In 1945, Vannevar Bush described a device he called the memex:
Consider a future device ... in which an individual stores all his books,
records, and communications, and which is mechanized so that it may be
consulted with exceeding speed and flexibility. It is an enlarged intimate
supplement to his memory.Vannevar Bush, As We May Think, The Atlantic, July 1945
He was not describing a search box. He was describing a file you can walk:
The process of tying two items together is the important thing.
The notes are Markdown. The ties are links. The trail is what you get when you
follow them.
Portrait: Vannevar Bush, 1938, Harris & Ewing, MIT Museum. Public domain.
Why this exists
Your agent has two kinds of memory, and they are not the same thing.
The first one is baked into the weights. It came from training, it is a black box,
and unless you can download the model and run it yourself, you cannot open it, edit
it, or read a line of it. That is the memory your agent starts with. Nobody is
fixing that today.
The second one is everything it learns after it becomes yours: decisions, fixes,
people, the reason a thing ended up the way it did. Normally that gets poured into a
vector store or somebody's cloud, which is a black box again, just a smaller one you
are allowed to squint at through a keyhole.
It does not have to be. The files your agent already trusts are Markdown. Reading
Markdown is like breathing for an agent. So why hand it a brain made of anything
else?
So this gives it a brain made of Markdown: a folder you own, an index that makes it
fast, and write rules that make it hard to wreck your notes. You can open every file
it writes. You can edit them by hand and the agent sees it next turn. You can delete
the entire index and lose nothing but the cache.
What you get
- Find any note in about 14 ms. Search across 1,700 notes, get the path and a snippet.
- Follow a line of thought. Five named link types, plus wikilinks and backlinks, so a fact arrives with its history.
- Write without wrecking anything. Three write tools, a folder or two it owns, and
no delete tool at all. - Know when it happened. Four date views, from "on this day" to "what is overdue".
What it runs on
Linux and macOS. The writer relies on POSIX directory handles and fcntl to keep
a write inside the folder it was allowed to touch, and Windows has neither; a
Windows port is a real project, not a flag.
Quick start
1. Put the plugin where Hermes looks.
git clone https://github.com/m1n1m0th42/ObsidianMemex ~/.hermes/plugins/obsidian-memex
2. Point it at a folder of notes.
memory:
provider: obsidian-memex
vault: ~/Documents/your-vault
folder: memory # optional: first owned folder, used until a list is stored
folder is where the agent starts out writing, relative to the vault root. Point
it at Notes/Memory if your vault already keeps memory notes there, or leave it
out and say "own Notes/Memory" in a session; the agent adds the folder itself and
remembers it across restarts. Everything outside the folders it owns stays
read-only, whatever you set.
3. Restart Hermes. It builds the index on first use. No server, no account, no
database to install. If no vault tools appear, check that the memory toolset is
enabled for the session.
Watch the graph grow
One note, then its links, then the clusters that form around them. That is what your
memory looks like after a few months of use. A real vault growing this way is next.
The still is drawn from assets/graph-grow.svg by scripts/make_graph_gif.py, so
the vector and the GIF cannot disagree.
The tools
Grouped by what you are trying to do.
Find things
| Tool | What it does |
|---|---|
vault_search | Ranked notes with snippets. Optional depth, scope, type and date filters |
vault_read | One note by path |
vault_recent | What changed in the last few days |
vault_list | Which vaults exist and whether they are indexed |
Follow a thread
| Tool | What it does |
|---|---|
vault_links | What a note points at, and what points back |
vault_trails | A walk from one note along typed edges, then wikilinks, then backlinks |
vault_search with depth=2 | The ranked list plus the notes one hop around it |
Write it down
| Tool | What it does |
|---|---|
vault_write | Create a note in a folder it owns, or extend one on the same topic |
vault_supersede | Correct a claim; the old text moves to History, nothing is deleted |
vault_annotate | Add one dated bullet to a note not marked write: human-only |
Remember time
| Tool | What it does |
|---|---|
vault_clock | On this day, a date range, the newest dated notes, or what is due |
vault_followup | The open-loop ledger: add, close, due |
Decide what it owns
| Tool | What it does |
|---|---|
vault_own | List, add or release folders the agent may write in. The list |
survives restarts and is mirrored into _ownership.md |
Everything outside the folders it owns is read-only, and vault_annotate is the
one append-only exception, so it can add to a human note (unless that note says
write: human-only) without rewriting one.
Ownership is a sentence, not a setting: tell it to own a folder and it asks. The
request goes through Hermes's approval gate, so the agent cannot widen its own
fence, and the folder has to already exist, so a misheard name cannot turn into
a writable directory.
The list is stored three times: .obsidian-memex/ownership.json in the vault,
_ownership.md in the first owned folder, and a legacy copy under the index
cache. Deleting the cache changes nothing; if the vault JSON is lost, the mirror
is used, and the JSON is rewritten the next time the list changes.
How it works
Click the diagram to open it full size.
The agent only talks to the provider. The provider reads every vault, writes only
inside the folders it owns (memory/ until you tell it to own another), and keeps
a throwaway index it can rebuild from the notes at any time.
What it needs from you
A folder of Markdown and Hermes. If you have never used Obsidian, here is the whole
vocabulary.
A vault is a folder of notes. It usually has a hidden .obsidian directory made
by the Obsidian app, and this plugin treats that as the sign that a folder is a
vault. Notes are plain .md files. They open in any editor, forever.
Frontmatter is a small block at the top of a note, fenced by ---, holding
fields like title, date, tags and aliases. This plugin reads a few of them:
---
title: Router floods under load
date: 2026-03-04
type: incident
aliases: [router flood, the flood night]
scope: tower
---
A wikilink is a link between notes: [[Router floods under load]]. Obsidian
tracks renames, and this plugin reads them as the edges your trails follow. Five
more edge types can be declared in frontmatter: continues, supersedes,
contradicts, near, far.
An alias is another name for a note. Search finds it, so "gramps" reaches
Avery Quinn.md when that alias is in its frontmatter.
An example vault:
your-vault/
├── .obsidian/ made by Obsidian, ignored by this plugin
├── .obsidian-memex/ which folders the agent owns (policy, not cache)
├── Journal/
│ └── 2026-03-04.md
├── Projects/
│ └── Router notes.md
└── memory/ a folder the agent owns and may write
├── _ownership.md the list of folders it owns, written by the agent
├── followups.md
└── Router floods under load.md
You do not need the Obsidian app running. This reads files. Obsidian is just a
nice editor for them.
You do not need the official Obsidian plugin. Two agent skills ship with this
one: obsidian-markdown, vendored from Obsidian's MIT-licensed skills (see
skills/obsidian-markdown/NOTICE.md), and vault-memory, this project's own rules
for when and how to write. They register when the provider loads.
Nothing syncs anywhere. No account, no upload, no telemetry. The only network
traffic is whatever your model provider already does.
What it will not do
- No writes outside the folders it owns. The path is resolved, checked, then pinned
by the directory's identity before the write happens. - No deletes. There is no delete tool.
vault_supersedekeeps the old claim and
the reason it changed. - No claiming a file it shares. A note with more than one hard link is refused.
- No silent failure. An unwritable folder or an unreadable ledger comes back as
an error you can read. A corrupt index is quarantined at the next refresh; a
search before that can return nothing rather than an error.
Proof, not promises
python scripts/bench.py, 1,725-note vault | |
|---|---|
| Search, 24 queries | 14.1 ms median |
| Scoped search (index only, zero note reads) | 23.1 ms |
| Trail, depth 3, 100 steps | 38.1 ms |
| Clock, on this day | 10.2 ms |
| Cold index of that vault | 9.7 s |
| Writes surviving four concurrent writers | 100 of 100 |
Those are this machine's numbers, and the script is in the repo so you can run
it against your own vault instead of trusting mine.
Every safety guard has a mutation that must break it. Delete the lock and the
concurrency test fails. Delete the path fence and a write lands outside the owned folder(s).
Remove the caller's filters from a link hop and a note you excluded comes back. The
guard suite copies the plugin, breaks one guard at a time, and requires a named test
to go red.
Docs
- Architecture: the index, retrieval, refresh, trails, clock.
- The write fence: what every write rule actually does.
- Testing: the suites, and why a mutation is the only proof.
Status
I built this for my own setup and I maintain it alone. I read issues. Pull
requests might get merged, declined, or left a while, and I am not promising
support. If you want to send a change, read CONTRIBUTING.md
first, it explains what makes one easy for me to take.
License
MIT. The licence covers the code; the names are not part of the grant, which is
what NOTICE explains.
The vendored Obsidian Markdown skill keeps its own MIT notice and copyright in
skills/obsidian-markdown/LICENSE.
README from the reviewed commit b141170; it updates when the author re-pins.

m1n1m0th42