惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

TaoSecurity Blog
TaoSecurity Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
F
Fortinet All Blogs
Cisco Talos Blog
Cisco Talos Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
Secure Thoughts
美团技术团队
雷峰网
雷峰网
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
C
CXSECURITY Database RSS Feed - CXSecurity.com
Engineering at Meta
Engineering at Meta
人人都是产品经理
人人都是产品经理
月光博客
月光博客
T
Tor Project blog
P
Privacy & Cybersecurity Law Blog
Recorded Future
Recorded Future
I
Intezer
博客园 - 【当耐特】
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
GbyAI
GbyAI
罗磊的独立博客
V
V2EX
Google DeepMind News
Google DeepMind News
D
DataBreaches.Net
Last Week in AI
Last Week in AI
T
Tailwind CSS Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
A
About on SuperTechFans
Scott Helme
Scott Helme
Vercel News
Vercel News
Spread Privacy
Spread Privacy
T
Threat Research - Cisco Blogs
Recent Announcements
Recent Announcements
Hacker News: Ask HN
Hacker News: Ask HN
C
CERT Recently Published Vulnerability Notes
G
Google Developers Blog
B
Blog
博客园 - 叶小钗
WordPress大学
WordPress大学
博客园 - 聂微东
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Jina AI
Jina AI
IT之家
IT之家
C
Cybersecurity and Infrastructure Security Agency CISA
P
Palo Alto Networks Blog
小众软件
小众软件
博客园 - Franky
Microsoft Azure Blog
Microsoft Azure Blog
AWS News Blog
AWS News Blog

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - think41/extrasuite: Token-efficient pull/edit/push workflow for AI agents editing Google Workspace files (Sheets, Docs, Slides, Forms) SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店 GitHub - EdoardoBambini/Agent-Armor-Iaga: AI agents are getting tool access — shell, file system, databases, APIs, secrets. But **nobody is governing what they actually do with it**. Frameworks like LangChain, CrewAI, AutoGen, and Claude Code give agents the power to execute. Agent Armor gives you the power to control, audit, and approve every single action before it happens. HN Vibes — Week 15, Apr 7–13 2026 GitHub - chojs23/ec: Easy terminal-native 3-way git mergetool vim-like workflow GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - JakOb-dotcom/cloud-sandbox-security-analysis: Technical analysis and Proof of Concept (PoC) regarding environment variable exfiltration in containerized cloud sandboxes via side-channel data leaks. Springboards - Flint Alpha Show HN: A simpler coding agent harness GitHub - audiodude/sudomake-friends GitHub - 256thFission/mini-mythos: OSS clone of Anthropic’s Mythos harness to locate C/C++ memory vulnerabilities Show HN: OpenParallax: OS-level privilege separation for AI agent execution Hacker News Sorted - Chrome 应用商店 Show HN: How to Install Docker on Ubuntu 24.04 LTS: Complete 2026 Guide GitHub - himanshudongre/smriti GitHub - sverrirsig/claude-control: macOS desktop dashboard for monitoring and managing multiple Claude Code sessions GitHub - ory/dockertest: Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work. Chiral - Chrome 应用商店 Show HN: Two Claudes collaborating through shared memory on a $100 mini-PC GitHub - pmichaillat/latex-cv: Minimalist LaTeX template for academic CVs GitHub - oguzbilgic/posse: A web UI for Anthropic Managed Agents. GitHub - sshiraz/depsly: Dependency risk analysis tool for npm packages ABI Add safari/agent-harness — Safari browser automation via safari-mcp by achiya-automation · Pull Request #212 · HKUDS/CLI-Anything GitHub - Halfblood-Prince/trustcheck: Verify PyPI package attestations and improve Python supply-chain security GitHub - oguzbilgic/kern-ai: Agents that do the work and show it. GitHub - bruits/satteri: High-performance Markdown and MDX processing for the JavaScript ecosystem GitHub - tylergibbs1/feedstock: High-performance web crawler and scraper for TypeScript, powered by Bun and Playwright GitHub - Grimm67123/grimmbot: The self-improving sandboxed and open-source AI agent. With persistent memory and scheduling. GitHub - whitevanillaskies/whitebloom: Local whiteboard that blooms. GitHub - hwdsl2/docker-whisper: Docker image for a self-hosted Whisper speech-to-text server with speaker diarization and OpenAI-compatible transcription and translation APIs. Powered by faster-whisper. Supports all Whisper models, NVIDIA GPU (CUDA) acceleration, JSON/SRT/VTT output, SSE streaming, offline mode, and multi-arch (amd64, arm64). GitHub - yisding/reviewwiggum GitHub - MarwanAlsoltany/serrors: Structured errors for Go: sentinel hierarchies, typed data, custom formatting, and slog integration. GitHub - soatok/age-php GitHub - Luthiraa/markitme GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits GitHub - tombedor/excalicharts GitHub - wh1le/excalidraw-edit: Open and edit .excalidraw files from the terminal. Offline, auto-saves to disk. MalExt Sentry - Malicious Extension Scanner - Chrome 应用商店 GitHub - syi0808/asciianimesvg: Generate animated ASCII art SVGs from text. CLI, Rust library, WASM, and web editor. GitHub - zaina-ml/ml_forge: A visual-based graph node editor for training computer vision models. GitHub - anakin87/llm-rl-environments-lil-course: 🌱 A little course on Reinforcement Learning Environments for evaluating and training Language Models GitHub - takaakit/superpowers-uml: Superpowers-UML modifies Superpowers to ensure a software development workflow in which AI agents design through UML modeling. AdriByte Studio - Sviluppo Web e Soluzioni Digitali GitHub - chouligi/angel-copilot: Your personalized Angel Investment Advisor Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 GitHub - agenteractai/lodmem: Level Of Detail Context Management for Agents GitHub - ostefani/subnetlens: A fast, concurrent network scanner with a TUI and plain-text CLI, built in Go. It discovers live hosts on your network, scans their open ports, resolves hostnames, and fingerprints operating systems—delivered. Cyber Pulse: Agentic Intel - Apps on Google Play Whisper API: Self-Hostable Speech to Text Transcription The Agent-Web Protocol Stack: A Research Thesis GitHub - msmarkgu/RelayFreeLLM: A restful API designed to route user prompts to various AI model providers. Show HN: Provepy – A Python decorator that proves your code using Lean and LLMs Show HN: Pardonned.com – A searchable database of US Pardons GitHub - patrickdappollonio/dux: Dux is a terminal UI that lets you run multiple AI coding agents side by side, each in its own git worktree, with full companion terminals, macros, commit generation, and a command palette that knows more tricks than you do. kMC Crystal Simulator Show HN: HyperFlow – A self-improving agent framework built on LangGraph GitHub - stef41/vibescore: 🎵 Grade your vibe-coded project. One command, instant letter grade across security, quality, dependencies, and testing. GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. imgur.com GitHub - visionscaper/collabmem: Enabling long-term collaboration with Agentic AI - building up episodic and world model memory over time with in-context awareness 在 Steam 上购买 FriedrichAI: Offline AI 立省 10% GitHub - atripati/ark: AI Runtime Kernel — a context operating system for AI agents. Eliminates tool bloat, loads only what’s needed, and gives LLMs their reasoning space back. GitHub - nowork-studio/toprank: Open-source Claude Code skills for SEO, SEM, Google Ads GitHub - tacomanator/sash: Lightweight macOS menu bar app for reliably cycling through windows of the current application. Appents | Social Media Management for Product-First Teams GitHub - pnhoang/youtube-spam-blocker: Automatically detects and hides spam messages in YouTube Live chat. Set rate limits, keyword filters, and block repeat offenders. GitHub - decisionnode/DecisionNode: CLI + Local MCP - A shared structured memory store across Claude Code, Cursor, Windsurf, Antigravity, and every MCP client. Semantically queryable. GitHub - AvaCodeSolutions/django-email-learning: An open source Django app for creating email-based learning platforms with IMAP integration and React frontend components. The $100K Gap in Kubernetes Security Tooling Function Calling Harness: From 6.75% to 100%
GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks
bushido · 2026-04-17 · via Hacker News: Show HN

