Skip to content
Skillpedia
Agents81k Β· #1556

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.md

Copy 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

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-agent/skills/managed-agent/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

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 (or CLAUDE_API_KEY) in the environment, with Claude Managed Agents beta access.
  • If absent, every managed_agent_* tool returns a structured "use wasm_agent_create for a local no-key runtime" error β€” fall back to the WASM skill.

Steps

  1. 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 local ruflo mcp start is 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.
  2. 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, raise maxWaitMs or follow up with managed_agent_events.

  3. 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 of wasm_agent_files).

  4. List β€” mcp__plugin_ruflo-core_ruflo__managed_agent_list { limit? } β€” every session on the org (so you can see which are still running / billing).

  5. Terminate β€” mcp__plugin_ruflo-core_ruflo__managed_agent_terminate { sessionId, environmentId? } β€” always do this when done: running sessions consume runtime and tokens. Pass environmentId to 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-tracking namespace.
  • Treat orphaned sessions like leaked resources β€” managed_agent_list then managed_agent_terminate anything 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

  1. Create with dynamicWorkflows: true, budgetCents: "2500" ($25), and exact allowedHosts. Networking is limited. Use predefinedAgents for restricted workers; otherwise inline agents inherit lead tools. Never expose recursive swarm launch or release tools to remote workers.
  2. 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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills