README.md

July 9, 2026 ยท View on GitHub

agent-swarm - AI Native engine for your company | Product Hunt
๐Ÿš€ We're live on Product Hunt today โ€” the swarm is running its own launch. An upvote helps.

GitHub Stars MIT License PRs Welcome

An engine to make your company AI Native
Built by desplega.sh โ€” by builders, for builders.

Tip

This repo evolves every single day. Watch now โ†’

โ–ธ daily evolution ยท slack โ†’ pr ยท Making of

Website Docs Dashboard Join Discord Follow on X Desplega Labs on LinkedIn

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 ยท

What it does

Agent Swarm runs a team of AI agents that coordinate autonomously. A lead agent receives tasks (from Slack, GitHub, GitLab, Linear, Jira, email, or the API), breaks them down, and delegates to worker agents running in isolated environments (Docker). Workers execute tasks, ship solutions, and write their learnings back to a shared memory so the whole swarm gets smarter every session.

You can run agents for Marketing, Product, UX, Engineering, Support, Operations, HR, Finance, or any role you can think of. A centralized Lead coordinates them, and they share the learnings horizontally. That's the true difference between AI First and AI Native.

Agent Swarm is the shared cloud brain and muscle that makes your whole company better every day.

Sometimes humans are the blocker. We can help you. Contact us contact@desplega.sh.

Learn more in the architecture overview.

flowchart LR
    subgraph IN["Tasks come in"]
        direction TB
        S["Slack"]
        G["GitHub / GitLab"]
        E["Email"]
        A["API / CLI"]
    end

    LEAD(["Lead Agent<br/>plans &amp; delegates"])

    subgraph WORKERS["Workers in Docker"]
        direction TB
        W1["Worker"]
        W2["Worker"]
        W3["Worker"]
    end

    subgraph BRAIN["Persistent brain"]
        direction TB
        MEM["Memory<br/>(vector search)"]
        ID["Identity<br/>(SOUL, CLAUDE.md)"]
    end

    subgraph OUT["Work ships"]
        direction TB
        PR["Pull Requests"]
        REPLY["Slack replies"]
        EMAIL["Email replies"]
    end

    IN --> LEAD --> WORKERS
    WORKERS -->|reads context| BRAIN
    WORKERS -->|writes learnings| BRAIN
    WORKERS --> OUT

Known Use Cases

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 โ†’

  • Feature Development โ€” Integrated with Linear and GitHub to take feature requests from Slack and turn them into pull requests.
  • Lead Prospecting โ€” Integrate your prospecting tools with the swarm and let agents handle outreach, scheduling, and follow-up.
  • Content Generation โ€” Generate engagement tools, blog posts, manage social media presence, update your website, and more.
  • UX Command Center โ€” Agents that keep your product usable: record agentic sessions, enforce your design system, and mine user logs to detect and propose UX improvements.
  • Proactive Customer Support โ€” Agents that oversee your top accounts, prepare scheduled reports, and leverage everything they know about your platform to keep those accounts up to date.
  • Code Health & Alert Management โ€” Datadog, New Relic, Sentry, or any alerting tool can kick off fixes or new proposals. Monitor code health and propose improvements weekly, daily, or hourly.
  • Reports from Multiple Sources โ€” Integrate your data warehouse to generate tailored reports and answer the key questions your team has, with fresh data. Your BI tool may be a thing of the past.
  • Self-Documenting & Release Reports โ€” Update your docs and use frameworks like Remotion, qa-use, and browser-use to generate release videos and rich documentation in seconds, at the cadence you need.
  • Do you have a cool playbook to share? Send us a PR!

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.

Highlights

  • Lead/worker orchestration in Docker โ€” isolated dev environments, priority queues, pause/resume across deploys. Architecture โ†’
  • Compounding memory & persistent identity โ€” agents remember past sessions and evolve their own persona, expertise, and notes. Memory โ†’ ยท Agents โ†’
  • Hybrid + graph-linked memory recall โ€” memory retrieval can blend vector and full-text ranking, expand through linked memories, surface usefulness readouts, and let agents correct an existing memory without losing its ID or history. Memory โ†’ ยท MCP tools โ†’
  • Multi-channel inputs โ€” Slack, GitHub, GitLab, email, WhatsApp, Linear, Jira, and the HTTP API all create tasks. Integrations
  • Workflow engine with Human-in-the-Loop โ€” DAG-based automation with approval gates, retries, and structured I/O. Workflows โ†’
  • Scheduled & recurring tasks โ€” cron-based automation for standing work, with schedules that can target agent tasks, workflows, or catalog scripts. Scheduling โ†’
  • Durable script workflows โ€” launch background script runs, inspect their journals, and track them from the dashboard when a one-shot script-run is too small. Guide โ†’
  • Scripts as external APIs โ€” expose a saved script as a public POST /api/x/script/<id> endpoint with optional bearer auth, typed input validation, and per-endpoint usage tracking. Guide โ†’
  • Typed script API connections โ€” lead-managed OpenAPI, GraphQL, and MCP connections generate ctx.api.* / ctx.mcp.* clients for scripts, with credential bindings and OAuth-backed auth kept server-side. Guide โ†’
  • E2B-backed eval harness โ€” run a scenario ร— harness-config matrix against real swarm stacks, capture transcripts/artifacts, and grade outcomes with deterministic checks plus LLM or agentic judges. Guide โ†’
  • Harness & LLM agnostic โ€” run with Claude Code, Claude Bridge, OpenAI Codex, pi-mono (Anthropic, OpenRouter, or Amazon Bedrock), Devin, Claude Managed Agents, raw LLMs, or opencode. Tasks, schedules, and workflow agent-task nodes can use portable 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 โ†’
  • OpenTelemetry traces plus OTLP cost/token metrics โ€” export API + worker traces and finalized session cost/token counters through the same OTLP pipeline for dashboarding in SigNoz, Datadog, Tempo, or another compatible backend. Observability โ†’
  • Follow-up continuity across all harnesses โ€” child tasks inherit a bounded prior-task context preamble built from the task chain, so continuity survives restarts and works the same across every provider. Task lifecycle โ†’
  • Skills & MCP servers โ€” reusable procedural knowledge, bundled skill reference files, and per-agent MCP servers with scope cascade. MCP tools โ†’
  • External tool-router access โ€” the 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 โ†’
  • Config-driven metrics dashboards โ€” define read-only SQL widgets, version them, and render them in the dashboard without shipping custom frontend code. Metrics API โ†’
  • DB-backed pages โ€” agents publish HTML or JSON pages (reports, dashboards, action specs) via create_page, remove stale pages with delete-page, and share them with public / authed / password modes, version history, view counters, diff helpers, and PDF export. MCP tools โ†’ Pages
  • KV store โ€” Redis-like namespaced key/value store with auto-scoped context (Slack thread / PR / Linear issue / page). MCP tools โ†’ KV
  • Real-time dashboard + task attachments โ€” monitor agents, tasks, and inter-agent chat, create tasks with uploaded files from the sessions composer, and preview task attachments inline above session prompts. app.agent-swarm.dev โ†’

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:

