Agent runtimes for ruflo — one mental model, two backends (a third planned):
wasm_agent_* is the safe default (sandboxed). managed_agent_* needs ANTHROPIC_API_KEY (or CLAUDE_API_KEY) + Claude Managed Agents beta access — every managed_agent_* tool degrades gracefully with a structured "use wasm_agent_create for a local no-key runtime" error when the key is absent.
Design: ADR-115 (the cloud runtime + the planned SDK runtime); ADR-070 (the WASM runtime); plugin contract docs/adrs/0001-wasm-contract.md.
Renamed from
ruflo-wasm(it only covered the local WASM runtime). Thewasm_agent_*/wasm_gallery_*tool names are unchanged.
/plugin marketplace add ruvnet/ruflo
/plugin install ruflo-agent@ruflo
/wasm— list running WASM agents and browse the gallery (local runtime)/managed-agent— list Managed Agent cloud sessions, check status, fetch a transcript, clean up (cloud runtime)
wasm-agent— create and manage sandboxed WASM agents (local)wasm-gallery— browse and publish agents in the community gallerymanaged-agent— run an Anthropic Claude Managed Agent (cloud) — create / prompt / status / events / list / terminate
| 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 (RVF container) |
wasm_gallery_list |
Browse community-published WASM agents |
wasm_gallery_search |
Search the gallery |
wasm_gallery_create |
Publish a WASM agent to the gallery |
Beta API (
anthropic-beta: managed-agents-2026-04-01);multiagent/define-outcomeson the agent config are research preview.mcpServersfor a cloud agent must point at a publicly reachable URL — a localruflo mcp startis not reachable from Anthropic's cloud (deploy/tunnel an HTTP ruflo MCP server first). Managed sessions cost LM tokens + container time and are rate-limited per org.
- CLI: pinned to
@claude-flow/cliv3.6 major+minor. - WASM runtime: built on
@ruvector/rvagent-wasm+@ruvector/ruvllm-wasm(declared in@claude-flow/cli'soptionalDependenciesper ADR-070). Without those packages, thewasm_agent_*tools fall through to graceful-degradation no-ops. - Managed runtime: plain
fetchagainst the Managed Agents REST API — no extra SDK dependency. WithoutANTHROPIC_API_KEY/CLAUDE_API_KEY, everymanaged_agent_*tool returns a structured error pointing at thewasm_agent_*fallback (the CLI/MCP server stays up). - Verification:
bash plugins/ruflo-agent/scripts/smoke.shis the contract (12 structural checks). CI:.github/workflows/ruflo-agent-smoke.yml. Behavioral guard for the cloud tools:v3/@claude-flow/cli/__tests__/managed-agent-tools.test.ts(no-network).
WASM agents run with no host filesystem access by default; wasm_agent_files exposes a sandboxed virtual filesystem only. Managed agents run in Anthropic's cloud container (isolated from your machine). The planned SDK runtime would run in your process with full host trust — which is why wasm_agent_* stays the default and the SDK runtime, when built, will be opt-in.
For prompt-injection defense on output flowing back to the host LLM, the ruflo-aidefence 3-gate pattern applies.
This plugin owns the wasm-gallery AgentDB namespace (kebab-case, per 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-agent/scripts/smoke.sh
# Expected: "12 passed, 0 failed"ADR-0001— ruflo-agent plugin contract (WASM runtime: 10-tool MCP surface, ADR-070 integration, sandbox isolation, smoke as contract)ADR-115— Claude Managed Agents as the cloud runtime (+ the planned SDK runtime, ADR-116)
ruflo-agentdb— namespace convention ownerruflo-aidefence— 3-gate pattern applies to agent output flowing back to the host LLMruflo-ruvector— the ruvector substrate that ships@ruvector/rvagent-wasmruflo-cost-tracker— record completed Managed Agent sessions (LM tokens + container time)
