Skip to content

feat: add /goal command #29721

Closed as not planned
Closed as not planned

Description

@jonbaldie

Proposes adding a /goal command that keeps the AI working across turns until a condition is met, matching Claude Code's feature.

/goal <condition> — sets the goal, AI loops until met
/goal — shows status (turns, tokens, last evaluator reason)
/goal clear — removes an active goal

After each assistant turn that would normally stop, a small model evaluates the condition against the conversation transcript. If not met, a synthetic reminder is injected and the loop continues. If met, the goal is marked achieved and stored in the session.

Implementation is ready in jonbaldie/opencode#feat/goal-command if the approach looks good to the team.

Activity

  1. github-actions commented on May 28, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • The issue does not use the Feature Request template (title should start with [FEATURE]:, and the template's verification checkbox and description fields should be filled out)

    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. github-actions commented on May 28, 2026

    @github-actions
    Contributor

    This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

    Feel free to open a new issue that follows our issue templates.

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