ClawVault
Core Concepts

Memory Graph

Typed knowledge graph connecting your memories through wiki-links, tags, and frontmatter

ClawVault builds a typed knowledge graph from your vault content, enabling graph-aware context retrieval and rich relationship discovery. The graph connects memories through wiki-links, tags, and frontmatter metadata.

Graph Index Storage

The memory graph is stored at .clawvault/graph-index.json:

{
 "schemaVersion": 2,
 "lastUpdated": "2026-02-13T10:30:00Z",
 "nodes": {
 "decisions/database-choice": {
 "id": "decisions/database-choice",
 "type": "decision",
 "title": "Use PostgreSQL over SQLite",
 "category": "decisions",
 "path": "decisions/database-choice.md",
 "lastModified": "2026-02-13T09:15:00Z"
 }
 },
 "edges": [
 {
 "from": "decisions/database-choice",
 "to": "people/pedro",
 "type": "wiki-link",
 "context": "Pedro recommended PostgreSQL"
 }
 ],
 "stats": {
 "nodeCount": 156,
 "edgeCount": 298,
 "nodeTypes": { "decision": 23, "person": 45, "project": 12 }
 }
}

Node Types

The graph recognizes these node types from memory categories:

TypeCategoryDescription
decisiondecisions/Choices made with reasoning
lessonlessons/Learning and insights
personpeople/Relationships and contacts
projectprojects/Active work and initiatives
commitmentcommitments/Deadlines and promises
preferencepreferences/Subjective choices
factfacts/Static information
feelingfeelings/Emotional context
templatetemplates/Document templates
observationobservations/Auto-generated insights

Edge Types

Connections between nodes are typed based on how they're created:

Created from [[entity]] syntax in markdown files.

# In decisions/database-choice.md
We discussed this with [[pedro]] and decided on PostgreSQL.
The [[user-auth-project]] needs concurrent access.

Creates edges:

  • decisions/database-choicepeople/pedro (wiki-link)
  • decisions/database-choiceprojects/user-auth (wiki-link)

tag

Created from #hashtag syntax.

# In lessons/auth-patterns.md 
#security #authentication patterns work best with JWT tokens.

Creates edges:

  • lessons/auth-patternstag:security (tag)
  • lessons/auth-patternstag:authentication (tag)

frontmatter

Created from YAML metadata relationships.

---
title: "Database Migration"
related: ["database-choice", "performance-testing"] 
author: "pedro"
project: "user-dashboard"
---

Creates edges:

  • projects/database-migrationdecisions/database-choice (frontmatter)
  • projects/database-migrationpeople/pedro (frontmatter)
  • projects/database-migrationprojects/user-dashboard (frontmatter)

Incremental Rebuild

The graph index rebuilds incrementally for performance:

# View graph summary
clawvault graph

# Force full rebuild
clawvault graph --refresh

Incremental logic:

  1. Check file modification times against last index update
  2. Only reprocess changed files
  3. Update affected nodes and edges
  4. Preserve unchanged portions of graph

This makes graph updates fast even with large vaults.

Graph-Aware Context

The graph enables intelligent context retrieval:

# Get context with graph neighbors
clawvault context "database performance"

Context algorithm:

  1. Semantic search finds relevant documents
  2. Graph traversal includes connected nodes
  3. Type weighting prioritizes certain relationships
  4. Temporal decay favors recent connections

Example: Querying "database" returns:

  • Direct matches (semantic)
  • Connected people who worked on database decisions (graph)
  • Related projects mentioning database choices (graph)
  • Recent observations about database performance (temporal + graph)

Entity-Slug Routing

Wiki-links use entity-slug routing for clean URLs:

[[pedro]] → people/pedro/
[[user-auth-project]] → projects/user-auth-project/
[[database-choice]] → decisions/database-choice

Routing rules:

  • People: people/{slug}/ (subfolder for relationship history)
  • Projects: projects/{slug}/ (subfolder for project updates)
  • Other types: {category}/{slug} (single file)

Auto-Linking

ClawVault can automatically create wiki-links for entity mentions:

# Link all files in vault
clawvault link --all

# Link specific file
clawvault link decisions/database-choice.md

# Find broken links
clawvault link --orphans

# See what links to a file
clawvault link --backlinks people/pedro.md

Entity detection:

  • Proper nouns (capitalized words)
  • Known file names in vault
  • Common entity patterns (names, projects)

Graph Statistics

View graph health and growth:

clawvault graph

Output includes:

  • Node count by type
  • Edge density (connections per node)
  • Orphan nodes (unconnected)
  • Popular nodes (highly connected)
  • Growth trends (new nodes/edges)

Obsidian Integration

The graph works seamlessly with Obsidian:

  1. Wiki-links render as clickable connections
  2. Graph view visualizes relationships
  3. Backlinks panel shows incoming references
  4. Entity files can have rich metadata

Use Obsidian's graph view to visually explore your knowledge network and discover unexpected connections.

CLI Usage

# View current graph summary
clawvault graph

# Rebuild graph index from scratch 
clawvault graph --refresh

# Check for broken wiki-links
clawvault link --orphans

# Auto-link entity mentions
clawvault link --all

# See what connects to a specific memory
clawvault link --backlinks decisions/database-choice.md

The memory graph transforms your vault from isolated documents into a connected knowledge network, enabling much richer context retrieval and relationship discovery.

On this page