Skip to content

[FEATURE]: Add native session goals with /goal #27162

Closed as not planned
Closed as not planned

Description

@jorgitin02

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

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.

Activity

  1. github-actions commented on May 12, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • This appears to be a feature request, but the title does not start with [FEATURE]: as required by the feature request template
    • The feature request template requires a verification checkbox confirming the feature hasn't been suggested before — this is missing
    • Please use the feature request issue template, which includes the required fields and checkbox

    Please 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.

  2. changed the title [-]Add native session goals with /goal[/-] [+][FEATURE]: Add native session goals with /goal[/+] on May 12, 2026
  3. github-actions commented on May 12, 2026

    @github-actions
    Contributor

    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.

  4. jorgitin02 commented on May 12, 2026

    @jorgitin02
    ContributorAuthor

    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.

  5. mmc41 commented on Aug 26, 2026

    @mmc41

    Can really use opencode without /goal command (but codex and claude have it and it is a must)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions