Plugin had 1 agent + 2 skills + 1 command at v0.1.0. The contract pieces were missing. Surface: 10 wasm_* MCP tools (7 agent lifecycle + 3 gallery) backed by @ruvector/rvagent-wasm + @ruvector/ruvllm-wasm. ADR-0001 cross-references upstream ADR-070 (Implemented) which closed the package.json optionalDependencies gap — without ADR-070's fix, the runtime would always hit graceful-degradation and these MCP tools would no-op. - ADR-0001 (Proposed) at docs/adrs/0001-wasm-contract.md - README adds Compatibility (pin v3.6 + ADR-070 implementation status + graceful-degradation note), 10-tool MCP surface table (split into agent lifecycle 7 + gallery 3), Sandbox isolation block, AIDefence 3-gate cross-reference (sandbox output → host LLM defense), Namespace coordination (claims wasm-gallery; defers to ruflo-agentdb ADR-0001), Verification + Architecture Decisions - plugin.json bumps 0.1.0 → 0.2.0; description names ADR-070; keywords add mcp, rvagent-wasm, ruvllm-wasm - scripts/smoke.sh — 11 structural checks: version + keywords, both skills + agent + command present, all 10 wasm_* tools referenced, v3.6 pin, namespace coordination, wasm-gallery claimed, ADR-070 cross-reference (rvagent/ruvllm/optionalDependencies), sandbox isolation guarantee documented, AIDefence 3-gate cross-reference, ADR Proposed, no wildcard tools Verification: bash plugins/ruflo-wasm/scripts/smoke.sh → 11/11 Co-Authored-By: RuFlo <ruv@ruv.net>
ruflo-wasm
Sandboxed WASM agent creation, execution, and gallery sharing.
Install
/plugin marketplace add ruvnet/ruflo
/plugin install ruflo-wasm@ruflo
Features
- Sandbox isolation: Agents run in WASM with no host filesystem access
- Agent lifecycle: Create, prompt, configure tools, export, terminate
- Community gallery: Browse, search, and publish WASM agents
- Portable: Export agents that run on any WASM runtime
Commands
/wasm-- List running agents and browse gallery
Skills
wasm-agent-- Create and manage sandboxed WASM agentswasm-gallery-- Browse and publish agents in the community gallery
Compatibility
- CLI: pinned to
@claude-flow/cliv3.6 major+minor. - WASM runtime: built on
@ruvector/rvagent-wasm+@ruvector/ruvllm-wasm. Both are declared in@claude-flow/cli'soptionalDependenciesper ADR-070 (Implemented). Without those packages, runtime falls through to the graceful-degradation path and the MCP tools no-op. - Verification:
bash plugins/ruflo-wasm/scripts/smoke.shis the contract.
MCP surface (10 tools)
All defined at v3/@claude-flow/cli/src/mcp-tools/wasm-agent-tools.ts:
Agent lifecycle (7)
| Tool | Purpose |
|---|---|
wasm_agent_create |
Spin up a sandboxed WASM agent |
wasm_agent_prompt |
Send a prompt to the agent |
wasm_agent_tool |
Invoke a tool inside the sandbox |
wasm_agent_list |
List active WASM agents |
wasm_agent_terminate |
Stop a WASM agent |
wasm_agent_files |
Read/write files in the sandbox |
wasm_agent_export |
Export agent state |
Gallery (3)
| Tool | Purpose |
|---|---|
wasm_gallery_list |
Browse community-published WASM agents |
wasm_gallery_search |
Search the gallery |
wasm_gallery_create |
Publish a WASM agent to the gallery |
Sandbox isolation
WASM agents run with no host filesystem access by default. The wasm_agent_files tool exposes a sandboxed virtual filesystem; the host filesystem is not reachable from inside the WASM module.
For prompt-injection defense inside the sandbox, the ruflo-aidefence 3-gate pattern applies to any output flowing back to the host LLM.
Namespace coordination
This plugin owns the wasm-gallery AgentDB namespace (kebab-case, follows the convention from ruflo-agentdb ADR-0001 §"Namespace convention"). Reserved namespaces (pattern, claude-memories, default) MUST NOT be shadowed.
wasm-gallery indexes published WASM agents (manifest, version, signature, download count). Accessed via memory_* (namespace-routed).
Verification
bash plugins/ruflo-wasm/scripts/smoke.sh
# Expected: "11 passed, 0 failed"
Architecture Decisions
Related Plugins
ruflo-agentdb— namespace convention ownerruflo-aidefence— 3-gate pattern applies to sandbox output flowing back to the host LLMruflo-ruvector— the underlying ruvector substrate that ships @ruvector/rvagent-wasm