一键导入
neural-train
Train SONA + MicroLoRA neural patterns from successful task completions; runs the DISTILL + CONSOLIDATE phases of the 4-step pipeline
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Train SONA + MicroLoRA neural patterns from successful task completions; runs the DISTILL + CONSOLIDATE phases of the 4-step pipeline
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | neural-train |
| description | Train SONA + MicroLoRA neural patterns from successful task completions; runs the DISTILL + CONSOLIDATE phases of the 4-step pipeline |
| argument-hint | [--model-type moe|transformer|classifier|embedding] [--epochs N] [--microlora] |
| allowed-tools | mcp__ruflo__neural_train mcp__ruflo__neural_status mcp__ruflo__neural_patterns mcp__ruflo__neural_predict mcp__ruflo__neural_optimize mcp__ruflo__neural_compress mcp__ruflo__hooks_pretrain mcp__ruflo__hooks_build-agents mcp__ruflo__hooks_intelligence_trajectory-start mcp__ruflo__hooks_intelligence_trajectory-step mcp__ruflo__hooks_intelligence_trajectory-end mcp__ruflo__hooks_intelligence_pattern-store mcp__ruflo__hooks_intelligence_learn mcp__ruflo__hooks_intelligence-reset mcp__ruflo__ruvllm_sona_create mcp__ruflo__ruvllm_sona_adapt mcp__ruflo__ruvllm_microlora_create mcp__ruflo__ruvllm_microlora_adapt mcp__ruflo__agentdb_consolidate Bash |
Train and consolidate neural patterns. Implements the DISTILL and CONSOLIDATE phases of the 4-step intelligence pipeline.
mcp__ruflo__neural_status.mcp__ruflo__hooks_intelligence_trajectory-start with the task context.mcp__ruflo__hooks_intelligence_trajectory-step.mcp__ruflo__hooks_intelligence_trajectory-end with verdict: pass|fail|partial.mcp__ruflo__hooks_intelligence_learn.mcp__ruflo__neural_train with modelType: moe (or transformer|classifier|embedding) and epochs: 10.mcp__ruflo__hooks_intelligence_pattern-store.mcp__ruflo__neural_patterns to confirm.For real-time micro-adaptation:
mcp tool call ruvllm_sona_create --json -- '{"domain": "coding"}'
mcp tool call ruvllm_sona_adapt --json -- '{"feedback": {"score": 0.9, "trajectory": "..."}}'
When you have ≥3 distinct domains, create a MicroLoRA adapter per domain rather than overloading SONA:
# Create the adapter
mcp tool call ruvllm_microlora_create --json -- '{"domain": "frontend"}'
# Adapt with feedback
mcp tool call ruvllm_microlora_adapt --json -- '{"adapter": "frontend", "feedback": {...}}'
# CONSOLIDATE phase: apply EWC++ on weight deltas to prevent catastrophic forgetting
mcp tool call ruvllm_microlora_adapt --json -- '{"adapter": "frontend", "consolidate": true}'
The --consolidate flag is the EWC++ trigger. Without it, fresh training overwrites older domains.
After every ~10 trajectory completions, run a full consolidation pass:
mcp tool call agentdb_consolidate --json
mcp tool call neural_compress --json -- '{"method": "distill"}' # merge near-duplicate patterns (or method:prune). quantize is not supported in this build (ADR-0086 Phase 1)
This folds patterns into long-term storage under EWC++ semantics.
If the system has no learned patterns yet:
mcp tool call hooks_pretrain --json -- '{"modelType": "moe", "epochs": 10}'
mcp tool call hooks_build-agents --json -- '{"agentTypes": "coder,tester"}'
hooks_pretrain writes to the patterns (plural) namespace — distinct from the pattern (singular) ReasoningBank target. See ruflo-agentdb ADR-0001 for the namespace convention.
To wipe intelligence state (e.g., for benchmarking):
mcp tool call hooks_intelligence-reset --json
npx @sparkleideas/cli@latest neural train --model-type moe --epochs 10
npx @sparkleideas/cli@latest neural patterns --list
npx @sparkleideas/cli@latest neural status
npx @sparkleideas/cli@latest neural compress --method distill # or --method prune; quantize unsupported (ADR-0086 Phase 1)
npx @sparkleideas/cli@latest hooks pretrain --model-type moe --epochs 10
npx @sparkleideas/cli@latest hooks build-agents --agent-types coder,tester
Build or rebuild the ADR index + dependency graph in AgentDB by running the in-process `agentdb index` command (one cold-start, all surfaces in one pass — no per-record npx round-trips). Handles v3-style and plugin-style ADR formats.
Create a new Architecture Decision Record with sequential numbering and AgentDB registration
Hive Mind orchestration patterns — queen-led multi-agent coordination with Byzantine/Raft/Gossip/CRDT consensus, typed collective memory, dialectic council, and session checkpoint/resume. Use for decision-bearing work; use swarm-advanced for parallel execution without consensus.
Analyze git diffs for risk scoring, reviewer recommendations, and change classification
Detect missing test coverage and generate test suggestions
Hive Mind orchestration patterns — queen-led multi-agent coordination with Byzantine/Raft/Gossip/CRDT consensus, typed collective memory, dialectic council, and session checkpoint/resume. Use for decision-bearing work; use swarm-advanced for parallel execution without consensus.