Spine
A self-developing knowledge management system for Claude Code.
Spine bridges Claude Code's memory to an Obsidian vault, giving your AI agent persistent, structured knowledge that compounds with every commit. Your AI gets smarter with every fix, every feature, every decision.
I started building Spine in March 2026 while working on production React/Express apps. The pain was simple: Claude kept rediscovering the same context from scratch every session. Fixes I'd spent hours debugging would be forgotten. Architecture decisions had no home. The knowledge died in the context window.
Spine was my answer: a two-layer system where Claude memory becomes structured signposts pointing into an Obsidian vault of curated, feature-organized docs. It worked so well I open-sourced it.
Why Spine?
Most AI memory solutions fall into two camps:
- Flat memory — Claude Code's native memories. Lightweight but unstructured. No organization, no connections, no depth.
- Heavy infrastructure — Knowledge graphs, vector DBs, MCP servers, Python dependencies. Powerful but complex to set up and maintain.
Spine sits in between. It's just markdown files in an Obsidian vault with a set of conventions that make them navigable by both humans and AI. No dependencies. No servers. No Python. Just files, wikilinks, and frontmatter tags.
Your vault/
└─ your-repo/
└─ Authentication/
├─ Authentication.md ← spine note (the hub)
├─ 2026-03-18 Fix - Cookie Expiry.md
├─ Architecture - OAuth Flow.md
└─ Decision - JWT vs Session.md
How It Works
Two layers, three hops:
Claude Memory → Spine Note → Specific Doc
(one-line signpost) (feature hub) (root cause, code snippets)
- Claude Memory — lightweight signposts. One entry per feature, pointing to a spine note. Loaded automatically every session.
- Obsidian Vault — the full knowledge base. Spine notes link to fixes, features, architecture docs, plans, and decisions via
[[wikilinks]].
When Claude needs context on a feature, it reads the signpost (instant), then the spine note (feature overview), then the specific doc it needs. Three hops, each narrowing the scope. No vector search, no embeddings — just structured navigation.
What Makes It Self-Developing
Spine doesn't just store knowledge — it grows itself:
/spine-capture — After you complete work, this skill auto-drafts an Obsidian doc from your commits. Detects the repo, matches the feature, applies the naming conventions, updates the spine note with wikilinks. You review and approve.
/spine-health — On-demand vault audit. Finds undocumented commits, stale docs, duplicate notes, broken wikilinks, missing tags, and memory sync issues.
/spine-update — Resume and enrich existing docs after continued work sessions. Detects stale docs or targets a specific note, then appends a timestamped update with git changes and session context. Your docs evolve with your code.
/spine-recall — On-demand deep pull. Loads all vault docs for a feature area into your context when you need full knowledge beyond the auto-loaded index.
/spine-sessions — Episodic memory search. Answers "what did we do / decide / try in a past session?" — greps the episode log first, then drills into raw session transcripts with type-filtered ripgrep. Deterministic, no LLM calls, returns resume commands.
- Episode log — After every turn, the Stop hook upserts a compact episode record (title, latest asks, branch, recently touched files) from the session transcript into
{vault}/.spine/episodes/{repo}.md, one record per session. Survives transcript rotation. The last 3 episodes are injected at session start for continuity.
- Compaction checkpoint — A PreCompact hook refreshes the session's episode just before Claude Code compacts, and the post-compaction SessionStart re-injects it, so your verbatim asks and touched files survive the summary. Controlled by
episodes flag (default: follows tier3).
/spine-dream — Synthesis curator. Reads accumulated update sections, episodes, and sibling docs, derives NEW knowledge — reusable playbooks and gotcha docs (type/derived) — with every claim wikilinked to its evidence and verified against source before landing. Human-gated (Save/Edit/Skip), audit trail in .spine/DREAMS.md. Memory that compounds instead of piling up.
/spine-pulse — Proactive stale-WIP reminders. A deterministic scanner watches all your repos for unmerged branches and abandoned sessions idle beyond a threshold, recaps each from episode logs ("you were doing X on branch Y, left off at Z"), and reminds you two ways: a session-start banner in any repo, and an optional daily macOS notification via launchd. Snooze, ignore lists, and an abandonment horizon keep it from nagging.