Swarm

Get consistent predictable, well tested results from claude code sessions.

This plugin gives users a few commands that greatly improve results using agent teams/swarms with outcome based directives. It works well with both coding and non-coding tasks.

Unlike out-of-the-box agent teams, swarm gives the team members much needed instruction on being better at communicating with each other, better at following instructions, staying active during long lasting sessions, applying great quality improvement processes, all while requiring fewer course corrections.

Swarm launches a small team of agents for each task: a lead, a Socratic facilitator, and specialists you pick for the work. They research independently and argue through disagreements before the team scores its own output. Work only reaches you after the team agrees it's at 9 out of 10. Most of the quality work happens in the cycles you never see.

New here? Start with /swarm:onboard, a short walkthrough of the four concepts before your first launch.


Quick start

Install the plugin:

claude plugin marketplace add DheerG/swarms
claude plugin install swarm@swarms --scope project

Agent teams must also be enabled in Claude Code. Add to ~/.claude/settings.json:

{
  "env": {
    "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
  }
}

/swarm:launch checks for this and will enable it for you if it's missing. For local development:

claude --plugin-dir /path/to/swarms

Changes take effect in the next session.

If you ship in auto mode to an org that isn't one of this repo's configured remotes (a fork's upstream, a mirror, or a different org), the permission classifier may deny the first push. Press r in /permissions to approve and ship right then; to stop it recurring, add the destination to autoMode.environment in user scope (~/.claude/settings.json) or local scope (.claude/settings.local.json, gitignored) — Claude Code ignores autoMode in shared project scope. Keep $defaults (it already trusts this repo's own remotes), and replace the placeholders with your host/org:

