Agent Autonomous Loop
Use this skill for an explicit, bounded agent autonomous loop execution mode.
It adapts the useful parts of handoff-driven autonomy loops without installing,
vendoring, or automatically running a separate agent framework.
Scope Gate
Use this skill only when the latest user message explicitly invokes
$agent-autonomous-loop or says to use the agent autonomous loop skill.
Do not use this skill for:
- normal implementation requests that do not explicitly ask for this skill;
- Q&A, brainstorming, explanations, or one-off research;
- UI work that needs human visual feedback between iterations;
- deploys, secret handling, production data mutation, or destructive work
unless the user explicitly authorized that operation;
- vague tasks without a durable target, plan file, issue, spec, or acceptance
criteria.
If the task is unsuitable, say why and continue in normal agent mode only if the
user's request still has a safe non-autonomous path.
Required Read Order
- Read the repository's applicable
AGENTS.md or equivalent instructions.
- Read
development-plan for medium/large work when that skill is installed
or available.
- Read
references/control-protocol.md.
- Read
references/worker-rules.md before creating or prompting any worker.
Operating Defaults
- Default rounds: 4.
- Maximum rounds without a new user instruction: 6.
- Runtime handoff and KB path:
.agent-autonomous-loop/.
- Runtime files are local state and must not be committed.
- Do not create commits unless the user explicitly asks for commits.
- Completion requires a fresh review-only worker after the latest source
changes; repair changes require another review-only pass.
- Keep the parent agent as orchestrator. Worker subagents own implementation
inside their assigned round.
Subagent Requirement
Use available multi-agent tooling for clean-room rounds. If the needed subagent
tool is not already available, use tool_search to discover
multi-agent/subagent tools when available.
If no supported subagent tooling is available, stop and report the blocker. Do
not pretend that same-thread work is a clean-room autonomy loop unless the user
explicitly approves degraded same-thread execution.
Safety Rules
- Preserve all user and pre-existing dirty worktree changes.
- Keep repository
AGENTS.md files, local instructions, and project skills
authoritative.
- For medium/large execution, ensure a saved plan exists before source edits;
follow the repository's planning convention, or use
docs/plans/active/ when
no convention exists.
- Keep any active saved plan current when the task uses one.
- Run the narrowest verification that proves the touched area.
- Final user reports must include rounds run, final state, changed files, checks
run, and any blockers or follow-ups.
Validation
When editing this skill, run:
bash skills/agent-autonomous-loop/scripts/check_skill.sh
1---2name: agent-autonomous-loop3description: Use only when the user explicitly invokes $agent-autonomous-loop or explicitly says to use the agent autonomous loop skill. Runs a bounded multi-round handoff/subagent loop for well-scoped implementation, refactor, documentation, review-fix, or verification tasks. Do not use implicitly, for ordinary tasks, Q&A, brainstorming, or every session.4---56# Agent Autonomous Loop78Use this skill for an explicit, bounded agent autonomous loop execution mode.9It adapts the useful parts of handoff-driven autonomy loops without installing,10vendoring, or automatically running a separate agent framework.1112## Scope Gate1314Use this skill only when the latest user message explicitly invokes15`$agent-autonomous-loop` or says to use the agent autonomous loop skill.1617Do not use this skill for:1819- normal implementation requests that do not explicitly ask for this skill;20- Q&A, brainstorming, explanations, or one-off research;21- UI work that needs human visual feedback between iterations;22- deploys, secret handling, production data mutation, or destructive work23 unless the user explicitly authorized that operation;24- vague tasks without a durable target, plan file, issue, spec, or acceptance25 criteria.2627If the task is unsuitable, say why and continue in normal agent mode only if the28user's request still has a safe non-autonomous path.2930## Required Read Order31321. Read the repository's applicable `AGENTS.md` or equivalent instructions.332. Read `development-plan` for medium/large work when that skill is installed34 or available.353. Read `references/control-protocol.md`.364. Read `references/worker-rules.md` before creating or prompting any worker.3738## Operating Defaults3940- Default rounds: 4.41- Maximum rounds without a new user instruction: 6.42- Runtime handoff and KB path: `.agent-autonomous-loop/`.43- Runtime files are local state and must not be committed.44- Do not create commits unless the user explicitly asks for commits.45- Completion requires a fresh review-only worker after the latest source46 changes; repair changes require another review-only pass.47- Keep the parent agent as orchestrator. Worker subagents own implementation48 inside their assigned round.4950## Subagent Requirement5152Use available multi-agent tooling for clean-room rounds. If the needed subagent53tool is not already available, use `tool_search` to discover54multi-agent/subagent tools when available.5556If no supported subagent tooling is available, stop and report the blocker. Do57not pretend that same-thread work is a clean-room autonomy loop unless the user58explicitly approves degraded same-thread execution.5960## Safety Rules6162- Preserve all user and pre-existing dirty worktree changes.63- Keep repository `AGENTS.md` files, local instructions, and project skills64 authoritative.65- For medium/large execution, ensure a saved plan exists before source edits;66 follow the repository's planning convention, or use `docs/plans/active/` when67 no convention exists.68- Keep any active saved plan current when the task uses one.69- Run the narrowest verification that proves the touched area.70- Final user reports must include rounds run, final state, changed files, checks71 run, and any blockers or follow-ups.7273## Validation7475When editing this skill, run:7677```bash78bash skills/agent-autonomous-loop/scripts/check_skill.sh79```