SpyBara
Go Premium Account
2026
3 Mar 2026, 00:35
14 May 2026, 21:00 14 May 2026, 07:00 13 May 2026, 00:57 12 May 2026, 01:59 11 May 2026, 18:00 7 May 2026, 20:02 7 May 2026, 17:08 5 May 2026, 23:00 2 May 2026, 06:45 2 May 2026, 00:48 1 May 2026, 18:29 30 Apr 2026, 18:36 29 Apr 2026, 12:40 29 Apr 2026, 00:50 25 Apr 2026, 06:37 25 Apr 2026, 00:42 24 Apr 2026, 18:20 24 Apr 2026, 12:28 23 Apr 2026, 18:31 23 Apr 2026, 12:28 23 Apr 2026, 00:46 22 Apr 2026, 18:29 22 Apr 2026, 00:42 21 Apr 2026, 18:29 21 Apr 2026, 12:30 21 Apr 2026, 06:45 20 Apr 2026, 18:26 20 Apr 2026, 06:53 18 Apr 2026, 18:18 17 Apr 2026, 00:44 16 Apr 2026, 18:31 16 Apr 2026, 00:46 15 Apr 2026, 18:31 15 Apr 2026, 06:44 14 Apr 2026, 18:31 14 Apr 2026, 12:29 13 Apr 2026, 18:37 13 Apr 2026, 00:44 12 Apr 2026, 06:38 10 Apr 2026, 18:23 9 Apr 2026, 00:33 8 Apr 2026, 18:32 8 Apr 2026, 00:40 7 Apr 2026, 00:40 2 Apr 2026, 18:23 31 Mar 2026, 06:35 31 Mar 2026, 00:39 28 Mar 2026, 06:26 28 Mar 2026, 00:36 27 Mar 2026, 18:23 27 Mar 2026, 00:39 26 Mar 2026, 18:27 25 Mar 2026, 18:24 23 Mar 2026, 18:22 20 Mar 2026, 00:35 18 Mar 2026, 12:23 18 Mar 2026, 00:36 17 Mar 2026, 18:24 17 Mar 2026, 00:33 16 Mar 2026, 18:25 16 Mar 2026, 12:23 14 Mar 2026, 00:32 13 Mar 2026, 18:15 13 Mar 2026, 00:34 11 Mar 2026, 00:31 9 Mar 2026, 00:34 8 Mar 2026, 18:10 8 Mar 2026, 00:35 7 Mar 2026, 18:10 7 Mar 2026, 06:14 7 Mar 2026, 00:33 6 Mar 2026, 00:38 5 Mar 2026, 18:41 5 Mar 2026, 06:22 5 Mar 2026, 00:34 4 Mar 2026, 18:18 4 Mar 2026, 06:20 3 Mar 2026, 18:20 3 Mar 2026, 00:35 27 Feb 2026, 18:15 24 Feb 2026, 06:27 24 Feb 2026, 00:33 23 Feb 2026, 18:27 21 Feb 2026, 00:33 20 Feb 2026, 12:16 19 Feb 2026, 20:53 19 Feb 2026, 20:37
17 Apr 2026, 00:44
14 May 2026, 21:00 14 May 2026, 07:00 13 May 2026, 00:57 12 May 2026, 01:59 11 May 2026, 18:00 7 May 2026, 20:02 7 May 2026, 17:08 5 May 2026, 23:00 2 May 2026, 06:45 2 May 2026, 00:48 1 May 2026, 18:29 30 Apr 2026, 18:36 29 Apr 2026, 12:40 29 Apr 2026, 00:50 25 Apr 2026, 06:37 25 Apr 2026, 00:42 24 Apr 2026, 18:20 24 Apr 2026, 12:28 23 Apr 2026, 18:31 23 Apr 2026, 12:28 23 Apr 2026, 00:46 22 Apr 2026, 18:29 22 Apr 2026, 00:42 21 Apr 2026, 18:29 21 Apr 2026, 12:30 21 Apr 2026, 06:45 20 Apr 2026, 18:26 20 Apr 2026, 06:53 18 Apr 2026, 18:18 17 Apr 2026, 00:44 16 Apr 2026, 18:31 16 Apr 2026, 00:46 15 Apr 2026, 18:31 15 Apr 2026, 06:44 14 Apr 2026, 18:31 14 Apr 2026, 12:29 13 Apr 2026, 18:37 13 Apr 2026, 00:44 12 Apr 2026, 06:38 10 Apr 2026, 18:23 9 Apr 2026, 00:33 8 Apr 2026, 18:32 8 Apr 2026, 00:40 7 Apr 2026, 00:40 2 Apr 2026, 18:23 31 Mar 2026, 06:35 31 Mar 2026, 00:39 28 Mar 2026, 06:26 28 Mar 2026, 00:36 27 Mar 2026, 18:23 27 Mar 2026, 00:39 26 Mar 2026, 18:27 25 Mar 2026, 18:24 23 Mar 2026, 18:22 20 Mar 2026, 00:35 18 Mar 2026, 12:23 18 Mar 2026, 00:36 17 Mar 2026, 18:24 17 Mar 2026, 00:33 16 Mar 2026, 18:25 16 Mar 2026, 12:23 14 Mar 2026, 00:32 13 Mar 2026, 18:15 13 Mar 2026, 00:34 11 Mar 2026, 00:31 9 Mar 2026, 00:34 8 Mar 2026, 18:10 8 Mar 2026, 00:35 7 Mar 2026, 18:10 7 Mar 2026, 06:14 7 Mar 2026, 00:33 6 Mar 2026, 00:38 5 Mar 2026, 18:41 5 Mar 2026, 06:22 5 Mar 2026, 00:34 4 Mar 2026, 18:18 4 Mar 2026, 06:20 3 Mar 2026, 18:20 3 Mar 2026, 00:35 27 Feb 2026, 18:15 24 Feb 2026, 06:27 24 Feb 2026, 00:33 23 Feb 2026, 18:27 21 Feb 2026, 00:33 20 Feb 2026, 12:16 19 Feb 2026, 20:53 19 Feb 2026, 20:37
Thu 2 18:23 Tue 7 00:40 Wed 8 00:40 Wed 8 18:32 Thu 9 00:33 Fri 10 18:23 Sun 12 06:38 Mon 13 00:44 Mon 13 18:37 Tue 14 12:29 Tue 14 18:31 Wed 15 06:44 Wed 15 18:31 Thu 16 00:46 Thu 16 18:31 Fri 17 00:44 Sat 18 18:18 Mon 20 06:53 Mon 20 18:26 Tue 21 06:45 Tue 21 12:30 Tue 21 18:29 Wed 22 00:42 Wed 22 18:29 Thu 23 00:46 Thu 23 12:28 Thu 23 18:31 Fri 24 12:28 Fri 24 18:20 Sat 25 00:42 Sat 25 06:37 Wed 29 00:50 Wed 29 12:40 Thu 30 18:36
Details

