-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Add a mechanism to repeatedly inject prompts into OpenCode sessions, allowing autonomous task completion without human intervention after the initial prompt.
Use case: When working on multi-step tasks (fixing TODOs, reviewing code, refactoring), users currently need to manually prompt the model to continue after each response. This feature allows the model to continue working automatically until:
- A completion condition is met (model outputs a specific marker)
- Maximum iterations reached (safety limit)
- User cancels the loop
Example usage
# Read TODO and work on it until nothing left to do
/ralph-loop -p "I_DIDNT_FIND_ANYTHING" Read the TODO file and execute all tasks
# Review and fix with iteration limit
/ralph-loop -m 10 -p "ALL_FIXED" Review and fix all type errors
# Cancel if needed
/ralph-loop:cancelWhy is this needed?
Similar to Claude Code's ralph-loop feature, this enables:
- Hands-off task execution for well-defined work
- Iteration on complex multi-step tasks
- Autonomous code review and fixing workflows
Safety considerations
- Default max 20 iterations, configurable up to 100
- Completion promise detection to stop when done
- Cancel command available at any time
- Server-side state management
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels