plugins/ruflo-wasm/README.md
Sandboxed WASM agent creation, execution, and gallery sharing.
/plugin marketplace add ruvnet/ruflo
/plugin install ruflo-wasm@ruflo
/wasm -- List running agents and browse gallerywasm-agent -- Create and manage sandboxed WASM agentswasm-gallery -- Browse and publish agents in the community gallery@claude-flow/cli v3.6 major+minor.@ruvector/rvagent-wasm + @ruvector/ruvllm-wasm. Both are declared in @claude-flow/cli's optionalDependencies per ADR-070 (Implemented). Without those packages, runtime falls through to the graceful-degradation path and the MCP tools no-op.bash plugins/ruflo-wasm/scripts/smoke.sh is the contract.All defined at v3/@claude-flow/cli/src/mcp-tools/wasm-agent-tools.ts:
| 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 |
| 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 |
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.
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).
bash plugins/ruflo-wasm/scripts/smoke.sh
# Expected: "11 passed, 0 failed"
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