SpyBara
Go Premium Account
2026
19 Feb 2026, 20:37
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
23 Mar 2026, 18:22
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
Tue 3 00:35 Tue 3 18:20 Wed 4 06:20 Wed 4 18:18 Thu 5 00:34 Thu 5 06:22 Thu 5 18:41 Fri 6 00:38 Sat 7 00:33 Sat 7 06:14 Sat 7 18:10 Sun 8 00:35 Sun 8 18:10 Mon 9 00:34 Wed 11 00:31 Fri 13 00:34 Fri 13 18:15 Sat 14 00:32 Mon 16 12:23 Mon 16 18:25 Tue 17 00:33 Tue 17 18:24 Wed 18 00:36 Wed 18 12:23 Fri 20 00:35 Mon 23 18:22 Wed 25 18:24 Thu 26 18:27 Fri 27 00:39 Fri 27 18:23 Sat 28 00:36 Sat 28 06:26 Tue 31 00:39 Tue 31 06:35
Details

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

2 2 

3Control Codex during interactive sessions3Slash commands give you fast, keyboard-first control over Codex. Type `/` in

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

5Slash 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.5actions such as switching models, adjusting permissions, or summarizing long

6conversations without leaving the terminal.

6 7 

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

8 9 

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

10- 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`

11 13 

12## Built-in slash commands14## Built-in slash commands

13 15 

14Codex 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.

15 18 

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

17| ------------------------------------------------------------------------------- | --------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |20| ------------------------------------------------------------------------------- | --------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |

18| [`/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. |

