Skip to content

Document the /goal CLI command and Goals lifecycle in slash-command docs #20536

Closed

Description

@iamhectorlopez

Summary

Update after local verification: /goal does exist in codex-cli 0.128.0. This issue is not asking to implement a missing command. It is asking to document and surface the existing Goals entry point clearly in the Codex CLI docs and help/discovery surfaces.

Current behavior

The command appears to be present locally, but is still hard to discover:

  • The official CLI slash-command docs checked here list commands such as /plan, /status, /ps, /stop, /compact, and /resume, but did not include /goal.
  • A local codex-cli 0.128.0 install contains goal-related command/help strings, including Usage: /goal <objective>, /goal pause, /goal resume, and /goal clear.
  • The CLI also appears to have goal status surfaces such as pursuing, paused, achieved, unmet, and budget-limited states.

Because the public docs/help surfaces are not clear, users can reasonably end up asking whether /goal exists at all, or whether Codex can keep working toward a long-running objective across turns.

Requested improvement

Please document and expose the Goals lifecycle in the CLI slash-command docs and any relevant in-product command/help surfaces:

  • Add /goal to the official CLI slash-command page.
  • Show the basic syntax, for example /goal <objective>.
  • Document lifecycle commands such as /goal pause, /goal resume, and /goal clear.
  • Explain expected states such as pursuing, paused, achieved, unmet, and budget-limited.
  • Explain the high-level semantics: a goal stays active across turns and Codex should continue working toward it until it is achieved, paused/cleared, blocked, or constrained by a configured budget.
  • Mention how this differs from adjacent commands such as /plan, /resume, and /compact.

Why this matters

Long-horizon work is one of Codex's most valuable workflows. Users need a reliable, discoverable way to tell Codex: "keep working toward this objective until it is actually done, verify against the current state, and only stop when complete or blocked."

If /goal exists but is not listed in the public slash-command documentation, users may assume the capability is unavailable or may misuse adjacent commands for a workflow that has a first-class lifecycle.

Environment observed

Related context

This is separate from goal-retention/compaction behavior. For example, #19910 discusses preserving active goal context after compaction. This issue is specifically about user-facing discovery and command/documentation clarity.

Activity

  1. added
    enhancement
    CLI
    windows-os
    TUI
    on May 1, 2026
  2. changed the title [-]Expose or document the Goals entry point in CLI slash commands[/-] [+]Document the /goal CLI command and Goals lifecycle in slash-command docs[/+] on May 1, 2026
  3. etraut-openai commented on May 1, 2026

    @etraut-openai
    Contributor

    Yes, we'll get to it. We typically document a feature when we expose it as "experimental". This feature is still "under development".

  4. added
    documentation
    and removed
    windows-os
    TUI
    CLI
    enhancement
    on May 1, 2026
  5. vural2123 commented on May 1, 2026

    @vural2123
  6. vural2123 commented on May 1, 2026

    @vural2123

    Add config.toml

    [features]
    goals = true

  7. negentropi commented on May 1, 2026

    @negentropi

    and suppress_unstable_features_warning = true

  8. negentropi commented on May 1, 2026

    @negentropi

    but looks like didnot sup in codex app

  9. etraut-openai commented on May 14, 2026

    @etraut-openai
    Contributor

    Documentation can be found here.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions