Back to Blog

Graphify + Obsidian: Give Claude Code a Second Brain

9 min read

Graphify + Obsidian: Give Claude Code a Second Brain

You don't have to choose between Graphify and Obsidian for Claude Code's memory — you can fold one into the other. Graphify turns any repository or pile of documents into a knowledge graph. Obsidian stores your broader project context. Combine them, and Claude Code can query a knowledge graph inside the context of your whole vault. I built this on the official Claude Code docs and it took under a few minutes of actual work. Here's exactly how it works and how to set it up yourself.

Most people treat these two tools like an either/or decision. That's the mistake. The real move is using Graphify to build the map, then piping that map into Obsidian so it stops living in a vacuum and starts talking to everything else you've got going on.

Why Combine Graphify and Obsidian?

Graphify's whole job is to turn a codebase or document corpus into a knowledge graph — a map of concepts, how they relate, and the why behind those connections. You point Claude Code at a repo, Graphify extracts the concepts, and now Claude has a map instead of a blind grep. That makes it dramatically faster and more accurate at answering questions about that repo.

The catch: inside Graphify, that map lives in isolation. It's just that one codebase or that one set of docs. It has nothing to do with the larger project you're tracking in your Obsidian vault.

And Obsidian vaults get wide. If you've been building in Claude Code for a while, your vault probably has projects, content, notes, and half-finished ideas all tied to the same tools. When you graph a repo with Graphify, you often want to know how it fits into that bigger picture — not just study it in a silo.

That's the payoff of merging them. There are really two reasons to bring a graph into Obsidian:

  • Context injection — you figured something out with Graphify and now you want it to be part of a larger project living in your main vault.
  • Ecosystem preference — you just love Obsidian. You want the UI, the add-ons, the backlinks, the graph view. So you want the whole Graphify construct to live as its own Obsidian vault.

Both are valid. The first is about coherence. The second is about comfort. Either way, the mechanics are the same.

What Does Graphify Actually Build From Your Docs?

For the demo, I pointed Graphify at the official Claude Code documentation — a pure non-code corpus. The command was plain natural language: download the official Claude Code documentation, point Graphify at it, then use the Graphify Obsidian command to turn it into a vault.

Here's what came back, and the numbers matter because they explain how the graph is structured:

  • 171 pages fetched from the docs and downloaded to a standalone folder.
  • 145 documents actually pulled into Graphify.
  • 591 nodes created.
  • 685 connections between those nodes.
  • 67 communities (groupings of related concepts).

The key thing most people get wrong: each node is not a document or a web page — it's a concept extracted from the pages. Graphify reads all 145 documents, pulls the concepts out, and connects them. So a node like context window isn't "the context window doc." It's the concept of the context window, wired to related concepts like path-scoped rules, sub-agent separate context windows, the post-tool-use hook, and the extended 1-million-token context.

The communities are just clusters of those concepts — things like checkpointing, cloud and web, LLM gateway, and skills. This is where Graphify earns its keep. When you hand Claude Code that graph and ask about sub agents, it doesn't have to control-F its way through 145 files. It already knows sub agents connect to agent teams and everything else in that neighborhood. It has the map. It understands the why.

How Does Graphify Push the Graph Into Obsidian?

This is the part that's shockingly easy, because Graphify has it built in. There's a dedicated flag:

graphify --obsidian

That generates an Obsidian vault for you automatically. You don't have to hand-build anything on the Obsidian side. When you call that flag, Graphify walks every single node — sub agent, for example — and creates a markdown file for that concept with automatic backlinks to every node connected to it.

In this run, that meant 591 markdown files with 685 links between them, ready to drop into Obsidian. The backlinks are what light up Obsidian's native graph view, so the concept map survives the translation.

By default, Graphify quarantines this output. It doesn't dump 591 files straight into your existing vault. It builds a standalone vault in its own directory first — in my case, a CC-docs folder under my vaults directory. That default matters, because injecting 600 markdown files willy-nilly into a carefully-built Claude OS command center is not something you want happening by accident.

What Are Your Options for Handling 600 New Markdown Files?

If you've built a real system in Obsidian, you're rightfully wary about flooding it. You've got four options for how much of the graph you let in, ordered from least to most invasive:

  1. Standalone vault. Keep it in its own vault. It's still in a vacuum — but now it's a vacuum inside the Obsidian ecosystem, with all the UI and add-ons. This is Graphify's default behavior.
  2. Quarantine subfolder. Drop all 600 files into a single dedicated subfolder in your main vault — call it something like Claude Code Documentation. You get the context, but if you hate how it fits, you delete one folder and it's all gone. Clean escape hatch.
  3. Harvest. Have Claude Code walk the standalone directory and cherry-pick. "Bring this in, ignore that, keep that one." Maybe you only want the 100 files about sub agents. You piecemeal exactly what you need.
  4. Redistribution. The most complex. Claude Code reads every generated markdown file and redistributes each one into whatever existing subfolder makes the most sense, so the graph blends coherently into your vault structure. It's the cleanest integration — and the hardest to undo.

