Subs发布云原生代理框架,无系统访问权限
原文:Subs, the cloud native agent harness
Subs,云原生代理工具。Subs是云端的代理工具。它运行一个没有系统访问权限的非特权代理循环。它使用MCP服务器作为工具。它可以本地运行,也可以作为客户端和服务器运行。substructure.ai构建Subs并提供托管部署。 - 运行本地代理。创建subs.toml。subs.toml名称 = "example" [llm.openrouter] 类型 = "openrouter" [agent.teammate] llm = "openrouter" 模型 = "deepseek/deepseek-v4-flash-0731" 系统 = "你是一个有帮助的队友。" 与它交谈。 - 使用服务器/客户端模式。将以下内容添加到subs.toml。subs.toml名称 = "example" [llm.openrouter] 类型 = "openrouter" [agent.teammate] llm = "openrouter" 模型 = "deepseek/deepseek-v4-flash-0731" 系统 = "你是一个有帮助的队友。" [serve] 端口 = 9999 认证 = false [remote] url = "http://localhost:9999" 启动服务器。在另一个终端中,相同的命令现在与它通信。 - 在substructure.ai上运行它。将相同的文件指向托管引擎而不是您自己的。subs.toml名称 = "example" [llm.openrouter] 类型 = "openrouter" [agent.teammate] llm = "openrouter" 模型 = "deepseek/deepseek-v4-flash-0731" 系统 = "你是一个有帮助的队友。" [remote] url = "https://api.substructure.ai" 从文件创建项目,然后给它您的LLM密钥。与之前相同的命令。现在轮到我们在我们的机器上运行。 - 将代理放入Slack。三行:哪个代理接收DM,哪个回答提及。subs.toml名称 = "example" [llm.openrouter] 类型 = "openrouter" [agent.teammate] llm = "openrouter" 模型 = "deepseek/deepseek-v4-flash-0731" 系统 = "你是一个有帮助的队友。" [agent.teammate.slack] 名称 = "Teammate" [remote] url = "https://api.substructure.ai" 再次应用它,然后设置它的Slack应用程序。在频道中提及机器人,它在线程中回答。您编写了一个文件,没有编写任何代码。 - 将代理连接到MCP服务器。添加服务器。将它提供给代理。凭证在所有用户之间共享。subs.toml名称 = "example" [llm.openrouter] 类型 = "openrouter" [mcp.sentry] url = "https://mcp.sentry.de