About Swarmvault
Swarmvault is an MCP server published by swarmclawai in the RAG category: the local-first LLM Wiki: open-source knowledge graph builder, RAG knowledge base, and agent memory store. Built on Andrej Karpathy's pattern. An Obsidian alternative for personal knowledge management, AI second brain, and durable Claude Code / Codex / OpenClaw memory. Conduid read 51 tools from its source: archive_candidate, auto_promote_candidates, blast_radius, build_context_pack, cluster_graph, compile_vault and 45 more. No package is published for it, so it installs from a source checkout.
The repository has 741 stars and 86 forks, is licensed MIT, and its last commit was on 30 Jun 2026. The latest release is v3.20.0 (12 Jun 2026): Added declaration line ranges to code symbols: the TypeScript/JavaScript analyzer records startLine/endLine for functions, classes, and variables, the ranges travel thro… It follows v3.19.0 (12 Jun 2026), and the 5 most recent releases go back to v3.16.1 (11 Jun 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include claude-skills, codex-skills, karpathy, knowledge-graph, llm-wiki and local-first.
Install
git clone https://github.com/swarmclawai/swarmvaultTools (51)
archive_candidateArchive a staged candidate without promoting it.| Parameter | Type | Description |
|---|---|---|
| target * | string | Candidate page id or wiki/candidates path |
auto_promote_candidatesApply configured auto-promotion rules to staged candidates. Requires candidate.autoPromote.enabled in config.| Parameter | Type | Description |
|---|---|---|
| dryRun | boolean | Score candidates without moving files |
blast_radiusAnalyze the impact of changing a file or module by tracing reverse import edges.| Parameter | Type | Description |
|---|---|---|
| maxDepth | number | Maximum traversal depth (default 3) |
| target * | string | File path, module label, or module id |
build_context_packBuild a cited, token-bounded context pack for an agent task.| Parameter | Type | Description |
|---|---|---|
| budgetTokens | number | Approximate token budget for included context |
| format | string | Preferred rendered output format |
| goal * | string | Task, question, or goal the agent needs context for |
| target | string | Optional page, node, path, project, or label to anchor the pack |
cluster_graphRecompute graph communities, node degrees, god-node flags, and graph report artifacts from the existing compiled graph.| Parameter | Type | Description |
|---|---|---|
| resolution | number | Optional Louvain community resolution override |
compile_vaultCompile source manifests into wiki pages, graph data, and search index.| Parameter | Type | Description |
|---|---|---|
| approve | boolean | Stage a review bundle without applying active page changes |
| maxTokens | number | Maximum token budget for wiki output |
consolidateRun the LLM Wiki v2 consolidation pass, rolling working-tier insight pages into episodic, semantic, and procedural tiers.| Parameter | Type | Description |
|---|---|---|
| dryRun | boolean | Return decisions without writing any files |
doctor_retrievalDiagnose retrieval index problems and optionally repair them.| Parameter | Type | Description |
|---|---|---|
| repair | boolean | Rebuild stale or missing retrieval artifacts |
doctor_vaultDiagnose vault health across graph, retrieval, review queues, watch state, and migrations.| Parameter | Type | Description |
|---|---|---|
| repair | boolean | Run safe repairs such as rebuilding stale retrieval artifacts |
finish_memory_taskFinish a SwarmVault memory task with an outcome and optional follow-up.| Parameter | Type | Description |
|---|---|---|
| followUp | string | Follow-up to preserve for the next agent |
| id * | string | Memory task id |
| outcome * | string | Outcome to record |
finish_taskFinish a SwarmVault task with an outcome and optional follow-up.| Parameter | Type | Description |
|---|---|---|
| followUp | string | Follow-up to preserve for the next agent |
| id * | string | Task id |
| outcome * | string | Outcome to record |
get_communityReturn members, pages, and top evidence edges for a graph community by id or label.| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum evidence edges to return |
| target * | string | Community id or label |
get_hyperedgesList graph hyperedges, optionally filtered to a node or page target.| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum hyperedges to return |
| target | string | Optional node/page label or id to filter by |
get_neighborsReturn the neighbors of a graph node or page target.| Parameter | Type | Description |
|---|---|---|
| target * | string | Node or page label/id |
get_nodeExplain a graph node, its page, community, neighbors, and group patterns.| Parameter | Type | Description |
|---|---|---|
| target * | string | Node or page label/id |
god_nodesList the highest-connectivity graph nodes.| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum nodes to return |
graph_callersList the callers of a symbol with file:line call-site evidence derived from graph call edges.| Parameter | Type | Description |
|---|---|---|
| target * | string | Symbol label or node id |
graph_reportReturn the machine-readable graph report and trust artifact.graph_statsReturn lightweight counts for graph nodes, evidence classes, source classes, communities, pages, and edges.graph_statusRead-only graph freshness check: graph/report presence, tracked repo changes since the last refresh, and the recommended refresh command.| Parameter | Type | Description |
|---|---|---|
| repoRoots | array | Optional repo roots to check instead of configured/tracked roots |
ingest_inputIngest a local file path or URL into the SwarmVault workspace.| Parameter | Type | Description |
|---|---|---|
| input * | string | Local path or URL to ingest |
lint_vaultRun anti-drift and vault health checks.list_approvalsList staged approval bundles awaiting review.list_context_packsList saved SwarmVault context packs.list_memory_tasksList saved SwarmVault agent memory tasks.list_sourcesList source manifests in the current workspace.| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum number of manifests to return |
list_tasksList saved SwarmVault agent tasks.migrateDetect the vault's version and preview the migration plan to the current SwarmVault version.| Parameter | Type | Description |
|---|---|---|
| target | string | Optional target version cap (migrations with toVersion above this are skipped) |
preview_candidate_scoresScore staged candidates against the configured auto-promotion rules without promoting.promote_candidatePromote a staged candidate into its active concept or entity page.| Parameter | Type | Description |
|---|---|---|
| target * | string | Candidate page id or wiki/candidates path |
query_graphTraverse the local graph from search seeds without calling a model provider.| Parameter | Type | Description |
|---|---|---|
| budget | number | Maximum nodes to summarize |
| context | array | Relation group filters for common code/evidence contexts |
| evidenceClasses | array | Only traverse these evidence classes |
| languages | array | Prefer traversal around nodes with these code languages |
| nodeTypes | array | Prefer traversal around these graph node types |
| question * | string | Question or graph search seed |
| relations | array | Only traverse edges with these relation names |
| traversal | string | Traversal strategy |
query_vaultAsk a question against the compiled vault and optionally save the answer.| Parameter | Type | Description |
|---|---|---|
| format | string | Output format |
| question * | string | Question to ask the vault |
| save | boolean | Persist the answer to wiki/outputs |
read_approvalRead the details and structured diffs for an approval bundle.| Parameter | Type | Description |
|---|---|---|
| approvalId * | string | Approval bundle id |
| diff | boolean | Include the textual unified diff alongside the structured diff |
read_context_packRead a saved SwarmVault context pack by id.| Parameter | Type | Description |
|---|---|---|
| id * | string | Context pack id |
read_memory_taskRead a saved SwarmVault agent memory task by id.| Parameter | Type | Description |
|---|---|---|
| id * | string | Memory task id |
read_pageRead a generated wiki page by its path relative to wiki/.| Parameter | Type | Description |
|---|---|---|
| path * | string | Path relative to wiki/, for example sources/example.md |
read_taskRead a saved SwarmVault agent task by id.| Parameter | Type | Description |
|---|---|---|
| id * | string | Task id |
rebuild_retrievalRebuild the local retrieval index from the current graph.resume_memory_taskRender a saved SwarmVault memory task as a next-agent handoff.| Parameter | Type | Description |
|---|---|---|
| format | string | Rendered output format |
| id * | string | Memory task id |
resume_taskRender a saved SwarmVault task as a next-agent handoff.| Parameter | Type | Description |
|---|---|---|
| format | string | Rendered output format |
| id * | string | Task id |
retrieval_statusRead SwarmVault retrieval index health and configuration.review_decisionAccept or reject approval bundle entries from a staged compile.| Parameter | Type | Description |
|---|---|---|
| approvalId * | string | Approval bundle id as reported by list_approvals or read_approval |
| decision * | string | Action to apply to the selected entries |
| notes | string | Free-form reviewer notes, surfaced in the session log |
| targets | array | Specific entry page ids to act on (defaults to all pending) |
search_pagesSearch compiled wiki pages using the local full-text index.| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum number of results |
| query * | string | Search query |
shortest_pathFind the shortest graph path between two targets.| Parameter | Type | Description |
|---|---|---|
| from * | string | Start node/page label or id |
| to * | string | End node/page label or id |
start_memory_taskStart a durable SwarmVault agent memory task and build its initial context pack.| Parameter | Type | Description |
|---|---|---|
| agent | string | Agent name to record on the task |
| budgetTokens | number | Approximate token budget for the initial context pack |
| contextPackId | string | Existing context pack id to attach instead of building a new one |
| goal * | string | Task goal to preserve in agent memory |
| target | string | Optional page, node, path, project, or label to anchor the initial context pack |
start_taskStart a durable SwarmVault agent task and build its initial context pack.| Parameter | Type | Description |
|---|---|---|
| agent | string | Agent name to record on the task |
| budgetTokens | number | Approximate token budget for the initial context pack |
| contextPackId | string | Existing context pack id to attach instead of building a new one |
| goal * | string | Task goal to preserve |
| target | string | Optional page, node, path, project, or label to anchor the initial context pack |
update_graphCode-only graph refresh. With files, refreshes just those files (fast path used after edits); otherwise walks tracked repo roots.| Parameter | Type | Description |
|---|---|---|
| files | array | Refresh only these files instead of walking every tracked repo root |
| force | boolean | Allow updates even when node or edge counts shrink sharply |
update_memory_taskAppend a note, decision, path, context pack, or status change to a SwarmVault memory task.| Parameter | Type | Description |
|---|---|---|
| changedPath | string | Changed file or wiki path to attach |
| contextPackId | string | Context pack id to attach |
| decision | string | Decision to append |
| gitRef | string | Git ref to attach |
| id * | string | Memory task id |
| nodeId | string | Graph node id to attach |
| note | string | Task note to append |
| pageId | string | Page id to attach |
| sessionId | string | Session id to attach |
| sourceId | string | Source id to attach |
| status | string | Task status |
update_taskAppend a note, decision, path, context pack, or status change to a SwarmVault task.| Parameter | Type | Description |
|---|---|---|
| changedPath | string | Changed file or wiki path to attach |
| contextPackId | string | Context pack id to attach |
| decision | string | Decision to append |
| gitRef | string | Git ref to attach |
| id * | string | Task id |
| nodeId | string | Graph node id to attach |
| note | string | Task note to append |
| pageId | string | Page id to attach |
| sessionId | string | Session id to attach |
| sourceId | string | Source id to attach |
| status | string | Task status |
watch_statusReturn the current watch-mode status: watched repos, last run summary, and pending semantic refreshes.workspace_infoReturn the current SwarmVault workspace paths and high-level counts.Security checks
Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 6.4K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by pnpm-lock.yaml.
- ✓No dynamic code executionScanned 145 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
What the source scan found
- Transport
- stdiopackages/engine/src/mcp.ts:5
- Starts other programs
- 7 callspackages/engine/src/extraction.ts:335, packages/engine/src/hooks/claude.ts:54, packages/engine/src/orchestration.ts:119
- Outbound network calls
- 25 callspackages/engine/src/ingest.ts:1141, packages/engine/src/ingest.ts:1150, packages/engine/src/ingest.ts:1232
- Writes or deletes files
- 93 callspackages/engine/src/agents.ts:630, packages/engine/src/agents.ts:638, packages/engine/src/agents.ts:642
- Lockfile
- pnpm-lock.yaml
Pattern matches on the source text of 145 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 6.4K words, fetched 2 days ago. The original in the repository is authoritative.
Read full README