Codex CLIsession-managementbuilt-in
/archive
Archive the current session and exit. Removes it from active session lists; transcript kept locally. Restore with 'codex unarchive <SESSION>'.
When to use
- ▸Cleaning up completed sessions from the active list
- ▸Archiving a session you might want to reference later
More Codex CLI commands
configuration
/approve
Approve one retry of a recent auto review denial — lets Codex attempt a blocked action once under current policy.
context-management
/compact
Summarize the visible conversation to free tokens. Use after long runs so Codex retains key points without blowing the context window.
code-review
/diff
Show the Git diff including files Git isn't tracking yet. Review Codex's edits before committing or running tests.
configuration
/fast
Toggle the Fast service tier for the current model/thread, or check current state.