promptgarten 🌱

Command reference Β· Codex CLI

/new

Starts a new, empty Codex session.

/new is part of the official list of interactive Codex slash commands and starts a new session within the TUI. It's the opposite of /resume, which continues an existing session, and of /fork, which branches an existing session.

πŸ”„ THE SAME TASK (β€œCLEAR CONTEXT/HISTORY”) ON OTHER PLATFORMS

Compare all 28 tasks β†’

βœ… WHEN TO USE IT?

Start a new, independent topic

/new β€” start a fresh session for a task unrelated to the previous one

Session is cluttered with old context

/new β€” start over when the prior session history is no longer relevant

β›” WHEN NOT TO?

The session's existing context is still needed

/new discards the session's existing context.

Better: Use /resume to keep working on the existing session, or /fork to branch off a variant of it

SOURCES

MORE COMMANDS Β· Codex CLI

/fork/mcp/skills/goalcodex execcodex reviewcodex resumecodex apply/init/compact/reasoning/fast

All commands Β· Codex CLI β†’

Share:𝕏inπŸ’¬