From loop
Pre-flight checks and launch for agent loops. Validates branch state, session prompts, creates loop directory structure, and launches run.sh in a tmux session. Use when the user wants to start a new agent loop in the current repo.
How this skill is triggered — by the user, by Claude, or both
Slash command
/loop:loop-launch-aThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Action skill** — Pre-flight, setup, and launch for agent loops.
Action skill — Pre-flight, setup, and launch for agent loops.
$ARGUMENTS
Launch an agent loop in the current repo. This skill handles everything from validation to tmux launch.
Run these checks before launching. If any fail, report the issue and stop — do not launch a broken loop.
# Check for uncommitted changes
git status --porcelain
# What branch are we on?
git rev-parse --abbrev-ref HEAD
# Check for active loops in this repo
ls agents/loops/ 2>/dev/null
~/.claude-loops/registry.jsonl for start events without matching end events in this repo.# Verify agents/ directory exists with required files
ls agents/prompts/session.md agents/prompts/worker.md agents/prompts/reviewer.md agents/run.sh 2>/dev/null
agents/ is not set up, run the setup script:
~/claude-tooling/agents-src/setup.sh
Derive the loop-id from the user's input:
fix-auth-flow){slug}_{YYYYMMDD_HHMM} (e.g., fix-auth-flow_20260315_1430)Check if session prompts exist for this loop:
ls agents/loops/{loop-id}/session/SESSION_WORKER.md agents/loops/{loop-id}/session/SESSION_REVIEWER.md 2>/dev/null
If they don't exist:
loop-author-a skill with the task descriptionagents/loops/{loop-id}/session/SESSION_WORKER.md
agents/loops/{loop-id}/session/SESSION_REVIEWER.md
Once pre-flight passes and session prompts exist:
# Launch the loop
./agents/run.sh --loop-id {loop-id} [additional flags]
run.sh automatically wraps itself in a tmux session named loop-{loop-id}.
Ask the user or infer from context:
--max-iter N — default is 5--worker-spec FILE — specialization (e.g., planner.md, python.md, rust.md)--pr-per-iteration — enable PR-per-iteration branching--claude-effort LEVEL — low, medium (default), or highAfter launching, tell the user:
loop-{loop-id}tmux attach -t loop-{loop-id}Ctrl+B, then Dloop-observe-a skillagents/loops/{loop-id}/state/.agent-loops/{loop-id}/| User says | What to do |
|---|---|
| "Start a loop for X" | Full pre-flight → generate prompts → launch |
| "Launch loop {id}" | Pre-flight → check prompts exist → launch |
| "Resume loop {id}" | Check if loop dir exists, session prompts present → launch with existing dir |
npx claudepluginhub jsai23/claude-tooling --plugin loopProvides patterns for continuous autonomous agent loops with quality gates, evals, and recovery controls. Use for structured multi-step agent workflows with CI/PR, RFC decomposition, or parallel generation.
Provides multi-agent orchestration patterns for Claude Code's Loop using Agent tool to spawn parallel subagents for codebase analysis, multi-service changes, and complex tasks.
Manages continuous autonomous agent loops with quality gates, evaluation harnesses, and recovery controls. Supports loop selection flow (sequential, parallel, RFC decomposition) and combined patterns.