AI Second Brain: Let Agents Read Notes You Still Own

An AI second brain is Markdown notes an agent reads before it answers. How CLAUDE.md, AGENTS.md, retrieval, MCP and your accept step fit together in 2026.

By Updated 8 min read

The Short Version

  • Keep notes as plain Markdown files, because every agent reads them with no export.
  • Put a rules file at the root: CLAUDE.md for Claude Code, AGENTS.md for Codex and others.
  • Retrieval sends the model a few matching chunks. An agent that opens files can follow links.
  • MCP connects your notes folder to chat apps and other tools that cannot open files.
  • Let AI suggest notes, and let nothing count until you accept it.
On this page
  1. Markdown Is the Format Every Agent Already Reads
  2. A Rules File Tells an Agent How Your Notes Work
  3. Retrieval Finds Chunks, While an Agent Opens Whole Files
  4. MCP Connects Your Notes to Apps That Cannot Open Files
  5. Nothing an AI Writes Should Count Until You Accept It
  6. The Citation Test Shows Which Notes Your Agent Cannot Use
  7. One Note Rewritten for an Agent Shows What Changes
  8. A Worked Example Shows the Loop in One Afternoon
  9. Skip an AI Second Brain in Two Cases
  10. Write the Rules File Before You Add Another Tool
  11. Questions and Answers

An AI second brain is a folder of notes that an AI model reads before it answers you. The notes stay plain Markdown files you own. A rules file such as CLAUDE.md or AGENTS.md tells the agent how they work. The one part to get right first is approval: nothing an AI writes should count until you accept it.

I run Claude Code over my own notes repo every day, and I wrote the starter files for a second brain workshop. This post covers what changes once an agent reads your notes. If you are new to the idea, start with what a second brain is and how to build one.

Markdown Is the Format Every Agent Already Reads#

Plain Markdown files are the safest format for an AI second brain. A second brain in Markdown also works as an LLM knowledge base with no extra step. Every coding agent can open them as they are, with nothing to export or install.

Obsidian's homepage says it "stores your notes locally as plain text Markdown files." So an Obsidian vault is already readable by an agent. A Notion workspace needs an export or a connector first.

Founders on X describe the same setup. Greg Isenberg's first step for an AI-first company is "one folder of markdown files on how you think, write and decide (obsidian)".

Three habits make Markdown notes easier for a model to use:

  • One idea per note. A link then points to exactly one claim.
  • Facts at the top of each note. A few labeled lines for source, date and status let an agent filter before it reads. This block is called frontmatter. The guide to Markdown frontmatter for AI agents lists the fields.
  • Plain file names. A note named "How to plan a week" tells the agent more than "note-0412".

A Rules File Tells an Agent How Your Notes Work#

A rules file at the root of your notes folder is the map an agent reads first. Without it, the agent guesses which notes to trust.

Claude Code's memory docs say it reads CLAUDE.md files "at the start of every session." You can keep one personal file in your home folder, for every project. You keep another at the top of your notes folder. The docs advise you to "target under 200 lines per CLAUDE.md file."

The same docs list three more facts worth knowing:

  1. A CLAUDE.md can pull in other files by name, up to four hops deep.
  2. A CLAUDE.md in a subfolder loads only when Claude opens a file in that subfolder.
  3. Claude Code reads AGENTS.md instead when no CLAUDE.md exists in the folder or above it.

AGENTS.md is the shared format for other agents. Its site calls it "A simple, open format for guiding coding agents" and says over 60,000 open source projects use it. Codex, Cursor, Gemini CLI and GitHub Copilot's coding agent are on its list. When folders nest, "the closest one takes precedence."

The rules file I give workshop attendees holds two short lists. The first says how to answer. Answer from my notes first and name the note. Say so when my notes lack the answer. Flag a note that looks out of date. Never invent a fact, a number or a quote.

The second list says how to add notes. New information goes to an inbox folder, and it moves to the trusted Library only after I review it. Every Library note keeps its source, and an AI summary never replaces that source.