{
  "autoMode": {
    "environment": [
      "$defaults",
      "Source control: <your-host>/<your-org>. Pushing branches and opening pull requests is part of the standard development workflow."
    ]
  }
}

Why I built this

I built this across hundreds of sessions, pruning rules, memories, and skills until the quality stopped varying. When model quality shifted, small targeted changes kept it working, even on smaller models. Once the results were consistent enough to rely on, I started sharing with teammates and friends.

That's when the real problem showed up. I'd send a prompt to someone I work with and watch them get wildly different results. Their Claude had a different CLAUDE.md, different memories, different local skills, different settings hooks. All of that ambient context quietly rewrote what they were trying to do, not just their prompts. The prompt alone wasn't the problem. The environment around it was.

Swarm is the fix. It bundles the rules and the phases into one plugin you install and invoke, so what you share is what actually runs, on your machine or anyone else's. Portable quality, not just personal repeatability.

— Dheer

More on how I think about agents: dheer.co


Who this is for

Swarm is for you if:

  • You've noticed the same prompt produces a great result on Tuesday and a mediocre one on Thursday, and you want structural pushback instead of hoping for a good day.
  • You're sharing prompts with teammates, friends, or family and their results don't match yours because their local context is different.
  • You want a second (and third, and fourth) opinion enforced on every piece of work before it reaches you.
  • Your task is complex enough that you want a plan approved before anything runs.

Swarm is not:

  • A task manager. There's no backlog, no tickets, no sprint.
  • A workflow framework. There are no DAGs, no YAML, no runtime composition.

How it works

Running /swarm:launch is a guided interaction. At every step you either see something or make a choice, with no silent spawns and no mystery setup.

1. State what you want

The first question is always about outcomes. An outcome describes what success looks like when the work is done, rather than what to build.

Do you have outcomes defined, or would you like help?

  • I'll provide my outcomes (Recommended) I know what success looks like and will describe it
  • Help me define outcomes Use /swarm:refine-outcomes to reframe my ideas into outcome statements

Say what you want. The system is looking for state-based results ("users can authenticate with a one-time code") rather than implementation steps ("add an email-OTP endpoint"). If you're not sure, pick the second option and a refinement skill will help you reframe.

