Skip to content
/

am-will/swarms

am-will-swarms · am-will/swarms · ★ 203 · last commit 2026-04-18

Context-persistent parallel multi-agent execution: the orchestrator that planned the work stays alive across all execution waves, pre-loading subagents with exactly the context they need.

Best whenBash loops waste tokens on re-discovery; the planner should be the orchestrator — its accumulated context is a competitive advantage.
Skip ifBash loop spawning (each agent discovers state from scratch), Pushing before orchestrator verification
vs seeds
agent-os(minimal, no binary, file-based) but adds dependency-aware parallel execution. Similar to taskmaster-ai's task decomposi…
Primitive shape 7 total
Skills 7
00

Summary

am-will/swarms — Summary

Swarms by am-will is a two-skill pack (swarm-planner + parallel-task) for Claude Code and Codex that solves the "bash loop" multi-agent problem: rather than each agent rediscovering state from scratch, the orchestrator that planned the work also coordinates execution. The framework ships 7 SKILL.md files installed via npx skills add am-will/swarms, uses explicit task dependency graphs (T1/T2/T3 notation with depends_on arrays) to produce execution waves, and has the orchestrator independently verify each wave before advancing. With 203 stars, it is the lightest framework in this batch by component count — just 2 core skills plus 5 variants (co-design, spark variants, super-swarm variants). Closest seed comparison: resembles agent-os (minimal file-based) in its lightweight design, but adds dependency-aware parallel execution that agent-os lacks; differs from claude-flow in having no MCP server, no persistent memory, and no hive-mind protocol — it is purely a planning+execution skill layer.

01

Overview

am-will/swarms — Overview

Origin

Created by am-will. Single contributor. 203 stars. Multi-agent orchestration focused on solving the "simple loop" problem in AI coding agents.

Philosophy

"The key insight: an orchestrator that plans the work should also coordinate the execution. It already has the complete picture: codebase research, documentation, clarified requirements, a reviewed plan. Why throw that away?"

"Each new agent session starts fresh. It has to: Re-read the same prompt as every previous iteration; Discover the current project state through exploration; Figure out what comes next by inspecting previous work; Hope the last agent didn't cut corners. There's no continuity. No one checking work. No context passed between agents."

Core Thesis

Plain bash loops waste tokens on re-discovery. Swarms keeps the orchestrator's context alive across execution waves, pre-loading each subagent with exactly what it needs to know.

Tradeoff Acknowledgment

"The tradeoff: Time. Swarms works in phases. A more complex system might have dozens of agents working simultaneously. But you'll spend fewer tokens, encounter fewer conflicts, and can actually understand what's happening."

Comparison with Alternatives

  • vs Ralph Loops: Swarms maintains orchestrator context + verifies between waves; loops have no oversight
  • vs Gas Town (complex multi-agent): Swarms trades some parallelism for simplicity; waves execute sequentially, tasks within a wave run in parallel; no scripts needed, no conflict resolution

Context7 MCP for library documentation during planning phase.

02

Architecture

am-will/swarms — Architecture

Distribution

  • Skill pack installed via npx skills add am-will/swarms
  • No npm package; no CLI binary; no MCP server

Install

# Claude Code
npx skills add am-will/swarms

# Codex  
npx skills add am-will/swarms
# Then add to ~/.codex/config.toml:
# [features]
# multi_agents = true

Required Runtime

  • Claude Code or Codex CLI
  • For Codex: multi_agents = true feature flag required

Directory Tree

swarms/
├── skills/
│   ├── swarm-planner/
│   │   └── SKILL.md
│   ├── parallel-task/
│   │   └── SKILL.md
│   ├── parallel-task-spark/
│   │   └── SKILL.md
│   ├── parallel-task-tmux/
│   │   └── SKILL.md
│   ├── super-swarm/
│   │   └── SKILL.md
│   ├── super-swarm-spark/
│   │   └── SKILL.md
│   └── co-design/
│       └── SKILL.md
└── README.md