1# Slash commands in Codex CLI1# Slash commands in Codex CLI

2 2 

3Slash commands give you fast, keyboard-first control over Codex. Type `/` in the composer to open the slash popup, choose a command, and Codex will perform actions such as switching models, adjusting permissions, or summarizing long conversations without leaving the terminal.3Slash commands give you fast, keyboard-first control over Codex. Type `/` in

4the composer to open the slash popup, choose a command, and Codex will perform

5actions such as switching models, adjusting permissions, or summarizing long

6conversations without leaving the terminal.

4 7 

5This guide shows you how to:8This guide shows you how to:

6 9 

7- Find the right built-in slash command for a task10- Find the right built-in slash command for a task

8- Steer an active session with commands like `/model`, `/personality`, `/permissions`, `/experimental`, `/agent`, and `/status`11- Steer an active session with commands like `/model`, `/fast`,

12 `/personality`, `/permissions`, `/agent`, and `/status`

9 13 

10## Built-in slash commands14## Built-in slash commands

11 15 

12Codex ships with the following commands. Open the slash popup and start typing the command name to filter the list.16Codex ships with the following commands. Open the slash popup and start typing

17the command name to filter the list.

13 18 

14| Command | Purpose | When to use it |19| Command | Purpose | When to use it |

15| ------------------------------------------------------------------------------- | --------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |20| ------------------------------------------------------------------------------- | --------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |

