Second Brainfor Claude Code Install

A plugin for Claude Code

Turn a folder into a second brain.

A second brain is a trusted system outside your head to capture, organize and retrieve what you know, so your mind can focus on thinking. With this plugin, it is one folder of your notes, decks and documents that Claude knows its way around.

What it does

Your filesNotes, decks, PDFs and sheets, in a folder you already use. They stay as they are, where they are.
add
A twin per fileClaude reads each file once and writes one short line saying what it is. That line goes in a small, separate file: the twin. Your file stays untouched.
ask
An answer, with its fileAsk a question as you normally would. Claude finds the right file through its twin, answers from it, and names the file.

Three steps

  1. 1Once Set up Install the plugin and turn a folder you already use into your second brain. You say make this folder a second brain Set up →
  2. 2When something's new Add files Claude reads your new or changed files and writes a twin for each, so it can find them later. You say index Meeting minuteswhat's new? Add files →
  3. 3Every day Use Ask questions, have Claude write notes, or change files yourself. There is no command to learn. You ask what did we decide on the budget?summarise this week's meetings in a note Use →

Ready to start?

Setting up takes about five minutes.

Set up your second brain

1Once

Set up your second brain

Two steps, about five minutes, once per folder.

The examples on every page follow one folder, Work/, with two folders in it: Meeting minutes/ and Budget/. Seven files in all: meeting minutes as PDFs, a budget sheet, a few notes.

Two skills, no names to learn

The plugin adds two skills to Claude. You never call them by name: Claude picks the one that fits what you say and follows it. Each step on these pages names the skill that runs.

second-brain-init

Makes a folder a second brain. Once.

second-brain-index

Adds files, says what's new, and keeps the twin of a file Claude writes up to date.

Neither skill writes anything itself. They hand a plan to the plugin's small command, which checks the whole plan first and writes nothing if any part is wrong.

  1. Install the plugin

    This gives Claude Code the second brain's two skills and the small command they use. Do it once per computer. You need Node 20 or later. Add its marketplace from GitHub, then install it:

    /plugin marketplace add frederikanrys/second-brain
    /plugin install second-brain@second-brain

    The first time, Claude Code asks to run second-brain.mjs. Allow it.

    Or: in the Claude desktop app

    No terminal needed. The plugin is saved to your Claude account, so it is then also available in chat and in Claude Code.

    1. Open Customize in the sidebar and choose Plugins.
    2. Click Add marketplace, enter frederikanrys/second-brain and click Sync.
      frederikanrys/second-brain
    3. Find second-brain under Discover and click Install.
    The Add marketplace dialog in the Claude desktop app: frederikanrys/second-brain in the URL field, with Cancel and Sync buttons
    Step 2: the Add marketplace dialog.

    To update later: choose Check for updates on the marketplace, or turn on Sync automatically.

  2. Make your folder a second brain

    Claude turns a folder you already have into a second brain. It asks you one question: keep your folders as they are, or sort them with PARA. Then it adds a hidden .vault folder and a short section in CLAUDE.md, and shows you which files are still to be added. It reads none of your files.

    Open Claude Code in the folder and say make this folder a second brain

    For example, in Work/
    make this folder a second brain
    ClaudeI'll keep your folders as they are: 2 folders and 7 files, nothing moves.
    • Keep my folders as they are (recommended)
    • PARA: sort everything into four folders
    yes
    ClaudeYour second brain is set up: your folders are as they were, and nothing is indexed yet.
    Status: 7 files to index in 2 folders
    • Budget: 3 files not indexed
    • Meeting minutes: 4 files not indexed
    Index: the folders ticked or named.

    Every file is still "not indexed": nothing is in your second brain yet. That is the next step, add files. Already a second brain? Claude says so and stops.

    What is PARA?

    Four folders by how soon you need a file: Projects you work on, Areas you keep up, Resources to look things up in, and an Archive. Everything first moves into an inbox, and adding the inbox proposes a place for each file. Claude shows every move before your yes.

    second-brain-init runs when you say this, or "init the vault". You never call it by name.

What changes in your folder

Green is new. Everything else stays exactly as it was.

Work/
  .vault/                    hidden; the second brain's own files
    schema.yaml              your rules: what to leave out. Empty to start
    agent-instructions.md    how Claude answers, writes and adds files here
  CLAUDE.md                  a short Vault section at the top; created if missing
  Meeting minutes/           unchanged
  Budget/                    unchanged