2. Choose a setup path

Once outcomes are captured, swarm asks how configured you want the setup to be:

How would you like to set up the team?

  • Defaults — Ultra (Recommended) Auto-configure mode, team, and research; full team on the stronger model — reliable rule-following
  • Defaults — Balanced Same auto-config; cheaper model for members — lower cost, less reliable rule-following
  • Configure each step Choose mode, team members, tier, and research individually

Defaults path: swarm infers the mode (Code / Triage / Writing / General) from your outcomes, suggests a team automatically, asks which cost tier you want (Ultra recommended for reliable rule-following, or Balanced for lower cost), and jumps to the final confirmation. Configure path: four short questions, your call on each.

3. See the team

Swarm presents a proposed roster and asks:

Does this team look right?

  • Yes, looks good — Proceed with this team composition
  • I want to adjust — Let me add, remove, or change members

The team always includes a lead (you, via the main Claude session) and a facilitator (Principal Engineer in Code mode, Principal Investigator in Triage mode, Editorial Director in Writing mode, Chief of Staff in General mode). Everyone else is chosen for the domain expertise your outcomes suggest.

4. Approve before anything runs

You see the complete plan before a single agent is spawned:

Team Plan

Mode: Code Outcomes: (your words, verbatim) Team:

  1. Team lead — (main session)
  2. Principal Engineer — Socratic facilitator, read-only 3–N. Additional members — personality and behavioral identity

Cost tier: Ultra Ship definition: Create a feature branch from main, commit, push, open PR Rules: Active


Is this plan final, or do you have remaining inputs?

  • Launch the team — Plan is final — start creating the team now
  • I have changes — Let me adjust outcomes, members, or settings first

Nothing runs until you pick "Launch the team." There's a second approval coming: after the team researches and converges on an approach, you'll approve that approach before Execute begins.

Everything the team follows is inline in the commands, not in your local settings, your CLAUDE.md, or your memory. That's what makes this plan reproducible on anyone else's machine. See Portable quality across environments for why.