The same file names three notes to read before any task: an about-me note, a preferences note, and the status note of the current project. In the workshop, attendees write the about-me note first, because every other skill reads it. A rules file that points to who you are saves you from repeating your background in each chat.

To draft your own file without writing it by hand, use the free AGENTS.md generator. The post on Claude Code memory from your notes repo gives a full template.

The Brainfeed notes list with accepted ideas labeled New to your notes or Builds on a note, each with its source newsletter and pull request
Example data in the Brainfeed app. Accepted ideas wait here with their labels until they go out in one pull request.

Retrieval Finds Chunks, While an Agent Opens Whole Files#

An LLM knowledge base reaches the model in one of two ways. The choice decides what the model can see.

Retrieval splits your notes into chunks and stores them in a search index. When you ask a question, the app finds the closest chunks and sends only those to the model. This is how most "chat with your notes" features work.

An agent reading files opens notes the way you do. It lists folders, searches for words, and follows links from one note to the next. Claude Code and Codex work this way in a repo.

CheckRetrievalAgent reading files
What the model seesA few matching chunksWhole notes it chooses to open
Follows links between notesNoYes
Needs an index to stay currentYesNo
Handles a large archive cheaplyYesSlower, it reads more text
Sees your rules fileOnly if a chunk matches itYes, at the start of each session

Retrieval fits a large archive you query for facts. An agent fits a working second brain, where the answer depends on how two notes connect. Many people use both: a coding agent over the repo, and a chat app with search over the archive.

MCP Connects Your Notes to Apps That Cannot Open Files#

MCP matters when the AI app lives outside your file system. A coding agent does not need it.

The MCP docs define it as "an open-source standard for connecting AI applications to external systems." They compare it to a USB-C port for AI apps. An MCP server offers tools and data, such as your notes folder, to any app that speaks the protocol.

So a chat app can search your vault through an MCP filesystem server. Give that server read access only, and leave one inbox folder writable. The guide to connecting your notes to an agent through MCP walks through the setup.

Nothing an AI Writes Should Count Until You Accept It#

An AI second brain is only as good as the notes the model trusts. One wrong note gets quoted back in every later answer. So the accept step is the most important design choice here.

Sort every AI tool by what it can do to your notes:

  1. Reads only. It answers from your notes and changes nothing.
  2. Suggests, you accept. It proposes a change and waits for your yes, as a pull request or a card you keep.
  3. Writes on its own. It changes notes with no approval step.

Keep the notes you trust in the first two groups. Sort a tool by the access token you gave it, because the token decides what it can do.

Before any tool writes to your notes, ask five questions:

  • Can it change a note you wrote, or only add new files?
  • Do you approve each idea before it lands?
  • Does a conflict come with a quote from your own note as evidence?
  • Can you undo it in one step, such as closing a pull request?
  • Does your "no" change what it shows you next week?

The post on human-in-the-loop knowledge capture goes deeper on the review loop.

The Citation Test Shows Which Notes Your Agent Cannot Use#

A citation test checks your AI second brain in ten minutes. Write five questions that your notes answer, and write the answers down first. Ask the agent each one and require it to name the note it used.

Score each answer by what went wrong, then fix the note and never the prompt.

What the agent didLikely causeFix in the notes
Cited the right noteNothingKeep the note as it is
Cited a related note and missed the answerThe right note has a vague titleRename it to the claim it makes
Said your notes have no answerThe idea sits inside a long note on another topicSplit it into its own note
Gave last year's answerAn old note still looks currentAdd a date and mark the old note as replaced
Gave an answer with no noteThe idea never reached your notesWrite it down, with its source

Run the test again after the fixes. Four of five correct citations is a fair bar for daily use. Repeat it each month, because new notes bring new gaps.

One Note Rewritten for an Agent Shows What Changes#

Example. Both versions are demo content.

PartBeforeAfter
File namepricing thoughtsAnnual plans need a 2-month discount to sell
Top linesNoneSource: a customer call on 4 Nov. Date: 2026-11-05. Status: current.
BodySeven bullets on pricing, discounts and a competitorThree sentences on the one claim, in your words
LinksNoneA link to the pricing decision note, with the reason: "supports"

