swarming-to-green

swarming-to-green is a skill for Claude Code from oaustegard/claude-skills. It costs 220 tokens per session (6,140 once invoked), scanned A, original, MIT.

An automated process that assigns large groups of failing tests to separate coding workers, checks their fixes, and merges fixes that introduce no new failures. It repeats this process across a test backlog.

In plain words
What is it for?
Use it for long-running work on projects with hundreds or more failing tests, when test results can be checked in a machine-readable form.
Why use it?
It reduces the manual effort of sorting many test failures, applying fixes, and checking that fixes do not cause regressions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; positional $N argument.

Part of the ai-and-reasoning plugin — 5 skills shipped together

Good fit Use it for long-running work on projects with hundreds or more failing tests, when test results can be checked in a machine-readable form.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oaustegard/claude-skills/swarming-to-green
Install

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.

Any agent
npx skills add oaustegard/claude-skills --skill swarming-to-green
Clone the repo
git clone --depth 1 https://github.com/oaustegard/claude-skills

Made for: Claude Code.

Or install ai-and-reasoning, the plugin that ships this one along with the rest of its 5 skills.

Wrote 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.

agentmods badge for swarming-to-green

README.md
[![agentmods](https://agentmods.dev/badge/skills/oaustegard/claude-skills/swarming-to-green/github.svg)](https://agentmods.dev/skills/oaustegard/claude-skills/swarming-to-green)
Your own site
<a href="https://agentmods.dev/skills/oaustegard/claude-skills/swarming-to-green"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/swarming-to-green/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.

agentmods 80×15 button for swarming-to-green

Your own site · 80×15
<a href="https://agentmods.dev/skills/oaustegard/claude-skills/swarming-to-green"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/swarming-to-green.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 220 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,140 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00220 $0.06140
Opus 5.5 $0.00088 $0.02456
Sonnet 5.5 $0.00044 $0.01228
Haiku 4.5 $0.00022 $0.00614

Measured 21d ago against content hash 626ca060460f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

swarming-to-green 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 21d ago.

The scan reads SKILL.md. This mod also ships 16 executable files (scripts/sibling_setup.sh, scripts/swarm.py, scripts/swarmkit/__init__.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/ai-and-reasoning/skills/swarming-to-green/SKILL.md · 324 lines

How it starts

The opening of the file, as written. The whole thing — 324 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Swarming to green

A loop that turns a test suite's failures into merged fixes, unattended, for hours:

known.json --cluster by signature--> work items --one headless worker each, own worktree-->
  result JSON --serial gate: apply on main, compat check, run smoke + targets + sample,
  zero regressions, >=1 target flips--> fast-forward main --> re-check the whole cluster --> repeat

Every mechanism in it fixed a failure that cost hours on 2026-10-12, when Haiku 5.5 workers built hcc (a C compiler in Python) against ~42K tests: 1,051 hub workers, 464 merges, $24.88 of worker spend by 18:30Z. The catalogue of those failures, each with its signal and where it is handled, is references/run-2026-10-12.md.

SK=/mnt/skills/user/swarming-to-green       # or <claude-skills clone>/swarming-to-green
SWARM="python3 $SK/scripts/swarm.py"             # every command below; --root defaults to the git toplevel

When to use it, and when not

Use it when all hold: a test command can report every test's status as JSON; there are hundreds or more failing tests; a fix can be checked by re-running tests; and the work will run for hours, longer than anyone watches.

situation use instead
fewer than ten tasks, e.g. setup, a suite builder, a refactor the Agent tool directly (on 2026-10-12, 3 setup agents were run through claude -p for no gain)
a one-off fan-out of independent tasks (judges, extractors, per-file reviews) with no merging dispatching-subagents
which model or effort a worker gets, and how to escalate agent-routing (this skill's measured answer for test-fix work is in "Which model" below)
a fixed multi-step pipeline with no model in the loop flowing
parallel Claude calls from claude.ai chat orchestrating-chat-agents (orchestrating-agents is its deprecated name)
a handful of failing tests fix them yourself, or one Agent-tool worker per cluster
one program to improve against a numeric scorer, not tests to turn green evolving-with-swarms
no machine-readable test output yet write the runner first ("Project setup"), then come back

Read the full file on GitHub · 324 lines

Changes

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.

  1. 21d ago Changed · +1 lines 626ca060460f
  2. 1mo ago First seen · 323 lines · 220 tokens per session scan A f0221a582138

Subscribe to this mod's changes

swarming-to-green is a skill published in the GitHub repository oaustegard/claude-skills (423 stars, last pushed today), licensed MIT. It adds 220 tokens to every session and 6,140 once invoked, about $0.0009 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-10-15.

Related

swarming-to-green compared with skills from other repositories

swarming-to-green next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
swarming-to-greenoaustegard/claude-skillsSkill423todayMITA220Claude Code
superdesignsuperdesigndev/superdesign-skillSkill1.1k3mo agoMITA115Claude Code, Codex
figma-to-codescoobynko/claude-code-design-skillsSkill401mo agoMITA0Claude Code, Codex
bpmn-xml-generatorstateway-io/bpmn-xml-generatorSkill411d agoApache-2.0A177Claude Code
free-public-rest-apisaisenseapi/aisense-free-public-rest-apisSkill13d agoMITA372Claude Code, Codex
Linearwrsmith108/linear-claude-skillSkill1424mo agoMITA32Claude Code
aisense-free-toolsaisenseapi/aisense-free-public-rest-apisSkill13d agoMITA50Claude Code, Codex