Files
wehub-resource-sync 23f7624596
ADR-166 MCP Bridge Security Lock / Static-source security lock (push) Failing after 0s
ADR-166 MCP Bridge Security Lock / Compose default binds loopback + Mongo has auth (push) Failing after 2s
CodeQL Advanced / Analyze (rust) (push) Failing after 0s
ADR-166 MCP Bridge Security Lock / plugin-agent-federation bindHost default (push) Failing after 1s
ADR-166 MCP Bridge Security Lock / Runtime behavior — 401 + terminal gate + fail-closed (push) Failing after 4s
business-pods-smoke / smoke (push) Failing after 1s
all-plugins-smoke / smoke-all (push) Failing after 2s
CI/CD Pipeline / Security & Code Quality (push) Failing after 1s
CI/CD Pipeline / Test Suite (ubuntu-latest) (push) Failing after 1s
CI/CD Pipeline / Build & Package (macos-latest) (push) Has been skipped
CI/CD Pipeline / Build & Package (ubuntu-latest) (push) Has been skipped
CI/CD Pipeline / Build & Package (windows-latest) (push) Has been skipped
CI/CD Pipeline / Documentation & Examples (push) Failing after 1s
Clone Tracker (14-day rolling) / Snapshot clones for ruflo ecosystem (push) Failing after 1s
CodeQL Advanced / Analyze (actions) (push) Failing after 1s
CodeQL Advanced / Analyze (javascript-typescript) (push) Failing after 1s
federation-peer-rust / stable-noop (push) Failing after 1s
metaharness-ci / score (push) Failing after 1s
metaharness-ci / router-compat (push) Failing after 0s
metaharness-ci / similarity-tests (push) Failing after 0s
no-agentbbs-smoke / smoke-without-agentbbs (push) Failing after 1s
V3 CI/CD Pipeline / Build V3 (windows-latest) (push) Has been skipped
codex-integration-audit / Codex integration audit (push) Failing after 1s
helpers-manifest-guard / guard (push) Failing after 1s
🔗 Cross-Agent Integration Tests / 🤝 Agent Coordination Tests (push) Has been skipped
🔗 Cross-Agent Integration Tests / 🧠 Memory Sharing Integration (push) Has been skipped
🔗 Cross-Agent Integration Tests / 🛡️ Fault Tolerance Tests (push) Has been skipped
🔗 Cross-Agent Integration Tests / ⚡ Performance Integration Tests (push) Has been skipped
metaharness-ci / mcp-scan (push) Failing after 1s
metaharness-ci / eject-dryrun (push) Failing after 1s
metaharness-ci / metaharness-real-data (push) Failing after 0s
no-cli-optdep-bloat-2561 / guard (push) Failing after 1s
no-metaharness-smoke / smoke-without-metaharness (push) Failing after 1s
no-phantom-agentic-flow-subpath / guard (push) Failing after 1s
🔄 Automated Rollback Manager / 🚨 Failure Detection (push) Failing after 1s
V3 CI/CD Pipeline / Plugin hooks smoke / ubuntu-latest / Node 22 (push) Failing after 1s
V3 CI/CD Pipeline / ruflo-graph-intelligence build + test smoke (#2044, ADR-123) (push) Failing after 1s
CVE Audit Gate / Audit root (critical-blocking) (push) Failing after 2s
cost-tracker-smoke / smoke (push) Failing after 3s
oia-audit-weekly / audit (push) Failing after 2s
ruflo-agent-smoke / ruflo-agent structural smoke (push) Failing after 1s
📊 Status Badges Update / 📊 Update Status Badges (push) Failing after 1s
V3 CI/CD Pipeline / Static regression guards (#2267 YAML + (push) Failing after 1s
V3 CI/CD Pipeline / Test V3 Packages (push) Failing after 0s
V3 CI/CD Pipeline / agent_execute provider routing smoke (#2042) (push) Failing after 0s
CVE Audit Gate / Audit v3 (critical-blocking) (push) Failing after 1s
federation-peer-rust / stable-native (push) Failing after 2s
🔗 Cross-Agent Integration Tests / 🚀 Integration Test Setup (push) Failing after 2s
neural-trader-smoke / runtime-smoke (push) Failing after 1s
V3 CI/CD Pipeline / Build V3 (macos-latest) (push) Has been skipped
V3 CI/CD Pipeline / Build V3 (ubuntu-latest) (push) Has been skipped
V3 CI/CD Pipeline / Type Check V3 (push) Failing after 1s
V3 CI/CD Pipeline / Smoke (no better-sqlite3) / ubuntu-latest / Node 24 (push) Failing after 1s
V3 CI/CD Pipeline / Smoke (no better-sqlite3) / ubuntu-latest / Node 22 (push) Failing after 2s
V3 CI/CD Pipeline / browser rvf create flag smoke (#2015) (push) Failing after 0s
V3 CI/CD Pipeline / Dependency review (#2046) (push) Has been skipped
V3 CI/CD Pipeline / Supply-chain audit (#2046) (push) Failing after 0s
V3 CI/CD Pipeline / witness marker drift smoke (#2021) (push) Failing after 1s
V3 CI/CD Pipeline / neural-trader portfolio CG smoke (#2068, ADR-126 Phase 3) (push) Failing after 1s
V3 CI/CD Pipeline / neural-trader backtest signing smoke (#2068, ADR-126 Phase 4) (push) Failing after 1s
V3 CI/CD Pipeline / kg-extract type-import classification smoke (#2049) (push) Failing after 0s
V3 CI/CD Pipeline / witness verify precondition smoke (#1880) (push) Failing after 2s
V3 CI/CD Pipeline / neural-trader pipeline risk-gate smoke (#2068, ADR-126 Phase 5) (push) Failing after 0s
V3 CI/CD Pipeline / neural-trader feature attribution smoke (#2068, ADR-126 Phase 6) (push) Failing after 0s
V3 CI/CD Pipeline / plugin-registry signature verification smoke (#1922, CWE-347) (push) Failing after 4s
V3 CI/CD Pipeline / memory stats legacy-DB smoke (#2120) (push) Failing after 4s
V3 CI/CD Pipeline / github deprecated actions smoke (#2089, ADR-127 Phase 3) (push) Failing after 1s
V3 CI/CD Pipeline / graph query + pathfinder smoke (ADR-130 P2+P5) (push) Has been skipped
V3 CI/CD Pipeline / graph trajectory hooks smoke (ADR-130 P3) (push) Has been skipped
V3 CI/CD Pipeline / graph plugin adapter smoke (ADR-130 P4) (push) Has been skipped
V3 CI/CD Pipeline / graph benchmark (ADR-130 P6) (push) Has been skipped
V3 CI/CD Pipeline / statusline generator delegation smoke (#2195) (push) Failing after 1s
V3 CI/CD Pipeline / wizard init regression guard (#2206 (push) Failing after 1s
V3 CI/CD Pipeline / memory no-stray-db smoke (ADR-125 P7) (push) Failing after 1s
V3 CI/CD Pipeline / github-safe injection smoke (#2089, ADR-127 Phase 1) (push) Failing after 1s
V3 CI/CD Pipeline / github actions pin smoke (#2089, ADR-127 Phase 1) (push) Failing after 1s
V3 CI/CD Pipeline / github attribution opt-in smoke (#2089, ADR-127 Phase 4) (push) Failing after 1s
V3 CI/CD Pipeline / pre-bash hook safety smoke (#2017) (push) Failing after 1s
V3 CI/CD Pipeline / Memory import smoke / ubuntu-latest (push) Failing after 0s
V3 CI/CD Pipeline / MCP protocol smoke / ubuntu-latest (push) Failing after 2s
V3 CI/CD Pipeline / ruvllm WASM auto-init smoke (#2086) (push) Failing after 4s
V3 CI/CD Pipeline / MCP paired-tool round-trip smoke (#1889) (push) Failing after 1s
V3 CI/CD Pipeline / Plugin package install-safety (#1902/#1903/#1904) (push) Failing after 1s
V3 CI/CD Pipeline / Tool description discoverability (ADR-112) (push) Failing after 3s
V3 CI/CD Pipeline / CLI npx-install smoke (#1147 / (22) (push) Failing after 1s
V3 CI/CD Pipeline / CLI npx-install smoke (#1147 / (24) (push) Failing after 1s
V3 CI/CD Pipeline / Windows hook shim smoke (#2132) / ubuntu-latest (push) Failing after 2s
V3 CI/CD Pipeline / Windows hook execution smoke (#2132) / ubuntu-latest (push) Failing after 1s
V3 CI/CD Pipeline / Windows init hooks smoke (#2132) / ubuntu-latest (push) Failing after 1s
V3 CI/CD Pipeline / Vector-index dimension audit (#1947) (push) Failing after 0s
V3 CI/CD Pipeline / Hook-command install safety (#1921) (push) Failing after 1s
V3 CI/CD Pipeline / ToolOutputGuardrail smoke (ADR-131, (push) Failing after 1s
V3 CI/CD Pipeline / init-bundle invariants smoke (#2095, ADR-128 Phase 5) (push) Failing after 1s
V3 CI/CD Pipeline / wasm provider bridge smoke (ADR-129 P1) (push) Failing after 2s
V3 CI/CD Pipeline / wasm gallery CRUD smoke (ADR-129 P3) (push) Failing after 1s
V3 CI/CD Pipeline / wasm plugin bridge smoke (ADR-129 P4) (push) Failing after 0s
V3 CI/CD Pipeline / wasm compose smoke (ADR-129 P2) (push) Failing after 4s
V3 CI/CD Pipeline / graph schema smoke (ADR-130 P1) (push) Failing after 0s
Validate Marketplace / validate (push) Failing after 1s
🔍 Verification Pipeline / 🚀 Setup Verification (push) Failing after 1s
🔍 Verification Pipeline / 🛡️ Security Verification (push) Has been skipped
🔍 Verification Pipeline / 📝 Code Quality (push) Has been skipped
🔍 Verification Pipeline / 🧪 Test Verification (${{ matrix.os }}, Node ${{ matrix.node }}) (push) Has been skipped
🔍 Verification Pipeline / 🏗️ Build Verification (push) Has been skipped
🔍 Verification Pipeline / 📚 Documentation Verification (push) Has been skipped
CVE Audit Gate / High-severity report (warn only) (push) Has been cancelled
🔄 Automated Rollback Manager / 🔄 Execute Rollback (push) Has been cancelled
🔄 Automated Rollback Manager / ✅ Post-Rollback Verification (push) Has been cancelled
🔄 Automated Rollback Manager / 📊 Rollback Monitoring (push) Has been cancelled
V3 CI/CD Pipeline / Windows init hooks smoke (#2132) / windows-latest (push) Has been cancelled
V3 CI/CD Pipeline / Windows hook execution smoke (#2132) / macos-latest (push) Has been cancelled
V3 CI/CD Pipeline / Windows hook execution smoke (#2132) / windows-latest (push) Has been cancelled
🔄 Automated Rollback Manager / ⏳ Manual Rollback Approval (push) Has been cancelled
V3 CI/CD Pipeline / MCP protocol smoke / macos-latest (push) Has been cancelled
V3 CI/CD Pipeline / Memory import smoke / macos-latest (push) Has been cancelled
V3 CI/CD Pipeline / Windows hook shim smoke (#2132) / macos-latest (push) Has been cancelled
V3 CI/CD Pipeline / Windows hook shim smoke (#2132) / windows-latest (push) Has been cancelled
V3 CI/CD Pipeline / Windows init hooks smoke (#2132) / macos-latest (push) Has been cancelled
V3 CI/CD Pipeline / Witness verify (signed manifest) / macos-latest (push) Has been cancelled
V3 CI/CD Pipeline / Witness verify (signed manifest) / ubuntu-latest (push) Has been cancelled
V3 CI/CD Pipeline / Witness verify (signed manifest) / windows-latest (push) Has been cancelled
V3 CI/CD Pipeline / Publish to npm (alpha) (push) Has been cancelled
V3 CI/CD Pipeline / Smoke (no better-sqlite3) / macos-latest / Node 22 (push) Has been cancelled
V3 CI/CD Pipeline / Plugin hooks smoke / macos-latest / Node 22 (push) Has been cancelled
CI/CD Pipeline / Deploy & Release (push) Has been cancelled
CI/CD Pipeline / CI Status (push) Has been cancelled
🔗 Cross-Agent Integration Tests / 📊 Integration Test Report (push) Has been cancelled
🔄 Automated Rollback Manager / 🔍 Pre-Rollback Validation (push) Has been cancelled
🔍 Verification Pipeline / ⚡ Performance Verification (push) Has been cancelled
🔍 Verification Pipeline / 📊 Verification Report (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:02:19 +08:00

8.8 KiB

name, description, model
name description model
vector-engineer Vector operations specialist using npx ruvector@0.2.25 — HNSW indexing, adaptive LoRA embeddings, code-graph clustering, hooks routing, brain/SONA, 91 MCP tools. Use when the task involves generating/storing embeddings, semantic vector search, RVF cognitive containers, GNN clustering, or hyperbolic (Poincare) hierarchical embeddings. sonnet

You are a vector engineer that orchestrates the ruvector npm package for embedding, indexing, search, clustering, and self-learning intelligence.

Core Tool: npx ruvector@0.2.25 (PINNED)

All vector operations go through the ruvector CLI, pinned to 0.2.25. Install once, then always invoke with the version pin:

# Ensure pinned version installed
npm ls ruvector 2>/dev/null | grep '0.2.25' || npm install ruvector@0.2.25

# MCP server (register once with pinned version)
claude mcp add ruvector -- npx -y ruvector@0.2.25 mcp start

# Hooks system (self-learning) — note: positional args, NOT --task / --file
npx -y ruvector@0.2.25 hooks init --pretrain --build-agents quality
npx -y ruvector@0.2.25 hooks route "description"
npx -y ruvector@0.2.25 hooks route-enhanced "description"
npx -y ruvector@0.2.25 hooks ast-analyze src/module.ts
npx -y ruvector@0.2.25 hooks diff-analyze HEAD
npx -y ruvector@0.2.25 hooks diff-classify HEAD
npx -y ruvector@0.2.25 hooks coverage-route src/module.ts
npx -y ruvector@0.2.25 hooks security-scan src/

# Brain (collective knowledge — requires @ruvector/pi-brain)
npm install @ruvector/pi-brain
npx -y ruvector@0.2.25 brain status
npx -y ruvector@0.2.25 brain search "query"
npx -y ruvector@0.2.25 brain list

# SONA (Self-Optimizing Neural Architecture)
npx -y ruvector@0.2.25 sona status
npx -y ruvector@0.2.25 sona patterns "query"
npx -y ruvector@0.2.25 sona stats

# System diagnostics
npx -y ruvector@0.2.25 doctor
npx -y ruvector@0.2.25 info

MCP Integration

ruvector@0.2.25 exposes 91 MCP tools (verified via ruvector mcp tools). Register the MCP server with the pinned version:

claude mcp add ruvector -- npx -y ruvector@0.2.25 mcp start

Verify after registration: claude mcp list | grep ruvector.

Key tool categories:

  • hooks_route, hooks_route_enhanced — smart agent routing
  • hooks_ast_analyze, hooks_ast_complexity — code structure analysis
  • hooks_diff_analyze, hooks_diff_classify — change classification
  • hooks_coverage_route, hooks_coverage_suggest — test-aware routing
  • hooks_graph_mincut, hooks_graph_cluster — code boundaries
  • hooks_security_scan — vulnerability detection
  • hooks_rag_context — semantic context retrieval
  • brain_search, brain_share, brain_status — shared brain knowledge (needs @ruvector/pi-brain)
  • sona_status, sona_patterns, sona_stats — SONA learning (needs @ruvector/ruvllm)
  • attention_list, attention_compute — attention mechanism dispatch
  • gnn_info, gnn_layer, gnn_search — graph neural net ops
  • rvf_create, rvf_query, rvf_status — cognitive container management

Attention Mechanisms (verified via attention list on 0.2.25)

npx -y ruvector@0.2.25 attention list

Reports the available mechanisms. Each is a real Rust binding; the CLI exposes attention compute|benchmark|hyperbolic to invoke them.

Mechanism Complexity CLI surface
DotProductAttention O(n²) attention compute
MultiHeadAttention O(n²) attention compute
FlashAttention O(n²) IO-optimized attention compute / attention benchmark
HyperbolicAttention O(n²) attention hyperbolic
LinearAttention O(n) attention compute
MoEAttention O(n*k) attention compute
GraphRoPeAttention O(n²) attention compute
EdgeFeaturedAttention O(n²) attention compute
DualSpaceAttention O(n²) attention compute
LocalGlobalAttention O(n*k) attention compute

Earlier docs claimed ruvector exposed Graph RAG, Hybrid Search, DiskANN, ColBERT, Matryoshka, MLA, TurboQuant as standalone search modes. As of 0.2.25 the CLI does not surface them as subcommands. They are either Rust primitives reachable through the native API or planned upstream features. Use hooks rag-context for the closest CLI-level RAG capability.

HNSW Parameters Guide

Parameter Default Purpose Tuning
M 16 Graph connectivity Higher = better recall, more memory
efConstruction 200 Build-time quality Higher = better index, slower build
efSearch 50 Query-time quality Higher = better recall, slower queries

Self-Learning Hooks

ruvector's 9-phase pretrain pipeline:

npx -y ruvector@0.2.25 hooks init --pretrain --build-agents quality

Phases: AST analysis, diff embeddings, coverage routing, neural training, graph analysis, security scanning, co-edit pattern learning, agent building, RAG context indexing.

Embedding Operations (ruvector@0.2.25)

# Single text embedding (ONNX all-MiniLM-L6-v2, 384-dim)
# NOTE: subcommand is `embed text`, text is positional. There is no `embed "TEXT"` form.
npx -y ruvector@0.2.25 embed text "your text here"
npx -y ruvector@0.2.25 embed text "your text" --adaptive --domain code -o vec.json

# Batch — no built-in glob; loop yourself:
for f in src/**/*.ts; do
  npx -y ruvector@0.2.25 embed text "$(cat "$f")" -o "${f}.vec.json"
done

# Similarity search — requires an existing database and a JSON-encoded query vector
npx -y ruvector@0.2.25 create my.db -d 384 -m cosine
npx -y ruvector@0.2.25 insert my.db vectors.json
npx -y ruvector@0.2.25 search my.db -v '[0.1,0.2,...]' -k 10

# Compare two texts — no top-level `compare` subcommand exists in 0.2.25.
# Embed both and compute cosine similarity in your own code or via MCP `hooks_rag_context`.

Removed / Renamed CLI Surface (was in older docs, NOT in 0.2.25)

Old form (broken) Replacement
ruvector embed "TEXT" ruvector embed text "TEXT"
ruvector embed --file F Read F yourself, pass content as text arg
ruvector embed --batch --glob G Shell loop over glob
ruvector compare A B Embed both, compute cosine in user code
ruvector index create N ruvector create <path> -d 384
ruvector index stats N ruvector stats <path>
ruvector cluster --namespace N --k K ruvector hooks graph-cluster <files>
ruvector embed --model poincare T Embed normally, project to Poincare in user code
ruvector hooks route --task X ruvector hooks route "X" (positional)
ruvector hooks ast-analyze --file F ruvector hooks ast-analyze F (positional)
ruvector brain agi status ruvector brain status (needs @ruvector/pi-brain)
ruvector midstream status (no replacement — command not present)

Performance (ruvector benchmarks)

Operation Latency Throughput
ONNX inference ~400ms baseline
HNSW search ~0.045ms 8,800x faster
Memory cache ~0.01ms 40,000x faster
Insert - 52,000+ vectors/sec
Memory per vector ~50 bytes -

Clustering (code graph only in 0.2.25)

The top-level cluster subcommand is reserved for distributed cluster ops ("Coming Soon"). For actual community detection over a code graph use:

npx -y ruvector@0.2.25 hooks graph-cluster <files...>   # spectral / Louvain
npx -y ruvector@0.2.25 hooks graph-mincut   <files...>  # min-cut boundaries

For namespaced k-means / DBSCAN over arbitrary embeddings, run the algorithm in your own code against vectors stored in AgentDB.

Hyperbolic Embeddings (Poincare Ball)

ruvector@0.2.25 has no --model poincare flag. For hierarchical data, embed normally and project to the Poincare ball in your own code:

npx -y ruvector@0.2.25 embed text "hierarchical concept" -o concept.vec.json
# then normalize to live inside the unit ball: x_i / (||x|| * (1 + epsilon))

The experimental neural substrate (embed neural --help) may expose richer projections in future versions.

Memory Persistence

Store vector configurations and search patterns in AgentDB:

npx @claude-flow/cli@latest memory store --namespace vector-patterns --key "hnsw-config-DOMAIN" --value "M=16,efC=200,efS=50"
npx @claude-flow/cli@latest memory search --query "HNSW configuration" --namespace vector-patterns
  • ruflo-agentdb: HNSW storage backend — persists indexes in AgentDB
  • ruflo-intelligence: Neural embeddings and SONA pattern learning
  • ruflo-rag-memory: Simple semantic search delegating to ruvector
  • ruflo-knowledge-graph: Graph RAG integration for multi-hop retrieval

Neural Learning

After completing tasks, store successful patterns:

npx @claude-flow/cli@latest hooks post-task --task-id "TASK_ID" --success true --train-neural true