19| [`/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. |

20| [`/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. |

21| [`/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| [`/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 clean slate. |

22| [`/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. |26| [`/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| [`/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. |

23| [`/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. |28| [`/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. |

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

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

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

27| [`/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. |32| [`/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. |

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

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

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

31| [`/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. |36| [`/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| [`/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. |

32| [`/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. |38| [`/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. |

33| [`/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. |39| [`/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. |

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


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

42| [`/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. |48| [`/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. |

43 49 

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

51committed any important work.

45 52 

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

47 54 


57 64 

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

59 66 

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

68 

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

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

71 

72Expected: 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`.

73 

60### Set a communication style with `/personality`74### Set a communication style with `/personality`

61 75 

62Use `/personality` to change how Codex communicates without rewriting your prompt.76Use `/personality` to change how Codex communicates without rewriting your prompt.


641. In an active conversation, type `/personality` and press Enter.781. In an active conversation, type `/personality` and press Enter.

652. Choose a style from the popup.792. Choose a style from the popup.

66 80 

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

82responses in the thread.

68 83 

69Codex supports `friendly`, `pragmatic`, and `none` personalities. Use `none` to disable personality instructions.84Codex supports `friendly`, `pragmatic`, and `none` personalities. Use `none`

85to disable personality instructions.

70 86 

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

72 88 

73### Switch to plan mode with `/plan`89### Switch to plan mode with `/plan`

74 90 

751. Type `/plan` and press Enter to switch the active conversation into plan mode.911. Type `/plan` and press Enter to switch the active conversation into plan

92 mode.

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

773. You can paste content or attach images while using inline `/plan` arguments.943. You can paste content or attach images while using inline `/plan` arguments.

78 95 


83### Toggle experimental features with `/experimental`100### Toggle experimental features with `/experimental`

84 101 

851. Type `/experimental` and press Enter.1021. Type `/experimental` and press Enter.

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

87 104 

88Expected: Codex saves your feature choices to config and applies them on restart.105Expected: Codex saves your feature choices to config and applies them on restart.

89 106 

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

108 

1091. Type `/clear` and press Enter.

110 

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

112a fresh chat in the same CLI session.

113 

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

115 

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

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

118 

90### Update permissions with `/permissions`119### Update permissions with `/permissions`

91 120 

921. Type `/permissions` and press Enter.1211. Type `/permissions` and press Enter.

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

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

124 

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

126updated approval mode until you change it again.

127 

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

129 

1301. Type `/copy` and press Enter.

94 131 

95Expected: Codex announces the updated policy. Future actions respect the new approval mode until you change it again.132Expected: Codex copies the latest completed Codex output to your clipboard.

133 

134If a turn is still running, `/copy` uses the latest completed output instead of

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

136Codex output and immediately after a rollback.

96 137 

97### Grant sandbox read access with `/sandbox-add-read-dir`138### Grant sandbox read access with `/sandbox-add-read-dir`

98 139 


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

1022. Confirm the path is an existing absolute directory.1432. Confirm the path is an existing absolute directory.

103 144 

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

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

105 147 

106### Inspect the session with `/status`148### Inspect the session with `/status`

107 149 

1081. In any conversation, type `/status`.1501. In any conversation, type `/status`.

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

110 152 

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

154confirming Codex is operating where you expect.

112 155 

113### Inspect config layers with `/debug-config`156### Inspect config layers with `/debug-config`

114 157 

1151. Type `/debug-config`.1581. Type `/debug-config`.

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

160 state, and policy sources.

117 161 

118Expected: 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.162Expected: Codex prints layer diagnostics plus policy details such as

163`allowed_approval_policies`, `allowed_sandbox_modes`, `mcp_servers`, `rules`,

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

119 165 

120Use this output to debug why an effective setting differs from `config.toml`.166Use this output to debug why an effective setting differs from `config.toml`.

121 167 


1241. Type `/statusline`.1701. Type `/statusline`.

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

126 172 

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

174`tui.status_line` in `config.toml`.

128 175 

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

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

178and Codex version.

130 179 

131### Check background terminals with `/ps`180### Check background terminals with `/ps`

132 181 

1331. Type `/ps`.1821. Type `/ps`.

1342. Review the list of background terminals and their status.1832. Review the list of background terminals and their status.

135 184 

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

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

137 187 

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

139 189 


1421. After a long exchange, type `/compact`.1921. After a long exchange, type `/compact`.

1432. Confirm when Codex offers to summarize the conversation so far.1932. Confirm when Codex offers to summarize the conversation so far.

144 194 

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

196while keeping critical details.

146 197 

147### Review changes with `/diff`198### Review changes with `/diff`

148 199 

1491. Type `/diff` to inspect the Git diff.2001. Type `/diff` to inspect the Git diff.

1502. Scroll through the output inside the CLI to review edits and added files.2012. Scroll through the output inside the CLI to review edits and added files.

151 202 

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

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

153 205 

154### Highlight files with `/mention`206### Highlight files with `/mention`

155 207 


162 214 

1631. Type `/new` and press Enter.2151. Type `/new` and press Enter.

164 216 

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

218can switch tasks without leaving your terminal.

219 

220Unlike `/clear`, `/new` does not clear the current terminal view first.

166 221 

167### Resume a saved conversation with `/resume`222### Resume a saved conversation with `/resume`

168 223 

1691. Type `/resume` and press Enter.2241. Type `/resume` and press Enter.

1702. Choose the session you want from the saved-session picker.2252. Choose the session you want from the saved-session picker.

171 226 

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

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

173 229 

174### Fork the current conversation with `/fork`230### Fork the current conversation with `/fork`

175 231 

1761. Type `/fork` and press Enter.2321. Type `/fork` and press Enter.

177 233 

178Expected: 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.234Expected: Codex clones the current conversation into a new thread with a fresh

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

236approach in parallel.

179 237 

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

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

181 240 

182### Generate `AGENTS.md` with `/init`241### Generate `AGENTS.md` with `/init`

183 242 

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

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

186 245 

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

247future sessions.

188 248 

189### Ask for a working tree review with `/review`249### Ask for a working tree review with `/review`

190 250 

1911. Type `/review`.2511. Type `/review`.

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

193 253 

194Expected: 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`.254Expected: Codex summarizes issues it finds in your working tree, focusing on

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

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

195 257 

196### List MCP tools with `/mcp`258### List MCP tools with `/mcp`

197 259 


2051. Type `/apps`.2671. Type `/apps`.

2062. Pick an app from the list.2682. Pick an app from the list.

207 269 

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

271you can immediately ask Codex to use it.

209 272 

210### Switch agent threads with `/agent`273### Switch agent threads with `/agent`

211 274 

2121. Type `/agent` and press Enter.2751. Type `/agent` and press Enter.

2132. Select the thread you want from the picker.2762. Select the thread you want from the picker.

214 277 

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

279agent's work.

216 280 

217### Send feedback with `/feedback`281### Send feedback with `/feedback`

218 282 

2191. Type `/feedback` and press Enter.2831. Type `/feedback` and press Enter.

2202. Follow the prompts to include logs or diagnostics.2842. Follow the prompts to include logs or diagnostics.

221 285 

222Expected: Codex collects the requested diagnostics and submits them to the maintainers.286Expected: Codex collects the requested diagnostics and submits them to the

287maintainers.

223 288 

224### Sign out with `/logout`289### Sign out with `/logout`

225 290 


2321. Type `/quit` (or `/exit`) and press Enter.2971. Type `/quit` (or `/exit`) and press Enter.

233 298 

234Expected: Codex exits immediately. Save or commit any important work first.299Expected: Codex exits immediately. Save or commit any important work first.

235 

236[Previous

237 

238Command Line Options](https://developers.openai.com/codex/cli/reference)