huashu-agent-swarm

huashu-agent-swarm is a skill for Claude Code, Codex from Biraj2004/huashu-skills-english. It costs 49 tokens per session (3,554 once invoked), scanned A, original, MIT.

A workflow for having multiple coding agents work in parallel on one Git repository, coordinating through shared files and Git.

In plain words
What is it for?
Use it to set up and run an agent swarm with tmux, a Git repository, a task list, and separate work areas for parallel development.
Why use it?
It organises task claiming, logs, prompts, and code changes when a project is large enough for several agents to work at once.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to set up and run an agent swarm with tmux, a Git repository, a task list, and separate work areas for parallel development.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/biraj2004/huashu-skills-english/huashu-agent-swarm-en
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 Biraj2004/huashu-skills-english --skill huashu-agent-swarm-en
Clone the repo
git clone --depth 1 https://github.com/Biraj2004/huashu-skills-english

Made for: Claude Code, Codex.

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 huashu-agent-swarm

README.md
[![agentmods](https://agentmods.dev/badge/skills/biraj2004/huashu-skills-english/huashu-agent-swarm-en/github.svg)](https://agentmods.dev/skills/biraj2004/huashu-skills-english/huashu-agent-swarm-en)
Your own site
<a href="https://agentmods.dev/skills/biraj2004/huashu-skills-english/huashu-agent-swarm-en"><img src="https://agentmods.dev/badge/skills/biraj2004/huashu-skills-english/huashu-agent-swarm-en/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 huashu-agent-swarm

Your own site · 80×15
<a href="https://agentmods.dev/skills/biraj2004/huashu-skills-english/huashu-agent-swarm-en"><img src="https://agentmods.dev/badge/skills/biraj2004/huashu-skills-english/huashu-agent-swarm-en.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,554 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.00049 $0.03554
Opus 5.5 $0.00020 $0.01422
Sonnet 5.5 $0.00010 $0.00711
Haiku 4.5 $0.00005 $0.00355

Measured 1mo ago against content hash e821fac09b65, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

huashu-agent-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 1mo ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/agent_loop.sh, scripts/dashboard.py, scripts/send_input.sh, …), 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.

huashu-agent-swarm-en/SKILL.md · 472 lines

How it starts

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

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 requirements
  • TASKS.md — Initial task checklist
  • current_tasks/ — Task claim directory
  • agent_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:

  1. Create a git worktree for each agent (shared .git object store — no disk waste)
  2. Create a tmux session with one pane per agent
  3. 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> 8420

Open 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

Read the full file on GitHub · 472 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. 1mo ago First seen · 472 lines · 49 tokens per session scan A e821fac09b65

Subscribe to this mod's changes

huashu-agent-swarm is a skill published in the GitHub repository Biraj2004/huashu-skills-english (3 stars, last pushed 1mo ago), licensed MIT. It adds 49 tokens to every session and 3,554 once invoked, about $0.0002 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-08-31.

Related

Other skills, from other repositories

check

Reviews diffs, PRs, release readiness, and publishing follow-through. Use when asked to review, triage issues or PRs, or ship. Not for debugging root causes or prose.

tw93/Waza · 41 tokens

write

Rewrites and polishes Chinese or English prose, technical instructions, and product copy. Use when drafting, editing, localizing, or cutting AI tone. Not for code comments or commit messages.

tw93/Waza · 41 tokens

pr-lens

WHAT: Draws a code change or part of a codebase as an animated architecture, data-flow or data-model diagram, on its own or in a pull request. WHEN: asked to diagram, visualise or explain a change, a system or a schema change, or when a pull request should carry a diagram. KEYWORDS: PR Lens, diagram, architecture…

coldteadotai/pr-lens · 96 tokens

customer-journey-map

Construye un mapa de recorrido del cliente para un producto, servicio o experiencia. Úsalo cuando se te pida mapear un recorrido del cliente, crear un viaje del usuario, documentar puntos de contacto y puntos de fricción, o diseñar un mapa de experiencia. Produce un mapa de recorrido completo con etapas, puntos de…

mohitagw15856/pm-claude-skills · 86 tokens

user-research-synthesis

Analiza y sintetiza hallazgos de investigación de usuarios en insights estructurados y accionables. Úsalo cuando te proporcionen datos de investigación de usuarios, transcripciones de entrevistas, resultados de encuestas o feedback de usuarios que necesiten ser analizados y resumidos. Produce una síntesis temática con…

mohitagw15856/pm-claude-skills · 114 tokens

design-handoff-brief

Transform feature briefs into structured design briefs that give designers the context they need before opening Figma. Use when asked to write a design brief, create a design handoff, brief a designer on a new feature, or translate a PRD into design requirements. Produces a brief with user goal, emotional context…

mohitagw15856/pm-claude-skills · 83 tokens