By mtenekeci
Obsidian second brain for Claude — persistent, project-isolated context across sessions with autonomous read/write
Claude's Obsidian second brain — persistent, project-isolated context across sessions with autonomous read/write. Zero token overhead compared to re-discovery.
/brain init — run once in a project folder. Creates a vault entry and writes a CLAUDE.md that auto-loads context every session.context.md + the last session log (~160 lines total) automatically.git commit, when a subagent finishes, when a decision is made, when architectural facts are discovered, or after completing a task. No prompting needed.concepts/. These become shared hub nodes in Obsidian's graph view, growing a mindmap across projects organically, in proportion to actual reuse.git push, Claude checks the current branch against what's recorded in ## Active Work and flags any mismatch before pushing — and re-checks ## Hard Rules so risky actions don't slip through.In any Claude Code session:
/plugin marketplace add mtenekeci/claude-brain
/plugin install brain@claude-brain
The /brain command is now available in every session on this machine.
/brain init — on first run it auto-discovers Obsidian vaults in common locations:
~/Documents/claude-brain)_system/ structure is created automatically inside your chosen vaultThe vault path is saved to ~/.claude/brain.config and reused for all future commands. To change it later:
/brain config set /path/to/your/vault
To check the current config:
/brain config
cd ~/Projects/my-app
claude
/brain init
Claude asks for the project name and type, then:
~/Documents/claude-brain/projects/my-app/CLAUDE.md to ~/Projects/my-app/.claude/settings.json: SessionStart, PostToolUse, PreCompact, SessionEnd~/.claude/settings.jsonEvery future session in ~/Projects/my-app/ auto-loads vault context without permission prompts.
Run /brain init from any directory and choose topic when asked. To load context later:
/brain load auth-redesign
/brain status
/brain sync
Both /brain sync and /brain status also self-heal the project automatically: they update the CLAUDE.md brain section and hook scripts to the latest version if outdated, and repair any missing vault permissions.
Permanently deletes vault files and removes the project from the index. Also cleans up CLAUDE.md and hooks from the project folder if reachable. Requires typing the slug to confirm.
/brain remove my-app
Keeps all vault history intact. Removes only the CLAUDE.md brain section and all 4 hooks from the project folder — stops auto-loading without losing notes.
/brain disconnect my-app
/brain config set /new/path/to/vault
~/Documents/claude-brain/
├── _system/
│ ├── BRAIN.md ← vault operating instructions
│ └── project-index.md ← registry of all projects
├── concepts/
│ └── <slug>.md ← atomic notes for shared libraries, subsystems, infra, decisions
└── projects/
└── <slug>/
├── context.md ← state, active work, decisions (≤150 lines)
├── architecture.md ← detailed architecture reference (no line cap)
└── log.md ← append-only session log
| Scenario | Lines loaded |
|---|---|
| Session start (Tier 1) | ~160 (context.md + last log entry) |
| Before an architectural decision (Tier 2) | + architecture.md in full + last 5 log.md entries |
| Deep history trace (Tier 3) | + full log.md |
| Re-discovering from scratch | 2,000–10,000+ |
MIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub mtenekeci/claude-brain --plugin brainMemory compression system for Claude Code - persist context across sessions
Create and edit Obsidian vault files including Markdown, Bases, and Canvas. Use when working with .md, .base, or .canvas files in an Obsidian vault.
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Frontend design skill for UI/UX implementation
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Marketing skills for AI agents — conversion optimization, copywriting, SEO, paid ads, ad creative, and growth