Target AI Tools

  • Claude Code (primary)
  • Codex CLI (supported with feature flag)

State Storage

Plan file: <topic>-plan.md in project root (written by swarm-planner)
No persistent state directory; plan file is the only artifact.

03

Components

am-will/swarms — Components

Skills (7 total)

Skill Purpose
swarm-planner Dependency-aware planning with codebase research, doc fetching, subagent review
parallel-task Wave-based execution with context handoff and work verification
parallel-task-spark Spark/lightweight variant of parallel-task
parallel-task-tmux tmux-based parallel task execution variant
super-swarm Extended swarm with additional orchestration
super-swarm-spark Spark/lightweight variant of super-swarm
co-design Collaborative design planning

No CLI, No Hooks, No MCP

This framework has no:

  • CLI binary
  • Lifecycle hooks
  • MCP servers
  • Agent persona files
  • Scripts

It is purely skill instructions.

Dependency Format (from parallel-task SKILL.md)

T1: [depends_on: []] Create database schema
T2: [depends_on: []] Install packages
T3: [depends_on: [T1]] Create repository layer
T4: [depends_on: [T1]] Create service interfaces
T5: [depends_on: [T3, T4]] Implement business logic
T6: [depends_on: [T2, T5]] Add API endpoints

Wave Execution Example

Wave Tasks Runs When
1 T1, T2 Immediately
2 T3, T4 After T1
3 T5 After T3, T4
4 T6 After T2, T5

Plan Structure (per task)

### T1: Create User Model
- **depends_on**: []
- **location**: src/models/user.ts
- **description**: Define User entity
- **validation**: Unit tests pass
- **status**: Not Completed
- **log**: [updated by subagent on completion]
- **files edited/created**: [updated by subagent on completion]
05

Prompts

am-will/swarms — Prompts

Verbatim Excerpt 1: swarm-planner/SKILL.md (Research + Clarification Gate)

Prompting technique: Research-first with mandatory external docs; clarification gate before planning; subagent review before yield

## Core Principles

1. **Explore Codebase**: Investigate architecture, patterns, existing implementations, dependencies, and frameworks in use.
2. **Fresh Documentation First**: Use Context7 for ANY external library, framework, or API before planning tasks
3. **Ask Questions**: Clarify ambiguities and seek clarification on scope, constraints, or priorities throughout the planning process. At any time.
4. **Explicit Dependencies**: Every task declares what it depends on, enabling maximum parallelization
5. **Atomic Tasks**: Each task is independently executable by a single agent
6. **Review Before Yield**: A subagent reviews the plan for gaps before finalizing

### 1a. Optional: Stop to Clarification Questions

- If the architecture is unclear or missing STOP AND YIELD to the user, and request user input (AskUserQuestions) before moving on. Always offer recommendations for clarification questions.
- If architecture is present, skip 1a and move onto next step.

Verbatim Excerpt 2: parallel-task/SKILL.md (Subagent Instruction Template)

Prompting technique: Context-preloaded subagent dispatch; TDD-first enforcement; explicit commit discipline

### Task Prompt Template

You are implementing a specific task from a development plan.

## Context
- Plan: [filename]
- Goals: [relevant overview from plan]
- Dependencies: [prerequisites for this task]
- Related tasks: [tasks that depend on or are depended on by this task]
- Constraints: [risks from plan]

## Your Task
**Task [ID]: [Name]**

Location: [File paths]
Description: [Full description]

Acceptance Criteria: [List from plan]
Validation: [Tests or verification from plan]

## Instructions
1. Read the working plan and fully understand this task before coding.
2. Read all relevant files first, then do targeted codebase research.
3. Default to TDD RED phase first using a `tdd_test_writer` subagent
4. Review RED-phase tests as the implementation contract. Do not weaken or remove tests.
5. Implement production changes for all acceptance criteria.
6. Commit your work. Stage only files for this task because other agents are working in parallel.
   NEVER PUSH. ONLY COMMIT.