It's not all-or-nothing. Pick based on how much you trust the graph and how coherent you need your vault to stay. My recommendation: let Graphify create the standalone vault, then bring it in as a single subfolder. You get the context with a one-folder delete as your undo button.

How Do You Register the Standalone Vault in Obsidian?

Graphify creates the vault on disk, but Obsidian still has to be told it exists. After the CC-docs folder is generated:

  1. Open Obsidian.
  2. Go to Manage Vaults (bottom-left).
  3. Choose Open folder as vault.
  4. Navigate to the folder Graphify created (for me, vaults/CC-docs) and select it.

Now you've got an Obsidian vault built from the knowledge graph. But you're not done — and this next step is the one that actually makes it useful.

Why You Have to Wire In the Source Documents

Out of the box, those generated markdown files are bare bones. Each one is basically just the concept title — prompt injection, threat model, data retention — plus its connections, the edges in the graph. That's a signpost with nothing behind it. If you tell Claude Code to look up the agents command and all it finds is a title and a list of links, that doesn't do much.

The fix: bring in the source documents and wire every node back to its origin. The command I gave was plain English — pull the source docs in and wire every node to its origin in the CC-docs folder.

Now every concept stub carries a clear source doc link. Click a node like auto mode, and you don't just land on a skeletal stub — you see the stub, everything connected to it, and the source document where the real information lives. Ask Claude Code about bundled skills, and it walks from the bundled skills stub to the actual skills documentation.

This is the whole trick. The graph is the map; the source docs are the destinations. The concept stubs are signposts that point Claude Code in the right direction, and the wired-in source docs are where it extracts the real answer. Without that wiring, you've got a pretty graph and nothing to read.

How Do You Move the Graph Into Your Main Vault?

Once the standalone vault has its source docs wired in, moving it into your primary vault is one more plain-English command: now move the CC-docs vault structure into our main vault within its own subfolder. Claude Code did it in under a minute.

The result inside the main vault:

  • A graph imports subfolder, with a Claude code docs subfolder underneath.
  • 658 concept stubs (the markdown files mapped from the graph nodes).
  • 146 full source documents, each linked from the stubs that reference it.

Open the main vault's graph view now and you can see the difference — a dense new cluster of Claude Code documentation woven into the greater context of everything else you do with Claude Code. That's the sell. The docs aren't sitting in a silo anymore. They're part of the same ecosystem as your projects, your notes, and your content, and Claude Code can traverse all of it together.

When Should You Actually Do This?

Be honest about your use case, because this isn't a one-size-fits-all move. For a lot of scenarios — especially raw codebases — stopping at Graphify makes perfect sense. The siloed graph is exactly what you want, and dragging it into Obsidian adds overhead you won't use.

But there's a large contingent of people who genuinely live in Obsidian — who've built a command center, who love how Claude Code plays into that setup, and who want every useful corpus folded into one coherent vault. For those people, this workflow is a real unlock. It's one more tool in the toolbox. The skill is knowing when to reach for it, and luckily the execution itself is not hard.

Frequently Asked Questions

Does Graphify only work on codebases?

No. Graphify works on any corpus — codebases, documentation, PDFs, images, even video. In this walkthrough I pointed it at the official Claude Code documentation, which is a pure non-code document set. Graphify extracts concepts and connections the same way regardless of whether the source is code.

Is the Obsidian graph the same as a Graphify knowledge graph?

Not exactly. A true Graphify knowledge graph is a structured graph of concept nodes and edges. In Obsidian it becomes a collection of connected markdown files — one per concept — with backlinks standing in for the graph's edges. It's a markdown mirror of the graph, not the graph itself, but it behaves similarly for navigation and for Claude Code queries.

How many files does Graphify inject into my vault?

It depends on the corpus. For the Claude Code docs, Graphify produced 591 nodes and 685 connections, which became roughly 600 markdown files (658 concept stubs after the source docs were wired in, linked to 146 source documents). Graphify quarantines all of it in a standalone vault first, so nothing hits your main vault until you decide to move it.

Do I have to bring the whole graph into my main vault?

No. You have four options: keep it as a standalone vault, drop it into a single quarantine subfolder, harvest only the files you want, or redistribute files across your existing folders. The safest is the quarantine subfolder — you get full context but can delete one folder to undo everything.

Why do I need to wire in the source documents?

Because the generated concept stubs are bare bones — just a title and its connections. Wiring in the source docs gives each stub a link back to the original document, so when Claude Code lands on a concept it can jump to the full source and extract real information instead of reading an empty signpost.


If you want to go deeper into building a Claude Code second brain in Obsidian, join the free Chase AI community for templates, prompts, and live breakdowns. And if you're serious about building with AI, check out the paid community, Chase AI+, for hands-on guidance on how to make money with AI.