Skip to main content

Command Palette

Search for a command to run...

Why Your AI Agent Needs a Knowledge Graph, Not a Folder Structure

Published
4 min readView as Markdown

Most personal knowledge management systems are organized around folders. Projects/, Resources/, Archive/. Nested categories. A hierarchy that mirrors how a filesystem works.

This is fine for humans browsing files. It's a poor architecture for AI agents reading context.

Here's why — and what to use instead.

The folder problem

Folders encode a single relationship: containment. A note about your authentication strategy lives in Projects/Backend/Auth/. That's where it belongs — within a category.

But a note about authentication also relates to:

  • Your security threat model (in Resources/Security/)
  • A specific past incident that informed your approach (in Archive/2025/)
  • A decision you made to reject OAuth in favor of JWT (in Projects/Backend/Decisions/)
  • A team member who owns the auth system (in People/)
  • An open question about token rotation (in Projects/Backend/OpenQuestions/)

Folders don't capture any of those relationships. The note has one address. Everything else it relates to is invisible unless you navigate manually.

When an AI agent reads a note in isolation, it gets the content but misses the web of relationships that give that content meaning.

What a knowledge graph does differently

A graph-based note has links — explicit, named connections to other notes. [[Auth Decision — JWT over OAuth]], [[Security Threat Model]], [[Alex — Backend Lead]].

When an AI reads a graph-structured note, it can traverse those links. The authentication note isn't just a document — it's a node in a network. The AI can follow the chain: auth strategy → threat model → prior incident → decision rationale → open questions.

That traversal produces context-aware understanding rather than isolated fact retrieval. The AI doesn't just know what you decided about authentication. It knows why, what you considered, who owns it, and what's still open.

The most powerful part of a graph structure isn't outbound links (what a note links to) — it's inbound links (what links back to it).

In Obsidian, every note has a backlink panel: a live list of every other note that references it. An AI agent reading your authentication note can see it's referenced in 4 project notes, 2 meeting notes, and 1 decision log. That's a signal about centrality, recency, and how many parts of your system depend on this particular piece.

A folder structure has no equivalent. A note in Projects/Backend/Auth/ has no idea how many other parts of your system depend on it.

The practical impact on AI output

Here's a concrete example.

Folder-structured prompt:

"Here's my auth.md file. Should I add rate limiting?"

The AI reads the file and gives you a competent, generic answer about rate limiting. It's missing context about your threat model, your prior decisions, your current open questions about token rotation, and the incident that's driving this conversation.

Graph-structured prompt (reading hub + linked notes):

"Here's my auth note, threat model note, and recent incident note. Should I add rate limiting?"

The AI now knows you had a credential-stuffing incident last quarter, you already implemented exponential backoff but not hard limits, your threat model ranks replay attacks as P1, and you have an open question tagged [UNRESOLVED] about where rate limits belong in the stack.

Same model. Same base prompt. Qualitatively different output.

Building graph structure that works for AI

A few practical rules:

1. Inline links, not link dumps. Links should appear in the body of the note, in context — we chose JWT over OAuth because [[Auth Decision — JWT over OAuth]] — not in a trailing "Related" section. Body placement tells the AI the link is semantically relevant to the surrounding content.

2. Hub notes as entry points. For every significant project or domain, have one canonical hub note. It's the briefing document — current state, active constraints, key decisions, open questions. It links out to everything else. The AI starts here and traverses outward.

3. Bidirectional awareness. When you create a note, ask: what existing notes should link to this? Update them. A note that nothing links to is an orphan — findable only by direct search, not by traversal.

4. Named link relationships. [[Auth Decision — JWT over OAuth]] is better than [[decision1]]. The link text is readable by the AI as context, not just as a pointer.

5. Separate raw from synthesized. Raw captures (meeting notes, web clips, voice transcripts) go in a staging zone. Synthesized, graph-linked notes go in the permanent layer. The AI should only traverse the permanent layer by default — raw material is noisy and unvetted.

The vault template

The Obsidian vault skeleton I use operationalizes all of this:

  • Hub note templates with the right sections (Summary, Context, Details — each with required inline links)
  • Typed note types: wiki notes, raw captures, map notes, session-state
  • MOC (Map of Content) structure for top-level navigation
  • Linking rules enforced by the template design (not optional)
  • Optional local runtime: a lightweight vector store for discovery when you can't recall a note's exact name, with direct file reads as the primary AI context mechanism

Obsidian Agent Vault on Gumroad — $49

The jump from folder-based to graph-based knowledge management is architectural. The template gives you the structure without the six months of figuring out what works.


Tags: #obsidian #pkm #ai #knowledgemanagement #productivity #llm #graphdatabases

More from this blog

P

PHAROS

11 posts