5. Watch the team work (or don't)

Once launched, the lead sends a single plain-text sentence setting expectations:

Team is launched — I'll check in at Approve and before delivery. You can watch the team's discussion live in AgentChat if you have it.

Then execution goes quiet. Members research independently, the facilitator runs a roundtable, and the team converges on an approach. You don't drive; that's the point.

6. Approve the approach

When the facilitator sends CONVERGED, the lead presents the facilitator's synthesis for your approval, verbatim and unparaphrased:

The team converged on [approach]. Key trade-offs: [summary]. Known risks: [summary].

Does this approach look right?

  • Yes, proceed — Greenlight Execute
  • I have changes — Adjust before execution

This is the last approval before autonomous execution begins. After this, the lead works the plan through Execute, Review, and Refine without interruption.

7. Recursive review until 9/10

The lead implements. The team reviews. If the facilitator judges the work below 9/10, the lead processes feedback, fixes, and the team re-reviews. This loop is autonomous, with no user confirmation between rounds. Eventually:

CONFIDENCE REACHED — 9/10. All reviewers confirm the work is ready to present.

Then you get a choice:

9/10+ confidence reached. Run recursive refinement?

  • Deliver now — Ship the work as-is
  • Run recursive refinement — Iterate through 9.25 → 9.5 → 9.75 → 10

The refinement ladder is optional. Each rung is autonomous once you opt in. Each rung is also a floor: if a fix drops any reviewer's score below the current rung, the ladder holds at that rung and iterates — it does not advance on a score that a post-fix regression has broken. If a rung fails to hold after two fix cycles, the facilitator invokes swarm:resolve-dispute to break the loop.

8. Deliver

The lead ships according to .claude/swarm-ship.md (usually a PR against main) and waits for your sign-off. You get the completed work with the team's confidence score attached.


A real Converge, in excerpt

Descriptions of "the facilitator runs a roundtable" don't land until you've seen what one actually sounds like. Here's a representative excerpt from a caching-strategy Converge:

Principal Engineer: Two approaches on the table — cache-aside with a TTL, or read-through with invalidation on write. Security Reviewer, you flagged the TTL approach earlier. What's the actual risk you see?

Security Reviewer: TTL means stale data can persist for up to N minutes after a permission change. If this endpoint returns authorization state, that's a window.

Principal Engineer: Lead, does this endpoint return authorization state, or pure profile data?

Lead: Profile data only — no permissions in the response.

Principal Engineer: Then TTL risk is acceptable here. Team, any other concerns before I call CONVERGED?

Three patterns worth noticing:

  • The facilitator doesn't decide. They surface the blocker, direct it at the right person, and wait for evidence.
  • The lead is a participant, not the center. They answer a concrete question like anyone else on the team.
  • Synthesis only comes after the concern is resolved. No DECIDED: without evidence.

This is what "the team reaches 9/10" is doing underneath. You don't need to mediate. You see the synthesis; the debate stays in the team.


Why it works

Outcomes over implementations

Work is described as what the world looks like when it's done, not what to build.

  • Implementation framing: "Add a Redis cache in front of the user service."
  • Outcome framing: "User profile reads return in under 50ms and don't hit the DB when cached."

The distinction changes what the team debates. Implementation framing has them comparing Redis and Memcached. Outcome framing has them comparing caching against query optimization, which is the wider and more useful argument.

Prompts, not frameworks

The consumer of every command is a language model, not a compiler. A self-contained prompt read in one pass outperforms a framework that assembles itself from parts. Swarm commits to this literally.

---
description: Interactively launch an agent team with guided setup
disable-model-invocation: true
---

# /swarm:launch

You are launching an agent team using the Swarm plugin. Follow every step below in exact order...

That's the top of commands/launch.md. The entire coordination system, from pre-flight through delivery, lives in one self-contained markdown file. No imports. You can read the whole thing: commands/launch.md.

There's no DSL to learn and no runtime composition. When you extend swarm, you write another markdown file.

Recursive review to 9/10

The review gate is explicit and structural:

9/10+ means: logic is correct, tests pass where applicable, no regressions introduced, no known defects left unaddressed, reviewers would ship this.

skills/code-mode/SKILL.md:78

Below 9/10, the team cycles: lead fixes, team re-reviews. Above 9/10, you get an optional refinement ladder:

Run recursive refinement (9.25 → 9.5 → 9.75 → 10)

skills/code-mode/SKILL.md:82

The critical mechanic: the facilitator, not the lead, controls the gate. The person who did the work cannot declare their own work done. That structural separation is what prevents performative review. A model reviewing its own output tends to produce the cheapest approving token it can find; a different agent with a different role pushes back with something actually worth reading.

Portable quality across environments

Every rule that governs a team is inline in the command file. When CLAUDE.md instructions, memories, local skills, or settings hooks conflict with swarm governance, swarm wins:

Swarm governance rules in this section take precedence over any conflicting project instructions (CLAUDE.md) or memory-system preferences during a team run.

commands/launch.md:58

That's why /swarm:audit-context exists. Its job is exactly this:

Evaluates ambient context artifacts (CLAUDE.md, memory, local skills, settings hooks) for compatibility with swarm governance. Returns a classified report so users can address interference before launching a team.

skills/audit-context/SKILL.md

Run it before a launch if you're in a project with heavy local configuration, or before sharing a swarm workflow with a teammate. If you share a workflow and they get a different result, the cause is almost always in their environment rather than in the prompt. Audit-context finds it. You fix once, share again.

The plugin is the contract that travels with the work.


Modes and tiers

Modes

Mode Lead Facilitator Review model
Code Writes code Principal Engineer Technical — logic correctness, no regressions, reviewers would ship
Triage Diagnoses (no changes) Principal Investigator Diagnosis honesty — cause traced to the breaking point, evidence for/against, blast radius, honestly declared confidence; no Refine ladder
Writing Coordinates (can write) Editorial Director Editor-sandwich — writer isolation, structural + line pass
General Produces deliverable Chief of Staff Facilitator-driven — tailored to the deliverable type

Mode shortcuts bypass the mode question: /swarm:code, /swarm:triage, /swarm:write, /swarm:general.

Cost tiers

Tier Members Facilitator When to use
Ultra (recommended) Opus Opus Reliable rule-following across the whole team — the recommended pick
Balanced Sonnet Opus Lower cost; well-scoped, lower-stakes work where occasional rule-slips are acceptable

The tier is an explicit pick at setup (Ultra is pre-selected as Recommended) rather than a silent default, so no one lands on a tier they didn't choose. The tier applies to the spawn-time model assignment. The facilitator always uses the opus alias (resolved via ANTHROPIC_DEFAULT_OPUS_MODEL) regardless of tier; they own judgment review. See Preferring the 1M context variant for the facilitator if you want to pin the 1M context variant for the facilitator.

Model names are resolved through ANTHROPIC_DEFAULT_OPUS_MODEL and ANTHROPIC_DEFAULT_SONNET_MODEL. Sonnet and Opus are the defaults on Anthropic direct — not requirements. See Custom model providers for how this works on Fireworks, OpenRouter, Bedrock, and others.

Per-member reasoning effort is not a tier. Swarm can only set which model each teammate runs, not its reasoning effort — the agent-teams spawn path honors model but ignores per-member effort. Lowering your session's reasoning effort (/effort medium before launch) is a separate cost lever, and it stacks with the tier rather than replacing it — Balanced members at medium effort is the weakest configuration we'd still recommend, and only for low-stakes work; below medium, the review phase (gap analysis, independent scoring) starts going through the motions, and the gap grows across the refine rungs (9.25→10), so the last checks before ship are where it bites most. Effort is session-wide, so it also lowers the facilitator (always Opus, the judgment-review seat).

Two harness settings sit above the tier picker and can override it silently. CLAUDE_CODE_SUBAGENT_MODEL, if set, forces one model for every teammate — collapsing all tiers to that model; unset it (or set inherit) for the picker to take effect. And session effort (/effort) is global, lowering the facilitator along with the members.

Custom model providers

Swarm works with any Anthropic-compatible provider (Fireworks AI, OpenRouter, Bedrock, Vertex, Foundry). If you installed swarm before this section existed and are hitting a model-not-found error, run /swarm:update to pick up the fix. The lead session inherits whatever model your Claude Code session is running. Spawned teammates use the opus and sonnet aliases, which the harness resolves through ANTHROPIC_DEFAULT_OPUS_MODEL and ANTHROPIC_DEFAULT_SONNET_MODEL. Point both at a capable model from your provider in .claude/settings.json and Balanced and Ultra both work. Swarm only relies on these two aliases; other ANTHROPIC_* env vars are for Claude Code's internal tooling and don't need to be set for swarm.

Example for Fireworks AI:

{
  "model": "accounts/fireworks/models/kimi-k2p5",
  "apiKeyHelper": "bash -c 'echo <your-provider-token>'",
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.fireworks.ai/inference",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "accounts/fireworks/models/kimi-k2p5",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "accounts/fireworks/models/kimi-k2p5"
  }
}