7. After the commit, update the `*-plan.md` task entry with status, log, files edited/created.
09

Uniqueness

am-will/swarms — Uniqueness

Differs From Seeds

Most similar to agent-os (minimal, file-based, no binary) but adds dependency-aware parallel execution that agent-os lacks. The explicit DAG-based task dependency format (T1/T2/T3 with depends_on arrays) is similar to taskmaster-ai's task decomposition, but Swarms keeps the orchestrator alive across all waves (context persistence) while taskmaster uses stateless MCP tools. Differs from claude-flow in having zero MCP infrastructure, zero persistent memory, and no hive-mind protocol — it is the lightest multi-agent framework in this batch. The critical innovation over all seeds: the orchestrator that planned the work STAYS ALIVE during execution, pre-loading each subagent with precisely the context it needs rather than requiring re-discovery.

Positioning

  • Smallest surface area of multi-agent frameworks in batch (2 core skills + 5 variants)
  • Explicitly positioned against "bash loop" approaches (Ralph loops, Gas Town)
  • Clear articulation of the discovery-waste problem in naive loops
  • TDD first enforcement in subagent prompts (tdd_test_writer subagent for RED phase)

Observable Failure Modes

  • No worktree isolation: parallel commits to same branch can create merge conflicts if subagents touch same files
  • Context limit: orchestrator holds all context from planning through execution — large projects may hit limits
  • Codex feature flag dependency: multi_agents = true must be explicitly set for Codex
  • Plan file is single point of failure: if corrupted or lost, no other state exists
  • No retry logic: if a subagent fails, the plan documents it but orchestrator has no automated recovery

Cross-References

The README explicitly mentions comparing favorably to "Gas Town" (possibly claude-flow) and "Ralph Loops" (a common Codex loop pattern also referenced in oh-my-codex).

04

Workflow

am-will/swarms — Workflow

Phase 1: Planning (/swarm-planner)

  1. Explore codebase architecture, patterns, existing implementations
  2. Fetch current docs for external libraries via Context7 MCP (required)
  3. Stop and ask clarifying questions when ambiguity exists (use AskUserQuestions / request_user_input)
  4. Create dependency-aware plan with explicit depends_on arrays per task
  5. Spawn subagent to review plan for gaps
  6. Save plan to <topic>-plan.md

Phase 2: Execution (/parallel-task)

  1. Parse plan file and extract task list
  2. Build task dependency graph
  3. Identify unblocked tasks (all depends_on satisfied)
  4. Launch unblocked tasks as subagents in parallel
  5. Each subagent receives: plan file, task context, dependency files, relevant project state
  6. Subagent completes task, runs validation, commits (never pushes), updates plan status
  7. Orchestrator verifies work before advancing to next wave
  8. Repeat until all tasks complete

Artifacts and Gates

Phase Artifact Gate
Research (none persisted) none
Clarification (chat) User answers clarifying questions
Planning <topic>-plan.md Plan review by subagent + user confirmation
Execution Code commits + plan status updates Orchestrator wave verification

Codex-Specific Workflow

For Codex users:

  1. Switch to Plan Mode
  2. Run $swarm-planner with prompt
  3. Answer questions
  4. At plan completion, press Esc (before implementation)
  5. Switch to Code Mode
  6. Save plan to repo
  7. Run $parallel-task pointing to saved plan

Subagent Instructions (from parallel-task)

Each subagent receives explicit context:

  • Plan file reference
  • Specific task files to work on
  • Dependency file names/paths
  • Adjacent task context
  • Current project state with logs

Subagent required to:

  1. Run TDD RED phase first (via tdd_test_writer subagent) if applicable
  2. Implement production changes
  3. Run validation until GREEN
  4. Commit (NEVER push)
  5. Update plan status with log
