Skip to content

About

A free, developer-first AI second brain that lives inside your project repo as a .brain/ folder — giving Claude persistent context across sessions without memory. Built on Claude Code and Obsidian

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

🧠 AI Second Brain — Claude + Obsidian

A free, project-centric second brain for developers. Experimental and evolving.


The Idea

Everyone building an AI second brain does it differently — and that's the point. Just like no two human brains are wired the same, there's no single "correct" folder structure or workflow. This is my implementation: lean, developer-first, and built around how I actually code rather than how productivity influencers think I should.

Most setups I've seen are either too aesthetic to be practical or too complex to maintain. This one lives inside your project repo, stays out of git, and gives Claude exactly what it needs — nothing more.

⚠️ Still experimental. I'm actively iterating on this. Feedback welcome.


How It Works

Your project gets a .brain/ folder sitting alongside your actual code:

my-project/
├── src/                        ← your code (git tracked)
├── package.json
└── .brain/                     ← Claude's context layer (gitignored)
    ├── CLAUDE.md               ← who, what, status, rules
    ├── context/
    │   ├── architecture.md     ← how the system is built
    │   ├── decisions.md        ← why you made the choices you made
    │   ├── stack.md            ← tech, versions, commands, gotchas
    │   ├── status.md           ← current phase, blockers, next up
    │   └── subcontext/         ← atomic knowledge nodes (graph view)
    └── skills/
        ├── project-setup.md    ← run once to initialize
        ├── populate-brain.md   ← run to save context checkpoints
        └── evolve-brain.md     ← run to build the knowledge graph

No code lives in .brain/. It's purely markdown — context about your project, not a mirror of it.


Setup

What you need

Step 1: Get the template

Download or clone this repo and rename the PROJECT_NAME/ folder to your actual project name.

Step 2: Gitignore the brain

Add this to your .gitignore:

.brain/

Step 3: Open the vault in Obsidian

Open Obsidian → Open folder as vault → point it to .brain/

This gives you the graph view, linking, and visual navigation across all context files.

Step 4: Initialize with Claude Code

Open your terminal in the project root and run Claude Code:

claude

Then tell it:

"Run the project-setup skill from .brain/skills/"

Claude will interview you about your project. Answer in detail — the more context you give, the better Claude performs across all future sessions. It will fill in every file in context/ from your answers.

You can point Claude at your existing codebase, raw files, or start completely fresh — all three work.


The Three Skills

project-setup — run once

Interviews you and populates all context files. Sets the foundation. Run this when starting a new project or when .brain/ is still empty placeholders.

populate-brain — run when context gets long

As you work, your Claude session fills up with back-and-forth. When you're running low on context window, tell Claude:

"Run the populate-brain skill"

It scans what's changed, updates status.md, logs new decisions, and checkpoints your progress. Next session, you paste the session template and Claude is instantly caught up — no re-explaining needed.

Think of it as saving your game.

evolve-brain — run for subagents and deep work

Once your context files have real depth, evolve-brain atomizes everything into small, interlinked markdown files inside context/subcontext/. Each file covers exactly one concept — a technology, a component, a feature, a decision.

Every file links to related files using Obsidian [[wikilinks]]. Open the Obsidian graph view (Ctrl+G) and you'll see a web of your entire project as connected nodes.

This is particularly useful when running subagents — instead of feeding an agent your entire context, you point it at the specific atomic files relevant to its task. Right context for the right agent.


Daily Workflow

Session start:
  → Paste session template into Claude (session-vault/SESSION_TEMPLATE.md)
  → Claude reads it, instantly grounded in your project

During session:
  → Build, debug, ship

Running low on context:
  → "Run populate-brain" → checkpoint saved

End of week:
  → "Run populate-brain" with weekly pulse questions
  → Context files updated across the board

When project grows complex:
  → "Run evolve-brain" → subcontext/ populated
  → Open Obsidian graph view → navigate visually

Philosophy

The brain is not a code mirror. Your source code lives in git. The brain holds why you made decisions, what's currently broken, where you're going next — the things Claude can't infer from code alone.

Claude has no memory between sessions. Every conversation starts blank. The .brain/ folder is the bridge — it's what makes Claude feel like a collaborator who knows your project rather than a stranger you have to re-onboard every time.

Start lean, grow naturally. Don't fill in every file on day one. project-setup gets you started, and the context grows as you build. Run populate-brain whenever something significant changes.


Tips

  • Be verbose during project-setup. The quality of Claude's help scales directly with the detail in your context files.
  • Update status.md religiously. It's the first thing Claude reads. Stale status = stale advice.
  • Log decisions as you make them. Six months later you'll thank yourself for the "why".
  • Graph view filter: In Obsidian, filter by path subcontext to isolate just the project knowledge graph.
  • Multiple projects: Each project gets its own .brain/. Open each one as a separate Obsidian vault.

Status

Experimental. I'm actively using and refining this on real projects. The skill files are the most likely thing to change as I figure out what actually works in practice.

If you try it and find something broken or a better way to do something — open an issue or reach out.


About

A free, developer-first AI second brain that lives inside your project repo as a .brain/ folder — giving Claude persistent context across sessions without memory. Built on Claude Code and Obsidian

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors