You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Add native session goals with /goal #27162
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
OpenCode has custom slash commands, but there is no native persistent session goal/lifecycle feature.
Proposal: add one persisted goal per session, exposed through shared server APIs so TUI and desktop app clients can view, set, edit, pause, resume, clear, and observe it. Active goals can continue when idle, track token/time usage, support optional token budgets, and let the model mark a goal complete only after verification.
This is not implementable as a command template because it needs persistence, runtime continuation, usage accounting, and client sync/status surfaces.
Related but broader than #23578 and #18636: this request covers a first-class per-session goal domain, shared API/SDK surface, TUI and macOS app support, runtime continuation, and model-visible goal tools with restricted mutation semantics.
Reacted by Marco Accorinti, Mauricio Scheffer, emty, Raphael Caldas, Mehdi Memar, Morten Christensen and nisedo
Thanks for updating the issue! It now follows the contributing guidelines and looks good. The [FEATURE]: title prefix, verification checkbox, and description are all in order.
Superseded by compliant feature request #27167. I updated this issue to match the template, but the stale compliance label could not be removed by this contributor account.
Activity
github-actions commentedon May 12, 2026
This issue doesn't fully meet our contributing guidelines.
What needs to be fixed:
[FEATURE]:as required by the feature request templatePlease edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
If you believe this was flagged incorrectly, please let a maintainer know.
[-]Add native session goals with /goal[/-][+][FEATURE]: Add native session goals with /goal[/+]github-actions commentedon May 12, 2026
Thanks for updating the issue! It now follows the contributing guidelines and looks good. The
[FEATURE]:title prefix, verification checkbox, and description are all in order.jorgitin02 commentedon May 12, 2026
Superseded by compliant feature request #27167. I updated this issue to match the template, but the stale compliance label could not be removed by this contributor account.
mmc41 commentedon Aug 26, 2026
Can really use opencode without /goal command (but codex and claude have it and it is a must)