← 返回
未分类 中文

SwarmVault

Use SwarmVault when the user needs a local-first knowledge vault that writes durable markdown, graph, search, dashboard, review, chat-session, context-pack,...
当用户需要一个本地优先的知识库,支持持久化 markdown、图谱、搜索、仪表板、回顾、聊天会话、上下文包等功能时,使用 SwarmVault。
waydelyle waydelyle 来源
未分类 clawhub v3.20.0 6 版本 99885.9 Key: 无需
★ 1
Stars
📥 1,731
下载
💾 0
安装
6
版本
#graph#knowledge#knowledge-base#latest#local-first#markdown#mcp#stable#swarmvault#v0.7#v0.7.27#v0.7.28

概述

SwarmVault

Use this skill when the user wants a local-first knowledge vault built on the LLM Wiki pattern — three layers (raw sources, wiki, schema) where the LLM maintains a durable wiki between you and raw sources. Also use it when the project already contains swarmvault.config.json or swarmvault.schema.md.

For onboarding, examples, command references, or troubleshooting, read the bundled README.md, examples/, references/, and TROUBLESHOOTING.md before improvising workflow advice.

Quick checks

  • Work from the vault root.
  • Use swarmvault next when you need a read-only orientation command before deciding whether to initialize, ingest, compile, query, review, or refresh.
  • If the vault does not exist yet, run swarmvault init.
  • Use swarmvault demo --no-serve when the user wants the fastest zero-config walkthrough before pointing SwarmVault at their own sources.
  • Use swarmvault quickstart as the beginner-friendly first-run path when the user wants init + ingest + compile + graph viewer in one command.
  • Use swarmvault scan --no-serve, swarmvault scan --no-viz, or swarmvault clone --no-viz when the user wants the fastest scratch pass over a local file, local repo, public GitHub repo, or docs tree without manually stepping through init + ingest + compile first; for GitHub URLs add --branch, --ref, or --checkout-dir when the user needs a pinned checkout. Use scan --mcp or clone --mcp when the next step should be an MCP stdio server. Use swarmvault graph share --post for copyable text, swarmvault graph share --svg [path] for a visual card, or swarmvault graph share --bundle [dir] for a portable folder with markdown, post text, SVG, HTML preview, and JSON metadata.
  • Use swarmvault context build "" --target --budget when the next agent, review, or handoff needs a bounded evidence pack instead of a broad vault search.
  • Use swarmvault chat "question" when a multi-turn conversation should survive handoff; resume with swarmvault chat --resume "follow-up" and inspect saved transcripts under wiki/outputs/chat-sessions/.
  • Use swarmvault export ai --out when another agent, crawler, or static workflow needs llms.txt, full text, JSON-LD graph data, a manifest, and per-page siblings without starting graph serve.
  • Use swarmvault task start "" --target when agent work should leave a durable task ledger with decisions, linked context packs, changed paths, outcomes, and follow-ups. The older memory command remains a compatibility alias.
  • Use swarmvault doctor before broad troubleshooting or agent handoff; add --repair when the retrieval index can be safely rebuilt. In swarmvault graph serve, the workbench shows prioritized next actions, every doctor check with details, copyable suggested commands, and safe direct repair where available.
  • Read swarmvault.schema.md before compile or query work. It is the vault's operating contract.
  • If wiki/graph/report.md exists, use it before broad repo search.
  • If SWARMVAULT_OUT is set, resolve generated artifacts from that output root: raw/, wiki/, state/, agent/, and inbox/ live there while swarmvault.config.json and swarmvault.schema.md stay in the project root.

