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

Cmd. /mention

Attach a file or path to the conversation.

Key takeaways

  • Attach a file or path to the conversation.
  • Check the input surface and availability before using the examples below.

Purpose

Attach a file or path to the conversation.

/mention <path>

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

/mention src/main.ts

When to use it

  1. Mention the file that contains the failing behavior before asking for a fix.
  2. Mention a design doc or config file when the next request depends on it.

Choosing related commands

CommandDifferenceChoose It When
/mentionAttaches one-off file contextThe next turn needs a specific path
/initCreates persistent repo instructionsThe context should live across sessions
/statusShows current workspace stateYou need to confirm roots and policy

Effects and persistence

References a selected file or path in the prompt without editing the file merely by mentioning it.

/mention highlights a file or folder for Codex so the next turns can reference that context directly.

Cautions

  • Mention only the files that matter; too much context can distract the model.
  • Do not mention files containing secrets unless the task truly requires it and the policy allows it.

Official sources

  • Developer Commands
  • Cli

Complete command list · Verification scope · History for this command

Related docs

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. /init

Generate an AGENTS.md scaffold for persistent repository instructions.

Cmd. /keybindings

Claude Code Command Master · Opens the keybinding configuration file so you can change input behavior.

Context Injection

Design Systems for the AI Era · Deliver the right design-system context to AI agents at the right time.

Cmd. /init

Generate an AGENTS.md scaffold for persistent repository instructions.

Cmd. /fork

Branch the current conversation into a new thread.

On this page

PurposeAvailabilityExamplesWhen to use itChoosing related commandsEffects and persistenceCautionsOfficial sources