{"slug": "a-second-brain-with-claude-code-and-obsidian-an-assistant-that-edits-your-notes", "title": "A second brain with Claude Code and Obsidian: an assistant that edits your notes folder", "summary": "A technical brief by Søren Dalby describes using Anthropic's Claude Code to file and link notes inside an Obsidian vault, where notes are plain Markdown files that the coding assistant can read and edit. The approach relies on a CLAUDE.md file holding vault rules, which Anthropic's documentation says are read as context rather than enforced configuration, so safety depends on approving each edit or keeping backups. Dalby notes that Claude Code sends note text to Anthropic's servers and recommends initializing git in the vault to review and undo changes.", "body_md": "*Originally published as a Technical Brief on [dalby.md](https://dalby.md/briefs/claude-code-obsidian-second-brain).*\n\nA *second brain* is a personal collection of notes you can search and build on. Obsidian stores one as plain Markdown files, so Claude Code can file and link your notes the way it edits code. Follow one inbox note to see what that involves.\n\nObsidian is a note-taking app, free for personal and commercial use. [Obsidian licence](https://obsidian.md/license) Its *vault* is an ordinary folder of Markdown files, and Obsidian refreshes when another program changes them. [How Obsidian stores data](https://obsidian.md/help/Files+and+folders/How+Obsidian+stores+data) Notes link to each other with *wikilinks*, a note's name in double brackets such as `[[Project Atlas]]`, and can carry *properties*, such as a status, at the top of the file. [Obsidian links](https://obsidian.md/help/links) · [Obsidian properties](https://obsidian.md/help/properties)\n\nClaude Code is Anthropic's AI coding assistant. Started in a folder, it reads and edits the files there, and by default it asks before it changes a file or runs a command. [Claude Code permissions](https://code.claude.com/docs/en/permissions)\n\nThe running example: after a meeting you paste rough notes into `Inbox/2026-12-04 standup.md` and ask Claude Code to \"file today's inbox\". It should move the decisions into `Projects/Atlas.md` with a link back, and set the inbox note's `status` property to `filed`:\n\n```\n## Decisions\n- 2026-12-04: Ship the login fix on Friday. Source: [[2026-12-04 standup]]\n```\n\nAndrej Karpathy called the idea an *LLM wiki* in April 2026: an AI model keeps your notes up to date as you add sources. [Karpathy's LLM wiki idea](https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f) Claude Code in an Obsidian vault is one way to try it: Claude Code edits the files, and Obsidian shows the result.\n\nAt the start of each session, Claude Code reads a file called `CLAUDE.md` in the folder where it starts. [Claude Code memory](https://code.claude.com/docs/en/memory) In a vault, that is where your filing rules go:\n\n```\n# Vault rules\n- New material arrives in Inbox/. File it into one note under Projects/.\n- Link with [[wikilinks]] to existing notes; never create a second note for the same project.\n- Set `status: filed` on an inbox note once its content is filed. Never delete a note.\n```\n\nThese rules are not enforced. Anthropic's documentation says Claude Code reads them as context, \"not enforced configuration\". [Claude Code memory](https://code.claude.com/docs/en/memory) \"Never delete a note\" is a request; what protects your notes is your approval of each edit, or a backup.\n\nClaude Code runs on your computer, but the AI model runs on Anthropic's servers: Claude Code sends your request and the note text it reads there, and gets the changes back. [Claude Code data usage](https://code.claude.com/docs/en/data-usage) Treat every note it reads as sent. How long Anthropic keeps that text, and whether it trains on it, depends on your plan and settings, so check them before you start. Keep notes you would not send in folders where you don't start Claude Code.\n\nCopy a few real notes into a new vault and run `git init` in it, so every change can be reviewed and undone. Write a `CLAUDE.md` with two or three rules, ask Claude Code to file one inbox note, and check the result in Obsidian: are the links where you expected, and did anything change that you did not ask for? Approve each edit until the proposals are the ones you would have made.\n\nSources checked on 4 December 2026.\n\nResearched and drafted with AI assistance, then reviewed by Søren Dalby. Sources are linked; errors may remain, and [corrections are welcome](mailto:contact@dalby.md?subject=Correction%3A%20A%20second%20brain%20with%20Claude%20Code%20and%20Obsidian).", "url": "https://wpnews.pro/news/a-second-brain-with-claude-code-and-obsidian-an-assistant-that-edits-your-notes", "canonical_source": "https://dev.to/dalby/a-second-brain-with-claude-code-and-obsidian-an-assistant-that-edits-your-notes-folder-1h8k", "published_at": "2026-12-04 19:37:02+00:00", "updated_at": "2026-12-04 19:44:34.012549+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "large-language-models", "ai-products"], "entities": ["Claude Code", "Anthropic", "Obsidian", "Andrej Karpathy", "Søren Dalby"], "also_reported_by": [], "takeaway": "Putting filing rules in a CLAUDE.md at the vault root guides Claude Code's note edits, but since Anthropic says those rules are context and not enforced configuration, git-init the vault and approve each edit to protect notes.", "recommendation": {"advice": "Write two or three filing rules in a CLAUDE.md at the vault root, run git init so every edit is reviewable, and approve each change until Claude Code's proposals match what you would do.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/a-second-brain-with-claude-code-and-obsidian-an-assistant-that-edits-your-notes", "markdown": "https://wpnews.pro/news/a-second-brain-with-claude-code-and-obsidian-an-assistant-that-edits-your-notes.md", "text": "https://wpnews.pro/news/a-second-brain-with-claude-code-and-obsidian-an-assistant-that-edits-your-notes.txt", "jsonld": "https://wpnews.pro/news/a-second-brain-with-claude-code-and-obsidian-an-assistant-that-edits-your-notes.jsonld"}}