Skip to main content
reopt Handbook
reopt Handbook
Codex Command MasterLabels and command selectionHow to read a detail guideComplete command listTerminal CLI Commands and Options

Task guides

Core Command GroupSession Command GroupCustom Command GuideMCP Command and Integration GuideDesign Workflows

Conversation and context

Cmd. /clearCmd. /renameCmd. /archiveCmd. /deleteCmd. /compactCmd. /copyCmd. /memoriesCmd. /importCmd. /initCmd. /mentionCmd. /forkCmd. /sideCmd. /resumeCmd. /newCmd. /cdCmd. /exportCmd. /recap

Planning and execution

Cmd. /planCmd. /goalCmd. /psCmd. /stopCmd. /app

Review and verification

Cmd. /review

Models and settings

Cmd. /modelCmd. /fast

Permissions and integrations

Cmd. /permissionsCmd. /ideCmd. /setup-default-sandboxCmd. /sandbox-add-read-dirCmd. /pluginsCmd. /hooksCmd. /approveCmd. /skillsCmd. /mcp

Status and diagnostics

Cmd. /agentCmd. /appsCmd. /diffCmd. /feedbackCmd. /personalityCmd. /rawCmd. /statusCmd. /debug-configCmd. /title

Display and input

Cmd. /keymapCmd. /vimCmd. /experimentalCmd. /statuslineCmd. /themeCmd. /petsCmd. /voiceCmd. /worktree

Account and usage

Cmd. /exitCmd. /logoutCmd. /quitCmd. /usage

Legacy

Cmd. /approvals

Verification and history

Current verification scopeHandbook updatesRelease coverage historyEarlier verification recordsCommand change history
Handbook›Codex Command Master›Cmd. /clear
한국어English

Cmd. /clear

Clear the terminal and current chat context, then start a fresh Codex chat.

Key takeaways

  • Clear the terminal and current chat context, then start a fresh Codex chat.
  • Check the input surface and availability before using the examples below.

Purpose

Clear the terminal and current chat context, then start a fresh Codex chat.

/clear

Availability

FieldValue
Input surfaceRunning CLI prompt
KindBuilt-in
StatusCurrent reference
Aliases—
Documented minimumNot specified
Reviewed against2026-09-22 · Codex CLI 0.155.1

The installed command menu and account or organization settings determine availability.

Examples

/clear

When to use it

  1. Inspect /diff, then use /clear before beginning an unrelated task.
  2. Run /export before /clear when the transcript is an audit artifact.

Choosing related commands

CommandDifferenceChoose It When
/clearClears the display and starts a fresh chatBoth the UI and conversation should reset
/new [name]Starts a new named chatThe new session needs a name immediately
/compactSummarizes the same chatYou must preserve the current context
/exitExits the CLIThe terminal session itself is finished

Effects and persistence

Starts a fresh conversation. Restate instructions that depended on the previous conversation when needed.

/clear clears the terminal and starts a fresh chat. The Developer Commands signature checked on 2026-08-30 has no name argument, so this handbook no longer documents /clear [name]. Use /new [name] when the new chat needs a name at creation time.

Cautions

  • /clear does not revert Git changes or delete generated files.
  • Record a name, session ID, or export first when the old transcript must be recoverable.
  • If the installed build differs, treat its slash popup and / as the build-specific contract.

Official sources

  • Developer Commands
  • Changelog

Complete command list · Verification scope · History for this command

Related docs

Cmd. /new

Start a new conversation inside the current CLI session.

Cmd. /rename

Rename the current saved Codex chat without changing its transcript or execution state.

Cmd. /rename

Claude Code Command Master · Changes the current session's name while retaining its conversation.

Core command basics

Claude Code Command Master · Read help and session status, start a fresh conversation, and exit or detach from Claude Code.

Cmd. /export

Claude Code Command Master · Copy or save the current conversation as plain text.

Design Workflows

Connect /plugins, /skills, /mcp, and /ide with Figma, ImageGen, and Playwright to design, implement, and verify UI with Codex.

Cmd. /rename

Rename the current saved Codex chat without changing its transcript or execution state.

On this page

PurposeAvailabilityExamplesWhen to use itChoosing related commandsEffects and persistenceCautionsOfficial sources