Skip to content
For your teamWhat one developer teaches an agent, a teammate’s agent can use.How it worksWhere a lesson starts and how it reaches every agent.Code reviewYour team’s knowledge, checked in every PR.SecurityWhat it sends, what it changes and how to leave.Book a call30 minutes with Roei, if you want a hand. Never required.
On your ownYour corrections follow you across agents and repos.Install itnpx harborloop init, in your repo.Every commandWhat the CLI does, and how to take it off again.
DocsPricingSign in
Start free →
For teamsFor individualsHow it worksCode reviewSecurityDocsPricingSign inStart free →
Home/Blog

Blog

  • PR review against AGENTS.md
  • Claude Code second brain
  • Why Copilot ignores it
  • Cursor Team Rules
  • Rules vs skills
  • Claude Tag vs Claude Code
  • GitHub Copilot Memory
  • Codex memories
  • Cursor memories
  • Claude Code auto memory
  • Claude Code team memory
  • Supermemory Company Brain alternatives
  • 3,905 files checked
  • Why Codex ignores it
  • Mem0 alternatives
  • Codex skills
  • Karpathy's LLM wiki
  • Auto mode
  • Memory or documentation?
  • Best company brain tools
  • Claude Code and AGENTS.md
  • Claude Code skills
  • Claude Code hooks
  • claude-mem
  • Claude Code best practices
  • Karpathy CLAUDE.md
  • AGENTS.md vs CLAUDE.md
  • Cursor rules
  • copilot-instructions.md
  • Why Claude ignores it
  • CLAUDE.md length
  • Committing CLAUDE.md
  • Agent memory compared
  • CLAUDE.md vs skills vs hooks
  • Make Claude Code remember
  • Review comments to rules
  • Slack decisions
  • Company brain
  • Context engineering, Claude 5
  • Context rot, stale rules
  • AGENTS.md research
  • ADRs for agents
  • Memory poisoning
  • Best MCP memory servers
  • Shared memory across agents
  • Growing CLAUDE.md
  • Which rules got used

Blog

A second brain for Claude Code, and where it stops

Published: November 7, 2026

A second brain for Claude Code is usually a folder of markdown notes, often an Obsidian vault, that you start Claude Code in, with a CLAUDE.md at the root that tells it how the notes are organized. Claude reads and writes the notes; you read them in Obsidian. For one person on one machine it works well. It does not reach a teammate, another machine, or another coding agent, and that is the part this note is about.

What is a Claude Code second brain?

Three layers, all plain files. The notes are the markdown pages, written by you, by Claude, or both. The schema is a CLAUDE.md (or AGENTS.md) at the root that says where things go, how pages are named and what Claude should do with a new source. The viewer is Obsidian, which shows the same files as linked pages. Nothing needs a plugin or a server: Claude Code works on the folder with its normal file tools.

It is the same shape as Karpathy's LLM wiki, which is where much of the 2026 interest came from: the agent files what it learns once, cross-links it, and answers from the pages instead of rediscovering the same facts every session.

What does Claude Code load from the vault?

Less than people assume, and in a fixed order. From Anthropic's memory docs:

FileWhen Claude gets itWho writes it
CLAUDE.md in the folder you start in, and above itAt launch, the whole fileYou
CLAUDE.md in a subfolderOnly once Claude reads or edits a file in that subfolderYou
A file named with @path inside a CLAUDE.mdWith the file that imports it, up to four hops deepYou
Any other note in the vaultOnly if Claude decides to open itYou or Claude
Auto memory, MEMORY.mdAt launch, the first 200 lines or 25KBClaude

So the root CLAUDE.md is the one page you can count on being read. Put the map there: the folders, what each holds, and which index page to open first. Everything else is a page Claude has to choose to read. Anthropic suggests keeping each CLAUDE.md under 200 lines; imports organize a long file but do not make it cheaper, because imported files load with it.

How do I set one up?

  • Make the folder. Open it as a vault in Obsidian if you want to read it there, and start claude in it.
  • Write the root CLAUDE.md. The folder layout, a naming rule for pages, and what to do with a new source: summarize it, update the pages it touches, add a line to a log.
  • Keep one index page. A list of every page with one line each. Claude opens it first and decides from it what else to read.
  • Keep it shallow. A few top folders beat a deep tree, because Claude has to find a page before it can use it.
  • Put the vault in git. It gives you history, and a way to undo an edit Claude should not have made.

