The cortex
A cortex is a folder of Markdown notes on your disk, shared by you and your agents: your own notes, plus memory, decisions and facts that agents write.
A cortex is a folder of Markdown files on your disk. It holds your own notes and your agents’ memory, side by side, in plain text you can open in any editor, back up and put in git.
~/Memorinth/
├── memory/ what agents learned, in their own words
├── decisions/ what was decided and why, numbered
├── facts/ stable facts, one per note, each with a source
├── assets/ images and other files your notes embed
├── .memorinth/ the search index, rebuilt from the notes
├── Daily/ your own notes, in any folders you like
└── Projects/Who writes where
Agents write only in their three folders. Everything else is yours: they read your notes, search them and link to them, but never change them.
| Folder | Written by | What goes in it |
|---|---|---|
memory/ |
Agents | What was learned, what happened, preferences, how-tos. See Memory |
decisions/ |
Agents | Decisions with their reasons, never edited, only replaced. See Decisions |
facts/ |
Agents | One stable claim per note, with a source, rechecked over time. See Facts |
| Everything else | You | Your own notes |
Notes are Markdown with frontmatter
Every note is a .md file. What Memorinth needs to know about it sits in YAML frontmatter at the top: its status, when it was made, which agent wrote it. The rest is ordinary Markdown, with [[wikilinks]] between notes.
---
kind: insight
created: 2026-10-20T12:00:00Z
source: agent:claude-code
---
# The login bug was a time zone mix-up
Logins failed after midnight because a date was compared in the
wrong time zone.The index
To search fast, Memorinth keeps an index in the cortex’s .memorinth/ folder: SQLite with full-text search, plus embeddings from a local model for search by meaning. The files stay the source of truth. Memorinth watches the folder, so a note you edit in another editor is reindexed, and the index is built from the files, so it never holds anything they don’t.
One engine
The app and every agent session share one engine on your computer, memorinth mcp host. It starts when something needs it and leaves after ten minutes unused. Two agents writing at once go through the same engine, so they never step on each other.
Many cortexes
You can have more than one, such as one per project, and choose which one agents use. See One cortex or many.
Updated