With PARA
Work/
  .vault/                    the same two files
  CLAUDE.md                  the same section
  00 - Inbox/                everything that was here moves in
    Meeting minutes/
    Budget/
  01 - Projects/             empty
  02 - Areas/                empty
  03 - Resources/            empty
  04 - Archives/             empty

To undo it: delete .vault and the Vault section of CLAUDE.md. Your files were never touched.

Your folder is on SharePoint or OneDrive
Your laptopThe synced folder. Most files are only a name until opened.
sync
SharePointWhere the files are. Claude reads a deck or PDF here, through the Microsoft 365 connector.
  • It works the same. Share the folder with your team: the twins sync with the files, so what one of you adds, all of you find.
  • Nothing is downloaded. A file kept only in the cloud is read where it is. To open some on your computer instead, say "download these" when Claude shows what it will read.
  • Update the plugin together. Whoever is still on an older version is asked to update, and nothing else happens.
  • In Claude Cowork you may be told the second brain's own files are kept in the cloud. In Finder, show hidden folders with Cmd+Shift+., right-click .vault and choose Always keep on this device. Then try again.

Update or remove

/plugin update second-brain@second-brain

Then say "index" in your second brain. If it needs updating too, Claude asks.

/plugin uninstall second-brain

Delete .vault and the ## Vault section of CLAUDE.md, and your folder is as it was.

2When something's new

Add files to your second brain

Claude reads a file once and writes its twin: a small file holding one line that says what it is. The twin is how Claude finds the file later. Do this whenever you have new files.

Where you start

Right after set up, nothing is in your second brain yet. Ask what's new? at any time to see where you stand.

ClaudeStatus: 7 files to index in 2 folders
  • Budget: 3 files not indexed
  • Meeting minutes: 4 files not indexed
Index: the folders ticked or named.
Work/
  Budget/
    Budget 2027.xlsx          not indexed
    Budget 2027 draft.pdf     not indexed
    Supplier offers.md        not indexed
  Meeting minutes/
    Team meeting 17 Sep.pdf   not indexed
    Team meeting 24 Sep.pdf   not indexed
    Team meeting 1 Oct.pdf    not indexed
    Website kick-off.md       not indexed

"Not indexed" means the file has no twin yet, so Claude can't find it by its description. Adding a folder gives each of its files a twin, and that folder drops off the status. Start with the folder you need most: here, Meeting minutes.

  1. Add a folder or a file

    Name a folder or a file: index Meeting minutes

    ClaudeMeeting minutes: 4 files to read in 1 round, about a minute.Index: yes reads them.
    yes
    Claude4 indexed in Meeting minutes.
    Status: 3 files to index in 1 folder
    • Budget: 3 files not indexed
    Index: the folders ticked or named.

    Claude reads each file once, ten per round, and writes its twin. Before reading, it tells you what it will read and how long it takes.

    A big folder, an inbox, or SharePoint

    Big folder: Claude proposes what to leave out, such as exports or backups, each with a reason. Say yes, or change it in your own words: "read the manuals too". A skip you say yes to is remembered in your rules, so it holds next time.

    Inbox: Claude also shows where each file belongs. Yes moves them.

    A folder on SharePoint: files kept only in the cloud are read there, and nothing is downloaded. See Set up.

    second-brain-index runs when you say "index …", "take in …", "ingest" or "import". You never call it by name.

  2. See what's new

    Added or changed files? Ask what's new?

    ClaudeStatus: 5 files to index in 2 folders
    • Budget: 3 files not indexed
    • Meeting minutes: 1 file not indexed, 1 changed since indexed
    Index: the folders ticked or named.
    Meeting minutes

    A week later you saved the minutes of 8 October and edited the website kick-off note. Claude counts what waits, per folder, and reads nothing. Naming Meeting minutes adds those two files, as in step 1. How to read the status.

    second-brain-index runs too, for the status only, when you say "index" alone, "status" or "is everything indexed".

Reading the status

The status tells you what is not in your second brain yet. You see it at the end of set up, at the end of every add, and whenever you ask what's new. The example above, line by line:

Claude1Status: 5 files to index in 2 folders
  • Budget: 3 files 2not indexed
  • Meeting minutes: 1 file not indexed, 1 3changed since indexed
5Index: the folders ticked or named.
  1. 1What waits: 5 files, in 2 folders.
  2. 2Not indexed: the file has no twin yet. Here, everything in Budget, which you never added, and the new minutes of 8 October.
  3. 3Changed since indexed: the file changed after its twin was written, so its line may be out of date. Here, the kick-off note you edited.
  4. 4Not listed: a folder with nothing waiting. When everything is added, the status is one line: "nothing waits".
  5. 5What to do: tick or name the folders to add. Or ignore it: nothing happens, and the next status lists them again.