16| [`/permissions`](#update-permissions-with-permissions) | Set what Codex can do without asking first. | Relax or tighten approval requirements mid-session, such as switching between Auto and Read Only. |21| [`/permissions`](#update-permissions-with-permissions) | Set what Codex can do without asking first. | Relax or tighten approval requirements mid-session, such as switching between Auto and Read Only. |

17| [`/sandbox-add-read-dir`](#grant-sandbox-read-access-with-sandbox-add-read-dir) | Grant sandbox read access to an extra directory (Windows only). | Unblock commands that need to read an absolute directory path outside the current readable roots. |22| [`/sandbox-add-read-dir`](#grant-sandbox-read-access-with-sandbox-add-read-dir) | Grant sandbox read access to an extra directory (Windows only). | Unblock commands that need to read an absolute directory path outside the current readable roots. |

18| [`/agent`](#switch-agent-threads-with-agent) | Switch the active agent thread. | Inspect or continue work in a spawned sub-agent thread. |23| [`/agent`](#switch-agent-threads-with-agent) | Switch the active agent thread. | Inspect or continue work in a spawned subagent thread. |

19| [`/apps`](#browse-apps-with-apps) | Browse apps (connectors) and insert them into your prompt. | Attach an app as `$app-slug` before asking Codex to use it. |24| [`/apps`](#browse-apps-with-apps) | Browse apps (connectors) and insert them into your prompt. | Attach an app as `$app-slug` before asking Codex to use it. |

25| [`/plugins`](#browse-plugins-with-plugins) | Browse installed and discoverable plugins. | Inspect plugin tools, install suggested plugins, or manage plugin availability. |

26| [`/clear`](#clear-the-terminal-and-start-a-new-chat-with-clear) | Clear the terminal and start a fresh chat. | Reset the visible UI and conversation together when you want a fresh start. |

20| [`/compact`](#keep-transcripts-lean-with-compact) | Summarize the visible conversation to free tokens. | Use after long runs so Codex retains key points without blowing the context window. |27| [`/compact`](#keep-transcripts-lean-with-compact) | Summarize the visible conversation to free tokens. | Use after long runs so Codex retains key points without blowing the context window. |

28| [`/copy`](#copy-the-latest-response-with-copy) | Copy the latest completed Codex output. | Grab the latest finished response or plan text without manually selecting it. |

21| [`/diff`](#review-changes-with-diff) | Show the Git diff, including files Git isn't tracking yet. | Review Codex's edits before you commit or run tests. |29| [`/diff`](#review-changes-with-diff) | Show the Git diff, including files Git isn't tracking yet. | Review Codex's edits before you commit or run tests. |

22| [`/exit`](#exit-the-cli-with-quit-or-exit) | Exit the CLI (same as `/quit`). | Alternative spelling; both commands exit the session. |30| [`/exit`](#exit-the-cli-with-quit-or-exit) | Exit the CLI (same as `/quit`). | Alternative spelling; both commands exit the session. |

23| [`/experimental`](#toggle-experimental-features-with-experimental) | Toggle experimental features. | Enable optional features such as sub-agents from the CLI. |31| [`/experimental`](#toggle-experimental-features-with-experimental) | Toggle experimental features. | Enable optional features such as subagents from the CLI. |

24| [`/feedback`](#send-feedback-with-feedback) | Send logs to the Codex maintainers. | Report issues or share diagnostics with support. |32| [`/feedback`](#send-feedback-with-feedback) | Send logs to the Codex maintainers. | Report issues or share diagnostics with support. |

25| [`/init`](#generate-agentsmd-with-init) | Generate an `AGENTS.md` scaffold in the current directory. | Capture persistent instructions for the repository or subdirectory you're working in. |33| [`/init`](#generate-agentsmd-with-init) | Generate an `AGENTS.md` scaffold in the current directory. | Capture persistent instructions for the repository or subdirectory you're working in. |

26| [`/logout`](#sign-out-with-logout) | Sign out of Codex. | Clear local credentials when using a shared machine. |34| [`/logout`](#sign-out-with-logout) | Sign out of Codex. | Clear local credentials when using a shared machine. |

27| [`/mcp`](#list-mcp-tools-with-mcp) | List configured Model Context Protocol (MCP) tools. | Check which external tools Codex can call during the session. |35| [`/mcp`](#list-mcp-tools-with-mcp) | List configured Model Context Protocol (MCP) tools. | Check which external tools Codex can call during the session. |

28| [`/mention`](#highlight-files-with-mention) | Attach a file to the conversation. | Point Codex at specific files or folders you want it to inspect next. |36| [`/mention`](#highlight-files-with-mention) | Attach a file to the conversation. | Point Codex at specific files or folders you want it to inspect next. |

29| [`/model`](#set-the-active-model-with-model) | Choose the active model (and reasoning effort, when available). | Switch between general-purpose models (`gpt-4.1-mini`) and deeper reasoning models before running a task. |37| [`/model`](#set-the-active-model-with-model) | Choose the active model (and reasoning effort, when available). | Switch between general-purpose models (`gpt-4.1-mini`) and deeper reasoning models before running a task. |

38| [`/fast`](#toggle-fast-mode-with-fast) | Toggle Fast mode for GPT-5.4. | Turn Fast mode on or off, or check whether the current thread is using it. |

30| [`/plan`](#switch-to-plan-mode-with-plan) | Switch to plan mode and optionally send a prompt. | Ask Codex to propose an execution plan before implementation work starts. |39| [`/plan`](#switch-to-plan-mode-with-plan) | Switch to plan mode and optionally send a prompt. | Ask Codex to propose an execution plan before implementation work starts. |

31| [`/personality`](#set-a-communication-style-with-personality) | Choose a communication style for responses. | Make Codex more concise, more explanatory, or more collaborative without changing your instructions. |40| [`/personality`](#set-a-communication-style-with-personality) | Choose a communication style for responses. | Make Codex more concise, more explanatory, or more collaborative without changing your instructions. |

32| [`/ps`](#check-background-terminals-with-ps) | Show experimental background terminals and their recent output. | Check long-running commands without leaving the main transcript. |41| [`/ps`](#check-background-terminals-with-ps) | Show experimental background terminals and their recent output. | Check long-running commands without leaving the main transcript. |

42| [`/stop`](#stop-background-terminals-with-stop) | Stop all background terminals. | Cancel background terminal work started by the current session. |

33| [`/fork`](#fork-the-current-conversation-with-fork) | Fork the current conversation into a new thread. | Branch the active session to explore a new approach without losing the current transcript. |43| [`/fork`](#fork-the-current-conversation-with-fork) | Fork the current conversation into a new thread. | Branch the active session to explore a new approach without losing the current transcript. |

34| [`/resume`](#resume-a-saved-conversation-with-resume) | Resume a saved conversation from your session list. | Continue work from a previous CLI session without starting over. |44| [`/resume`](#resume-a-saved-conversation-with-resume) | Resume a saved conversation from your session list. | Continue work from a previous CLI session without starting over. |

35| [`/new`](#start-a-new-conversation-with-new) | Start a new conversation inside the same CLI session. | Reset the chat context without leaving the CLI when you want a fresh prompt in the same repo. |45| [`/new`](#start-a-new-conversation-with-new) | Start a new conversation inside the same CLI session. | Reset the chat context without leaving the CLI when you want a fresh prompt in the same repo. |


38| [`/status`](#inspect-the-session-with-status) | Display session configuration and token usage. | Confirm the active model, approval policy, writable roots, and remaining context capacity. |48| [`/status`](#inspect-the-session-with-status) | Display session configuration and token usage. | Confirm the active model, approval policy, writable roots, and remaining context capacity. |

39| [`/debug-config`](#inspect-config-layers-with-debug-config) | Print config layer and requirements diagnostics. | Debug precedence and policy requirements, including experimental network constraints. |49| [`/debug-config`](#inspect-config-layers-with-debug-config) | Print config layer and requirements diagnostics. | Debug precedence and policy requirements, including experimental network constraints. |

40| [`/statusline`](#configure-footer-items-with-statusline) | Configure TUI status-line fields interactively. | Pick and reorder footer items (model/context/limits/git/tokens/session) and persist in config.toml. |50| [`/statusline`](#configure-footer-items-with-statusline) | Configure TUI status-line fields interactively. | Pick and reorder footer items (model/context/limits/git/tokens/session) and persist in config.toml. |

51| [`/title`](#configure-terminal-title-items-with-title) | Configure terminal window or tab title fields interactively. | Pick and reorder title items such as project, status, thread, branch, model, and task progress. |

41 52 

42`/quit` and `/exit` both exit the CLI. Use them only after you have saved or committed any important work.53`/quit` and `/exit` both exit the CLI. Use them only after you have saved or

54committed any important work.

43 55 

44The `/approvals` command still works as an alias, but it no longer appears in the slash popup list.56The `/approvals` command still works as an alias, but it no longer appears in the slash popup list.

45 57 


55 67 

56Expected: Codex confirms the new model in the transcript. Run `/status` to verify the change.68Expected: Codex confirms the new model in the transcript. Run `/status` to verify the change.

57 69 

70### Toggle Fast mode with `/fast`

71 

721. Type `/fast on`, `/fast off`, or `/fast status`.

732. If you want the setting to persist, confirm the update when Codex offers to save it.

74 

75Expected: Codex reports whether Fast mode is on or off for the current thread. In the TUI footer, you can also show a Fast mode status-line item with `/statusline`.

76 

58### Set a communication style with `/personality`77### Set a communication style with `/personality`

59 78 

60Use `/personality` to change how Codex communicates without rewriting your prompt.79Use `/personality` to change how Codex communicates without rewriting your prompt.


621. In an active conversation, type `/personality` and press Enter.811. In an active conversation, type `/personality` and press Enter.

632. Choose a style from the popup.822. Choose a style from the popup.

64 83 

65Expected: Codex confirms the new style in the transcript and uses it for later responses in the thread.84Expected: Codex confirms the new style in the transcript and uses it for later

85responses in the thread.

66 86 

67Codex supports `friendly`, `pragmatic`, and `none` personalities. Use `none` to disable personality instructions.87Codex supports `friendly`, `pragmatic`, and `none` personalities. Use `none`

88to disable personality instructions.

68 89 

69If the active model doesn't support personality-specific instructions, Codex hides this command.90If the active model doesn't support personality-specific instructions, Codex hides this command.

70 91 

71### Switch to plan mode with `/plan`92### Switch to plan mode with `/plan`

72 93 

731. Type `/plan` and press Enter to switch the active conversation into plan mode.941. Type `/plan` and press Enter to switch the active conversation into plan

95 mode.

742. Optional: provide inline prompt text (for example, `/plan Propose a migration plan for this service`).962. Optional: provide inline prompt text (for example, `/plan Propose a migration plan for this service`).

753. You can paste content or attach images while using inline `/plan` arguments.973. You can paste content or attach images while using inline `/plan` arguments.

76 98 


81### Toggle experimental features with `/experimental`103### Toggle experimental features with `/experimental`

82 104 

831. Type `/experimental` and press Enter.1051. Type `/experimental` and press Enter.

842. Toggle the features you want (for example, **Multi-agents**), then restart Codex.1062. Toggle the features you want (for example, Apps or Smart Approvals), then restart Codex if the prompt asks you to.

85 107 

86Expected: Codex saves your feature choices to config and applies them on restart.108Expected: Codex saves your feature choices to config and applies them on restart.

87 109 

110### Clear the terminal and start a new chat with `/clear`

111 

1121. Type `/clear` and press Enter.

113 

114Expected: Codex clears the terminal, resets the visible transcript, and starts

115a fresh chat in the same CLI session.

116 

117Unlike <kbd>Ctrl</kbd>+<kbd>L</kbd>, `/clear` starts a new conversation.

118 

119<kbd>Ctrl</kbd>+<kbd>L</kbd> only clears the terminal view and keeps the current

120chat. Codex disables both actions while a task is in progress.

121 

88### Update permissions with `/permissions`122### Update permissions with `/permissions`

89 123 

901. Type `/permissions` and press Enter.1241. Type `/permissions` and press Enter.

912. Select the approval preset that matches your comfort level, for example `Auto` for hands-off runs or `Read Only` to review edits.1252. Select the approval preset that matches your comfort level, for example

126 `Auto` for hands-off runs or `Read Only` to review edits.

127 

128Expected: Codex announces the updated policy. Future actions respect the

129updated approval mode until you change it again.

130 

131### Copy the latest response with `/copy`

132 

1331. Type `/copy` and press Enter.

134 

135Expected: Codex copies the latest completed Codex output to your clipboard.

92 136 

93Expected: Codex announces the updated policy. Future actions respect the new approval mode until you change it again.137If a turn is still running, `/copy` uses the latest completed output instead of

138the in-progress response. The command is unavailable before the first completed

139Codex output and immediately after a rollback.

94 140 

95### Grant sandbox read access with `/sandbox-add-read-dir`141### Grant sandbox read access with `/sandbox-add-read-dir`

96 142 


991. Type `/sandbox-add-read-dir C:\absolute\directory\path` and press Enter.1451. Type `/sandbox-add-read-dir C:\absolute\directory\path` and press Enter.

1002. Confirm the path is an existing absolute directory.1462. Confirm the path is an existing absolute directory.

101 147 

102Expected: Codex refreshes the Windows sandbox policy and grants read access to that directory for later commands that run in the sandbox.148Expected: Codex refreshes the Windows sandbox policy and grants read access to

149that directory for later commands that run in the sandbox.

103 150 

104### Inspect the session with `/status`151### Inspect the session with `/status`

105 152 

1061. In any conversation, type `/status`.1531. In any conversation, type `/status`.

1072. Review the output for the active model, approval policy, writable roots, and current token usage.1542. Review the output for the active model, approval policy, writable roots, and current token usage.

108 155 

109Expected: You see a summary like what `codex status` prints in the shell, confirming Codex is operating where you expect.156Expected: You see a summary like what `codex status` prints in the shell,

157confirming Codex is operating where you expect.

110 158 

111### Inspect config layers with `/debug-config`159### Inspect config layers with `/debug-config`

112 160 

1131. Type `/debug-config`.1611. Type `/debug-config`.

1142. Review the output for config layer order (lowest precedence first), on/off state, and policy sources.1622. Review the output for config layer order (lowest precedence first), on/off

163 state, and policy sources.

115 164 

116Expected: Codex prints layer diagnostics plus policy details such as `allowed_approval_policies`, `allowed_sandbox_modes`, `mcp_servers`, `rules`, `enforce_residency`, and `experimental_network` when configured.165Expected: Codex prints layer diagnostics plus policy details such as

166`allowed_approval_policies`, `allowed_sandbox_modes`, `mcp_servers`, `rules`,

167`enforce_residency`, and `experimental_network` when configured.

117 168 

118Use this output to debug why an effective setting differs from `config.toml`.169Use this output to debug why an effective setting differs from `config.toml`.

119 170 


1221. Type `/statusline`.1731. Type `/statusline`.

1232. Use the picker to toggle and reorder items, then confirm.1742. Use the picker to toggle and reorder items, then confirm.

124 175 

125Expected: The footer status line updates immediately and persists to `tui.status_line` in `config.toml`.176Expected: The footer status line updates immediately and persists to

177`tui.status_line` in `config.toml`.

126 178 

127Available status-line items include model, model+reasoning, context stats, rate limits, git branch, token counters, session id, current directory/project root, and Codex version.179Available status-line items include model, model+reasoning, context stats, rate

180limits, git branch, token counters, session id, current directory/project root,

181and Codex version.

182 

183### Configure terminal title items with `/title`

184 

1851. Type `/title`.

1862. Use the picker to toggle and reorder items, then confirm.

187 

188Expected: The terminal window or tab title updates immediately and persists to

189`tui.terminal_title` in `config.toml`.

190 

191Available title items include app name, project, spinner, status, thread, git

192branch, model, and task progress.

128 193 

129### Check background terminals with `/ps`194### Check background terminals with `/ps`

130 195 

1311. Type `/ps`.1961. Type `/ps`.

1322. Review the list of background terminals and their status.1972. Review the list of background terminals and their status.

133 198 

134Expected: Codex shows each background terminals command plus up to three recent, non-empty output lines so you can gauge progress at a glance.199Expected: Codex shows each background terminal's command plus up to three

200recent, non-empty output lines so you can gauge progress at a glance.

135 201 

136Background terminals appear when `unified_exec` is in use; otherwise, the list may be empty.202Background terminals appear when `unified_exec` is in use; otherwise, the list may be empty.

137 203 

204### Stop background terminals with `/stop`

205 

2061. Type `/stop`.

2072. Confirm if Codex asks before stopping the listed terminals.

208 

209Expected: Codex stops all background terminals for the current session. `/clean`

210is still available as an alias for `/stop`.

211 

138### Keep transcripts lean with `/compact`212### Keep transcripts lean with `/compact`

139 213 

1401. After a long exchange, type `/compact`.2141. After a long exchange, type `/compact`.

1412. Confirm when Codex offers to summarize the conversation so far.2152. Confirm when Codex offers to summarize the conversation so far.

142 216 

143Expected: Codex replaces earlier turns with a concise summary, freeing context while keeping critical details.217Expected: Codex replaces earlier turns with a concise summary, freeing context

218while keeping critical details.

144 219 

145### Review changes with `/diff`220### Review changes with `/diff`

146 221 

1471. Type `/diff` to inspect the Git diff.2221. Type `/diff` to inspect the Git diff.

1482. Scroll through the output inside the CLI to review edits and added files.2232. Scroll through the output inside the CLI to review edits and added files.

149 224 

150Expected: Codex shows changes youve staged, changes you havent staged yet, and files Git hasn’t started tracking, so you can decide what to keep.225Expected: Codex shows changes you've staged, changes you haven't staged yet,

226and files Git hasn't started tracking, so you can decide what to keep.

151 227 

152### Highlight files with `/mention`228### Highlight files with `/mention`

153 229 


160 236 

1611. Type `/new` and press Enter.2371. Type `/new` and press Enter.

162 238 

163Expected: Codex starts a fresh conversation in the same CLI session, so you can switch tasks without leaving your terminal.239Expected: Codex starts a fresh conversation in the same CLI session, so you

240can switch tasks without leaving your terminal.

241 

242Unlike `/clear`, `/new` doesn't clear the current terminal view first.

164 243 

165### Resume a saved conversation with `/resume`244### Resume a saved conversation with `/resume`

166 245 

1671. Type `/resume` and press Enter.2461. Type `/resume` and press Enter.

1682. Choose the session you want from the saved-session picker.2472. Choose the session you want from the saved-session picker.

169 248 

170Expected: Codex reloads the selected conversations transcript so you can pick up where you left off, keeping the original history intact.249Expected: Codex reloads the selected conversation's transcript so you can pick

250up where you left off, keeping the original history intact.

171 251 

172### Fork the current conversation with `/fork`252### Fork the current conversation with `/fork`

173 253 

1741. Type `/fork` and press Enter.2541. Type `/fork` and press Enter.

175 255 

176Expected: Codex clones the current conversation into a new thread with a fresh ID, leaving the original transcript untouched so you can explore an alternative approach in parallel.256Expected: Codex clones the current conversation into a new thread with a fresh

257ID, leaving the original transcript untouched so you can explore an alternative

258approach in parallel.

177 259 

178If you need to fork a saved session instead of the current one, run `codex fork` in your terminal to open the session picker.260If you need to fork a saved session instead of the current one, run

261`codex fork` in your terminal to open the session picker.

179 262 

180### Generate `AGENTS.md` with `/init`263### Generate `AGENTS.md` with `/init`

181 264 

1821. Run `/init` in the directory where you want Codex to look for persistent instructions.2651. Run `/init` in the directory where you want Codex to look for persistent instructions.

1832. Review the generated `AGENTS.md`, then edit it to match your repository conventions.2662. Review the generated `AGENTS.md`, then edit it to match your repository conventions.

184 267 

185Expected: Codex creates an `AGENTS.md` scaffold you can refine and commit for future sessions.268Expected: Codex creates an `AGENTS.md` scaffold you can refine and commit for

269future sessions.

186 270 

187### Ask for a working tree review with `/review`271### Ask for a working tree review with `/review`

188 272 

1891. Type `/review`.2731. Type `/review`.

1902. Follow up with `/diff` if you want to inspect the exact file changes.2742. Follow up with `/diff` if you want to inspect the exact file changes.

191 275 

192Expected: Codex summarizes issues it finds in your working tree, focusing on behavior changes and missing tests. It uses the current session model unless you set `review_model` in `config.toml`.276Expected: Codex summarizes issues it finds in your working tree, focusing on

277behavior changes and missing tests. It uses the current session model unless

278you set `review_model` in `config.toml`.

193 279 

194### List MCP tools with `/mcp`280### List MCP tools with `/mcp`

195 281 


2031. Type `/apps`.2891. Type `/apps`.

2042. Pick an app from the list.2902. Pick an app from the list.

205 291 

206Expected: Codex inserts the app mention into the composer as `$app-slug`, so you can immediately ask Codex to use it.292Expected: Codex inserts the app mention into the composer as `$app-slug`, so

293you can immediately ask Codex to use it.

294 

295### Browse plugins with `/plugins`

296 

2971. Type `/plugins`.

2982. Pick a plugin from the list to inspect its capabilities or available actions.

299 

300Expected: Codex opens the plugin browser so you can review installed plugins and

301discoverable plugins that your configuration allows.

207 302 

208### Switch agent threads with `/agent`303### Switch agent threads with `/agent`

209 304 

2101. Type `/agent` and press Enter.3051. Type `/agent` and press Enter.

2112. Select the thread you want from the picker.3062. Select the thread you want from the picker.

212 307 

213Expected: Codex switches the active thread so you can inspect or continue that agent’s work.308Expected: Codex switches the active thread so you can inspect or continue that

309agent's work.

214 310 

215### Send feedback with `/feedback`311### Send feedback with `/feedback`

216 312 

2171. Type `/feedback` and press Enter.3131. Type `/feedback` and press Enter.

2182. Follow the prompts to include logs or diagnostics.3142. Follow the prompts to include logs or diagnostics.

219 315 

220Expected: Codex collects the requested diagnostics and submits them to the maintainers.316Expected: Codex collects the requested diagnostics and submits them to the

317maintainers.

221 318 

222### Sign out with `/logout`319### Sign out with `/logout`

223 320