managed-agent
できること
このスキルは、クラウドでClaudeのマネージドエージェントを作成して実行する手順をエージェントに示します。このエージェントは、ターンをまたいで独自の環境とファイルを保ちます。自分のパソコンで動かしたくない長時間やバックグラウンドの作業のためのものです。
使う場面
- ✓作業が数分から数時間かかり、クラウドで実行すべきとき。
- ✓あらかじめ入れたパッケージと独自のファイルシステムを持つエージェントがほしいとき。
- ✓ターンをまたいで履歴が保たれるセッションが必要なとき。
スキルのリンク
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-agent/skills/managed-agent/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“この5社を調べて、報告書をそのファイルに保存するクラウドのエージェントを開始してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、エージェントと環境を作成し、セッションを開始し、メッセージを送り、セッションが生成したイベントとファイルを読み戻します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
よくある質問
使う前に何が必要ですか?
Claude Managed Agentsのベータにアクセスできる、Anthropic APIキーが必要です。
アクセスがない場合はどうなりますか?
ツールがエラーを返し、スキルはその代わりにローカルのWASMエージェントを使うよう勧めます。
ローカルのWASMエージェントと同じですか?
いいえ。マネージドエージェントはAnthropicのクラウドで動き、WASMエージェントはサンドボックスの中でローカルに動きます。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 81k
- ランキング
- #1556
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
agent-adaptive-coordinator
81k作業量の変化に合わせて、エージェントのグループを分割し、再配分する手助けをします。作業に合った配置を選びます。
agent-agent
81k大きな目標を順番に並んだ行動計画にし、状況が変わったときに計画を立て直す方法をエージェントに教えます。
agent-agentic-payments
81kAIの買い物のために、支出の上限、期間、販売店のルール、署名付きの承認を含む支出の委任を管理する手助けをします。
agent-analyze-code-quality
81kコードの品質を確認し、コードの臭い、技術的負債、リファクタリングの案を見つける手助けをします。ファイルは変更しません。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。