git-worktree-swarm

git-worktree-swarm is a skill for Claude Code from winstonkoh87/Athena-Public. It costs 27 tokens per session (685 once invoked), scanned A, original, MIT.

A coordinator for assigning dependent coding tasks to separate Git worktrees, which are isolated working copies of one repository, across execution waves.

In plain words
What is it for?
Use it to set up multi-agent work on tasks such as models, APIs, and user interfaces that have dependencies between them.
Why use it?
It lets several agents work in parallel while keeping their files separate and running dependent tasks only after earlier work is ready.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; mentions subagents.

Good fit Use it to set up multi-agent work on tasks such as models, APIs, and user interfaces that have dependencies between them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/winstonkoh87/athena-public/git-worktree-swarm
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 winstonkoh87/Athena-Public --skill git-worktree-swarm
Clone the repo
git clone --depth 1 https://github.com/winstonkoh87/Athena-Public

Made for: Claude Code.

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 git-worktree-swarm

README.md
[![agentmods](https://agentmods.dev/badge/skills/winstonkoh87/athena-public/git-worktree-swarm/github.svg)](https://agentmods.dev/skills/winstonkoh87/athena-public/git-worktree-swarm)
Your own site
<a href="https://agentmods.dev/skills/winstonkoh87/athena-public/git-worktree-swarm"><img src="https://agentmods.dev/badge/skills/winstonkoh87/athena-public/git-worktree-swarm/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 git-worktree-swarm

Your own site · 80×15
<a href="https://agentmods.dev/skills/winstonkoh87/athena-public/git-worktree-swarm"><img src="https://agentmods.dev/badge/skills/winstonkoh87/athena-public/git-worktree-swarm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 685 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00027 $0.00685
Opus 5 $0.00014 $0.00342
Sonnet 5 $0.00005 $0.00137
Haiku 4.5 $0.00003 $0.00068

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

Security

Grade A, and why

git-worktree-swarm 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 10d 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.

examples/skills/coding/git-worktree-swarm/SKILL.md · 82 lines

How it starts

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

Git Worktree Swarm Orchestrator

Sets up parallel, isolated git environments so multiple sub-agents can work on the same repository simultaneously without merge conflicts. Uses wave-based execution to respect task dependencies.

Triggers

"swarm", "parallel agents", "setup worktrees", "multi-agent", "wave execution"

Core Mechanics

Phase 1: Setup

  1. Detect current branch.
  2. Spawn n temporary worktrees (.agent-workspace-1, etc.).
  3. Assign tasks to isolated clones.

Phase 2: Wave Execution (Dependency DAG)

Plans are grouped into waves based on dependency analysis:

WAVE 1 (parallel — no dependencies)
├── Worktree A: Task 1 (User model)     → Fresh context (P513)
├── Worktree B: Task 2 (Product model)  → Fresh context (P513)
│
[State merge: A.state + B.state → combined handoff]
│
WAVE 2 (parallel — depends on Wave 1)
├── Worktree C: Task 3 (Orders API, needs User model)
├── Worktree D: Task 4 (Cart API, needs Product model)
│
[State merge: C.state + D.state → combined handoff]
│
WAVE 3 (sequential — depends on Wave 2)
└── Worktree E: Task 5 (Checkout UI, needs Orders + Cart)

Wave Assignment Rules:

Condition Assignment
Task has no dependencies Wave 1
Task depends on Wave N output Wave N+1
Tasks touch the same files Same wave, sequential (not parallel)
Task has cross-cutting concerns Latest wave of any dependency

Phase 3: Context Isolation (P513)

Each worktree agent receives only:

  • The specific plan/task
  • Relevant source files (from dependency analysis)
  • STATE.md (accumulated decisions from prior waves)
  • Project context (design.md / REQUIREMENTS.md)

Never: full conversation history, debug logs, unrelated research.

Phase 4: Merge

  1. Each task commits atomically (P43 micro-commit).
  2. Merge worktrees back to main branch in wave order.
  3. Conflict resolution: if merge conflicts arise, spawn resolution agent.
  4. Cleanup: remove temporary worktrees.

Reference Paths

Read the full file on GitHub · 82 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. 10d ago First seen · 82 lines · 27 tokens per session scan A bd6a5f958bec

Subscribe to this mod's changes

git-worktree-swarm is a skill published in the GitHub repository winstonkoh87/Athena-Public (587 stars, last pushed today), licensed MIT. It adds 27 tokens to every session and 685 once invoked, about $0.0001 per session on Opus 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.