Core loop

  1. Run swarmvault next when the current vault state is unclear; it is read-only and returns paths, checks, and recommended commands.
  2. Initialize a vault with swarmvault init when needed.
  3. Update swarmvault.schema.md before a serious compile. Use it for naming rules, categories, grounding, freshness expectations, and exclusions.
  4. Use swarmvault source add when the input is a recurring local file, local directory, public GitHub repo root, or docs hub that should stay registered. For public GitHub repos, use --branch, --ref, or --checkout-dir when a branch, tag, commit, or reusable checkout matters.
  5. Ingest one-off inputs with swarmvault ingest , or ingest a whole repo tree with swarmvault ingest . Audio and video files use tasks.audioProvider when configured; local video needs ffmpeg, public video URLs use swarmvault ingest --video / swarmvault add --video with yt-dlp, and supported YouTube URLs go through direct transcript capture instead of generic URL ingest.
  6. Use swarmvault ingest --guide, swarmvault source add --guide, swarmvault source reload --guide, swarmvault source guide , or swarmvault source session when the human should integrate one source at a time before canonical pages change. Set profile.guidedIngestDefault: true in swarmvault.config.json to make guided mode the default; use --no-guide to override. Profiles using guidedSessionMode: "canonical_review" stage approval-queued canonical edits; insights_only profiles keep exploratory synthesis in wiki/insights/. Use --review only for the lighter review-only path.
  7. Use swarmvault inbox import for capture-style batches, then swarmvault watch --lint --repo when the workflow should stay automated. Add --code-only when the refresh should stay AST-only and defer non-code semantic re-analysis to a later compile. On tracked repos, code-only changes take that faster compile path automatically. Install swarmvault hook install when git checkouts and commits should trigger the same repo-aware code-only refresh automatically.
  8. Compile with swarmvault compile, use compile --max-tokens when the generated wiki must stay inside a bounded context budget, or use compile --approve when changes should go through the local review queue first.
  9. Resolve staged work with swarmvault review list|show|accept|reject and swarmvault candidate list|promote|archive.
  10. Ask questions with swarmvault query "". It saves durable answers into wiki/outputs/ by default; add --no-save only for ephemeral checks. When an embedding provider is configured, query can merge semantic page matches into local search; retrieval.rerank: true lets the current queryProvider rerank the merged top hits before answering.
  11. Use swarmvault chat "question" for a persisted multi-turn conversation over the compiled wiki, then resume or manage it with swarmvault chat --resume , chat --list, and chat --delete .
  12. Build agent handoff bundles with swarmvault context build "" --target --budget . Use --format markdown|json|llms for the printed shape, and inspect swarmvault context list|show|delete for saved packs.
  13. Start a task ledger with swarmvault task start "" --target , update it with swarmvault task update --note|--decision|--changed-path|--context-pack, finish it with swarmvault task finish --outcome , and use swarmvault task resume --format markdown|json|llms for the next-agent handoff. query, explore, and context build can attach work with --task ; --memory remains a compatibility alias.
  14. Run swarmvault export ai --out when the compiled wiki should be handed to another agent or static crawler as llms.txt, full text, JSON-LD, manifest metadata, and per-page .txt/.json siblings.
  15. Run swarmvault doctor [--repair] when the vault needs one health summary across graph, retrieval, review queues, watch state, migrations, managed sources, and task state before deeper troubleshooting.
  16. Use swarmvault explore "" --steps for save-first multi-step research loops, or --format report|slides|chart|image when the artifact should be presentation-oriented.
  17. Run swarmvault lint whenever the schema changed, artifacts look stale, or compile/query results drift. Set profile.deepLintDefault: true in swarmvault.config.json when the advisory deep-lint pass should be the default, and use --no-deep when you need a structural-only run. Add --web only when deep lint is enabled and a webSearch.tasks.deepLintProvider adapter is configured; web evidence is scoped to deep lint and does not change compile or query behavior.
  18. Use swarmvault mcp when another agent or tool should browse, search, query, build context packs, manage tasks, and inspect vault or retrieval health from the vault through MCP.
  19. Use swarmvault graph share --post when the user needs a quick copyable summary, swarmvault graph share --svg [path] when they need a 1200x630 visual card, swarmvault graph share --bundle [dir] when they need a portable share kit for posting, linking, or screenshotting, swarmvault graph blast when they want reverse-import impact analysis, swarmvault graph callers when they need every caller of a symbol from graph call edges with exact file:line call-site evidence, swarmvault graph cycles when they need directed cycle checks, swarmvault graph status [path] or swarmvault check-update [path] when they need a read-only stale check before deciding between graph update and compile, swarmvault graph stats when they need lightweight counts and relation mix, swarmvault graph validate [graph] --strict when a graph artifact should be checked before export, merge, push, or publish workflows, swarmvault graph update [path] --force or swarmvault update [path] --force only when a large node/edge shrink is expected, swarmvault watch [path] --once --code-only when one repo root should be refreshed without writing watch config, swarmvault graph query "" --context calls --evidence extracted when traversal should focus on relation groups, evidence classes, node types, or languages, swarmvault graph tree [--output ] or swarmvault tree [--output ] when they need an interactive source/module/symbol tree with a node inspector, swarmvault graph merge --out or swarmvault merge-graphs --out when they need to combine SwarmVault or node-link graph JSON, swarmvault graph cluster [--resolution ] or swarmvault cluster-only [vault] when they need communities and graph report artifacts recomputed without re-ingest, swarmvault graph serve when the live workspace, health workbench, Memory dashboard, or bookmarklet clipper will help, swarmvault diff when they need a graph-level change summary against the last committed baseline, or swarmvault graph export --html / graph export --report / graph export --callflow when richer sharing will help. The live workbench exposes prioritized next actions, explicit capture modes, title/tag capture fields, context-pack/task token budgets, and action receipts; the bookmarklet sends page titles and selected text into the same capture path. graph export also supports --html-standalone, --json, --obsidian, --canvas, and --neo4j for lighter, Obsidian-native, or Neo4j-ready sharing.

Graph-first code reads

When a compiled vault exists for a codebase (wiki/graph/report.md is present), answer code-understanding questions from the graph instead of reading or grepping source files — it returns condensed, evidence-backed answers in far fewer tokens:

Working rules

Files and artifacts

Agent integration

Defaults to preserve

版本历史

共 6 个版本

  • v3.20.0 当前
    2026-06-13 17:51
  • v3.16.0
    2026-06-04 12:33
  • v3.15.0
    2026-05-20 04:25 安全 安全
  • v3.14.0
    2026-05-09 16:00 安全 安全
  • v3.12.0
    2026-05-07 03:20 安全
  • v3.2.0
    2026-04-30 17:09 安全

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

SwarmClaw

waydelyle
AI智能体运行时与多智能体编排平台。教智能体使用SwarmClaw的6个基础工具、持久记忆、梦境、委托与协作。
★ 1 📥 708

SwarmRecall

waydelyle
当AI代理需要持久记忆、知识图谱、学习成果、技能注册表、共享池或后台梦境整合等功能时,使用SwarmRecall。
★ 0 📥 456

SwarmRecall Knowledge

waydelyle
通过 SwarmRecall API 实现实体、关系、遍历与语义搜索的知识图谱,构建并查询带向量嵌入的结构化知识图...
★ 0 📥 436