Nathan Hodgson
Library
Setup guidesIntermediate4 min readUpdated

Graphify vs Obsidian for Claude Code

Stop Claude Code re-reading your whole codebase each session. Pick a route and set it up.

Claude Code starts every session with no memory of your project, so it reads and greps its way back through your files before it can answer anything. Two routes cut that down. Graphify turns the codebase itself into a queryable graph. Obsidian is a notes app that holds the project knowledge Claude keeps forgetting. They solve different halves of the problem, and plenty of people run both.

Which one do you want

  • Want your tokens back with the least setup: Graphify. It maps the code and gets out of the way.
  • Want Claude to remember decisions, past bugs and architecture notes between sessions: Obsidian as a vault it reads.
  • Want both: map the code with Graphify and keep the written context in an Obsidian vault. The community setup below does exactly this.

Route 1: Graphify

Graphify parses your repository locally with deterministic AST parsing and no vector store, then exposes code, docs, schemas and configs as a graph your assistant can query. It supports Claude Code, Cursor, Codex, Gemini CLI, GitHub Copilot and others. It is Apache 2.0 and published on PyPI as graphifyy.

Open the Graphify repository

  1. Read the repository README first. Install paths change, so use the current documented command rather than an older screenshot.
  2. Install the CLI with graphify install. On Windows the repo documents graphify install --platform windows instead.
  3. Set it up inside the project and turn on strict mode with graphify install --project --strict. Strict mode is what makes the assistant reach for the graph before it opens raw source.
  4. For Claude Code the repo also documents graphify claude install. Run it from the project root, then restart your session so the skill is picked up.
  5. Build the graph, then ask a question you already know the answer to and watch whether Claude queries the graph or falls back to reading files. That is your check that strict mode is on.
Terminal
graphify install
graphify install --project --strict
graphify claude install

A first question to try

Prompt
Using the Graphify graph for this repository rather than reading raw source, show me every place [function or endpoint] is called, what it depends on, and which tests cover it. List the files you would need to open for the change I am about to describe, and stop there. Do not edit anything yet.

What the token numbers actually say

Graphify's own benchmark reports up to 71.5x fewer tokens, measured on a single large monorepo where a naive Claude Code run used roughly 123,000 tokens and the Graphify run used roughly 1,700. A third party review of daily tasks reported around 49x. Treat these as benchmark figures rather than a promise: there is an open issue on the repo from someone who saw no improvement, so measure your own repo before and after.

Route 2: Obsidian as Claude's memory

Obsidian on its own is a Markdown notes app. It does not parse your codebase. What people mean by the Obsidian route is using an Obsidian vault as the place Claude writes and reads long-lived project knowledge, so architecture decisions, bugs and research survive between sessions. The vault is plain Markdown on disk, which is why Claude Code can work with it directly.

Open the claude-code-memory-setup repository

  1. Create or pick an Obsidian vault folder that Claude Code is allowed to read and write.
  2. Put a CLAUDE.md at the vault root describing what lives where and when Claude should write a note. This file is what Claude reads first.
  3. Create the folder structure the setup uses: permanent, inbox, fleeting, templates, logs and references, plus a folder per project.
  4. Either open the vault folder as part of your working directory, or connect it through an Obsidian MCP server so Claude can query the vault from any project.
  5. Add Graphify on top if you also want the code map. The same repository describes combining the two, with Obsidian holding long-term memory and Graphify holding the structural map of the code.

A prompt to seed the vault

Prompt
Read this project and write a short note into my Obsidian vault under permanent/ for each of the following: the architecture as it actually is, the decisions that are already locked in and why, and the traps a new contributor would fall into. One file each, plain Markdown, linked from a project index note. Keep every claim traceable to something in the repository, and mark anything you are unsure about as open.

Before you commit to either

  • Measure a real session's token use before you change anything, so you can tell whether the setup helped on your repo rather than on someone's benchmark.
  • Graphify parses locally, but read the repository's own notes on what it indexes before you point it at a project containing secrets.
  • A vault only helps if the notes stay true. Stale architecture notes will confidently mislead Claude, so prune them when the code moves.