codex - 💡(How to fix) Fix Document the /goal CLI command and Goals lifecycle in slash-command docs [3 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#20536Fetched 2026-05-01 05:42:07
View on GitHub
Comments
3
Participants
3
Timeline
14
Reactions
0
Timeline (top)
labeled ×5unlabeled ×4commented ×3cross-referenced ×1

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.

Root Cause

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.

RAW_BUFFERClick to expand / collapse

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.

extent analysis

TL;DR

Update the Codex CLI documentation to include the /goal command and its lifecycle to improve discoverability and clarity for users.

Guidance

  • Add the /goal command to the official CLI slash-command page, including its basic syntax and lifecycle commands such as /goal pause, /goal resume, and /goal clear.
  • Document the expected states of a goal, such as pursuing, paused, achieved, unmet, and budget-limited, to help users understand the command's behavior.
  • Explain how the /goal command differs from adjacent commands like /plan, /resume, and /compact to avoid confusion.
  • Verify that the updated documentation is accurate and consistent across all relevant surfaces, including the CLI help and documentation pages.

Example

No code snippet is necessary for this issue, as it focuses on documentation and clarity improvements.

Notes

This issue is specific to the Codex CLI documentation and does not require any changes to the underlying code or functionality.

Recommendation

Apply the workaround by updating the documentation to include the /goal command and its lifecycle, as this will improve user experience and clarity without requiring any code changes.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Document the /goal CLI command and Goals lifecycle in slash-command docs [3 comments, 3 participants]