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

Cmd. /diff

Review current Git changes from inside Codex.

Key takeaways

  • Review current Git changes from inside Codex.
  • Check the input surface and availability before using the examples below.

Purpose

Review current Git changes from inside Codex.

/diff

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

/diff

When to use it

  1. Run /diff before /review so you know the exact behavioral surface being reviewed.
  2. Use /diff after applying a subagent result before merging it into the main thread.

Choosing related commands

CommandDifferenceChoose It When
/diffShows working tree changesYou need to inspect edits
/reviewReviews risks in the working treeYou need a code-review pass
/statusShows session stateYou need model, policy, or token state

Effects and persistence

Displays code changes; opening the viewer does not commit or revert them.

/diff shows the Git diff, including files Git is not tracking yet, so you can inspect Codex edits before committing or testing.

Cautions

  • /diff is not a test. Run the relevant verification command after reviewing changes.
  • In dirty worktrees, separate user changes from Codex changes before judging the result.

Official sources

  • Developer Commands
  • Cli

Complete command list · Verification scope · History for this command

Related docs

Cmd. /review

Ask Codex to review the current working tree.

Cmd. /diff

Claude Code Command Master · Open the interactive uncommitted and per-turn diff viewer.

Cmd. /new

Start a new conversation inside the current CLI session.

Cmd. /release-notes

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

Cmd. /add-dir

Claude Code Command Master · Add a working directory for file access in this session.

Cmd. /apps

Browse apps and connectors, then insert app mentions into the prompt.

Cmd. /feedback

Send feedback and diagnostics to Codex maintainers.

On this page

PurposeAvailabilityExamplesWhen to use itChoosing related commandsEffects and persistenceCautionsOfficial sources