Prasit Mankad

Your second brain should be a folder of text files

Personal knowledge management tools come and go. The format that survives is plain markdown in a git repo. Here is how I got there.

Evernote was the answer in 2010. Notion in 2018. Obsidian now. Every few years, a new tool becomes the consensus choice for personal knowledge management, and everyone migrates their notes into it.

I’ve done this migration three times. I’m not doing it again.

The format problem

The issue with every knowledge management tool is that it owns your data format. Evernote’s ENEX export is technically open but practically useless without Evernote. Notion’s export produces markdown that’s full of Notion-specific IDs and broken internal links. Obsidian’s format is closer to plain markdown, but the graph features and plugins create dependencies on Obsidian-specific conventions.

Any LLM that exists in 2030 can read a .md file. It may not be able to read your Notion export. It definitely can’t read your Evernote archive without a conversion step. Plain markdown in a git repo is the only format I’m confident will be readable by whatever tools exist in five years.

This isn’t a new insight. Plain text advocates have been making this argument for decades. What’s changed is that the AI tooling makes the format choice consequential in a new way. If your notes are in a format an LLM can read directly, you can run RAG over them, ask questions about them, have the LLM synthesise across them. If they’re locked in a proprietary format, you can’t, or you have to do a conversion step that introduces errors.

The journey

I went through several tools before landing on this conclusion.

Tab Stash and OneTab were the first phase. I saved browser tabs compulsively, telling myself I’d return to them. I didn’t. The act of saving felt productive. It wasn’t. I had thousands of saved tabs and visited maybe two percent of them. The problem wasn’t the tool. It was that saving a URL is not the same as capturing knowledge.

Linkwarden was genuinely useful. It’s a self-hosted bookmark manager that archives the full page content, not just the URL. Link rot is a real problem. Pages disappear. Linkwarden solves that by storing a copy of the page at the time you saved it. I still use it for archiving specific pages I know I’ll want to reference.

AnythingLLM was the next step. Easy to set up, works well for RAG over local documents. You point it at a folder of files, it builds an index, you ask questions. The limitation is that you’re trusting AnythingLLM’s data format for the index. When I wanted to move to a different tool, the index didn’t transfer.

The current setup is a Cloudflare Workers pipeline with D1 for storage and Vectorize for embeddings. I own the pipeline completely. The source documents are plain markdown files in a git repo. The pipeline reads them, chunks them, generates embeddings, and stores everything in D1 and Vectorize. When I ask a question, the Workers function retrieves relevant chunks and passes them to an LLM. The tool is the UI over my data. The data is mine.

The principle

The tool should be the UI over your data, not the data itself.

This sounds obvious but it’s the opposite of how most knowledge management tools are designed. They want to be the data. They want you to create inside them, store inside them, search inside them. The data and the tool are the same thing. When the tool goes away, the data goes with it.

The alternative is to keep the data in a format you control, and treat the tool as a layer on top. Obsidian is actually decent at this if you’re disciplined about keeping your vault in plain markdown and not relying on Obsidian-specific plugins for core functionality. The vault is just a folder of files. You can open it in any text editor. You can run scripts over it. You can check it into git.

Git is the part people skip. Version control for notes feels like overkill until you accidentally delete something important or want to see what you wrote about a topic two years ago. Git gives you that for free. The commit history is a timeline of your thinking.

The llms.txt standard

There’s a simple convention called llms.txt, from llmstxt.org, for making websites readable by LLMs. You put a file at /llms.txt that describes your site’s content in a structured, plain-text format. This blog implements it.

The principle is the same as plain markdown for personal notes: structured, portable, readable by any tool that can read text. The web is full of content that’s technically accessible but practically unreadable by LLMs because it’s buried in JavaScript-rendered HTML or behind authentication. llms.txt is a way of saying “here’s my content in a form you can actually use.”

xkcd 2347 is called “Dependency.” The joke is that all of modern infrastructure depends on a project maintained by one person in Nebraska. Personal knowledge management has the same shape. You build an elaborate system, it becomes critical to how you work, and then you’re dependent on a tool you don’t control.

Plain markdown in git is the Nebraska project you maintain yourself. It’s not glamorous. It doesn’t have a graph view or AI-powered linking or a beautiful mobile app. But it’s yours, it’s readable, and it’ll still be readable when the next Notion comes along and everyone migrates again.

I export everything to markdown on a regular schedule. Whatever tool I’m using at any given time, the canonical version of my notes is the git repo. The tool is temporary. The files are not.