Set a persistent task goal (max 4,000 chars). Codex tracks it across turns. Subcommands: pause, resume, clear, view.
Syntax
/goal <objective> | pause | resume | clearExample
/goal all integration tests pass with no flaky failuresconfiguration
Approve one retry of a recent auto review denial โ lets Codex attempt a blocked action once under current policy.
session-management
Archive the current session and exit. Removes it from active session lists; transcript kept locally. Restore with 'codex unarchive <SESSION>'.
context-management
Summarize the visible conversation to free tokens. Use after long runs so Codex retains key points without blowing the context window.
code-review
Show the Git diff including files Git isn't tracking yet. Review Codex's edits before committing or running tests.