agent-loop-orchestrator
Installation
SKILL.md
Agent loop orchestrator
Each cycle runs four steps: triage, dispatch, monitor, report. This skill runs one cycle. Repetition comes from the harness, not from you.
Scheduling
Never sleep in a shell between cycles. Use the harness's recurring-run facility (Claude Code: /loop <interval> /agent-loop:resume, or the schedule skill). Without one, run one cycle, report, and tell the user how to rerun.
Cycle
- Triage. Follow
../agent-loop-triage/SKILL.mdfor the configured scope. It returns items classified asautonomous,needs_review,defer, orblocked. - Dispatch. Spawn one background subagent per
autonomousitem, at mostmax_concurrencyat a time. Give each one the item, the repo, and pointers to../agent-loop-autoreview/SKILL.mdand../agent-loop-browser/SKILL.md. Never batch two items into one worker. Workers touching the same repo must use separate branches or worktrees. - Monitor. Collect each worker's result:
merged,pr_opened,failed(retry at most twice), orneeds_human(with what blocks it). - Report. Update the state file, append a cycle summary to
.agent-loop/logs/, and print it: repo, counts per class, one line per worker result, duration.
Stop early if the state file has shutdown_requested: true. Let running workers finish, write final state, and print the summary.