By cfircoo
Universal persistent memory system for AI agents. Gives Claude Code (and Cursor, Gemini CLI, Codex) long-term memory, self-improving rules, session continuity, and structured workflows via an Obsidian-compatible vault architecture.
Create an Obsidian JSON Canvas visualization from vault content
End-of-session wrap-up ritual
Import external content into the vault
Universal brain-dump triage
AI self-review and pattern analysis
Morning startup - loads context, shows today's plan, flags overdue items. Use when starting the day, wanting a daily plan, or saying "good morning", "what's on today", "daily plan", "start the day".
Re-sync all agent configs from brain.yaml and active-rules. Use when the user says "vault align", "sync configs", "regenerate configs", "update rules", "re-sync", "align vault", or when agent config files need to be regenerated after rule or structure changes.
Health check - counts notes, finds orphans, checks consistency. Use when the user says "vault audit", "health check", "check vault", "find orphans", "vault stats", "audit", or wants to understand the state of their vault.
Create an Obsidian JSON Canvas visualization from vault content. Use when the user says "create a canvas", "visualize", "make a diagram", "map this out", "canvas view", or wants to create an Obsidian canvas file.
End-of-session ritual - writes session log, updates memory, flags carryovers. Use when the user says "debrief", "end session", "wrap up", "save session", "closing time", "done for now", "shutting down", or is about to end a session.
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.
A universal persistent memory system for AI agents. Install into any directory or Obsidian vault to give your AI agent long-term memory, self-improving behavior, and structured workflows.
| Requirement | Required? | Notes |
|---|---|---|
| Claude Code | Required | For hooks, skills, and full memory features |
git | Required | For version control of your vault |
jq | Required | For JSON processing in hooks |
| Obsidian 1.12+ | Optional | Unlocks CLI mode — 70,000x faster vault search. Without it, brain uses raw file reads (still fully functional) |
yq | Optional | Better YAML parsing. Falls back to awk if missing |
python3 | Optional | Used by hooks when Obsidian CLI is active |
Obsidian CLI setup (if you want it):
obsidian to your system PATHobsidian version in terminal to verifyinstall.shObsidian is not required. The brain works on any plain directory with raw markdown files.
| Agent | Config File | Hooks | Skills | Memory |
|---|---|---|---|---|
| Claude Code | CLAUDE.md | Mechanical (hooks) | /brain-today, /brain-new, /brain-tldr, etc. | Full |
| Cursor | .cursorrules | Instruction-based | N/A | Instruction-based |
| Gemini CLI | GEMINI.md | Instruction-based | N/A | Instruction-based |
| OpenAI Codex | AGENTS.md | Instruction-based | N/A | Instruction-based |
From within any Claude Code session:
/plugin marketplace add cfircoo/the-ai-brain
/plugin install the-ai-brain@cfircoo
Then initialize the brain in your vault:
/the-ai-brain:brain-setup
# Clone the repo
git clone https://github.com/cfircoo/the-ai-brain.git
# Launch Claude Code with the plugin loaded
claude --plugin-dir ./the-ai-brain
Skills are available as /the-ai-brain:brain-today, /the-ai-brain:brain-debrief, etc.
git clone https://github.com/cfircoo/the-ai-brain.git
cd the-ai-brain
bash install.sh /path/to/your/vault
The installer will:
Adding a brain to an existing project:
cd ~/projects/your-existing-project
# Then in Claude Code:
/the-ai-brain:brain-setup
# Auto-detects context, defaults to Hub+Spokes
One global brain for your identity + per-project brains for local context. Both are always in context simultaneously.
~/Brain/ ← HUB (your personal OS)
├── Human/Daily/ ← daily notes, life captures
├── Machine/Memory/
│ ├── entities.md ← people, tools — across ALL projects
│ ├── decisions.md ← life/career decisions
│ └── projects.md ← registry of all known projects
└── CLAUDE.md ← who you are, global rules
~/.claude/CLAUDE.md ← loads ~/Brain on EVERY session
~/projects/my-app/ ← SPOKE (project-specific)
├── .brain/ ← local memory, hooks
└── CLAUDE.md ← project rules + references ~/Brain
~/projects/other-project/ ← another SPOKE
└── CLAUDE.md ← references ~/Brain automatically
Setup: Run /the-ai-brain:brain-setup in any project — Hub+Spokes is the default. Existing projects with no brain? Same command, it auto-detects context from your git/README.
npx claudepluginhub cfircoo/the-ai-brain --plugin the-ai-brainPlugin-first second brain package for AI agents and humans.
Persistent memory for AI coding agents. Survives across sessions and compactions.
Automatic Claude Code -> Obsidian second brain: zero-config session capture, hybrid search, autonomous recall, daily/lessons/preferences.
Persistent agent memory that survives across sessions — auto-compacting 3-tier memory with hybrid search. Your agent remembers what it learned, decided, and built.
Personal AI Infrastructure — persistent memory, session continuity, and knowledge graph for Claude Code
Universal memory runtime — cross-session cognitive memory for Claude Code. Remembers decisions, patterns, and context across coding sessions.