managed-agent
What it does
This skill guides an agent to create and run a Claude Managed Agent in the cloud, which keeps its own environment and files across turns. It is for long-running or background work that should not run on your own computer.
When to use it
- βWhen a task will take minutes or hours and should run in the cloud.
- βWhen you want an agent with pre-installed packages and its own file system.
- βWhen you need a session whose history is kept between turns.
Skill link
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-agent/skills/managed-agent/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βStart a cloud agent to research these five companies and save a report in its files.β
5 new skills a week. 1 minute to read.
How it works
The agent creates an agent and environment, starts a session, sends messages, and reads back the events and files the session produces.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Managed Agent (Anthropic cloud runtime)
ruflo-agent has two agent runtimes behind one mental model:
| Runtime | Tools | Use it when |
|---|---|---|
WASM (local, rvagent) |
wasm_agent_* / wasm_gallery_* |
fast, free, ephemeral, offline, untrusted code in a sandbox |
| Managed (Anthropic cloud) | managed_agent_* (this skill) |
long-running / async work (minutesβhours), a real cloud container with pre-installed packages + network, persistent filesystem + transcript across turns |
This skill drives the managed runtime β Anthropic's Claude Managed Agents (beta). The model: Agent (model + system + tools + MCP servers + skills) β Environment (container template) β Session (running instance) β Events (turns / tool-use / status, persisted server-side). See docs/adr/0001-wasm-contract.md and project ADR-115.
Prerequisites
ANTHROPIC_API_KEY(orCLAUDE_API_KEY) in the environment, with Claude Managed Agents beta access.- If absent, every
managed_agent_*tool returns a structured "usewasm_agent_createfor a local no-key runtime" error β fall back to the WASM skill.
Steps
Create β
mcp__plugin_ruflo-core_ruflo__managed_agent_create{ model?, system?, name?, networking?, packages?, initScript?, mcpServers?, skills? }β{ sessionId, agentId, environmentId, status }. Provisions Agent + Environment + Session. Save the three ids.mcpServers:[{type:"url", url, name, authorization_token?}]β the cloud agent must be able to reach the URL. A localruflo mcp startis not reachable from Anthropic's cloud; deploy/tunnel an HTTP ruflo MCP server first if you want the cloud agent to have ruflo's tools.packages:{pip?:[], npm?:[], apt?:[], cargo?:[], gem?:[], go?:[]}β installed in the container.
Prompt β
mcp__plugin_ruflo-core_ruflo__managed_agent_prompt{ sessionId, message, maxWaitMs? }β sends a user turn, polls the event log until the session goes idle (default 180s, capped 600s) β{ finished, status, stopReason, assistantText, toolUses[], eventCount }. For very long tasks, raisemaxWaitMsor follow up withmanaged_agent_events.Inspect β
mcp__plugin_ruflo-core_ruflo__managed_agent_status{ sessionId }(idle/running/error) Β·mcp__plugin_ruflo-core_ruflo__managed_agent_events{ sessionId, raw? }(full transcript: user turns, agent thinking, tool_use, tool_result, status β the cloud counterpart ofwasm_agent_files).List β
mcp__plugin_ruflo-core_ruflo__managed_agent_list{ limit? }β every session on the org (so you can see which are still running / billing).Terminate β
mcp__plugin_ruflo-core_ruflo__managed_agent_terminate{ sessionId, environmentId? }β always do this when done: running sessions consume runtime and tokens. PassenvironmentIdto also delete the environment ruflo created.
Cost & safety
- Managed Agents bill per session (LM tokens + container time) and are rate-limited per org. Estimate before a long run; record completed sessions to the
cost-trackingnamespace. - Treat orphaned sessions like leaked resources β
managed_agent_listthenmanaged_agent_terminateanything stale. - Beta API (
managed-agents-2026-04-01); dynamic workflows are opt-in beta; outcomes remain outside this adapter.
Quick example
managed_agent_create { "model": "claude-haiku-4-5-20251001", "system": "Terse. Do exactly what is asked.", "name": "scratch" }
β { sessionId: "sesn_β¦", agentId: "agent_β¦", environmentId: "env_β¦", status: "idle" }
managed_agent_prompt { "sessionId": "sesn_β¦", "message": "echo hello > /tmp/x && cat /tmp/x β then stop." , "maxWaitMs": 60000 }
β { finished: true, status: "idle", stopReason: "end_turn", assistantText: "Done.", toolUses: [{name:"bash", input:{command:"echo hello > /tmp/x && cat /tmp/x"}}] }
managed_agent_terminate { "sessionId": "sesn_β¦", "environmentId": "env_β¦" }
β { sessionDeleted: true, environmentDeleted: true }
Dynamic workflow procedure
- Create with
dynamicWorkflows: true,budgetCents: "2500"($25), and exactallowedHosts. Networking is limited. UsepredefinedAgentsfor restricted workers; otherwise inline agents inherit lead tools. Never expose recursive swarm launch or release tools to remote workers. - Prompt the lead to run inventory, review, reproduction and synthesis phases. Use separate worker output path
FAQ
What do I need before using it?
You need an Anthropic API key with access to the Claude Managed Agents beta.
What if I do not have access?
The tools return an error, and the skill suggests using the local WASM agent instead.
Is it the same as the local WASM agent?
No. The managed agent runs in Anthropic's cloud, while the WASM agent runs locally in a sandbox.
Details
Original description by the author
Run an Anthropic Claude Managed Agent β a cloud agent harness (container + filesystem + tools), the cloud counterpart of the local wasm-agent runtime
repo: ruvnet/ruflo
Popularity
- GitHub stars
- 81k
- Ranking position
- #1556
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agent-adaptive-coordinator
81kHelps your agent split and rebalance a group of AI agents as the workload changes, choosing a layout that fits the task.
agent-agent
81kTeaches your agent to turn a big goal into an ordered plan of actions, and to replan when conditions change.
agent-agentic-payments
81kHelps your agent manage spending mandates for AI shopping, with spend caps, time windows, merchant rules and signed approvals.
agent-analyze-code-quality
81kHelps your agent review code for quality, finding code smells, technical debt and refactoring ideas without changing the files.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.