Blog / 2026-11-12
2026-11-12search knowledge agents

A wiki that works as long-term memory for my agents

Long-term memory was not enough. I needed my own notes searchable the right way, so I built a local semantic search engine over them.

Flat cartoon of documents indexed into a local search engine
Flat cartoon of documents indexed into a local search engine

Long-term memory for AI agents is the holy grail for those of us who use AI daily. After two weeks working with Honcho I found it was not enough: remembered facts about me were useful, but my agents still did not know my infrastructure. That is how I got to a wiki as memory, and then to QMD, a search engine I run myself over it.

The problem it replaced

Before this, my assistants named containers that do not exist and quoted IP addresses retired months ago. They guessed, fluently. I pointed them at markdown notes instead, my real wiki: which container runs what, which pool holds which backup, what each cron job is for.

But keyword search fails the way keyword search fails. Ask in your own words and it answers with whichever pages happen to repeat the word. My notes were good; reaching them was not.

What QMD actually is

QMD runs in a CPU-only container on my Proxmox host. Three parts matter: BM25 for exact words, embeddings for questions phrased like questions, and a small model that rewrites the query before searching, turning my sloppy phrasing into something the index likes. My agents reach it over MCP on HTTPS, so every harness in the house shares the same memory instead of keeping private notes.

Today: 213 wiki pages, 260 documents total. Work documents live in a second collection that stays closed unless a query explicitly names it. Personal and professional memory, separated by collection, not by trust.

Failure one: a healthy index with a blind spot

The index reported itself healthy while 32 pages sat behind a mirror hop that had never been automated. The sync job existed; the automation of one hop did not. Green status, missing knowledge.

The rule: verify the path, not the status. Once a week I run a query for a phrase that only exists on a specific page and check that the page surfaces. An index is healthy when a known needle is found end to end, not when the dashboard says so.

Failure two: files that existed but could not be read

13 pages landed with permissions that made them unreadable inside the container. No error anywhere. The answers simply got thinner, permanently, and I only noticed by comparing answers against pages I knew.

A present file is not a readable file. An agent that guesses is not one that knows. The whole point of giving agents your notes is that they stop guessing from training data and start answering from yours. The index has to be checked the way a backup is checked: by restoring, not by trusting the log.

Part of the daily AI-journey series: published here Mon-Sat alongside the LinkedIn edition, this version carries the fuller detail.