# A second brain with Claude Code and Obsidian: an assistant that edits your notes folder

> Source: <https://dev.to/dalby/a-second-brain-with-claude-code-and-obsidian-an-assistant-that-edits-your-notes-folder-1h8k>
> Published: 2026-12-04 19:37:02+00:00

**Recommendation:** 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.
More in the playbook "Designing agent systems": <https://wpnews.pro/playbooks/agent-architecture>

*Originally published as a Technical Brief on [dalby.md](https://dalby.md/briefs/claude-code-obsidian-second-brain).*

A *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.

Obsidian 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)

Claude 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)

The 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`:

```
## Decisions
- 2026-12-04: Ship the login fix on Friday. Source: [[2026-12-04 standup]]
```

Andrej 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.

At 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:

```
# Vault rules
- New material arrives in Inbox/. File it into one note under Projects/.
- Link with [[wikilinks]] to existing notes; never create a second note for the same project.
- Set `status: filed` on an inbox note once its content is filed. Never delete a note.
```

These 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.

Claude 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.

Copy 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.

Sources checked on 4 December 2026.

Researched 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).
