beads-converter
Convert plans to Beads - works with /beads-loop, /beads-swarm, or RalphTUI
Execute beads iteratively until all tasks complete
> /plugin marketplace add GantisStorm/essentials-claude-code > /plugin install essentials@essentials-claude-code
How it fires
How this command gets triggered: by you, by Claude, or both.
/beads-loopContext preview
What this command does when you run it.
Execute beads iteratively until all tasks complete
description: "Execute beads iteratively until all tasks complete" argument-hint: "[--label <label>]" allowed-tools: ["Read", "TaskCreate", "TaskUpdate", "TaskList", "TaskGet", "Bash", "Edit", "Write", "Glob", "Grep"] hide-from-slash-command-tool: "true" model: opus
Execute beads iteratively until all ready tasks are complete.
**Note:** Loop and swarm are interchangeable - swarm is just faster when tasks can run in parallel. Both enforce exit criteria and sync beads.
Uses Claude Code's built-in Task Management System for dependency tracking and visual progress (`ctrl+t`).
**DO NOT read files, grep, or explore the codebase** - just get beads from CLI. **Never spawn sub-agents or delegate work — do ALL implementation directly yourself.**
bd list --status open --json # Or with filters: bd list -l <label> --status open --json
Parse the output to get all beads.
Create a task for each bead and build an **ID map** as you go:
// Create tasks in order — each returns a task ID
TaskCreate({ "subject": "beads-abc123: Setup types", ... }) // → task "1"
TaskCreate({ "subject": "beads-def456: Implement auth", ... }) // → task "2"
TaskCreate({ "subject": "beads-ghi789: Add routes", ... }) // → task "3"
// ID map: { "beads-abc123": "1", "beads-def456": "2", "beads-ghi789": "3" }Full TaskCreate per bead:
TaskCreate({
"subject": "beads-abc123: Implement login form",
"description": "<full bead description - self-contained>",
"activeForm": "Implementing login form",
"metadata": { "beadId": "beads-abc123" }
})**Translate bead dependencies to `addBlockedBy`** using the ID map. Extract `depends_on` from `bd list --json` output:
// bd list shows: beads-ghi789 depends_on ["beads-abc123", "beads-def456"]
// ID map: beads-abc123→"1", beads-def456→"2", beads-ghi789→"3"
TaskUpdate({
"taskId": "3",
"addBlockedBy": ["1", "2"]
})A task with non-empty `blockedBy` shows as **blocked** in `ctrl+t`. When a blocking task is marked `completed`, it's automatically removed from the blocked list. A task becomes **ready** (executable) when its blockedBy list is empty.
For each task (in dependency order):
1. **Claim**: `TaskUpdate({ taskId: "N", status: "in_progress" })` 2. **Also update bead**: `bd update <beadId> --status in_progress` 3. **Read**: Task description contains full implementation details 4. **Implement**: Make changes as described 5. **Verify**: Run acceptance criteria 6. **Complete**: `TaskUpdate({ taskId: "N", status: "completed" })` 7. **Close bead**: `bd close <beadId> --reason "Done: <summary>"` 8. **Next**: Find next unblocked task via TaskList
Use TaskList and `bd ready` to check progress:
After all beads complete:
bd sync # Force immediate sync (flushes changes to disk/git)
Say **"All beads complete"** when done.
Press `ctrl+t` to see task progress:
Tasks (2 done, 1 in progress, 3 open) ✓ #1 beads-abc123: Setup database ■ #2 beads-def456: Implement auth □ #3 beads-ghi789: Add routes > blocked by #2
If you lose track:
# Check built-in tasks TaskList # Or check beads directly bd ready # See what's next bd blocked # See what's waiting on dependencies bd list --status in_progress # Find current work bd show <id> # Full task details
Periodically check health:
bd doctor # Check for orphaned issues, version mismatches bd stale # Find issues not updated recently
| Scenario | Action | |----------|--------| | No ready tasks found | Check if all complete or blocked; run `bd list` | | Lost track of current work | TaskList or `bd list --status in_progress` | | Task has unmet dependencies | Complete blocking tasks first |
/beads-loop # Run beads with ralph label (default) /beads-loop --label my-custom-label # Filter by custom label /beads-loop --max-iterations 5 # Limit iterations
Loops, swarms, and teams powered by Claude Code's built-in Task System. Loop, swarm, and team are three execution modes. Loop runs sequentially. Swarm runs parallel subagents. Team spawns full Claude Code instances with shared contracts via Agent Teams.
Repo: GantisStorm/essentials-claude-code
Convert plans to Beads - works with /beads-loop, /beads-swarm, or RalphTUI
Deep bug investigation with architectural fix plan generation - works with any executor (loop or swarm)