The agent now finds the note by its name, trusts it by its date and status, and follows the link to the decision. The other six bullets become their own notes, each with its own claim.

A Worked Example Shows the Loop in One Afternoon#

This example uses demo content. The notes folder is a private GitHub repo opened as an Obsidian vault.

  1. You start Claude Code in the repo. It reads CLAUDE.md and learns that the Library holds reviewed notes and the Inbox holds drafts.
  2. You ask: "What did I decide about annual pricing?" The agent searches, opens the status note of your pricing page project, and answers with the note name.
  3. You paste a newsletter link and ask for the useful idea. The agent writes a draft note to the Inbox, with the source link at the top.
  4. The agent finds that the new idea conflicts with your Library note on pricing tests. It quotes the line from your note in the draft.
  5. You read the draft on Friday. You keep it and move it to the Library, or delete it. Only then does it count.

Brainfeed runs the same loop for newsletters. It extracts ideas from new issues, labels each one new, builds on a note, or conflicts with a note, and waits for your swipe. Accepted ideas reach your repo as one pull request, a change you review and merge, in a brainfeed folder.

Skip an AI Second Brain in Two Cases#

An agent over your notes needs a folder it can open and a few minutes of setup. It is the wrong choice in two cases.

  • Your notes hold secrets you cannot share. Every note an agent reads goes to the model provider. Keep health records, passwords and client data out of the folder.
  • You have fewer than a few dozen notes. A chat with a pasted note does the same job until the folder grows.

Write the Rules File Before You Add Another Tool#

Add a CLAUDE.md or AGENTS.md file to your notes folder today, with the rules above. Then ask your agent one question your notes should answer, and check which note it cites.

If those notes sit in a GitHub repo, run the free Brainfeed scan. Your browser reads up to 40 notes and ranks 41 newsletters by how well they match them.

From there, Brainfeed turns those newsletters into a short weekly queue. You accept or reject each card, and accepted ideas arrive as one pull request you merge. The first pull request is free. Paid plans cost $9 for your first month, then $19, at brainfeed.atharvashah.com/#join.

Questions and Answers#

What is an AI second brain?
An AI second brain is a set of notes that an AI model reads before it answers you. The notes hold your goals, projects and ideas with their sources. A rules file tells the model how the notes are organized. You stop explaining the same context in every chat, because the model reads it from the folder.
What is the best format for an LLM knowledge base?
Plain Markdown files in folders. Every coding agent reads them without an export or an API key, and git can track every change. Add YAML frontmatter for facts the agent should filter on, such as source, date and status. Keep one idea per note so a link points to exactly one claim.
Does Claude Code read my notes automatically?
Claude Code reads CLAUDE.md at the start of every session, from your home folder and from the project folder. It reads AGENTS.md instead when no CLAUDE.md exists. It does not load every note. It opens other files when a task needs them, so your rules file should say where things live.
Should AI write to my second brain?
Let it suggest, and keep the final yes for yourself. An agent that writes straight into your trusted notes can spread one wrong claim into every later answer. Send its drafts to an inbox folder or a pull request. Accept each one before it moves into the notes you trust.
What is the best AI for a second brain?
Pick by the job. A coding agent such as Claude Code or Codex suits a notes folder you want answered and reorganized, because it opens whole files and follows links. A chat app with search suits a large archive you query for facts. Either works only after a rules file tells it which notes to trust.
Do I need MCP for an AI second brain?
Not with a coding agent. Claude Code and Codex already open files in the folder you start them in. MCP helps when the AI app cannot open files itself, such as a chat app. An MCP server then offers your notes folder to that app through one standard connection.

Keep the Best Ideas From Every Newsletter

Paste a GitHub repo of Markdown notes. The free scan shows which of 41 newsletters fit what you already know.

No account needed. Your first pull request is free.

ExampleFrom a newsletter issue

Small teams now ship with one agent per repo.

Builds on agents.md