ASADULELAHBOOK A CALL →

Home / Learn

Learn with Asadulelah · Lesson 3

How do I build an AI second brain with Obsidian and Claude Code?

By Asadulelah, a Kerala-based builder of custom software and AI systems for businesses. I build by directing a fleet of AI agents, and this is how I actually do it.

WHO THIS IS FORPeople who take notes in Obsidian (or want to) and want an AI that files, links and remembers for them, not another app to feed by hand.

WHAT YOU'LL HAVE AT THE ENDA vault layout, a CLAUDE.md that makes Claude Code file things without being asked, the writing rules that keep it trustworthy, and a nightly job that keeps it clean.

Make an Obsidian vault of plain markdown folders (people, projects, systems, journal), open Claude Code in that folder, and write a CLAUDE.md that tells it to file everything you share into the right page, with links and sources, without asking. Obsidian is the window you browse; Claude Code is the librarian that does the writing.

I have run mine since February 2026. It now holds about 3,900 markdown files: around 830 journal entries, around 90 people and about 140 system write-ups. My assistant reads it at the start of every session, and it's why I never re-explain my own work to an AI.

How mine is laid out

me/           who I am, goals, values
people/       one page per person
ventures/     each business and client project
systems/      technical architectures I've built
strategy/     offers, pricing, positioning
knowledge/    concepts and research
journal/      meetings, milestone days, dated events
raw/          source documents, never edited
_system/      the assistant's own brain (hidden from Obsidian)
CLAUDE.md     the rules the assistant loads every session

I think of it as two systems. One is the assistant's brain: its personality file, its memory, my profile. The other is the reference wiki I actually browse in Obsidian. The graph view is the product. If a page has no links, it is invisible, and an invisible page is a lost thought.

The steps

1. Start from folders by subject, not by format

Every piece of content gets exactly one home, picked by what it is mainly about, not by where it came from. A meeting about a client project goes under that project's timeline, not in a "meetings" folder. A transcript is a source, so it goes in raw/ untouched, and a distilled summary links to it. When in doubt about whether something deserves its own page, it doesn't: a junk page makes search worse, and a missing page can be created later.

2. Tell Claude Code to file without asking

The single most useful paragraph in my CLAUDE.md says: when I share anything (a call recap, a voice note, an idea, something I built), file what has future value into the wiki, then tell me in one or two lines what was filed. No "should I save this?". The rule of thumb in that file: if a future you would benefit from finding this on a page in three weeks, file it now.

3. Give every page two zones

Each person and project page has a summary on top and a timeline below, split by a line. The top is rewritten whenever things change, so it is always current. The bottom is append-only, dated evidence. That's how the page stays short to read but never loses history.

# Project X
Current state: live since March, two open issues, next step is the handover call.
---
- 2026-11-28 | Handover call booked for 1 Dec. [Source: call, 2026-11-28]
- 2026-11-20 | First version deployed. [Source: deploy log, 2026-11-20]

4. Make two rules non-negotiable: sources and back-links

Every factual claim carries a source: who said it, where, and the date. Every mention of a person or project that has a page creates a link back from that page too. I call them Iron Laws, because the whole value of a second brain is that you can trust it and walk it. An unlinked mention is a broken brain.

5. Schedule a maintenance run, from one machine only

A nightly run fixes broken frontmatter, adds missing back-links from the last two weeks and writes a short health report. On Sundays a longer run also merges duplicates and reviews which pages need more depth. It runs as a systemd timer on my server, calling Claude Code headless. The rule that took me a while: only one machine runs it. Two writers on a live-synced vault make conflict copies. My PC only runs a catch-up if the server's last run is more than 30 hours old.

6. Sync the vault between machines, but keep history outside it

My PC and my server share the vault two ways through Syncthing; a change shows up on the other side in seconds. Version history is a separate git repository outside the synced folder, snapshotted every 15 minutes, which also merges any conflict copies. Never put a .git folder inside a synced vault.

7. Add memory on top, not instead

The vault is the long-term knowledge. On top I keep a small capped file of current facts and a searchable index of every past session, so the assistant knows what is true today and what we said last week. That part has its own lesson: how I make Claude Code remember context between sessions.

Mistakes I made

What I'd do next

If you are starting: create six folders, write a 40-line CLAUDE.md with the filing rule and the two Iron Laws, and drop in your last three meeting notes. Look at what it files. Fix the rules, not the pages. My public template is at github.com/Asadulelah/second-brain-os (MIT): it sets itself up through an interview, so there are no placeholders to edit. Its one-line pitch is the reason I built it: every other second brain remembers, this one works.