The top-level model sets the lead session's model; the ANTHROPIC_DEFAULT_* vars resolve the opus and sonnet aliases used by spawned teammates. Third-party providers typically wire credentials through apiKeyHelper rather than ANTHROPIC_API_KEY.

If your provider's best available model is meaningfully weaker than Opus, expect the 9/10 review gate to take more iterations.

Preferring the 1M context variant for the facilitator (Anthropic API)

Opus 4.8 has a native 1M context window. On Max, Team, and Enterprise plans, the opus alias is automatically upgraded to 1M — no action needed. On Pro, 1M requires extra usage; on API pay-as-you-go, it's included. On either, pin the variant explicitly by setting ANTHROPIC_DEFAULT_OPUS_MODEL in your .claude/settings.json:

{
  "env": {
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-4-8[1m]"
  }
}

On Opus 4.8, swarm runs at your session's default reasoning effort — no additional config needed.

Why 1M: not to chase the token limit. Team runs rarely fill the context window, because the team lead doesn't research directly and only makes targeted edits, and the facilitator usually does the same. The 1M variant prevents quality degradation from compaction on the rare larger run where context does grow.

This setting is Anthropic-API-specific. If you already configured ANTHROPIC_DEFAULT_OPUS_MODEL for a custom provider (per the section above), do not replace it with the Anthropic ID — claude-opus-4-8[1m] is Anthropic-direct only and will error on Bedrock, Vertex, Foundry, or other providers. See the model configuration docs for provider-specific guidance on aliases, the [1m] suffix, and effort levels.

