Firstbrain
AI-Native Second Brain for Obsidian
Claude thinks. You create.
Quick Start • Skills • Architecture • Templates • Memory • Contributing
What is Firstbrain?
Firstbrain transforms a plain Obsidian vault into an AI-native knowledge management system. Claude Code acts as the cognitive layer — scanning your vault, creating notes from templates, discovering connections, searching by meaning, triaging your inbox, synthesizing knowledge, and maintaining consistency — all while remembering your context across sessions.
Without Claude Code, it's a beautifully structured Obsidian starter vault with PARA folders, 12 templates, and 8 Maps of Content.
With Claude Code, it becomes a second brain that actively works for you.
"Create a tool note about Docker" → Claude picks the template, fills metadata, suggests links
"What did I write about productivity?" → Semantic search finds notes by meaning, not keywords
"Triage my inbox" → Classifies notes, suggests folders, auto-tags high-confidence items
"Give me a briefing" → Calm daily summary of changes, priorities, and suggestions
Features
| Feature | Description |
|---|---|
| 11 Claude Code Skills | /create, /daily, /connect, /health, /scan, /search, /memory, /briefing, /triage, /synthesize, /maintain |
| Zero-Dependency Core | All scanning, parsing, and indexing runs on Node.js built-ins — no npm install required for core |
| Incremental Scanning | SHA-256 content hashing detects changes without re-reading the entire vault |
| Semantic Search | Local embeddings via Transformers.js + SQLite — your notes never leave your machine |
| Four-Layer Memory | Session → Working → Long-term Summary → Project-specific context persistence |
| Proactive Intelligence | Daily briefings, inbox triage, knowledge synthesis, and vault maintenance — Claude works for you |
| Evolution Governance | Three zones (AUTO / PROPOSE / NEVER) control what Claude can do autonomously |
| 12 Note Templates | Project, Area, Resource, Tool, Zettel, Person, Decision, Meeting, Code Snippet, Daily, Weekly Review, Monthly Review |
| 8 Maps of Content | Navigation hubs for Projects, Areas, Resources, Tools, People, Code, Meetings, Decisions |
| Full Obsidian Compatibility | Graph view, search, Properties panel, Dataview queries — everything works |
Quick Start
Prerequisites
| Tool | Version | Required |
|---|---|---|
| Obsidian | Latest | Yes |
| Claude Code | Latest | Yes (for AI features) |
| Node.js | >= 22 | Yes (for AI features) |
Step 1: Clone & Open in Obsidian
git clone https://github.com/BEKO2210/Firstbrain.git
Open Obsidian → Open folder as vault → select the Firstbrain folder.
Step 2: Install Dataview Plugin
In Obsidian: Settings → Community Plugins → Browse → search "Dataview" → Install → Enable.
Dataview powers the automatic lists on MOC pages and the Home dashboard.
Step 3: Install Semantic Search (optional)
cd Firstbrain
npm install
This installs @huggingface/transformers for local embeddings. Semantic search runs 100% locally — no API calls, no data leaves your machine. If you skip this, /search falls back to keyword matching.
Step 4: Start Claude Code
Open a terminal in the Firstbrain folder and start Claude Code:
cd Firstbrain
claude
Claude automatically reads CLAUDE.md on startup and understands the vault structure, templates, rules, and all 11 skills. No configuration needed — it's ready immediately.
Step 5: Initialize the Vault Index
In the Claude Code session, type:
/scan
This scans all markdown files and builds the indexes (vault-index.json, link-map.json, tag-index.json). Takes ~15ms. After this, all skills have full vault awareness.
Step 6: Start Using It
Try these commands in your Claude Code session:
/briefing → Daily summary of your vault
/create a project note: Learn Rust → Creates note from template
/health → Find orphan notes and broken links
/search productivity → Semantic search across all notes
/triage → Classify and file inbox notes
/daily → Create today's daily note
Or just talk naturally:
"Create a zettel about why deadlines improve creativity"
"What do I know about Docker?"
"Show me my open tasks"
"Synthesize what I know about marketing"
"Run a maintenance check on my vault"
Skills
Firstbrain ships with 11 Claude Code skills organized in two tiers.
Core Skills (v1.0)
| Skill | What it does |
|---|---|
/create | Creates notes from 12 templates. Picks the right template, fills frontmatter, substitutes variables, suggests wiki-links, places file in the correct folder. |
/daily | Creates today's daily note. Rolls over open tasks from the past 7 days with provenance links. |
/connect | Discovers connections between notes via shared tags and link adjacency. Returns scored suggestions with evidence. |
/health | Detects orphan notes (0-1 connections) and broken wiki-links. Suggests fixes with Levenshtein matching. |
/scan | Incrementally scans all markdown files. Builds vault-index.json, link-map.json, tag-index.json. Only re-parses changed files (SHA-256). |
/search | Finds notes by meaning using local embeddings (Transformers.js + SQLite). Falls back to keyword matching if embeddings aren't installed. |
/memory | Memory dashboard — shows active projects, recent insights, organizational patterns across all four memory layers. |
Proactive Intelligence Skills (v1.1)
| Skill | What it does |
|---|---|
/briefing | Calm daily executive summary — recent changes, current priorities, neglected items, and actionable suggestions. Read-only, never modifies your vault. |
/triage | Inbox classification — scans 00 - Inbox/, classifies each note by type, suggests target folder. High-confidence items get auto-tagged, structural changes are proposed for review. |
/synthesize | Topic-based knowledge synthesis — finds all notes related to a topic (by tags, title, semantic similarity), generates a summary zettel with wiki-link citations and AI provenance metadata. |
/maintain | Vault consistency auditing — detects frontmatter issues, tag inconsistencies, stale projects, outdated references. Proposes fixes respecting governance zones. Can auto-fix low-risk issues. |
Architecture
Vault Structure
Firstbrain/
├── 00 - Inbox/ Landing zone for new notes and daily notes
├── 01 - Projects/ Active projects (time-bound, has end date)
├── 02 - Areas/ Life areas (ongoing, no end date)
├── 03 - Resources/ Knowledge, references, learning material
├── 04 - Archive/ Completed or inactive items
├── 05 - Templates/ 12 note templates (read-only)
├── 06 - Atlas/MOCs/ 8 Maps of Content (navigation hubs)
├── 07 - Extras/ Attachments, Kanban boards, media
├── .agents/skills/ Claude Code skill definitions + utilities
│ ├── briefing/ Daily executive summary
│ ├── connect/ Connection discovery engine
│ ├── create/ Template-based note creation
│ ├── daily/ Daily note with task rollover
│ ├── health/ Orphan + broken link detection
│ ├── maintain/ Vault consistency auditing
│ ├── memory/ Four-layer memory management
│ ├── scan/ Incremental vault scanner + indexer
│ ├── search/ Semantic + keyword search
│ ├── synthesize/ Topic-based knowledge synthesis
│ └── triage/ Inbox classification and filing
├── .claude/ AI system config, rules, memory
│ ├── memory/ Working memory + insights + project state
│ └── rules/ Governance rules (naming, linking, frontmatter)
├── CLAUDE.md AI-native instructions (loaded on startup)
├── Home.md Central dashboard
├── START HERE.md User onboarding guide
└── Workflow Guide.md Daily workflow instructions
Scanning Pipeline
Markdown Files
│
▼
┌─────────┐ ┌──────────┐ ┌───────────────┐
│ parser │───▶│ scanner │────│ vault-index │
│ .cjs │ │ .cjs │ │ .json │
└─────────┘ └──────────┘ └───────────────┘
│ │
│ ┌────┴────┐
│ ▼ ▼
│ ┌──────────┐ ┌──────────┐
│ │ link-map │ │ tag-index│
│ │ .json │ │ .json │
│ └──────────┘ └──────────┘
│
▼
┌──────────┐ ┌──────────────┐
│ embedder │───▶│ embeddings │
│ .cjs │ │ .db │
└──────────┘ └──────────────┘
Zero-Dependency Core
The scanning engine, parser, indexer, and all core skills use only Node.js built-ins — no external packages. This means:
- No
npm installneeded for core functionality - No ESM/CJS compatibility issues
- No supply chain risk
- Fast startup (~15ms full scan, ~5ms incremental)
The only optional dependency is @huggingface/transformers for semantic search embeddings, loaded via dynamic import() with graceful degradation.
Memory System
Firstbrain implements a four-layer memory architecture that gives Claude persistent context across sessions.
┌─────────────────────────────────────────────────┐
│ Layer 4: Project-Specific Memory │
│ .claude/memory/project-{name}.md │
│ Per-project state, decisions, blockers │
├─────────────────────────────────────────────────┤
│ Layer 3: Long-term Summary Memory │
│ .claude/memory/insights.md │
│ Distilled patterns, confidence-scored insights │
├─────────────────────────────────────────────────┤
│ Layer 2: Working Memory │
│ MEMORY.md + .claude/memory/ topic files │
│ Active projects, recent changes, priorities │
├─────────────────────────────────────────────────┤
│ Layer 1: Session Memory │
│ Current conversation context │
│ Automatic, no persistence needed │
└─────────────────────────────────────────────────┘
| Layer | Persistence | Updates |
|---|---|---|
| Session | Current session only | Continuous |
| Working | MEMORY.md + topic files | On significant actions |
| Long-term | insights.md | After 10+ note changes or topic density triggers |
| Project | project-{name}.md | Per project interaction |
Long-term insights use confidence scoring (0.0-1.0) with decay. Entries below 0.3 are pruned. Only insights >= 0.5 are surfaced to the user.
Governance
Claude's autonomy is governed by three zones:
| Zone | AUTO | PROPOSE | NEVER |
|---|---|---|---|
| Content | Fix broken links, fill frontmatter | — | Edit body text |
| Structure | Add note to MOC, fix MOC links | New folders, restructure, new MOCs | Delete folders |
| System | Update memory, log to changelog | Modify CLAUDE.md, rules, config | Delete system files |
Hard boundaries (no exceptions):
- Never delete any file
- Never merge notes
- Never change note body content without explicit request
- Never rename files without explicit approval
Templates
12 templates with correct frontmatter, clean structure, and a Connections section:
| Template | Target Folder | Use Case |
|---|---|---|
Project | 01 - Projects/ | Active projects with tasks and deadlines |
Area | 02 - Areas/ | Life areas and ongoing responsibilities |
Resource | 03 - Resources/ | Books, courses, articles, references |
Tool | 03 - Resources/ | Software, services, and utilities |
Zettel | 03 - Resources/ | Atomic ideas in your own words |
Person | 03 - Resources/ | Contacts and network |
Decision | 01 - Projects/ | Decisions with pros, cons, and outcomes |
Meeting | 01 - Projects/ | Meeting notes with participants and actions |
Code Snippet | 03 - Resources/ | Code with language, context, and explanation |
Daily Note | 00 - Inbox/Daily Notes/ | Daily journal with task rollover |
Weekly Review | 00 - Inbox/ | Weekly retrospective and planning |
Monthly Review | 00 - Inbox/ | Monthly reflection and goal tracking |
Recommended Plugins
| Plugin | Purpose | Required? |
|---|---|---|
| Dataview | Automatic lists and tables on MOC pages | Yes |
| Templater | Advanced template variables and scripting | No |
| Calendar | Visual calendar for Daily Notes | No |
Tech Stack
| Component | Technology | Purpose |
|---|---|---|
| Vault | Obsidian + Markdown | Knowledge storage |
| AI Layer | Claude Code | Cognitive engine (11 skills) |
| Scanner | Node.js built-ins | File parsing + indexing |
| Embeddings | Transformers.js (optional) | Semantic vector generation |
| Vector Store | SQLite (node:sqlite) | Embedding storage + search |
| Search | Cosine similarity + keyword fallback | Note discovery |
Roadmap
- v1.0 MVP — Foundation, scanning, core skills, semantic search, memory (shipped 2026-03-07)
- v1.1 Proactive Intelligence —
/briefing,/triage,/synthesize,/maintain(shipped 2026-03-08) - v2.0 — Knowledge graph, emergent structure proposals, advanced connection intelligence
Contributing
Ideas, bugs, or new templates? See CONTRIBUTING.md.
# Fork → Clone → Branch → Commit → PR
git clone https://github.com/YOUR_USERNAME/Firstbrain.git
cd Firstbrain
git checkout -b feature/my-feature
# Make changes
git commit -m "feat: add my feature"
git push origin feature/my-feature
# Open PR on GitHub
License
CC BY-NC 4.0 — Free for personal and non-commercial use. For commercial licensing, contact the author.
Built with Obsidian + Claude Code
How to Install
- Download the ZIP or clone the repository
- Open the folder as a vault in Obsidian (File → Open Vault)
- Obsidian will prompt you to install required plugins
Stats
Stars
11
Forks
1
License
NOASSERTION
Last updated 1mo ago
Categories
Tags