Swarm Agent For Claude Code
Description
Claude Code skill that decomposes a large goal into a recursive tree of agents, where each agent can spawn its own agents and results merge back up to a single answer.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Agent Swarm
A Claude Code skill that breaks one large goal into a tree of agents. A master agent splits the work, spawns child agents to handle each part, and those children can split their own work and spawn children of their own. Results are written to disk and merged back up the tree until the master returns a single combined answer.
Why not built-in subagents
Task-tool subagents cannot spawn subagents of their own, so recursion is impossible with them. This skill launches every node as a separate headless Claude Code process (`claude -p`), so any level of the tree can go deeper. The filesystem is the only channel between agents, which makes every run inspectable, crash tolerant, and resumable.
How it works
- You give the skill a goal. The current session becomes the root node.
- Each node decides one of two things: EXECUTE the task directly, or DECOMPOSE it into two or more separable subtasks.
- To decompose, a node writes a
task.mdfor each child and runsspawn.sh, which launches a real Claude process for that child. - A child sees only its own
task.mdplus the node protocol. It has no conversation history and no knowledge of its siblings. - Every node finishes by writing
result.mdandstatus.json. A parent reads only those two files from each child, merges them, and writes its own. - The merge continues upward until the root produces the final answer.
Installation
Clone into your skills directory. Per project:
git clone https://github.com/shaadahmade/Swarm-agent-for-claude-code .claude/skills/agent-swarm
Or for all projects:
git clone https://github.com/shaadahmade/Swarm-agent-for-claude-code ~/.claude/skills/agent-swarm
Skills are loaded at startup, so restart Claude Code before the skill appears.
Requirements
claudeCLI on PATHbashpython3
On Windows, run the scripts from Git Bash. The scripts use POSIX paths and are invoked through the Bash tool, not PowerShell.
Related Skills
Epic Sync
Sync epic issue bodies, labels, and local coordination snapshots from GitHub.
Git 使用 Git Worktrees
创建孤立的 Git worktrees,带有智能目录选择与安全验证。
Git Claude skills github
[Building agent skills blog](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-ag
Git #148
, [#161](https://github.com/affaan-m/everything-claude-code/pull/161))
Git GitHub MCP
| Token | Repos, issues, PRs, workflows |
Git GitHub MCP Server
Official first-party server to read repos, manage issues/PRs, and automate workflows.
Git