Files
ruflo/plugins/ruflo-ruvector/commands/vector.md
T
rUvandr 828a8d78d9 feat(plugins): cut per-turn footprint — user-invoked operational skills, description ceiling, footprint report (ADR-507) (#4588)
* feat(plugins): ADR-507 cut the per-turn plugin footprint

- scripts/measure-plugin-footprint.mjs: per-plugin skills/commands/agents,
  listing characters and estimated tokens, from the tree or a git ref;
  before/after reports in v3/docs/validation/.
- 27 operational skills get disable-model-invocation: true (cost-tracker
  sub-reports reached by /ruflo-cost, metaharness bench/learn/evolve/mint/
  oia-audit, GAIA submission + comparison, init-project, ruflo-status,
  vector-setup, federation-init, agntcy-status). Each is listed in a
  "User-invoked skills" table in its plugin README; the choosing rule is in
  plugins/README.md.
- 20 skill descriptions over 300 characters cut to one sentence plus
  "Use when".
- audit-skill-frontmatter: 300-char ceiling on skill and command
  descriptions (measured unfolded) and a README check for every
  user-invoked skill.
- skillTrim (§2.4) not built: the engine has no skill-listing hook.

Listing with every plugin enabled: 47,743 -> 39,402 chars
(about 11,936 -> 9,851 tokens per turn).

Co-Authored-By: RuFlo <ruv@ruv.net>

* docs(adr): ADR-507 status names PR #4588

Co-Authored-By: RuFlo <ruv@ruv.net>

* docs(plugins): ADR-507 cost-analyst points users at /ruflo-cost for user-invoked reports

The engine's refusal for a disable-model-invocation skill says not to
replicate its workflow by other means, so the agent names the subcommand
instead of running the report script. After-report now cites the pushed
commit.

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(scripts): ADR-507 audit runs through symlinked paths; test the gate's wiring

The import guard compared argv[1] with import.meta.url, which Node realpaths
for the entry module. Run through a symlinked path, main() was skipped and the
audit exited 0 having checked nothing. Both scripts now compare realpaths.

audit-skill-frontmatter takes --plugins-dir so tests can run the real CLI on
a fixture: a 304-char folded description, an unlisted user-invoked skill and
a 311-char literal command description must exit 1 with those findings, and
adding the README row must clear only the user-invoked one. The repo-wide test
now also asserts skillsScanned > 100. Disabling any of the three checks, or
restoring either old guard, fails a test.

Co-Authored-By: RuFlo <ruv@ruv.net>

* chore(plugins): version bumps for ADR-507 footprint changes

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: r <r@x>
2026-10-29 19:50:34 -04:00

9.7 KiB

name, description
name description
vector RuVector operations via npx ruvector@0.3.3 — embedding, search, RVF cognitive containers, GNN, attention, hooks, brain, sona, edge, identity

$ARGUMENTS Vector operations via the ruvector npm package (pinned to 0.3.3). Parse subcommand from $ARGUMENTS.

Pinned version: ruvector@0.3.3 — every command below uses npx -y ruvector@0.3.3 ....

Usage: /vector [options]

Embedding

  1. embed <text> — npx -y ruvector@0.3.3 embed text "TEXT" 384-dim ONNX vector. If ONNX WASM files not bundled, run /vector setup.
  2. embed-adaptive <text> — npx -y ruvector@0.3.3 embed text "TEXT" --adaptive --domain code LoRA-adapted embedding tuned to a domain.
  3. embed-file <path> — Read file, then npx -y ruvector@0.3.3 embed text "$(cat <path>)" -o <path>.vec.json
  4. embed-benchmark — npx -y ruvector@0.3.3 embed benchmark (compares base vs adaptive).

Database lifecycle

  1. db create <path> — npx -y ruvector@0.3.3 create <path> -d 384 -m cosine
  2. db stats <path> — npx -y ruvector@0.3.3 stats <path>
  3. insert <database> <json-file> — npx -y ruvector@0.3.3 insert <database> <json-file>
  4. search <database> <vector-json> [-k N] — npx -y ruvector@0.3.3 search <database> -v '[0.1,...]' -k N
  5. export <database> [-o file] [-f json|binary|parquet] [--compress] — npx -y ruvector@0.3.3 export <database> -o backup.json
  6. import <file> [-d database] — npx -y ruvector@0.3.3 import <file> -d <database> [--merge|--replace]

RVF (cognitive containers)

  1. rvf create <path> — npx -y ruvector@0.3.3 rvf create <path>
  2. rvf ingest <path> — npx -y ruvector@0.3.3 rvf ingest <path>
  3. rvf query <path> — npx -y ruvector@0.3.3 rvf query <path> (nearest neighbors)
  4. rvf status <path> — npx -y ruvector@0.3.3 rvf status <path>
  5. rvf segments <path> — npx -y ruvector@0.3.3 rvf segments <path>
  6. rvf derive <parent> <child> — npx -y ruvector@0.3.3 rvf derive <parent> <child> (lineage tracking)
  7. rvf compact <path> — npx -y ruvector@0.3.3 rvf compact <path> (reclaim deleted space)
  8. rvf examples — npx -y ruvector@0.3.3 rvf examples (45 reference stores)
  9. rvf download <name> — npx -y ruvector@0.3.3 rvf download <name> (e.g. agent_memory, swarm_knowledge)

GNN (Graph Neural Networks)

  1. gnn info — npx -y ruvector@0.3.3 gnn info
  2. gnn layer — npx -y ruvector@0.3.3 gnn layer (build/test a multi-head attention GNN layer)
  3. gnn search — npx -y ruvector@0.3.3 gnn search (differentiable soft-attention search)
  4. gnn compress — npx -y ruvector@0.3.3 gnn compress (5-level adaptive tensor compression)

Attention mechanisms

  1. attention list — npx -y ruvector@0.3.3 attention list Lists ALL available mechanisms: DotProduct, MultiHead, Flash, Hyperbolic, Linear, MoE, GraphRoPe, EdgeFeatured, DualSpace, LocalGlobal.
  2. attention compute — npx -y ruvector@0.3.3 attention compute
  3. attention benchmark — npx -y ruvector@0.3.3 attention benchmark
  4. attention hyperbolic — npx -y ruvector@0.3.3 attention hyperbolic (Poincare-ball geometry ops; the real hyperbolic surface in 0.3.3)
  5. attention info — npx -y ruvector@0.3.3 attention info

Code intelligence (hooks)

  1. hooks init — npx -y ruvector@0.3.3 hooks init --pretrain --build-agents quality
  2. hooks stats — npx -y ruvector@0.3.3 hooks stats (Q-learning patterns, vector memories, trajectories)
  3. hooks route <task> — npx -y ruvector@0.3.3 hooks route "DESCRIPTION" (positional)
  4. hooks route-enhanced <task> — npx -y ruvector@0.3.3 hooks route-enhanced "DESCRIPTION"
  5. hooks suggest-context — npx -y ruvector@0.3.3 hooks suggest-context
  6. hooks ast-analyze <file> — npx -y ruvector@0.3.3 hooks ast-analyze <file> (positional)
  7. hooks ast-complexity <files...> — npx -y ruvector@0.3.3 hooks ast-complexity <files...>
  8. hooks diff-analyze [commit] — npx -y ruvector@0.3.3 hooks diff-analyze HEAD
  9. hooks diff-classify [commit] — npx -y ruvector@0.3.3 hooks diff-classify HEAD
  10. hooks diff-similar — npx -y ruvector@0.3.3 hooks diff-similar
  11. hooks coverage-route <file> — npx -y ruvector@0.3.3 hooks coverage-route <file>
  12. hooks coverage-suggest <files...> — npx -y ruvector@0.3.3 hooks coverage-suggest <files...>
  13. hooks graph-cluster <files...> — npx -y ruvector@0.3.3 hooks graph-cluster <files...> (spectral/Louvain)
  14. hooks rag-context <query> — npx -y ruvector@0.3.3 hooks rag-context "QUERY"
  15. hooks security-scan <files...> — npx -y ruvector@0.3.3 hooks security-scan <files...> (run hooks init first)
  16. hooks remember <content> — npx -y ruvector@0.3.3 hooks remember "CONTENT"
  17. hooks recall <query> — npx -y ruvector@0.3.3 hooks recall "QUERY"
  18. hooks coedit-record / coedit-suggest — record + retrieve files edited together.
  19. hooks error-record / error-suggest — learn error→fix pairs and retrieve.
  20. hooks trajectory-begin / trajectory-step / trajectory-end — record an execution trajectory.
  21. hooks pre-edit / post-edit / pre-command / post-command / session-start / session-end — Claude Code hook lifecycle.

Known bugs in 0.3.3 hooks: force-learn reports skipped: no trajectories to process until one is recorded; graph-mincut raises Cannot read properties of undefined; git-churn fails outside a git repo. Avoid these or run inside a git repo with seeded intelligence state.

Native + workers (background analysis)

  1. native list — npx -y ruvector@0.3.3 native list (worker types: security, analysis, learning)
  2. native run <type> — npx -y ruvector@0.3.3 native run security (or analysis|learning)
  3. native benchmark — npx -y ruvector@0.3.3 native benchmark
  4. native compare — npx -y ruvector@0.3.3 native compare
  5. workers triggers / presets / phases / dispatch / status / stats / cleanup / cancel / run / create / init-config — all available via npx -y ruvector@0.3.3 workers <subcmd>. First invocation auto-installs agentic-flow (slow).

Collective knowledge (brain) — needs @ruvector/pi-brain

  1. brain status — npx -y ruvector@0.3.3 brain status
  2. brain search <query> — npx -y ruvector@0.3.3 brain search "QUERY"
  3. brain share <title> — npx -y ruvector@0.3.3 brain share "TITLE"
  4. brain list / get / vote / delete / drift / partition / transfer / sync / page — full Brainpedia + LoRA-weight management.

SONA (Self-Optimizing Neural Architecture) — needs @ruvector/ruvllm

  1. sona status / info / stats — npx -y ruvector@0.3.3 sona status
  2. sona patterns <query> — npx -y ruvector@0.3.3 sona patterns "QUERY"
  3. sona train <data> — npx -y ruvector@0.3.3 sona train <data> (record a training trajectory)
  4. sona export — npx -y ruvector@0.3.3 sona export (export learned weights)

LLM orchestration — needs @ruvector/ruvllm

  1. llm models — npx -y ruvector@0.3.3 llm models
  2. llm embed <text> — npx -y ruvector@0.3.3 llm embed "TEXT" (RuvLLM-backed embeddings)
  3. llm benchmark — npx -y ruvector@0.3.3 llm benchmark
  4. llm info — npx -y ruvector@0.3.3 llm info

Identity (pi key for brain/edge/MCP)

  1. identity generate — npx -y ruvector@0.3.3 identity generate (creates a 64-hex-char pi key)
  2. identity show — npx -y ruvector@0.3.3 identity show
  3. identity export -o file — npx -y ruvector@0.3.3 identity export -o key.enc (encrypted backup)
  4. identity import <file> — npx -y ruvector@0.3.3 identity import <file>

Edge compute network

  1. edge status — npx -y ruvector@0.3.3 edge status
  2. edge balance [nodeId] — npx -y ruvector@0.3.3 edge balance (rUv balance)
  3. edge tasks — npx -y ruvector@0.3.3 edge tasks
  4. edge join — npx -y ruvector@0.3.3 edge join (join the network as a node)
  5. edge dashboard — npx -y ruvector@0.3.3 edge dashboard (opens in browser)

Server / Decompile / Demo

  1. server [-p 8080] [-g 50051] [-d data-dir] — npx -y ruvector@0.3.3 server -p 8080
  2. decompile <target> [-o dir] [-f modules|single|json] — npx -y ruvector@0.3.3 decompile <npm-pkg-or-file-or-url>
  3. demo --basic | --gnn | --graph — npx -y ruvector@0.3.3 demo --basic (interactive tutorial)

System

  1. doctor — npx -y ruvector@0.3.3 doctor (Node, npm, bindings, Rust)
  2. info — npx -y ruvector@0.3.3 info
  3. benchmark — npx -y ruvector@0.3.3 benchmark (known issue: fails with Missing field 'dimensions' on some installs; use gnn search or attention benchmark as alternatives)
  4. install [pkg|--all] — npx -y ruvector@0.3.3 install --all (lists/installs optional add-ons)
  5. setup — npx -y ruvector@0.3.3 setup (Setup Guide)

Setup helper

For first-run users hitting ONNX WASM files not bundled, Brain commands require @ruvector/pi-brain, or SONA not available, ask the user to run /ruflo-ruvector:vector-setup (it installs packages, so it is user-invoked: ADR-507).

MCP server (91 tools)

  • Register once: claude mcp add ruvector -- npx -y ruvector@0.3.3 mcp start
  • Verify: claude mcp list | grep ruvector
  • Then call MCP tools directly (e.g. hooks_route, hooks_ast_analyze, hooks_rag_context, brain_search, attention_list).

Not in 0.3.3 (do not invoke)

compare, top-level index, embed --file, embed --batch --glob, cluster --namespace --k (top-level cluster is "Coming Soon"), embed --model poincare, brain agi * (use brain status directly).