huashu-agent-swarm
Skill3 starsChanged 7 months agoMITView on GitHub
Multi-agent swarm parallel collaboration using pure git self-organisation, ideal for large-scale project development. Use when the user mentions "swarm mode", "multi-agent", "parallel development", or "agent swarm".
- Installs packages
2 other projects use a version of this.
Adopted by
Most recently taken up by
- dqtx760/skills-managetheir own version, first seen May 27, 2026
- alchaincyf/huashu-skillstheir own version, first seen Feb 15, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- alchaincyf/huashu-skills★ 1.6ksame name
- dqtx760/skills-manage★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- huashu-article-editSkill
- huashu-article-to-xSkill
- huashu-data-proSkill
- huashu-designSkill
- huashu-douyin-scriptSkill
- huashu-image-uploadSkill
- huashu-info-searchSkill
- huashu-material-searchSkill
- huashu-md-to-pdfSkill
- huashu-prompt-saveSkill
- huashu-proofreadingSkill
- huashu-researchSkill
- huashu-script-polishSkill
- huashu-slidesSkill
- huashu-speech-coachSkill
- huashu-topic-genSkill
- huashu-video-checkSkill
- huashu-video-outlineSkill
- huashu-wechat-imageSkill
- huashu-xhs-imageSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Use this skill when the user mentions "swarm mode", "multi-agent parallel", "infinite loop", "agent swarm", or "launch swarm".
- Very specific: line 56
Create a git worktree for each agent (shared .git object store — no disk waste)
- Distinctive: line 57
Create a tmux session with one pane per agent
- Distinctive: line 71
Stop all agents with one click
- Distinctive: line 105
No need for multiple clones — uses git worktree for isolation
- Very specific: line 106
All worktrees share the same .git object store
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Infinite Agent Loop — Multi-Agent Swarm Mode
Inspired by Nicholas Carlini's experiment of using 16 Claude instances to autonomously build a C compiler. No master agent. Pure git self-organisation. Each agent independently claims tasks, writes code, and pushes.
Trigger Conditions
Use this skill when the user mentions "swarm mode", "multi-agent parallel", "infinite loop", "agent swarm", or "launch swarm".
Prerequisites
- tmux (
brew install tmux) - Claude CLI (already installed)
- A git repository (existing or new)
Usage Workflow
Step 1: Describe the Project
The user tells me:
- Project directory path (must be a git repository)
- Project goal and overall description
- Initial task list (or let the agents break it down themselves)
- Number of agents (default: 8)
- Code standards and test commands
Step 2: Initialise the Project
bash SKILL_DIR/scripts/setup_project.sh <project-directory>This creates the following inside the project:
AGENT_PROMPT.md— Generated from a template; I customise it based on user requirementsTASKS.md— Initial task checklistcurrent_tasks/— Task claim directoryagent_logs/— Logs directory
I then customise AGENT_PROMPT.md using references/agent-prompt-template.md, filling in project-specific details.
Step 3: Launch the Swarm
bash SKILL_DIR/scripts/start_swarm.sh <number-of-agents> <project-directory>This will:
- Create a git worktree for each agent (shared
.gitobject store — no disk waste) - Create a tmux session with one pane per agent
- Each agent enters an infinite loop: pull → claim task → execute → push → next task
Step 4: Open the Dashboard
python3 SKILL_DIR/scripts/dashboard.py <project-directory> 8420Open http://localhost:8420 in your browser to:
- View all agent statuses, git log, and task progress in real time
- View the latest logs for each agent
- Send instructions directly to agents via the input box (written to HUMAN_INPUT.md)
- Stop all agents with one click
You can also monitor via the command line:
# Terminal status
bash SKILL_DIR/scripts/status.sh <project-directory>
# Send instructions
bash SKILL_DIR/scripts/send_input.sh <project-directory> "your instruction"
# Attach to tmux directly to observe
tmux attach -t swarm-<project-name>Step 5: Stop the Swarm
bash SKILL_DIR/scripts/stop_swarm.sh <project-directory>Automatically stops all agents, merges branches, and cleans up worktrees.
Core Mechanisms
Git Self-Organisation Coordination
- Each agent claims tasks via
current_tasks/*.lockfiles - Agents track global progress through
TASKS.md - Agents understand other agents' work via
git log - Conflicts are resolved by agents themselves
Git Worktree Isolation
- No need for multiple clones — uses
git worktreefor isolation - All worktrees share the same
.gitobject store - Each agent works independently in its own worktree
Infinite Loop
- Each agent automatically begins the next session after completing one
- Uses
git pullto fetch the latest work from other agents - Sleep intervals between sessions prevent API rate limiting
Key Configuration
| Parameter | Default | Description |
param($m)
$inner = $m.Groups[1].Value
# Split by | and fix each cell separator
$cells = $inner -split '\|'
$fixedCells = $cells | ForEach-Object {
$cell = ---name: huashu-agent-swarm description: Multi-agent swarm parallel collaboration using pure git self-organisation, ideal for large-scale project development. Use when the user mentions "swarm mode", "multi-agent", "parallel development", or "agent swarm".
Infinite Agent Loop — Multi-Agent Swarm Mode
Inspired by Nicholas Carlini's experiment of using 16 Claude instances to autonomously build a C compiler. No master agent. Pure git self-organisation. Each agent independently claims tasks, writes code, and pushes.
Trigger Conditions
Use this skill when the user mentions "swarm mode", "multi-agent parallel", "infinite loop", "agent swarm", or "launch swarm".
Prerequisites
- tmux (
brew install tmux) - Claude CLI (already installed)
- A git repository (existing or new)
Usage Workflow
Step 1: Describe the Project
The user tells me:
- Project directory path (must be a git repository)
- Project goal and overall description
- Initial task list (or let the agents break it down themselves)
- Number of agents (default: 8)
- Code standards and test commands
Step 2: Initialise the Project
bash SKILL_DIR/scripts/setup_project.sh <project-directory>This creates the following inside the project:
AGENT_PROMPT.md— Generated from a template; I customise it based on user requirementsTASKS.md— Initial task checklistcurrent_tasks/— Task claim directoryagent_logs/— Logs directory
I then customise AGENT_PROMPT.md using references/agent-prompt-template.md, filling in project-specific details.
Step 3: Launch the Swarm
bash SKILL_DIR/scripts/start_swarm.sh <number-of-agents> <project-directory>This will:
- Create a git worktree for each agent (shared
.gitobject store — no disk waste) - Create a tmux session with one pane per agent
- Each agent enters an infinite loop: pull → claim task → execute → push → next task
Step 4: Open the Dashboard
python3 SKILL_DIR/scripts/dashboard.py <project-directory> 8420Open http://localhost:8420 in your browser to:
- View all agent statuses, git log, and task progress in real time
- View the latest logs for each agent
- Send instructions directly to agents via the input box (written to HUMAN_INPUT.md)
- Stop all agents with one click
You can also monitor via the command line:
# Terminal status
bash SKILL_DIR/scripts/status.sh <project-directory>
# Send instructions
bash SKILL_DIR/scripts/send_input.sh <project-directory> "your instruction"
# Attach to tmux directly to observe
tmux attach -t swarm-<project-name>Step 5: Stop the Swarm
bash SKILL_DIR/scripts/stop_swarm.sh <project-directory>Automatically stops all agents, merges branches, and cleans up worktrees.
Core Mechanisms
Git Self-Organisation Coordination
- Each agent claims tasks via
current_tasks/*.lockfiles - Agents track global progress through
TASKS.md - Agents understand other agents' work via
git log - Conflicts are resolved by agents themselves
Git Worktree Isolation
- No need for multiple clones — uses
git worktreefor isolation - All worktrees share the same
.gitobject store - Each agent works independently in its own worktree
Infinite Loop
- Each agent automatically begins the next session after completing one
- Uses
git pullto fetch the latest work from other agents - Sleep intervals between sessions prevent API rate limiting
Key Configuration
| Parameter | Default | Description |
| Number of agents | 8 | Can be specified at launch |
| Sleep interval | 5 seconds | Adjustable in agent_loop.sh |
| Model | claude-opus-4-6 | Adjustable in agent_loop.sh |
Risks and Mitigations
| Risk | Mitigation |
| API rate limiting | Sleep intervals + adjustable agent count |
| Merge conflicts | AGENT_PROMPT guides small, granular commits |
| Infinite loop doing useless work | Log monitoring + stop conditions |
| Disk space | stop_swarm.sh auto-cleans |
| Cost spiral | Limit session count in AGENT_PROMPT |
By Huashu | AI Native Coder · Independent Developer WeChat Official Account "Huashu" | 300k+ followers | AI Tools & Productivity Flagship products: Kitty Catchlight (AppStore Paid Rankings Top 1) · Play DeepSeek with One Book .Trim() if ($cell -match '^:?-+:? | Number of agents | 8 | Can be specified at launch | | Sleep interval | 5 seconds | Adjustable in agent_loop.sh | | Model | claude-opus-4-6 | Adjustable in agent_loop.sh |
Risks and Mitigations
| Risk | Mitigation |
| API rate limiting | Sleep intervals + adjustable agent count |
| Merge conflicts | AGENT_PROMPT guides small, granular commits |
| Infinite loop doing useless work | Log monitoring + stop conditions |
| Disk space | stop_swarm.sh auto-cleans |
| Cost spiral | Limit session count in AGENT_PROMPT |
By Huashu | AI Native Coder · Independent Developer WeChat Official Account "Huashu" | 300k+ followers | AI Tools & Productivity Flagship products: Kitty Catchlight (AppStore Paid Rankings Top 1) · Play DeepSeek with One Book ) { " $cell " } else { " $cell " } } '|' + ($fixedCells -join '|') + '|'
| Number of agents | 8 | Can be specified at launch | | Sleep interval | 5 seconds | Adjustable in agent_loop.sh | | Model | claude-opus-4-6 | Adjustable in agent_loop.sh |
Risks and Mitigations
| Risk | Mitigation |
param($m)
$inner = $m.Groups[1].Value
# Split by | and fix each cell separator
$cells = $inner -split '\|'
$fixedCells = $cells | ForEach-Object {
$cell = ---name: huashu-agent-swarm description: Multi-agent swarm parallel collaboration using pure git self-organisation, ideal for large-scale project development. Use when the user mentions "swarm mode", "multi-agent", "parallel development", or "agent swarm".
Infinite Agent Loop — Multi-Agent Swarm Mode
Inspired by Nicholas Carlini's experiment of using 16 Claude instances to autonomously build a C compiler. No master agent. Pure git self-organisation. Each agent independently claims tasks, writes code, and pushes.
Trigger Conditions
Use this skill when the user mentions "swarm mode", "multi-agent parallel", "infinite loop", "agent swarm", or "launch swarm".
Prerequisites
- tmux (
brew install tmux) - Claude CLI (already installed)
- A git repository (existing or new)
Usage Workflow
Step 1: Describe the Project
The user tells me:
- Project directory path (must be a git repository)
- Project goal and overall description
- Initial task list (or let the agents break it down themselves)
- Number of agents (default: 8)
- Code standards and test commands
Step 2: Initialise the Project
bash SKILL_DIR/scripts/setup_project.sh <project-directory>This creates the following inside the project:
AGENT_PROMPT.md— Generated from a template; I customise it based on user requirementsTASKS.md— Initial task checklistcurrent_tasks/— Task claim directoryagent_logs/— Logs directory
I then customise AGENT_PROMPT.md using references/agent-prompt-template.md, filling in project-specific details.
Step 3: Launch the Swarm
bash SKILL_DIR/scripts/start_swarm.sh <number-of-agents> <project-directory>This will:
- Create a git worktree for each agent (shared
.gitobject store — no disk waste) - Create a tmux session with one pane per agent
- Each agent enters an infinite loop: pull → claim task → execute → push → next task
Step 4: Open the Dashboard
python3 SKILL_DIR/scripts/dashboard.py <project-directory> 8420Open http://localhost:8420 in your browser to:
- View all agent statuses, git log, and task progress in real time
- View the latest logs for each agent
- Send instructions directly to agents via the input box (written to HUMAN_INPUT.md)
- Stop all agents with one click
You can also monitor via the command line:
# Terminal status
bash SKILL_DIR/scripts/status.sh <project-directory>
# Send instructions
bash SKILL_DIR/scripts/send_input.sh <project-directory> "your instruction"
# Attach to tmux directly to observe
tmux attach -t swarm-<project-name>Step 5: Stop the Swarm
bash SKILL_DIR/scripts/stop_swarm.sh <project-directory>Automatically stops all agents, merges branches, and cleans up worktrees.
Core Mechanisms
Git Self-Organisation Coordination
- Each agent claims tasks via
current_tasks/*.lockfiles - Agents track global progress through
TASKS.md - Agents understand other agents' work via
git log - Conflicts are resolved by agents themselves
Git Worktree Isolation
- No need for multiple clones — uses
git worktreefor isolation - All worktrees share the same
.gitobject store - Each agent works independently in its own worktree
Infinite Loop
- Each agent automatically begins the next session after completing one
- Uses
git pullto fetch the latest work from other agents - Sleep intervals between sessions prevent API rate limiting
Key Configuration
| Parameter | Default | Description |
| Number of agents | 8 | Can be specified at launch |
| Sleep interval | 5 seconds | Adjustable in agent_loop.sh |
| Model | claude-opus-4-6 | Adjustable in agent_loop.sh |
Risks and Mitigations
| Risk | Mitigation |
| API rate limiting | Sleep intervals + adjustable agent count |
| Merge conflicts | AGENT_PROMPT guides small, granular commits |
| Infinite loop doing useless work | Log monitoring + stop conditions |
| Disk space | stop_swarm.sh auto-cleans |
| Cost spiral | Limit session count in AGENT_PROMPT |
By Huashu | AI Native Coder · Independent Developer WeChat Official Account "Huashu" | 300k+ followers | AI Tools & Productivity Flagship products: Kitty Catchlight (AppStore Paid Rankings Top 1) · Play DeepSeek with One Book .Trim() if ($cell -match '^:?-+:? | API rate limiting | Sleep intervals + adjustable agent count | | Merge conflicts | AGENT_PROMPT guides small, granular commits | | Infinite loop doing useless work | Log monitoring + stop conditions | | Disk space | stop_swarm.sh auto-cleans | | Cost spiral | Limit session count in AGENT_PROMPT |
By Huashu | AI Native Coder · Independent Developer WeChat Official Account "Huashu" | 300k+ followers | AI Tools & Productivity Flagship products: Kitty Catchlight (AppStore Paid Rankings Top 1) · Play DeepSeek with One Book ) { " $cell " } else { " $cell " } } '|' + ($fixedCells -join '|') + '|'
| API rate limiting | Sleep intervals + adjustable agent count | | Merge conflicts | AGENT_PROMPT guides small, granular commits | | Infinite loop doing useless work | Log monitoring + stop conditions | | Disk space | stop_swarm.sh auto-cleans | | Cost spiral | Limit session count in AGENT_PROMPT |
By Huashu | AI Native Coder · Independent Developer WeChat Official Account "Huashu" | 300k+ followers | AI Tools & Productivity Flagship products: Kitty Catchlight (AppStore Paid Rankings Top 1) · Play DeepSeek with One Book
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

