一键导入
Start Auto Loop - auto-continues until task completion
npx skills add https://github.com/timmyjl12/opencode-auto-loop --skill auto-loop复制此命令并粘贴到 Claude Code 中以安装该技能
Start Auto Loop - auto-continues until task completion
npx skills add https://github.com/timmyjl12/opencode-auto-loop --skill auto-loop复制此命令并粘贴到 Claude Code 中以安装该技能
| name | auto-loop |
| description | Start Auto Loop - auto-continues until task completion |
Start an iterative development loop that automatically continues until the task is complete.
The Auto Loop creates a continuous feedback cycle for completing complex tasks:
auto-loop tool, which creates the state file and starts the loopYour previous work remains accessible through files, git history, and the state file's progress sections.
Use the auto-loop tool ONCE to start the loop. Do NOT create the state file manually. The tool handles state file creation, session tracking, and initialization.
CRITICAL: Do NOT call the auto-loop tool more than once per loop. The plugin handles all subsequent iterations automatically via idle detection. Re-invoking the tool would be rejected to prevent accidental state resets. If you need to restart with different parameters, use /cancel-auto-loop first.
After the tool confirms the loop is active, immediately begin working on the task. Do not just acknowledge — start doing the work.
Before going idle at the end of each work session, you MUST output structured progress sections AND a status line. The plugin parses these to persist your TODOs across iterations so you know exactly where to pick up.
Use this format in your final message of each iteration:
## Completed
- [x] Set up project structure
- [x] Created database schema
- [x] Implemented user model
## Next Steps
- [ ] Add JWT authentication middleware
- [ ] Create registration endpoint
- [ ] Write integration tests
STATUS: IN_PROGRESS
Rules:
- [x] for done, - [ ] for remaining)STATUS: IN_PROGRESS or STATUS: COMPLETE line on its own line in EVERY responseauto-loop.local.md for the next iterationWhen you have FULLY completed the task, signal completion by outputting the promise-DONE XML tag on its own line:
STATUS: COMPLETE
<promise>DONE</promise>
IMPORTANT CONSTRAINTS:
- [ ]), you MUST NOT output the DONE signal. The plugin will detect the contradiction and REJECT the completion, forcing another iteration.STATUS: COMPLETE (on its own line) alongside the DONE signal. If the plugin detects STATUS: IN_PROGRESS with a DONE signal, it will reject the completion.STATUS: IN_PROGRESS and explain the blocker instead of falsely completingThe loop can only be stopped by:
/cancel-auto-loopWhen started with --ralph, the loop ignores ALL completion signals (<promise>DONE</promise>, STATUS: COMPLETE) and runs for the full iteration count. In force mode:
STATUS: lines or the DONE signal## Completed and ## Next Steps sections so the plugin can track progressExample: /auto-loop --ralph --max 10 Continue the refactoring task
Check current iteration and progress:
cat .opencode/auto-loop.local.md
The state file at .opencode/auto-loop.local.md uses YAML frontmatter with progress sections:
---
active: true
iteration: 3
maxIterations: 25
sessionId: ses_abc123
---
Build a REST API with authentication
## Completed
- [x] Set up project structure
- [x] Created database schema
## Next Steps
- [ ] Add JWT authentication middleware
- [ ] Create registration endpoint
- [ ] Write integration tests
Add .opencode/auto-loop.local.md to your .gitignore.