Agent memory should be Markdown you own

Why Memorinth keeps what your AI agents remember as plain Markdown files on your disk, not rows in a database you can't read, edit or take with you.

On this page

Your agents’ memory should be plain Markdown files in a folder you own. You can read what they remember, fix it when it’s wrong, put it in git and take it anywhere, and the search index is only a cache built from the files. That’s how Memorinth keeps it, and this post is why.

What an agent remembers is about you

A coding agent’s memory isn’t a log of tokens. It’s what you decided about your project, why you chose one approach over another, how you like your code reviewed, which fix worked last time. That’s your knowledge. An agent wrote it down, but it belongs with your notes, not inside a service.

Most memory layers store it as embeddings and rows: good for retrieval, opaque to you. You can query it, but you can’t open it, read it over coffee and notice the one memory that’s quietly wrong.

Five things files give you

Files on your disk A database behind an API
Read Open any note in any editor Query it, if there’s a UI
Correct Edit the line that’s wrong Update or delete it through the API
Review git diff shows what agents added today An activity log, at best
Keep Back it up like any folder Export, if it’s offered
Leave Stop using the tool; the notes stay Migrate, or lose it

The last row matters most. Tools come and go; plain text outlives the apps that read it.

The index is a cache

Search needs more than files: full-text indexes, embeddings, links. Memorinth keeps all of that in a SQLite database in the cortex’s hidden .memorinth/ folder, and treats it as disposable. It’s built from the files, it never holds anything they don’t, and it’s rebuilt when they change, including when you edit a note in another editor.

That’s the trade: you get fast, offline, meaning-aware search, and the source of truth stays something you can cat.

Structure without a schema you can’t see

Plain files don’t mean no structure. A memory carries its kind, importance and tags in frontmatter:

memory/The login bug was a time zone mix-up.md
---
kind: insight
importance: 3
tags: [auth]
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.

Every field is visible, and every one is searchable: #auth type:memory finds it. Decisions and facts carry a status, so agents can tell what’s current. The rules live in the open, in the same file as the words.

Agents write, you own

Plain files raise a fair worry: if agents can write, can they make a mess of my notes? In Memorinth they write only in three folders of their own, memory/, decisions/ and facts/. They read and search everything else, but never change it. Each note says which agent wrote it, so you always know whose words you’re reading.

What it costs

Files aren’t free. A folder doesn’t sync itself between computers, so you use git or a synced folder. Thousands of small files need an index to search well, which is why the index exists. And nothing extracts memories for you behind the scenes: the agent decides what’s worth saving, and you read what it saved.

We think that’s the right side of the trade. A memory you can’t read is a memory you can’t trust.

Read how the folder is laid out in The cortex, what each kind of note holds in Memory, and how to Give Claude Code a long-term memory.

All posts