RuVector operations via npx ruvector@0.2.25 — embedding, search, RVF cognitive containers, GNN, attention, hooks, brain, sona, edge, identity
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-ruflo-079316dcc8ee ,按照其中的说明把「vector」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
$ARGUMENTS
Vector operations via the ruvector npm package (pinned to 0.2.25). Parse subcommand from $ARGUMENTS.
Pinned version: ruvector@0.2.25 — every command below uses npx -y ruvector@0.2.25 ....
Usage: /vector [options]
<text> — npx -y ruvector@0.2.25 embed text "TEXT"
384-dim ONNX vector. If ONNX WASM files not bundled, run /vector setup.<text> — npx -y ruvector@0.2.25 embed text "TEXT" --adaptive --domain code
LoRA-adapted embedding tuned to a domain.<path> — Read file, then npx -y ruvector@0.2.25 embed text "$(cat <path>)" -o <path>.vec.jsonnpx -y ruvector@0.2.25 embed benchmark (compares base vs adaptive).<path> — npx -y ruvector@0.2.25 create <path> -d 384 -m cosine<path> — npx -y ruvector@0.2.25 stats <path><database> <json-file> — npx -y ruvector@0.2.25 insert <database> <json-file><database> <vector-json> [-k N] — npx -y ruvector@0.2.25 search <database> -v '[0.1,...]' -k N<database> [-o file] [-f json|binary|parquet] [--compress] — npx -y ruvector@0.2.25 export <database> -o backup.json<file> [-d database] — npx -y ruvector@0.2.25 import <file> -d <database> [--merge|--replace]<path> — npx -y ruvector@0.2.25 rvf create <path><path> — npx -y ruvector@0.2.25 rvf ingest <path><path> — npx -y ruvector@0.2.25 rvf query <path> (nearest neighbors)<path> — npx -y ruvector@0.2.25 rvf status <path><path> — npx -y ruvector@0.2.25 rvf segments <path><parent> <child> — npx -y ruvector@0.2.25 rvf derive <parent> <child> (lineage tracking)<path> — npx -y ruvector@0.2.25 rvf compact <path> (reclaim deleted space)npx -y ruvector@0.2.25 rvf examples (45 reference stores)<name> — npx -y ruvector@0.2.25 rvf download <name> (e.g. agent_memory, swarm_knowledge)npx -y ruvector@0.2.25 gnn infonpx -y ruvector@0.2.25 gnn layer (build/test a multi-head attention GNN layer)npx -y ruvector@0.2.25 gnn search (differentiable soft-attention search)npx -y ruvector@0.2.25 gnn compress (5-level adaptive tensor compression)npx -y ruvector@0.2.25 attention list
Lists ALL available mechanisms: DotProduct, MultiHead, Flash, Hyperbolic, Linear, MoE, GraphRoPe, EdgeFeatured, DualSpace, LocalGlobal.npx -y ruvector@0.2.25 attention computenpx -y ruvector@0.2.25 attention benchmarknpx -y ruvector@0.2.25 attention hyperbolic (Poincare-ball geometry ops; the real hyperbolic surface in 0.2.25)npx -y ruvector@0.2.25 attention infonpx -y ruvector@0.2.25 hooks init --pretrain --build-agents qualitynpx -y ruvector@0.2.25 hooks stats (Q-learning patterns, vector memories, trajectories)<task> — npx -y ruvector@0.2.25 hooks route "DESCRIPTION" (positional)<task> — npx -y ruvector@0.2.25 hooks route-enhanced "DESCRIPTION"npx -y ruvector@0.2.25 hooks suggest-context<file> — npx -y ruvector@0.2.25 hooks ast-analyze <file> (positional)<files...> — npx -y ruvector@0.2.25 hooks ast-complexity <files...>npx -y ruvector@0.2.25 hooks diff-analyze HEADnpx -y ruvector@0.2.25 hooks diff-classify HEADnpx -y ruvector@0.2.25 hooks diff-similar<file> — npx -y ruvector@0.2.25 hooks coverage-route <file><files...> — npx -y ruvector@0.2.25 hooks coverage-suggest <files...><files...> — npx -y ruvector@0.2.25 hooks graph-cluster <files...> (spectral/Louvain)<query> — npx -y ruvector@0.2.25 hooks rag-context "QUERY"<files...> — npx -y ruvector@0.2.25 hooks security-scan <files...> (run hooks init first)<content> — npx -y ruvector@0.2.25 hooks remember "CONTENT"<query> — npx -y ruvector@0.2.25 hooks recall "QUERY"Known bugs in 0.2.25 hooks:
force-learnraisesintel.tick is not a function;graph-mincutraisesCannot read properties of undefined;git-churnfails outside a git repo. Avoid these or run inside a git repo with seeded intelligence state.
npx -y ruvector@0.2.25 native list (worker types: security, analysis, learning)<type> — npx -y ruvector@0.2.25 native run security (or analysis|learning)npx -y ruvector@0.2.25 native benchmarknpx -y ruvector@0.2.25 native comparenpx -y ruvector@0.2.25 workers <subcmd>. First invocation auto-installs agentic-flow (slow).@ruvector/pi-brainnpx -y ruvector@0.2.25 brain status<query> — npx -y ruvector@0.2.25 brain search "QUERY"<title> — npx -y ruvector@0.2.25 brain share "TITLE"@ruvector/ruvllmnpx -y ruvector@0.2.25 sona status<query> — npx -y ruvector@0.2.25 sona patterns "QUERY"<data> — npx -y ruvector@0.2.25 sona train <data> (record a training trajectory)npx -y ruvector@0.2.25 sona export (export learned weights)@ruvector/ruvllmnpx -y ruvector@0.2.25 llm models<text> — npx -y ruvector@0.2.25 llm embed "TEXT" (RuvLLM-backed embeddings)npx -y ruvector@0.2.25 llm benchmarknpx -y ruvector@0.2.25 llm infonpx -y ruvector@0.2.25 identity generate (creates a 64-hex-char pi key)npx -y ruvector@0.2.25 identity show-o file — npx -y ruvector@0.2.25 identity export -o key.enc (encrypted backup)<file> — npx -y ruvector@0.2.25 identity import <file>npx -y ruvector@0.2.25 edge statusnpx -y ruvector@0.2.25 edge balance (rUv balance)npx -y ruvector@0.2.25 edge tasksnpx -y ruvector@0.2.25 edge join (join the network as a node)npx -y ruvector@0.2.25 edge dashboard (opens in browser)npx -y ruvector@0.2.25 server -p 8080<target> [-o dir] [-f modules|single|json] — npx -y ruvector@0.2.25 decompile <npm-pkg-or-file-or-url>npx -y ruvector@0.2.25 demo --basic (interactive tutorial)npx -y ruvector@0.2.25 doctor (Node, npm, bindings, Rust)npx -y ruvector@0.2.25 infonpx -y ruvector@0.2.25 benchmark (known issue: fails with Missing field 'dimensions' on some installs; use gnn search or attention benchmark as alternatives)npx -y ruvector@0.2.25 install --all (lists/installs optional add-ons)npx -y ruvector@0.2.25 setup (Setup Guide)For first-run users hitting ONNX WASM files not bundled, Brain commands require @ruvector/pi-brain, or SONA not available, invoke the vector-setup skill: /vector-setup.
claude mcp add ruvector -- npx -y ruvector@0.2.25 mcp startclaude mcp list | grep ruvectorhooks_route, hooks_ast_analyze, hooks_rag_context, brain_search, attention_list).compare, top-level index, midstream, embed --file, embed --batch --glob, cluster --namespace --k (top-level cluster is "Coming Soon"), embed --model poincare, optimize (per its own message: "not yet shipped in this release"), brain agi * (use brain status directly).