/goal gives OpenSRE a finish line instead of a single prompt. You state the
condition once, and OpenSRE keeps taking turns until it reaches it, runs out of
its turn budget, or you stop it. You can walk away and check the progress line
when you come back.
Commands at a glance
Try it
Paste this into the interactive shell:Watching progress
Run/goal at any time:
When OpenSRE breaks the work into steps,
/goal also prints a checklist with
[x] for finished items and → marking the one it is on.
If no goal is set, you get an empty state instead:
Pause and resume
/goal pause stops the next turn from firing but keeps everything else —
condition, turn count, and progress so far:
/goal resume picks the work back up from the same turn count:
Change the condition
/goal edit rewrites the finish line in place, keeping the turns already spent.
Use it when the goal was nearly right but you want to redirect it:
/goal resume. Conditions
longer than 400 characters are shortened.
Stop the goal
/goal clear prints goal cleared. and removes it — there is nothing left to
resume.
How a goal ends
The turn budget defaults to 5 and exists so an impossible condition cannot
loop forever. Raise it with
--max-turns when the work genuinely needs more
steps.
/goal vs /work vs /loops
Where goals live
A goal belongs to the session it was set in and is restored with it, so a goal you set in the shell is still there after/resume.
Goals are remembered in chat transports such as Slack and Telegram as well, and
the same status line appears in the timeline while OpenSRE works. /goal set
starts the condition on that turn — the same as the interactive shell — and
continuation proceeds from there.
After
/goal set, OpenSRE begins the work immediately. You do not need a
follow-up message to start the first turn.Related docs
- Interactive Shell Commands — the full slash command reference
- Work Management —
/workdurable todos - Scheduled deliveries —
/loopsrecurring prompts - Session History — how sessions persist and resume
- PostHog — connect PostHog so product questions can run live