06

Memory Context

am-will/swarms — Memory & Context

State Storage

Minimal — single plan file:

  • <topic>-plan.md in project root

No persistent state directory, no SQLite, no vector DB.

Context Handoff Strategy

The orchestrator maintains context from planning through all execution waves — this IS the memory system. The orchestrator knows:

  • Complete codebase research from planning phase
  • All task dependencies and their status
  • Which files each task touches
  • What adjacent tasks are doing

Each subagent receives pre-loaded context from the orchestrator rather than rediscovering it.

Plan as Memory

The plan file serves as the cross-agent shared state:

  • status field updated by subagents on completion
  • log field records what was done
  • files edited/created field records affected files
  • Orchestrator reads updated plan before each wave to assess progress

No Compaction Handling

No explicit compaction handling. The framework is designed for bounded-context runs rather than long-running sessions. If context fills up, a fresh orchestrator session can read the plan file and resume.

Cross-Session Handoff

Implicit: the plan file persists to disk, so a new session can resume by invoking $parallel-task with the existing plan file.

07

Orchestration

am-will/swarms — Orchestration

Multi-Agent: Yes

  • Orchestrator spawns N subagents per wave (all unblocked tasks run in parallel)
  • Orchestrator verifies each wave before launching the next
  • For Codex: requires multi_agents = true feature flag

Orchestration Pattern

sequential waves + parallel-fan-out within each wave

(Waves execute sequentially; tasks within each wave run in parallel)

Isolation Mechanism

None explicit — subagents work in the same repository, with commit-based coordination ("NEVER PUSH. ONLY COMMIT." — parallel commits to same branch, then orchestrator merges by wave)

Multi-Model

No — framework is model-agnostic; does not assign models to roles

Execution Mode

one-shot (plan phase) + parallel-fan-out (execution waves)

Consensus Mechanism

None — orchestrator is the sole verifier after each wave

Prompt Chaining

Yes: swarm-planner output (plan file) IS the input to parallel-task; task dependency graph IS the execution schedule

Max Concurrent Agents

Unbounded (all unblocked tasks in a wave run simultaneously)

Key Architectural Property

The orchestrator NEVER forgets. Unlike bash loop approaches, the orchestrator that planned maintains context throughout all execution waves.

08

Ui Cli Surface

am-will/swarms — UI & CLI Surface

No Dedicated CLI

No binary, no CLI tool.

No Dashboard

No web dashboard, no TUI.

Invocation

Skill invoked directly within Claude Code or Codex:

  • /swarm-planner — start planning phase
  • /parallel-task — start execution phase

Install Command

npx skills add am-will/swarms

Observability

Plan file (<topic>-plan.md) serves as the audit log:

  • Each task has a status, log, and files edited/created field updated by subagents
  • Orchestrator can read the plan at any time to see progress

No Hooks

No lifecycle hooks — purely skill-triggered.

Related frameworks

same archetype · same primary tool · same memory type

MemPalace ★ 53k

Verbatim local-first AI memory with 96.6% R@5 retrieval on LongMemEval using zero API calls — structured into a palace hierarchy…

Beads (Yegge) ★ 24k

Dolt-powered distributed graph issue tracker where AI agents track tasks with hierarchical IDs and dependency edges, claim work…

deepagents (LangChain) ★ 23k

Opinionated Python agent harness on top of LangGraph with sub-agents, filesystem, memory, and context compaction bundled in

agentmemory ★ 18k

Persistent, searchable memory for AI coding agents that captures every tool interaction, compresses it via LLM, and injects…

Open Multi-Agent ★ 6.3k

Give a natural-language goal to a coordinator agent and get a dynamically decomposed, parallelized task DAG executed by…

Basic Memory ★ 3.1k

Gives AI agents a persistent, human-readable knowledge graph of project decisions, observations, and relations stored as plain…