plugins/ruflo-ruvector/commands/vector.md
$ARGUMENTS
Vector operations via the ruvector npm package (pinned to 0.2.25). Parse subcommand from $ARGUMENTS.
Pinned version: [email protected] — every command below uses npx -y [email protected] ....
Usage: /vector <subcommand> [options]
<text> — npx -y [email protected] embed text "TEXT"
384-dim ONNX vector. If ONNX WASM files not bundled, run /vector setup.<text> — npx -y [email protected] embed text "TEXT" --adaptive --domain code
LoRA-adapted embedding tuned to a domain.<path> — Read file, then npx -y [email protected] embed text "$(cat <path>)" -o <path>.vec.jsonnpx -y [email protected] embed benchmark (compares base vs adaptive).<path> — npx -y [email protected] create <path> -d 384 -m cosine<path> — npx -y [email protected] stats <path><database> <json-file> — npx -y [email protected] insert <database> <json-file><database> <vector-json> [-k N] — npx -y [email protected] search <database> -v '[0.1,...]' -k N<database> [-o file] [-f json|binary|parquet] [--compress] — npx -y [email protected] export <database> -o backup.json<file> [-d database] — npx -y [email protected] import <file> -d <database> [--merge|--replace]<path> — npx -y [email protected] rvf create <path><path> — npx -y [email protected] rvf ingest <path><path> — npx -y [email protected] rvf query <path> (nearest neighbors)<path> — npx -y [email protected] rvf status <path><path> — npx -y [email protected] rvf segments <path><parent> <child> — npx -y [email protected] rvf derive <parent> <child> (lineage tracking)<path> — npx -y [email protected] rvf compact <path> (reclaim deleted space)npx -y [email protected] rvf examples (45 reference stores)<name> — npx -y [email protected] rvf download <name> (e.g. agent_memory, swarm_knowledge)npx -y [email protected] gnn infonpx -y [email protected] gnn layer (build/test a multi-head attention GNN layer)npx -y [email protected] gnn search (differentiable soft-attention search)npx -y [email protected] gnn compress (5-level adaptive tensor compression)npx -y [email protected] attention list
Lists ALL available mechanisms: DotProduct, MultiHead, Flash, Hyperbolic, Linear, MoE, GraphRoPe, EdgeFeatured, DualSpace, LocalGlobal.npx -y [email protected] attention computenpx -y [email protected] attention benchmarknpx -y [email protected] attention hyperbolic (Poincare-ball geometry ops; the real hyperbolic surface in 0.2.25)npx -y [email protected] attention infonpx -y [email protected] hooks init --pretrain --build-agents qualitynpx -y [email protected] hooks stats (Q-learning patterns, vector memories, trajectories)<task> — npx -y [email protected] hooks route "DESCRIPTION" (positional)<task> — npx -y [email protected] hooks route-enhanced "DESCRIPTION"npx -y [email protected] hooks suggest-context<file> — npx -y [email protected] hooks ast-analyze <file> (positional)<files...> — npx -y [email protected] hooks ast-complexity <files...>npx -y [email protected] hooks diff-analyze HEADnpx -y [email protected] hooks diff-classify HEADnpx -y [email protected] hooks diff-similar<file> — npx -y [email protected] hooks coverage-route <file><files...> — npx -y [email protected] hooks coverage-suggest <files...><files...> — npx -y [email protected] hooks graph-cluster <files...> (spectral/Louvain)<query> — npx -y [email protected] hooks rag-context "QUERY"<files...> — npx -y [email protected] hooks security-scan <files...> (run hooks init first)<content> — npx -y [email protected] hooks remember "CONTENT"<query> — npx -y [email protected] 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 [email protected] native list (worker types: security, analysis, learning)<type> — npx -y [email protected] native run security (or analysis|learning)npx -y [email protected] native benchmarknpx -y [email protected] native comparenpx -y [email protected] workers <subcmd>. First invocation auto-installs agentic-flow (slow).@ruvector/pi-brainnpx -y [email protected] brain status<query> — npx -y [email protected] brain search "QUERY"<title> — npx -y [email protected] brain share "TITLE"@ruvector/ruvllmnpx -y [email protected] sona status<query> — npx -y [email protected] sona patterns "QUERY"<data> — npx -y [email protected] sona train <data> (record a training trajectory)npx -y [email protected] sona export (export learned weights)@ruvector/ruvllmnpx -y [email protected] llm models<text> — npx -y [email protected] llm embed "TEXT" (RuvLLM-backed embeddings)npx -y [email protected] llm benchmarknpx -y [email protected] llm infonpx -y [email protected] identity generate (creates a 64-hex-char pi key)npx -y [email protected] identity show-o file — npx -y [email protected] identity export -o key.enc (encrypted backup)<file> — npx -y [email protected] identity import <file>npx -y [email protected] edge statusnpx -y [email protected] edge balance (rUv balance)npx -y [email protected] edge tasksnpx -y [email protected] edge join (join the network as a node)npx -y [email protected] edge dashboard (opens in browser)npx -y [email protected] server -p 8080<target> [-o dir] [-f modules|single|json] — npx -y [email protected] decompile <npm-pkg-or-file-or-url>npx -y [email protected] demo --basic (interactive tutorial)npx -y [email protected] doctor (Node, npm, bindings, Rust)npx -y [email protected] infonpx -y [email protected] benchmark (known issue: fails with Missing field 'dimensions' on some installs; use gnn search or attention benchmark as alternatives)npx -y [email protected] install --all (lists/installs optional add-ons)npx -y [email protected] 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 [email protected] 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).