Claude Code + Obsidian as a second brain (my vault setup)

Posted by Chaitanya Shahare on Sun, Dec 6, 2026

I’m sure you must have had some frustrations about your Claude code agents not doing what you want exactly, it not having the context of your life so that it can give you the best solution.

What I found works is running Claude code agents with the context of my second brain that I maintain in my obsidian vault.

how to give Claude access to your second brain

If you use Claude code in the terminal, the easiest way is, open your obsidian vault in the terminal and just run the Claude command.

Now this Claude code session has all the context of your second brain it can search and go through different topics, have the context of your life through all the notes that you have maintained.

Steps:

  1. Open terminal app
  2. Go to the directory where your obsidian second brain is using cd ~/<path to vault> command
  3. Run Claude code using claude command

If you use claude code in desktop app, that is pretty straightforward too, just create a new session and for the folder, select your obsidian vault.

That’s it.

guardrails. What should it never touch (private notes, diary)? How do I set that?

Just ask it to never read files from your diary folder and it will never read that.

Basically it will create a permission denied list in its settings and it won’t be able to read or write anything in those folders.

This is good to setup because you may want your diary to be just written by you and private to you.

what would I even use it for?

  • if you track all your work notes in your second brain, it can build a weekly summary of your work to update your manager.
  • You can make creative connections between notes that you haven’t talked about.
  • You can reorganise and restructure your notes easily without making it a weekly task.

Many other things like, you can generate blog or reel ideas from your interests, app ideas, track your project’s progresss.

The possibilities are endless, but start small.

obsidian vs notion for AI

Obsidian is best if you want to have the flexibility of using different ai tools without any constraints.

Because obsidian just maintains markdown files on your device which you own and and edit from whichever tool you like.

Unlike obsidian, notion doesn’t maintain your notes in markdown and you need to use a connector / mcp for managing your notes in notion. Although that is also pretty straightforward but if you want the most flexibility in terms of using ai, you should prefer obsidian and you can do anything and everything in there.

You can even develop your own obsidian extensions using claude code.