Sometimes the status also names a file it lost track of, for example a PDF you copied to two places and then deleted. It says why, and offers to delete the twin or to move the file back.

Every file gets a twin

When Claude adds a file, it writes a twin: a small text file of its own that stands next to your file, out of sight. The twin holds one line saying what the file is. Claude searches the twins to find your files.

Your fileMeeting minutes/Team meeting 1 Oct.pdfStays exactly as it is. Notes, decks and sheets work the same way.
twin
Its twin.vault/twins/Meeting minutes/Team meeting 1 Oct.pdf.md"Minutes of the team meeting of 1 October 2026: the 2027 budget decision, the extra hire and the new website launch date"
  • Why a separate file? So your file is never written into. A PDF has no place for an extra line anyway.
  • Why one line? Claude can read a hundred twins faster than it can open a hundred files, then open only the one it needs.

What changes in your folder

The twins mirror your folders inside .vault/twins/. Your own files stay as they are.

Work/
  .vault/
    twins/
      Meeting minutes/
        Team meeting 1 Oct.pdf.md   the twin of Meeting minutes/Team meeting 1 Oct.pdf
        Website kick-off.md.md      a note gets a twin too
        …
  Meeting minutes/
    Team meeting 1 Oct.pdf          unchanged
    Website kick-off.md             unchanged
    …

Open a twin and you see four things:

---
indexed: 2026-10-08T09:14:02Z
description: "Minutes of the team meeting of 1 October 2026: the 2027 budget decision, the extra hire and the new website launch date"
source_size: 184532
source_hash: 9c1e44ab07d2f3e8
---
  1. 1description: the line, in the words you would search with. To change it, tell Claude what it should say.
  2. 2indexed: when Claude added the file.
  3. 3source_size and source_hash: a fingerprint of your file. It tells Claude the file changed, or finds it again after you moved it.

Move or rename a file and its twin follows at the next check. Delete a file and its twin goes. Delete .vault and every twin is gone; your files are not affected.

Passwords and keys (.env, *.pem, *.key) never get a twin, even when you ask. A Keynote deck is a .key too: export it as PDF.

More you can say
"index https://… into Budget"Keeps a note with the link, and describes the page.
"the description of the budget sheet should say …"Your words go into its twin.
"index Budget and skip the drafts"The skip is applied before you say yes.
"… go ahead without asking"No questions. Claude reads straight away.

3Every day

Use your second brain

Talk to Claude in your folder as you always do. There's no command to learn, and you can always see what it did.

Ask

what did we decide on the budget?
The 2027 budget was approved on 1 October, with room for one extra hire.Team meeting 1 Oct.pdf

Claude finds the file by its twin, opens it, and names it.

Runsno skill

The Vault section in CLAUDE.md tells Claude to search the twins first.

Have Claude write

put a summary of this call in Budget
Done.Budget call 8 Oct.md

Claude writes the file, then its twin. Nothing for you to do.

Runssecond-brain-index

For that one file, silently. You only hear of it if it fails.

Change files yourself

what's new?
1 file to index
Budget: 1 changed since indexed

Edit, move or drop files with any tool. The next status counts them.

Runssecond-brain-index

Only when you ask. Nothing watches your folder.

What runs, and when

WhenWhat runs
A conversation startsnothing Claude reads the Vault section of CLAUDE.md and the instructions it points to. None of your files.
You ask a questionno skill Claude searches the twins in .vault/twins/, opens the file, names it. Only if no twin answers, it searches the files themselves.
Claude writes or edits a file for yousecond-brain-index for that one file, silently. A typo fix leaves the twin as it was.
You ask what's new, or say indexsecond-brain-index, as on Add files.
You change files yourselfnothing No background process watches your folder.

Everything is out in the open

  • Every answer names its file. You can always check the source.
  • A file Claude hasn't indexed is called out. It says so, and offers to index it.
  • Twins are plain text. They sit in .vault/twins/. Open one, or tell Claude what it should say.
  • Your files stay yours. The plugin never writes into them.
Your filesYours. The plugin never writes into them.
.vaultA twin per file with its one-line description, and your rules on what to leave out. Plain text you can open.

Just ask

what did I index this week?which file did that come from?is everything indexed?