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. /fork
한국어English

Cmd. /fork

Branch the current conversation into a new thread.

Key takeaways

  • Branch the current conversation into a new thread.
  • Check the input surface and availability before using the examples below.

Purpose

Branch the current conversation into a new thread.

/fork

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

/fork

When to use it

  1. Fork before trying an alternate implementation path.
  2. Use codex fork from the shell when you need to fork a saved session rather than the current one.

Choosing related commands

CommandDifferenceChoose It When
/forkCreates a new branch of the conversationYou need a longer alternate path
/sideOpens a short ephemeral detourYou need a focused question
/resumeReopens saved historyYou need to continue previous work

Effects and persistence

Branches the current conversation into a separate thread for another approach.

/fork clones the current conversation into a new thread with a fresh ID, preserving the original transcript.

Cautions

  • Forked work still needs review, diff inspection, and tests.
  • Name or title related sessions so you can identify them later.

Official sources

  • Developer Commands
  • Cli

Complete command list · Verification scope · History for this command

Related docs

Cmd. /side

Start an ephemeral side conversation from the current thread.

Cmd. /fork

Claude Code Command Master · Copy the conversation into a new background session.

Cmd. /new

Start a new conversation inside the current CLI session.

Cmd. /export

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

Cmd. /release-notes

Claude Code Command Master · Displays selected release notes in the transcript without adding them to model conversation context.

Cmd. /mention

Attach a file or path to the conversation.

Cmd. /side

Start an ephemeral side conversation from the current thread.

On this page

PurposeAvailabilityExamplesWhen to use itChoosing related commandsEffects and persistenceCautionsOfficial sources