经 AI Skill Hub 精选评估,agent-swarm Agent工作流 获评「强烈推荐」。这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.2 分,适合有一定技术背景的用户使用。
基于Claude的开源多代理AI编码框架,支持Agent协作与工作流编排。提供swarm模式分布式处理能力,适合需要复杂AI编码任务自动化、多智能体协作的开发者和企业。
agent-swarm Agent工作流 是一款基于 TypeScript 开发的开源工具,专注于 多代理系统、Claude集成、AI编码 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
基于Claude的开源多代理AI编码框架,支持Agent协作与工作流编排。提供swarm模式分布式处理能力,适合需要复杂AI编码任务自动化、多智能体协作的开发者和企业。
agent-swarm Agent工作流 是一款基于 TypeScript 开发的开源工具,专注于 多代理系统、Claude集成、AI编码 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:npm 全局安装 npm install -g agent-swarm # 方式二:npx 直接运行(无需安装) npx agent-swarm --help # 方式三:项目依赖安装 npm install agent-swarm # 方式四:从源码运行 git clone https://github.com/desplega-ai/agent-swarm cd agent-swarm npm install npm start
# 命令行使用
agent-swarm --help
# 基本用法
agent-swarm [options] <input>
# Node.js 代码中使用
const agent_swarm = require('agent-swarm');
const result = await agent_swarm.run(options);
console.log(result);
# agent-swarm 配置说明 # 查看配置选项 agent-swarm --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export AGENT_SWARM_CONFIG="/path/to/config.yml"
<p align="center"> <a href="https://github.com/desplega-ai/agent-swarm/stargazers"><img src="https://img.shields.io/github/stars/desplega-ai/agent-swarm?style=flat-square&color=yellow" alt="GitHub Stars"></a> <a href="https://github.com/desplega-ai/agent-swarm/blob/main/LICENSE"><img src="https://img.shields.io/github/license/desplega-ai/agent-swarm?style=flat-square" alt="MIT License"></a> <a href="https://github.com/desplega-ai/agent-swarm/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen?style=flat-square" alt="PRs Welcome"></a> </p>
<p align="center"> <b>An engine to make your company AI Native</b><br/> <sub>Built by <a href="https://desplega.sh">desplega.sh</a> — by builders, for builders.</sub> </p>
[!TIP] This repo evolves every single day. Watch now →
<p align="center"> <video src="https://github.com/user-attachments/assets/e220712e-c54d-4f46-b059-bac04639d229" controls muted playsinline width="720"></video> </p> <p align="center"> <sub>▸ <a href="./assets/agent-swarm.mp4">daily evolution</a> · <a href="./assets/agent-swarm-slack-to-pr.mp4">slack → pr</a> · <a href="./assets/video-source">Making of</a></sub> </p>
<p align="center"> <a href="https://agent-swarm.dev"> <img src="https://img.shields.io/badge/Website-agent--swarm.dev-000?style=for-the-badge" alt="Website"> </a> <a href="https://docs.agent-swarm.dev"> <img src="https://img.shields.io/badge/Docs-docs.agent--swarm.dev-amber?style=for-the-badge" alt="Docs"> </a> <a href="https://app.agent-swarm.dev"> <img src="https://img.shields.io/badge/Dashboard-app.agent--swarm.dev-blue?style=for-the-badge" alt="Dashboard"> </a> <a href="https://discord.gg/KZgfyyDVZa"> <img src="https://img.shields.io/badge/Discord-Join%20Community-5865F2?style=for-the-badge&logo=discord&logoColor=white" alt="Join Discord"> </a> <a href="https://x.com/desplegalabs"> <img src="https://img.shields.io/badge/𝕏-@desplegalabs-000?style=for-the-badge&logo=x&logoColor=white" alt="Follow on X"> </a> <a href="https://www.linkedin.com/company/desplega-labs/"> <img src="https://img.shields.io/badge/LinkedIn-Desplega%20Labs-0A66C2?style=for-the-badge&logo=linkedin&logoColor=white" alt="Desplega Labs on LinkedIn"> </a> </p>
Agent Swarm is your Company's Compounding Intelligence Layer. A system of AI agents that remember, reason, act and get better with every task.
AI-Native · Compounds · Presence · Harness & LLM-Agnostic · Your Infra · Your Memory ·
script-run is too small. Guide →POST /api/x/script/<id> endpoint with optional bearer auth, typed input validation, and per-endpoint usage tracking. Guide →ctx.api.* clients while credential bindings keep raw secrets out of source and args. Guide →modelTier intent (smol, regular, smart, ultra), and operators can set per-agent reasoning effort (off → xhigh) without changing task payloads. Harness config → · Add a new provider →x command and swarm_x MCP tool let humans and agents execute approved third-party routes such as Composio without baking bespoke MCP servers first. CLI → · Composio →create_page MCP tool with public / authed / password modes, version history, view counters, diff helpers, and PDF export. MCP tools → PagesFor production deployments (Docker Compose with multiple workers, systemd for the API, graceful shutdown, integration config), see DEPLOYMENT.md and the deployment guide.
Use cases that are used daily by ourselves and others. Each playbook contains: the agents, the tools & skills, and workflows & schedules behind it. Browse all playbooks →
The patterns that compound. Five recipes show up in nearly every playbook — they're how the swarm stays reliable as it scales: Litmus Tests (LLM-as-judge quality gates) · Drain Loops (one ticket → a chain of reviewable PRs) · HITL Gates (pause for human approval on irreversible steps) · Per-Customer Working Directories (context that compounds per account) · No-op Workflows (skip silently when nothing changed). See all patterns →
Check our templates for a quick start.
Need help? Contact us at contact@desplega.sh.
Prerequisites: Docker and at least one supported harness credential. The default quick start assumes a Claude Code OAuth token (claude setup-token), but pi-mono / Bedrock, Codex, Devin, and other provider setups are also supported.
The fastest way is the onboarding wizard — it collects credentials, picks presets, and generates a working docker-compose.yml:
bunx @desplega.ai/agent-swarm onboard
npx @desplega.ai/agent-swarm onboard
Prefer manual setup? Clone and run with Docker Compose:
```bash git clone https://github.com/desplega-ai/agent-swarm.git cd agent-swarm cp .env.docker.example .env
docker compose -f docker-compose.example.yml --env-file .env up -d ```
The API runs on port 3013, with interactive docs at http://localhost:3013/docs and an OpenAPI 3.1 spec at http://localhost:3013/openapi.json.
<details> <summary><strong>Other setups</strong></summary>
bunx @desplega.ai/agent-swarm connect (or npx @desplega.ai/agent-swarm connect), then tell Claude Code to register as the lead.</details>
bunx @desplega.ai/agent-swarm <command>
npx @desplega.ai/agent-swarm <command>
| Command | Description |
|---|---|
onboard | Set up a new swarm from scratch (Docker Compose wizard) |
connect | Connect this project to an existing swarm |
api | Start the API + MCP HTTP server |
worker | Run a worker agent |
lead | Run a lead agent |
e2b | Build E2B templates and launch/manage grouped API + lead + worker swarms |
x | Execute approved external routes such as Composio |
docs | Open documentation (--open to launch in browser) |
Missing one? Ask the swarm to build it.
| Integration | What it does | Setup |
|---|---|---|
| **Slack** | DM or @mention the bot to create tasks; workers reply in threads | [Guide](https://docs.agent-swarm.dev/docs/guides/slack-integration) |
| **GitHub App** | @mention or assign the bot on issues/PRs; CI failures create follow-up tasks | [Guide](https://docs.agent-swarm.dev/docs/guides/github-integration) |
| **GitLab** | Same model as GitHub — webhooks on issues/MRs, glab preinstalled in workers | [Guide](https://docs.agent-swarm.dev/docs/guides/gitlab-integration) |
| **AgentMail** | Give each agent an inbox; emails become tasks or lead messages | [Guide](https://docs.agent-swarm.dev/docs/guides/agentmail-integration) |
| **Kapso (WhatsApp)** | Native inbound WhatsApp webhook routing; agents reply over WhatsApp with MCP tools or the kapso-whatsapp skill | [Guide](https://docs.agent-swarm.dev/docs/integrations/kapso) |
| **Composio** | Route approved third-party app operations through agent-swarm x composio ... or the swarm_x MCP tool | [Guide](https://docs.agent-swarm.dev/docs/integrations/composio) |
| **Linear** | Bidirectional ticket sync via OAuth + webhooks | [Guide](https://docs.agent-swarm.dev/docs/guides/linear-integration) |
| **Jira Cloud** | OAuth 3LO ticket sync — assignee/comment events create tasks; lifecycle posts comments back | [Guide](https://docs.agent-swarm.dev/docs/guides/jira-integration) |
| **Sentry** | Workers can triage Sentry issues with the /investigate-sentry-issue command | [Guide](https://docs.agent-swarm.dev/docs/guides/sentry-integration) |
| **Devin** | Devin can be a node in your swarm — keep your existing configuration | [Guide](https://docs.agent-swarm.dev/docs/guides/harness-configuration#supported-providers) |
中文项目简介
本项目提供了多项功能,包括在 Docker 中的主从节点调度、隔离开发环境、优先队列、暂停和恢复部署等。它还支持 agent 记忆过去的会话并演化自己的个性、专长和笔记等功能。
环境依赖与系统要求中文说明
生产环境部署(使用 Docker Compose 和多个工作者、systemd 运行 API、优雅关闭、集成配置)请参见 DEPLOYMENT.md 和 部署指南。
配置说明(含 MCP / env / 关键参数)
API/接口说明
集成说明,包括 Slack 和 GitHub App 等
成熟的多代理框架,活跃维护中。Agent间协作设计优秀,Claude集成紧密,适合专业开发者构建复杂AI工作流系统。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:agent-swarm Agent工作流 的核心功能完整,质量优秀。对于AI爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | agent-swarm |
| 原始描述 | 开源AI工作流:Agent Swarm framework for AI coding agents and more!。⭐446 · TypeScript |
| Topics | 多代理系统Claude集成AI编码工作流编排TypeScript |
| GitHub | https://github.com/desplega-ai/agent-swarm |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-05-18 · 更新时间:2026-05-19 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。