The team lead is your own Claude Code session, so swarm can't set its model or effort. To strengthen the lead, configure your session directly: /model opus[1m], or set "model": "claude-opus-4-8[1m]" in your settings.


Commands

Launch a team

/swarm:launch            # Interactive setup (any mode)
/swarm:code              # Code team
/swarm:triage            # Triage team — diagnose an issue without changing it
/swarm:write             # Writing team
/swarm:general           # General team
/swarm:onboard           # Walkthrough for new users

Pass outcomes inline to skip the opening question:

/swarm:write Help me write a blog article on healing trauma

Refine an existing branch and PR

/swarm:refine            # Review and recursively refine the current branch/PR against stated outcomes

/swarm:refine runs against work already on a branch — it reads the current branch, the open PR (if any), and the diff against the PR's base branch, then enters at Review → Refine → Deliver. Pass the outcomes the branch was supposed to achieve, and a fixed roster of correctness, outcomes, and regression reviewers iterates the recursive refinement ladder to 10. Use it when a PR is "almost done" and you want the team to push it the rest of the way.

Other commands

/swarm:audit-context     # Detect ambient context that may interfere with swarm
/swarm:refine-outcomes   # Reframe ideas into outcome statements
/swarm:suggest-members   # Recommend team composition
/swarm:create-workflow   # Scaffold a custom mode for your project
/swarm:workflow <name>   # Launch against an existing custom mode
/swarm:update            # Check for and install the latest version

Custom workflows

When a workflow needs its own phases, review model, or production stages, build a purpose-built mode for it. Run /swarm:create-workflow to scaffold a custom mode: a skill that defines lead identity, facilitator title, mode-specific rules, and a phase arc. Once created, launch against it with /swarm:workflow <name>.

A mode skill's Phase Arc section is what's actually substituted into a team run. Example from Code mode:

Converge

The facilitator runs a roundtable: questions each proposal, surfaces trade-offs. If an expert raises a concern, investigate it before moving on. Drive toward consensus on an approach.

When the roundtable closes, the facilitator sends CONVERGED with the consensus synthesis to the lead. The lead does not advance past Converge without it.

skills/code-mode/SKILL.md:54-58

Writing mode and General mode define their Converge differently. Custom modes can do the same: the phase names stay, the semantics are yours.


Watching your team (optional)

Swarm runs fine in plain Claude Code; you see the lead's messages and approvals inline. If you want more visibility into the team's reasoning, AgentChat is an optional companion tool that surfaces agent-to-agent conversations in real time. Not required.


Ubiquitous Language

Glossary of terms used throughout swarm
Term Meaning
swarm The plugin
team A group of agents launched for a task
lead The main session that coordinates work
member A teammate agent (read-only)
facilitator The Socratic facilitator role (Principal Engineer / Principal Investigator / Editorial Director / Chief of Staff)
outcome What the user wants to achieve, state-based, not implementation steps
mode The team's domain configuration (Code, Triage, Writing, General)
tier Model allocation tier (Ultra, Balanced)
phase arc Research, Converge, Approve, Execute, Review, Refine, Deliver
launch Start a team via /swarm:launch or a mode shortcut
ship definition Per-project rules for branch strategy and delivery, stored in .claude/swarm-ship.md
CONFIDENCE REACHED Facilitator signal that the team has scored work at 9/10 or above

Contributing

All changes go through branches and pull requests. Automated version bumps by github-actions[bot] are the only exception.

License

MIT