关于 wasm-agent
wasm-agent 用于创建和操作运行在 WebAssembly 沙箱中的 Agent,适合执行不受信任的代码、试验配置及便携运行,并可管理工具、文件、导出和终止操作。
主要功能
- 01创建沙箱化 WASM Agent
- 02向 Agent 发送提示词
- 03授予特定工具访问权限
- 04读写沙箱文件
- 05导出 Agent 以供分享
- 06列出或终止 Agent
适用场景
- 01隔离运行不受信任的代码
- 02试验 Agent 配置
- 03为兼容的 WASM 运行时打包 Agent
MCP 相关
使用 Ruflo MCP 工具创建、提示和管理 WASM Agent 的文件,并执行导出、列表查看及终止操作。
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ ruvnet/ ruflo --skill wasm-agent安装后在 Claude Code 中输入/wasm-agent确认已加载。
详细介绍
WASM Agent
创建在 WebAssembly 中运行的沙箱 Agent,实现安全、隔离的执行。
适用场景
需要运行不可信代码、试验 Agent 配置,或创建可在任何支持 WASM 的环境中运行的可移植 Agent 时。
步骤
- 创建 Agent — 调用
mcp__plugin_ruflo-core_ruflo__wasm_agent_create并提供 Agent 配置 - 发送提示词 — 调用
mcp__plugin_ruflo-core_ruflo__wasm_agent_prompt与 Agent 交互 - 使用工具 — 调用
mcp__plugin_ruflo-core_ruflo__wasm_agent_tool,让 Agent 使用特定工具 - 管理文件 — 调用
mcp__plugin_ruflo-core_ruflo__wasm_agent_files,在沙箱中读写文件 - 导出 — 调用
mcp__plugin_ruflo-core_ruflo__wasm_agent_export,打包 Agent 以供分享 - 列出 Agent — 调用
mcp__plugin_ruflo-core_ruflo__wasm_agent_list,查看所有正在运行的 WASM Agent - 终止 — 调用
mcp__plugin_ruflo-core_ruflo__wasm_agent_terminate,停止 Agent
优势
- 完全沙箱隔离 — Agent 无法访问主机文件系统
- 可移植 — 可导出并在任何 WASM 运行时中运行
- 可复现 — 在不同平台上表现一致
- 安全 — Agent 的操作不会损坏系统
评论
支持 Markdown