Skip to main content

Vault Graph

Status: Active public release

Vault Graph is a read-only, rebuildable knowledge access layer over Vault.

It helps humans and agents search Vault, trace decisions, inspect project memory, and build task-specific context packs without turning retrieval output into durable knowledge.

Vault remains the source of truth. Vault Graph reads, indexes, retrieves, and explains Vault-derived context. It does not publish wiki pages, mutate raw sources, edit Vault documents, or replace Vault's validation workflow.

Install

Prerequisites:

  • Python 3.12+
  • uv

Install from PyPI:

uv tool install vault-graph
vg --help

Development install from a source checkout:

git clone git@me.github.com:cutehackers/vault-graph.git
cd vault-graph
uv sync
uv run --python 3.12 vg --help

Optional local command install from a source checkout:

uv tool install -e .
vg --help

Quick Start

Keep Vault Graph state outside your Vault:

vg init --vault /path/to/llm-wiki --state ~/.vault-graph
vg index --state ~/.vault-graph
vg status --state ~/.vault-graph
vg search --state ~/.vault-graph "GraphRAG"
vg context --state ~/.vault-graph "Implement GraphRAG MVP"

The first index builds local metadata, keyword, vector, and graph projections. Vault Graph uses local storage and local embeddings by default; it does not require hosted services for normal use.

Common Commands

Goal Command
Register a Vault vg init --vault /path/to/llm-wiki --state ~/.vault-graph
Add another Vault vg vault add work --path /path/to/other-vault --state ~/.vault-graph
List Vaults vg vault list --state ~/.vault-graph
Index the active Vault vg index --state ~/.vault-graph
Index one Vault vg index --vault-id work --state ~/.vault-graph
Index all Vaults vg index --all-vaults --state ~/.vault-graph
Check health vg status --state ~/.vault-graph
Search evidence vg search --state ~/.vault-graph "query"
Include graph signals vg search --include-graph --state ~/.vault-graph "query"
Ask with evidence vg ask --state ~/.vault-graph "question"
Build a context pack vg context --state ~/.vault-graph "goal"
Find related items vg related --state ~/.vault-graph GraphRAG
Trace a decision vg decision-trace --state ~/.vault-graph GraphRAG

Commands that accept --vault-id operate on one registered Vault. Commands that accept --all-vaults expand to all enabled registered Vaults. Commands without either option use the active Vault.

Connect An Agent Through MCP

MCP server installation and MCP server registration are different things:

  • installation makes the vg command available
  • registration tells an agent how to start vg serve --mcp

After indexing your Vault, register this stdio server in the agent's MCP config:

{
  "mcpServers": {
    "vault-graph": {
      "command": "vg",
      "args": [
        "serve",
        "--mcp",
        "--state",
        "/path/to/.vault-graph"
      ]
    }
  }
}

The current Codex-style example lives at docs/superpowers/specs/phase-5/codex-local-stdio-config.example.json.

Once connected, the agent can use these MCP tools:

  • search_vault
  • build_context_pack
  • find_related
  • get_decision_trace
  • check_index_status
  • explain_result
  • summarize_project_memory
  • get_open_questions
  • get_recent_changes
  • ask_vault

Vault Graph provides evidence-first working context and evidence-first answers through ask_vault and vg ask.

Recommended Easy Setup

The accepted onboarding target is a one-command setup flow:

vg setup --vault /path/to/llm-wiki --agent codex

This command:

  • uses ~/.vault-graph as the default state path when --state is omitted
  • registers the Vault path
  • runs indexing
  • prepares MCP registration for the selected agent
  • prints the MCP server command or writes it only to an explicit agent config path

The lower-level MCP commands should remain available for explicit control:

vg mcp register --agent codex --state ~/.vault-graph --config-path /path/to/agent-config.json
vg mcp config --agent codex --state ~/.vault-graph --print

These commands are implemented product features. Their implementation design lives at docs/superpowers/specs/2026-06-24-cli-todo-command-implementation-design.md:

vg setup --vault /path/to/llm-wiki --agent codex
vg mcp register --agent codex --state ~/.vault-graph --config-path /path/to/agent-config.json
vg mcp config --agent codex --state ~/.vault-graph --print
vg watch
vg ask "question"
vg serve --http

Guarantees

Vault Graph user-facing features preserve these guarantees:

  • read-only access to Vault
  • local-first operation without mandatory hosted services
  • evidence-first retrieval, context packs, and answers
  • clear separation between stated facts and inferred links
  • warnings for stale, missing, contested, or deprecated material
  • reproducible indexes that can be deleted and rebuilt from Vault
  • Vault-scoped identity for multiple registered Vault roots
  • visible backend health and index freshness status
  • durable knowledge publication only through Vault

More Documentation

License

Vault Graph is distributed under the MIT License. See LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vault_graph-0.1.2.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vault_graph-0.1.2-py3-none-any.whl (222.7 kB view details)

Uploaded Python 3

File details

Details for the file vault_graph-0.1.2.tar.gz.

File metadata

  • Download URL: vault_graph-0.1.2.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for vault_graph-0.1.2.tar.gz
Algorithm Hash digest
SHA256 13ef613fa1d8132ce9d73a4f90832d4856e162bb3ff2232418fef3137bb86634
MD5 4588d486242c917ce25d06c082d4bfa0
BLAKE2b-256 01d8fd50735abf114f7ce35f7c4636bc24681485700fbdcd4bcc6e39aa81af3e

See more details on using hashes here.

File details

Details for the file vault_graph-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: vault_graph-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 222.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for vault_graph-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e84bf3a0ed388a83a54f95210185100b5168b7cda21313ae37410d9024eea13f
MD5 b8c5d575356d2e614a2f77a651f08d05
BLAKE2b-256 1445bc351f6e8bda0ef5e041a68f626c392a986aeda7dba82a957717d6939164

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.4

2 files

0.1.3

2 files

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page