managed-agent
Skill này làm gì
Skill này hướng dẫn agent tạo và chạy một Claude Managed Agent trên đám mây, môi trường này giữ riêng môi trường và file qua nhiều lượt. Phù hợp với công việc dài hoặc chạy nền không nên chạy trên máy tính của bạn.
Khi nào nên dùng
- ✓Khi một tác vụ mất vài phút hoặc vài giờ và nên chạy trên đám mây.
- ✓Khi bạn muốn một agent có sẵn các gói đã cài và hệ thống file riêng.
- ✓Khi bạn cần một phiên có lịch sử được giữ lại giữa các lượt.
Liên kết skill
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-agent/skills/managed-agent/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Khởi động một agent đám mây để nghiên cứu năm công ty này và lưu một báo cáo trong các file của nó.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent tạo một agent và môi trường, khởi động một phiên, gửi tin nhắn, rồi đọc lại các sự kiện và file mà phiên tạo ra.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Tôi cần chuẩn bị gì trước khi dùng?
Bạn cần một API key của Anthropic có quyền truy cập bản beta Claude Managed Agents.
Nếu tôi không có quyền truy cập thì sao?
Các công cụ sẽ trả về lỗi, và skill gợi ý dùng agent WASM cục bộ.
Nó có giống agent WASM cục bộ không?
Không. Managed agent chạy trên đám mây của Anthropic, còn agent WASM chạy cục bộ trong sandbox.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 81k
- Vị trí xếp hạng
- #1556
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-adaptive-coordinator
81kGiúp agent của bạn chia và cân bằng lại một nhóm agent AI khi khối lượng công việc thay đổi, chọn bố cục phù hợp với tác vụ.
agent-agent
81kDạy agent của bạn biến một mục tiêu lớn thành kế hoạch hành động có thứ tự, và lập lại kế hoạch khi điều kiện thay đổi.
agent-agentic-payments
81kGiúp agent của bạn quản lý ủy quyền chi tiêu cho mua sắm bằng AI, với hạn mức chi, khung thời gian, quy tắc người bán và phê duyệt có chữ ký.
agent-analyze-code-quality
81kGiúp agent của bạn rà soát chất lượng mã, tìm code smell, nợ kỹ thuật và gợi ý tái cấu trúc mà không thay đổi các file.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.