Is auto memory already a second brain?

Partly. Claude Code writes its own notes to ~/.claude/projects/<project>/memory/ and loads the start of MEMORY.md into every session. It is a good memory of how you like to work. It is also machine-local: the docs say the files are not shared across machines or cloud environments, and only Claude Code reads them. A vault you choose to sync goes further, but it is still yours alone.

Where a personal second brain stops

Take one decision. In #eng-payments the team agrees that webhook handlers return a 200 and enqueue, and never do the work inline. You write it into your vault. Then:

  • Your teammate's agent never sees it. The note is on your machine, in your vault.
  • Other agents read other files. Codex reads AGENTS.md and never CLAUDE.md, and Cursor and Copilot each have rule files of their own. A Claude-shaped vault reaches Claude. The AGENTS.md vs CLAUDE.md note covers which tool loads what.
  • Nothing gates what goes in. Alone, you are the gate. Shared, one wrong page is repeated by every agent that reads it; see agent memory poisoning.
  • Nothing tells you a page went stale. When the queue is replaced, the old page stays until somebody remembers it.
  • Nobody knows which pages are used. You can see what is in the vault, not what any session actually read.

A second brain for a team's agents

This is what Harbor is for. It is shared memory for engineering teams using coding agents: one store that Claude Code, Codex, Cursor and GitHub Copilot all read, wired with npx harborloop init. It learns from your sessions and, if you connect them, from Slack threads, pull request reviews and docs. You set the gate: routine rules can go live on trial, and a secret, an install step or a clash Harbor cannot settle waits for a person. Each session gets the rules that fit its task, not the whole store, and every rule shows how often it was served and how often an answer cited it. A cite is evidence a rule was used, not proof it was obeyed.

Keep the vault for your own notes, papers and drafts. It is very good at that. Put what the team decided where every agent on the team can get it.

Related. What a company brain is, Claude Code team memory, sharing memory across Claude Code, Cursor and Codex, and how auto memory works.

Questions

What is a second brain for Claude Code?

A folder of markdown notes, often an Obsidian vault, that you start Claude Code in, with a CLAUDE.md at the root describing how the notes are organized. Claude reads and writes the notes with its normal file tools, and you read them in Obsidian. No plugin or server is needed.

Does Claude Code read every note in my Obsidian vault?

No. At launch it loads the CLAUDE.md files in the folder you start in and above it, files those import with @path (up to four hops), and the first 200 lines or 25KB of its auto memory. A CLAUDE.md in a subfolder loads once Claude works in that subfolder. Any other note is read only if Claude decides to open it.

Is Claude Code auto memory a second brain?

Partly. Claude writes notes to ~/.claude/projects/<project>/memory/ and loads the start of MEMORY.md every session. It is machine-local, not shared across machines or cloud environments, and only Claude Code reads it.

Can a team share a Claude Code second brain?

Not as is. The vault is on one person's machine, Codex, Cursor and Copilot read their own files, and nothing gates what goes in or flags a page that went stale. A team needs one store every agent reads, a gate on what goes live, and a count of which rules sessions used. Harbor is built for that.

Your team’s rules, in every agent, checked on every PR.

Harbor is shared memory for your team’s Claude Code, Cursor, Codex and Copilot. Free for you and one teammate. No card. No end date.

Start free →

Your team’s rules, in every agent, checked on every PR. Shared memory for your team’s coding agents, learned from the work and checked on every pull request.

Product

  • How it works
  • Code review
  • Only what applies
  • Your agents
  • For coding agents
  • Approval and proof of use
  • What it counts
  • Pricing

Developers

  • Docs
  • Blog
  • Rule-file checker
  • CLI
  • MCP server
  • Served and cited
  • Quickstart

Guides

  • Why Claude ignores CLAUDE.md
  • AGENTS.md vs CLAUDE.md
  • Does Claude Code read AGENTS.md?
  • Why Codex ignores AGENTS.md
  • Why Cursor ignores rules
  • Copilot instructions vs AGENTS.md
  • Shared memory across agents
  • Make Claude Code remember

Compare

  • vs Mem0
  • vs Zep
  • vs Unblocked
  • vs ByteRover
  • vs Cognee
  • vs Hindsight
  • vs OpenViking
  • vs Supermemory

Company

  • Start free
  • Questions
  • Contact
  • Privacy Policy
  • Terms of Service
  • Data Processing Agreement
  • Refund Policy
© 2026 Harbor·