Agent Swarm is a self-hosted operating system for coordinating AI agents as a company-wide workforce. A lead agent assigns work to workers running in isolated containers, while shared memory, tools, schedules, workflows, and review gates preserve and manage that work. The catalogue entries provide agents, commands, skills, hooks, and other extensions for operating the system.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/desplega-ai/agent-swarmWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/desplega-ai/agent-swarm/create-pr)<a href="https://agentmods.dev/commands/desplega-ai/agent-swarm/create-pr"><img src="https://agentmods.dev/badge/commands/desplega-ai/agent-swarm/create-pr/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/desplega-ai/agent-swarm/create-pr"><img src="https://agentmods.dev/badge/commands/desplega-ai/agent-swarm/create-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00019 | $0.01280 |
| Opus 5.5 | $0.00008 | $0.00512 |
| Sonnet 5.5 | $0.00004 | $0.00256 |
| Haiku 4.5 | $0.00002 | $0.00128 |
Grade A, and why
create-pr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 49 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Create Pull Request / Merge Request
Create a PR (GitHub) or MR (GitLab) from the current branch with an auto-generated title and description.
Provider detection: Check the remote URL:
- If the remote is GitHub (
github.comor the$GITHUB_URLhost) → useghCLI - If
gitlab.comorgitlab.→ useglabCLI
Arguments
base-branch(optional): Branch to merge into (defaults tomainor repo default)
Prerequisites
You should be working in a repository cloned to /workspace/personal/<repo-name>.
Workflow
- Verify state — confirm you're in a git repo, not on main/master, and have commits to push.
- Run PR checks (MANDATORY) — Run ALL checks listed in the "PR Checks" section of your Repository Guidelines. Run each command/task sequentially. If ANY check fails, fix the issue and re-run until all pass. If no guidelines are defined, check the project's CLAUDE.md for a pre-PR checklist and run those. Do NOT proceed until all checks pass.
- Push the branch —
git push -u origin HEAD - Gather context — review commit messages and changed files since diverging from base.
- Generate title and description. Follow the conventions of the repository you are working in, not a fixed format:
- Title: Concise summary (conventional commit style if the repo uses it)
- Description: If the repo has a PR/MR template, use its headings as the structure and fill every section. GitHub looks for
pull_request_template.mdin.github/,docs/, or the repo root (plus an optionalPULL_REQUEST_TEMPLATE/directory), and falls back to the org's.githubrepo. GitLab uses.gitlab/merge_request_templates/. Also follow any PR rules in the repo'sCLAUDE.md,AGENTS.md, orCONTRIBUTING.md. If the repo defines none, include: summary of changes, notable items, testing done, related issues. - Show the change, do not narrate it. Aim for about 150 prose words; code blocks, mermaid, tables and
<details>do not count. No file-by-file changelog: that belongs in your task output. - Why: one sentence, 25 words or fewer (the check fails above 40). Say who sees what after the merge, not how it works.
- Before / after: the smallest view of what a user, an agent or an operator sees change. A
diffblock with the old and new lines for an API result, CLI output, a log line or prompt text. A table for a default or a number. Slack mock frames. A screenshot pair for UI. For an internal change, write the lineNo visible change: <reason>. - Known risks and skipped work go in the template's heads-up section. Do not add text after the last section, and do not add a
Skipped/risk:paragraph. - Review map: build it from
git diff --stat <base>...HEAD. One row per area, biggest risk first, with(+N/-M), a depth (🔍 deep, 👀 skim, ⏭ skip for tests and generated files) and what could break. - Change outline: 1 or 2 views of the shape of the change. Pseudocode with
+/-lines for logic, mermaid for flow, a tree with paths on the nodes for structure. - Swarm provenance (when you run in the swarm): fill it from your task context, as a list of Markdown links and nothing else. Link the task (
[Task]($APP_URL/tasks/<taskId>)) and its tree ([tree]($APP_URL/sessions/<rootTaskId>)), the Slack permalink of the ask if the task came from Slack ([Ask](<permalink>)), any workflow run, and the plan or research as its agent-fs live app link (${AGENT_FS_LIVE_URL}/file/~/<org>/<drive>/<path>). Always link the task: this section is the one place where these auth-gated links are allowed, so do not withhold them. A bare URL fails the PR Body check. - Media: images and mp4s as GitHub user attachments (
github-attachskill), docs as the agent-fs live app link under Swarm provenance (anagent-fs share-createlink only when the requester asks for one or a reader has no agent-fs login). Never a presigned agent-fs URL for docs or videos.
- Create the PR/MR using
gh pr createorglab mr create.gh pr create --bodydoes not apply the repo template, so write the filled description to a file and pass it with--body-file <file>. - Check CI status — After creating the PR, wait ~30 seconds, then check CI with
gh pr checks <pr-number>(GitHub) orglab mr view --json pipelines(GitLab). If any check is failing, investigate the failure, fix it, push the fix, and re-check. Repeat until CI is green. - Report the PR/MR URL and CI status.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 14d ago Changed · +3 lines 51340094baae
- 26d ago Changed be06f86ea2dc
- 1mo ago Changed 60604dbaca8b
- 1mo ago Changed · +6 lines ea2470d201e6
- 2mo ago Changed 6bd228870975
- 3mo ago First seen · 40 lines · 19 tokens per session scan A cd55ee31c8f3
create-pr is a command published in the GitHub repository desplega-ai/agent-swarm (1,165 stars, last pushed today), licensed MIT. It adds 19 tokens to every session and 1,280 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
create-pr compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| create-prdesplega-ai/agent-swarm | Command | 1.2k | today | MIT | A | 19 | Claude Code |
| tokenless-statsalibaba/anolisa | Command | 688 | 12d ago | Apache-2.0 | A | 10 | Claude Code |
| clean-branchesfengshao1227/ccg-workflow | Command | 6.0k | 15d ago | MIT | A | 23 | Claude Code |
| rollbackfengshao1227/ccg-workflow | Command | 6.0k | 15d ago | MIT | A | 22 | Claude Code |
| buzz-crawlinginclusionAI/Avernet | Command | 613 | today | Apache-2.0 | A | 28 | Claude Code |
| cct-sop-alertinclusionAI/Avernet | Command | 613 | today | Apache-2.0 | A | 37 | Claude Code |
| updateopensesh/KARIMO | Command | 292 | 1mo ago | Apache-2.0 | A | 0 | Claude Code |