mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
The foundation plugin now documents its own contract since 30+ plugins depend on the MCP server it registers and the orchestration patterns it documents. - ADR-0001 (Proposed) at docs/adrs/0001-core-contract.md - README adds Compatibility (pin @claude-flow/cli v3.6 — .mcp.json uses @latest dynamic resolver, smoke verifies the resolved CLI), MCP server contract (300+ tools across 11 families with per-plugin attribution table), Sibling contracts cross-reference table (7 ADRs covering namespace convention, session-as-skill, 4-step pipeline, 3-gate AIDefence, 270s cache-aware /loop, ADR token-optimization) - plugin.json bumps 0.1.0 → 0.2.0; description enumerates registered family prefixes; keywords add foundation, mcp-server, plugin-catalog, discovery - scripts/smoke.sh — 10 structural checks: version + keywords, .mcp.json registers ruflo server, 3 agents + 3 skills present with frontmatter, discover-plugins catalog has ≥25 sibling references, v3.6 pin, sibling ADR cross-references (namespace + 3-gate + 4-step), ADR Proposed, /ruflo-status invokes doctor+status, no wildcard tools Verification: bash plugins/ruflo-core/scripts/smoke.sh → 10/10 Co-Authored-By: RuFlo <ruv@ruv.net>
ruflo-core
Foundation plugin. Registers the ruflo MCP server (300+ tools), provides three generalist agents (coder, researcher, reviewer), three first-run helpers (init-project, ruflo-doctor, discover-plugins), and a curated catalog covering all 30+ sibling plugins.
Install
/plugin marketplace add ruvnet/ruflo
/plugin install ruflo-core@ruflo
What's Included
- MCP Server: 300+ tools via
@claude-flow/cli(memory, agentdb, embeddings, hooks, neural, autopilot, browser, aidefence, agent, swarm, system, terminal, github, daa, coordination, performance, workflow, …) - CLI Commands: 26 commands with 140+ subcommands for agent orchestration
- 3-Tier Model Routing: Agent Booster (WASM), Haiku, Sonnet/Opus with automatic cost optimization
- Session Management: Persistent sessions with cross-conversation learning
- Hooks System: 17 hooks + 12 background workers for self-learning automation
Configuration
The MCP server starts automatically when this plugin is active. Override environment variables in .mcp.json as needed.
Compatibility
- CLI: pinned to
@claude-flow/cliv3.6 major+minor. The.mcp.jsoninvocation uses@latestfor dynamic resolution; the smoke contract verifies the resolved CLI matches the v3.6 line. - Verification:
bash plugins/ruflo-core/scripts/smoke.shis the contract.
MCP server contract
The registered ruflo MCP server exposes 300+ tools across these families. Runtime truth is mcp tool call mcp_status:
| Family | Notable tools | Plugin documenting it |
|---|---|---|
memory_* |
memory_store, _search, _search_unified, _import_claude, _bridge_status |
ruflo-rag-memory |
agentdb_* |
15 tools for hierarchical / pattern / causal storage | ruflo-agentdb |
embeddings_* |
10 tools incl. RaBitQ 32× quantization | ruflo-agentdb, ruflo-ruvector |
hooks_* (incl. hooks_intelligence_*) |
19+ tools — routing, learning, transfer, metrics, explain | ruflo-intelligence, ruflo-autopilot |
aidefence_* |
6 tools — PII / prompt-injection / sanitization | ruflo-aidefence |
neural_* |
6 tools — train, predict, patterns, compress | ruflo-intelligence |
autopilot_* |
10 tools — autonomous loops + learning | ruflo-autopilot |
browser_* (+ new browser_session_*) |
23 + 5 = 28 tools — Playwright + RVF lifecycle | ruflo-browser |
ruvllm_sona_* / ruvllm_microlora_* |
4 tools — adaptive learning | ruflo-intelligence, ruflo-ruvllm |
agent_*, swarm_* |
spawn, list, status, orchestrate | ruflo-swarm |
system_*, terminal_* |
system + terminal session ops | this plugin |
For every other plugin's tool surface, see its docs/adrs/0001-*.md.
Sibling contracts
This foundation plugin defers to seven sibling ADRs that own specific cross-cutting contracts. New plugins (and consumers of ruflo-core) should reference these instead of re-deriving:
| Contract | Owner |
|---|---|
| Pinning + smoke as contract (general pattern) | ruflo-ruvector ADR-0001 |
Namespace convention (<plugin-stem>-<intent>, reserved namespaces) |
ruflo-agentdb ADR-0001 |
| Session-as-skill architecture (RVF + trajectory + 3 AIDefence gates) | ruflo-browser ADR-0001 |
| 4-step intelligence pipeline (RETRIEVE → JUDGE → DISTILL → CONSOLIDATE) | ruflo-intelligence ADR-0001 |
| 3-gate AIDefence pattern (PII pre-storage, sanitization, prompt-injection) | ruflo-aidefence ADR-0001 |
| 270s cache-aware /loop heartbeat | ruflo-autopilot ADR-0001 |
| ADR plugin contract (token-optimization via REFERENCE.md) | ruflo-adr ADR-0001 |
Verification
bash plugins/ruflo-core/scripts/smoke.sh
# Expected: "10 passed, 0 failed"