Skip to content
Osiris Explore projectsExplore
Memory

An LLM wiki instead of RAG

Osiris gives Claude a long-term memory. It does not need a vector database for that, but the pattern Andrej Karpathy described in April 2026 as the “LLM wiki”: after every conversation, a separate run reads what was said and writes it into Markdown pages. The knowledge is compiled when it is written — not pieced together again on every question.

What RAG does — and what it leaves open

Retrieval-augmented generation, RAG for short, cuts documents into chunks, turns them into vectors and, for every question, fetches the chunks that look most similar. For large collections of documents that works. As a memory of your own work it has a catch: every question starts again from raw material. Two chunks that contradict each other both come back, and what was understood in one conversation is not there in the next — the model has to piece it together anew each time.

The LLM wiki: compile once, then look it up

Karpathy's idea turns the order around. The understanding happens up front: the model reads a source once, summarises it and files what it learned under the topics it belongs to — adding to a page that already exists instead of writing a second one next to it. What gets searched later is no longer raw material, but pages that have already been written, linked and checked. In Osiris this is the Memory: the inside of the brain, what it keeps long-term.

Three layers with clear ownership

Next to them, Osiris keeps two files itself: index.md, the map of all pages with one sentence each, and log.md, one line per operation, append-only. Nothing happens unnoticed.

Ingest, query, maintain

Found in English and in German

Every page carries two extra fields in its header: aliases, other names for the same thing — in both languages, with abbreviations and old names — and fragen, the questions the page answers, phrased the way someone asks who does not know the answer yet. That way a page is found even when the question uses different words than the page.

Memory and brain: what happened, what applies

The Memory sits next to the brain, not inside it. The brain holds what applies — rules, notes and decisions that you write down and that Claude follows. The Memory holds what happened — condensed from your conversations. One binds, the other remembers. How Claude gets to both is described under Claude Code with memory.

Plain Markdown on your disk

The Memory is a folder of Markdown files on your machine. You can read the pages, open them in Obsidian or put them under Git. Only what a single request needs goes to Anthropic. And like any memory it can be wrong: what Osiris remembered was right once — the weekly maintenance run looks for contradictions, but it does not find every one.