# eugeniughelbur/obsidian-second-brain: Persistent memory for Claude Code and 6 other CLI agents, stored as plain markdown in your Obsidian vault. Stop re-explaining your projects, decisions and people every session. 45 commands: hybrid semantic search, self-rewriting notes, key-less web research, and scheduled agents that maintain the vault while you sleep.
Canonical: https://social-archive.org/escap0/shtN0SD1sg
Original URL: https://github.com/eugeniughelbur/obsidian-second-brain#install
Author: eugeniughelbur
Platform: web
Share mode: full
## Content
[![obsidian-second-brain: one brain, eight platforms, 47 commands. A cross-platform skill for Obsidian that runs on Claude Code, Codex, Gemini, OpenCode, Antigravity, Hermes, Pi, and Grok Bot.](https://github.com/eugeniughelbur/obsidian-second-brain/raw/main/media/banner.png)](https://github.com/eugeniughelbur/obsidian-second-brain) [![Claude Code](https://camo.githubusercontent.com/88db4e0ea9fb310be66dc2b45e775633201b2be85d417936e236d8d9fb40b3f6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436c617564655f436f64652d4439373735373f7374796c653d666f722d7468652d6261646765266c6f676f3d616e7468726f706963266c6f676f436f6c6f723d7768697465)](#install) [![Grok Bot](https://camo.githubusercontent.com/b85fd0a26393d24d521d23d5b806fe02138d91def4841ae9b445e608f5a0437b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f47726f6b5f426f742d3030303030303f7374796c653d666f722d7468652d6261646765266c6f676f3d78266c6f676f436f6c6f723d7768697465)](#grok-bot) [![Codex CLI](https://camo.githubusercontent.com/539b24bb31f334246c08c89bf7e1377a5bbfbbf68d52fef26aaf890e9560eb7f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6465785f434c492d3431323939313f7374796c653d666f722d7468652d6261646765266c6f676f3d6f70656e6169266c6f676f436f6c6f723d7768697465)](#codex-cli--gemini-cli--opencode) [![Gemini CLI](https://camo.githubusercontent.com/26b79949c904d21e4df043011e5ac8c7f3a4eddd07144881ed8f4028e85d4b45/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f47656d696e695f434c492d3432383546343f7374796c653d666f722d7468652d6261646765266c6f676f3d676f6f676c6567656d696e69266c6f676f436f6c6f723d7768697465)](#codex-cli--gemini-cli--opencode) [![OpenCode](https://camo.githubusercontent.com/806a249c2d120a3da3b86e252c7d1bf4ac85e354886e3f829539047babd2662e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4f70656e436f64652d3138313831383f7374796c653d666f722d7468652d6261646765266c6f676f3d6f70656e736f75726365696e6974696174697665266c6f676f436f6c6f723d7768697465)](#codex-cli--gemini-cli--opencode) **Your vault is the memory. Claude, Grok Bot, Codex - same brain.** *Your vault outlives whichever CLI you switch to.* [![Obsidian Vault](https://camo.githubusercontent.com/ed0a1b0fc4e97eff4d88d5e0915a8a262a75df4b14bc726059f157a115dae00b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4f6273696469616e2d5661756c742d3743334145443f7374796c653d666f722d7468652d6261646765266c6f676f3d6f6273696469616e266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/ed0a1b0fc4e97eff4d88d5e0915a8a262a75df4b14bc726059f157a115dae00b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4f6273696469616e2d5661756c742d3743334145443f7374796c653d666f722d7468652d6261646765266c6f676f3d6f6273696469616e266c6f676f436f6c6f723d7768697465) [![Release](https://camo.githubusercontent.com/1cf18d343af450a3bbc00119fce9701c705047bd71c1b479126be0175d18e6ac/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f657567656e69756768656c6275722f6f6273696469616e2d7365636f6e642d627261696e3f7374796c653d666f722d7468652d626164676526636f6c6f723d677265656e)](https://camo.githubusercontent.com/1cf18d343af450a3bbc00119fce9701c705047bd71c1b479126be0175d18e6ac/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f657567656e69756768656c6275722f6f6273696469616e2d7365636f6e642d627261696e3f7374796c653d666f722d7468652d626164676526636f6c6f723d677265656e) [![License: MIT](https://camo.githubusercontent.com/7b032738aeb4a8dd7ec78c4402e078ca8c196b0e528c117bbd78088c9a036988/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75653f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/7b032738aeb4a8dd7ec78c4402e078ca8c196b0e528c117bbd78088c9a036988/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75653f7374796c653d666f722d7468652d6261646765) [![Stars](https://camo.githubusercontent.com/b7e151b7680f5876c6455dd80d369b4713c02ab9f62cf1ea6678b8a358c9b74b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f657567656e69756768656c6275722f6f6273696469616e2d7365636f6e642d627261696e3f7374796c653d666f722d7468652d626164676526636f6c6f723d79656c6c6f77)](https://camo.githubusercontent.com/b7e151b7680f5876c6455dd80d369b4713c02ab9f62cf1ea6678b8a358c9b74b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f657567656e69756768656c6275722f6f6273696469616e2d7365636f6e642d627261696e3f7374796c653d666f722d7468652d626164676526636f6c6f723d79656c6c6f77) [![Sponsor](https://camo.githubusercontent.com/98966af321067270095afcaaa605fd426b3e227443efd11edad16136440c8eb1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6e736f722d4541344141413f7374796c653d666f722d7468652d6261646765266c6f676f3d6769746875622d73706f6e736f7273266c6f676f436f6c6f723d7768697465)](https://github.com/sponsors/eugeniughelbur) ## obsidian-second-brain: AI second brain for Obsidian - persistent memory for Claude Code and Grok Bot **An evolution of [Karpathy's LLM Wiki pattern](https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f): a vault that rewrites itself.** *Every source updates existing pages instead of just appending new ones. Contradictions reconcile automatically. Your vault compounds while you sleep.* **Powered by [OKM - Open Knowledge Metabolism](https://github.com/eugeniughelbur/obsidian-second-brain/blob/main/references/freshness-policy.md):** *every stored fact is timeless, dated, or a pointer - so your knowledge base never fills with facts that used to be true.* **Built for** *developers · founders and operators · writers · researchers - [pick a preset at setup](#choose-your-preset)* **Start with three:** *`/obsidian-init` to set up, `/obsidian-save` to capture, `/obsidian-find` to recall. The other 42 are there when you need them.* *auto-synthesis · thinking tools that argue with you* *live research from X, the web, and YouTube · 4 scheduled agents · 4 role presets* *write-time AI-first validator · `/create-command` interview flow · multilingual trigger schema* [**Install →**](#install) · [Demos](https://github.com/eugeniughelbur/obsidian-second-brain/blob/main/DEMOS.md) · [See it in action](#what-happens-when-you-install-this) · [All commands](#45-commands) · [Presets](#choose-your-preset) · [OKM](#the-vault-is-alive) · [Discussions](https://github.com/eugeniughelbur/obsidian-second-brain/discussions) [![One /obsidian-save command turns a conversation into five cross-linked AI-first notes: a person, a project with the decision, a task, a board card, and the daily note.](https://github.com/eugeniughelbur/obsidian-second-brain/raw/main/media/obsidian-save.gif)](https://github.com/eugeniughelbur/obsidian-second-brain/blob/main/DEMOS.md) *One `/obsidian-save` - five cross-linked notes. Real footage, synthetic vault. [More demos →](https://github.com/eugeniughelbur/obsidian-second-brain/blob/main/DEMOS.md)* *If this looks useful, [star the repo](https://github.com/eugeniughelbur/obsidian-second-brain). It is how other people find it.* **v0.15 - The Port (September 2026):** the plugin now runs on Windows the way it runs on macOS and Linux, fixed end to end by a contributor across two PRs. *Windows paths, CRLF and BOM notes, UTF-8 everywhere, a USERPROFILE-aware config home; plus Gemini-first /podcast with a free Whisper fallback, tag syntax and taxonomy checks, Simplified Chinese triggers, /obsidian-reindex, an Obsidian lint plugin, platform ownership, AI-FIRST.md, a reproducible retrieval benchmark, a generated docs site, typed edges, and the callout preamble. 763-test CI wall.* [See the changelog →](https://github.com/eugeniughelbur/obsidian-second-brain/blob/main/CHANGELOG.md) --- ## The Problem You use Claude every day. Every session starts from scratch. You re-explain everything. The conversation ends. Everything disappears. Claude Code has no persistent memory across sessions - and neither does Grok Bot, Codex, Gemini, or any of the others. You take notes in Obsidian. Hundreds of files. They just sit there. You make the same decision twice because you forgot you made it six months ago. Ideas rot in daily notes. Nobody connects the dots. **Two powerful tools. Completely disconnected.** You already have the long-term memory. The thing doing the thinking cannot reach it. --- ## How this extends Karpathy's LLM Wiki Karpathy's pattern is brilliant. Drop sources, LLM creates wiki pages, ask questions. This skill takes it further: | Karpathy's LLM Wiki | obsidian-second-brain | | --- | --- | | **New sources** | Append new pages, cross-reference | **Rewrite existing pages.** People get updated, claims revised, stale facts replaced. | | **Contradictions** | Flagged, you resolve manually | `/obsidian-reconcile` resolves them automatically | | **Patterns** | Surface when you ask | `/obsidian-synthesize` finds unnamed patterns and writes synthesis pages on its own | | **When it runs** | On demand, when you prompt | 4 scheduled agents: morning brief, nightly consolidation, weekly review, vault-health check | | **Note format** | Human-readable wiki pages | AI-first: `## For future agent` preamble + frontmatter for LLM retrieval, not human review | If Karpathy's wiki is a knowledge base you maintain with an LLM, this is a knowledge base that maintains itself. --- ## What Happens When You Install This **After a meeting:** `/obsidian-save` Claude pulls out every decision, person, task, and idea and saves each one to the right note. You do nothing. **You recorded a voice memo:** `/obsidian-ingest meeting.m4a` Claude transcribes it with a local Whisper install, attributes speakers where the transcript makes them identifiable, extracts every promise and action item, and distributes across entity pages, task boards, and the daily note. **You screenshot a whiteboard:** `/obsidian-ingest photo.png` Claude reads the image, extracts text and structure, creates concept notes, links to related projects. A photo becomes knowledge. **You find a great video:** `/obsidian-ingest https://youtube.com/...` Claude doesn't summarize into one note. It REWRITES your existing pages. People get updated. Contradictions get resolved. Patterns trigger new synthesis pages. One URL in. The vault is smarter. **Before a big decision:** `/obsidian-challenge` Claude searches your vault for past failures and reversed decisions on the same topic. Pushes back with your own words. Your vault holds you accountable. **You want to see the big picture:** `/obsidian-visualize` Claude generates a visual canvas of your entire vault. Hub nodes centered, color-coded by type, orphans highlighted. Open it in Obsidian and see the shape of your knowledge. **You go to sleep:** The nightly agent runs 5 phases: closes the day, reconciles contradictions, synthesizes cross-source patterns, heals orphan notes, and rebuilds the index. You wake up to a smarter vault. **You start a new day:** `/obsidian-daily` Claude pulls your calendar events, overdue tasks, and overnight changes into today's note. Your morning starts informed. **Someone shares an X post:** `/x-read https://x.com/...` Grok with live X access fetches the post, the thread, and the replies. Returns verbatim text + TL;DR + key claims + reply sentiment + voices to watch. No more screenshots. **You're planning today's content:** `/x-pulse "AI automation"` Grok scans X for what's trending in your topic right now. Returns 3-5 emerging themes (with rep posts + key voices), gaps nobody is filling, hook formats that are working, and 3 specific post ideas you could write today. **You need real research:** `/research "AI memory tools"` Perplexity Sonar Pro pulls a deep dossier with citations: summary, key facts (every claim with a recency marker and source domain), timeline, key players, contrarian views, recommended further reading, open questions. Saved to your vault, auto-opens in Obsidian. **You want vault-first deep research:** `/research-deep "AI memory tools"` Scans your vault for what you already know. Identifies gaps. Spawns 3-5 targeted searches via Perplexity (web) and Grok (X discourse). Synthesizes a delta report: what's new, what's confirmed, contradictions to resolve, recommended vault updates. Vault baseline doesn't get re-researched. Only gaps get filled. **You hit a great YouTube video:** `/youtube https://youtu.be/...` Free transcript via youtube-transcript-api. Optional metadata + top comments via YouTube Data API v3. Gemini (free tier, Grok fallback) summarizes into TL;DR, Key Points, Notable Quotes (verbatim), Themes, Comment Sentiment, and Worth Following Up On. Saved as an AI-first note in your vault. Add `--visual` to also *watch* it: scene-change frame extraction (ffmpeg) that Claude reads with its own vision to capture on-screen text, code, diagrams, and demos the transcript misses. **You never open Obsidian.** Everything happens through Claude. --- ## Before & After | Without this skill | With this skill | | --- | --- | | Saving decisions | Copy-paste or lose them | Auto-saved to the right project note | | Daily notes | Write it yourself, forget half the time | Created automatically | | Finding patterns | Re-read dozens of notes | `/emerge` finds them for you | | Challenging yourself | Nobody pushes back | `/challenge` uses your own history against you | | Session continuity | Re-explain every time | `/world` loads full context in 10 seconds | | Ingesting content | Read it, forget it | `/ingest` rewrites 5-15 vault pages from 1 source (URLs, PDFs, audio, screenshots) | | Contradictions | You don't know they exist | `/reconcile` resolves them automatically | | Synthesis | You connect dots manually | `/synthesize` finds patterns across sources on its own | | Sharing vault data | Only Claude can read it | `/export` gives any AI tool a clean snapshot | | Facts change over time | Old info gets overwritten | Bi-temporal facts track when it was true AND when the vault learned it | | Starting a new session | Re-explain who you are | `CRITICAL_FACTS.md` loads your identity in ~120 tokens | | Reading an X thread | Open X, scroll, screenshot, paste | `/x-read [url]` returns post + thread + sentiment + voices | | Knowing what to post | Guess what's trending | `/x-pulse` scans X and returns hot themes + gaps + hooks + post ideas | | Web research | Open 12 tabs, copy quotes manually | `/research [topic]` returns a sourced dossier with recency markers | | Researching what you already know | Re-research from scratch | `/research-deep` scans vault first, fills only the gaps, flags contradictions | | YouTube videos | Watch passively, forget | `/youtube [url]` transcript + summary + quotes saved to vault | | Vault notes for future agent | Notes for human reading | AI-first rule: every note has "For future agent" preamble + recency markers + citations |
## Media
1. image: https://opengraph.githubassets.com/9dd1e884f85f21e3e989b024d6e9eae1989192c89a131e9eb16e0ff130645641/eugeniughelbur/obsidian-second-brain