git clone https://github.com/desplega-ai/agent-swarm.git
cd agent-swarm
cp .env.docker.example .env
# edit .env โ€” set API_KEY plus the credential for your chosen harness (for example CLAUDE_CODE_OAUTH_TOKEN)
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.

Other setups
  • Local API + Docker workers โ€” run the API on your host, workers in Docker. See Getting Started.
  • Claude Code as the lead agent โ€” bunx @desplega.ai/agent-swarm connect (or npx @desplega.ai/agent-swarm connect), then tell Claude Code to register as the lead.

How It Works

You (Slack / GitHub / Email / CLI)
        |
   Lead Agent  โ†โ†’  MCP API Server  โ†โ†’  SQLite DB
        |
   โ”Œโ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”
Worker  Worker  Worker
(Docker containers with full dev environments)
  1. A task arrives via Slack DM, GitHub @mention, email, or the API.
  2. The lead plans and delegates subtasks to workers.
  3. Workers execute in isolated Docker containers (git, Node.js, Python, etc.).
  4. Progress streams to the dashboard, Slack threads, or the API.
  5. Results ship back out as PRs, custom pages, issue replies, or Slack messages.
  6. Session learnings are extracted and become memory for future tasks.

More detail in the task lifecycle docs.

Integrations

Missing one? Ask the swarm to build it.

IntegrationWhat it doesSetup
SlackDM or @mention the bot to create tasks; workers reply in threadsGuide
GitHub App@mention or assign the bot on issues/PRs; CI failures create follow-up tasksGuide
GitLabSame model as GitHub โ€” webhooks on issues/MRs, glab preinstalled in workersGuide
AgentMailGive each agent an inbox; emails become tasks or lead messagesGuide
Kapso (WhatsApp)Native inbound WhatsApp webhook routing; agents reply over WhatsApp with MCP tools or the kapso-whatsapp skillGuide
ComposioRoute approved third-party app operations through agent-swarm x composio ... or the swarm_x MCP toolGuide
LinearBidirectional ticket sync via OAuth + webhooksGuide
Jira CloudOAuth 3LO ticket sync โ€” assignee/comment events create tasks; lifecycle posts comments backGuide
SentryWorkers can triage Sentry issues with the /investigate-sentry-issue commandGuide
DevinDevin can be a node in your swarm โ€” keep your existing configurationGuide

Dashboard

Real-time monitoring of agents, tasks, and inter-agent chat. Use the hosted version at app.agent-swarm.dev, or run locally:

cd apps/ui && bun install && bun run dev

Opens at http://localhost:5274.

CLI

bunx @desplega.ai/agent-swarm <command>
npx @desplega.ai/agent-swarm <command>
CommandDescription
onboardSet up a new swarm from scratch (Docker Compose wizard)
connectConnect this project to an existing swarm
apiStart the API + MCP HTTP server
workerRun a worker agent
leadRun a lead agent
e2bBuild E2B templates and launch/manage grouped API + lead + worker swarms
xExecute approved external routes such as Composio
docsOpen documentation (--open to launch in browser)

Deployment

For production deployments (Docker Compose with multiple workers, systemd for the API, graceful shutdown, integration config), see DEPLOYMENT.md and the deployment guide.

Documentation

Everything lives at docs.agent-swarm.dev. Good starting points:

Contributing

We love contributions! Whether it's bug reports, feature requests, docs improvements, or code โ€” all are welcome.

See CONTRIBUTING.md to get started. The quickest way to contribute:

  1. Fork the repo
  2. Create a branch (git checkout -b my-feature)
  3. Make your changes
  4. Open a PR

Join our Discord if you have questions or want to discuss ideas.

Are you an agent? Go to agent-swarm.dev/skill.md.

Star History

Star History Chart

License

MIT โ€” 2025-2026 desplega.sh