Cmd. /new
Start a new conversation inside the current CLI session.
Key takeaways
/newresets chat context inside the same CLI session without leaving the terminal.- Use it when switching to an unrelated task in the same repository, then run
/planif the new task has risk or ambiguity. - Unlike
/clear, which also resets the visible UI,/newgives a clean prompt while staying in the CLI;/quitexits entirely. - Save important details first, since
/newdoes not replace Git hygiene; review changes before changing tasks.
Original Command Declaration
/newOfficial Summary
/new resets chat context inside the same CLI session without leaving the terminal.
Usage
/newGood Examples
- Use
/newwhen switching to an unrelated task in the same repository. - Use
/planimmediately after/newwhen the new task has risk or ambiguity.
Similar Commands
| Command | Difference | Choose It When |
|---|---|---|
/new | Starts a fresh conversation | You want a clean prompt in the same CLI |
/clear | Clears the terminal and starts fresh | You also want the visible UI reset |
/quit | Exits the CLI | You are done with the terminal session |
Use Cases
- Switching tasks without restarting Codex.
- Starting a clean request after a long or noisy conversation.
- Separating unrelated work inside one terminal.
Cautions
- Save important details before starting a new conversation.
/newdoes not replace Git hygiene; review changes before changing tasks.
Release Basis
- Judgment: first observed mention
- First evidence version:
rust-v0.59.0 - Date (UTC): 2025-11-19
- Release link: https://github.com/openai/codex/releases/tag/rust-v0.59.0
Sources
- Codex slash commands: https://developers.openai.com/codex/cli/slash-commands
- Codex CLI features: https://developers.openai.com/codex/cli/features
Cmd. /resume
Reopen the saved-session picker to continue earlier Codex work across interruptions, remote app-server sessions, and large multi-thread task histories.
Cmd. /quit
Exit the Codex CLI session cleanly, with /exit as the equivalent alias, after reviewing the diff and stopping background terminals.