promptgarten ๐ŸŒฑ
๐ŸŒ ES

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.

โœ… 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