Cmd. /raw
Toggle raw scrollback mode for easier terminal selection and copying.
Key takeaways
/rawtoggles raw scrollback mode so terminal output can be selected and copied without formatting changes.- Use it to grab build logs or error traces verbatim before pasting into an issue.
- It does not clear or compact the conversation; it only changes selection behavior.
- Choose
/rawfor exact terminal output,/copyfor the last response, and/difffor file changes.
Original Command Declaration
/rawOfficial Summary
/raw toggles raw scrollback mode so terminal output is easier to select and copy without extra formatting.
Usage
/rawGood Examples
- Copy a long build or test log exactly as it appeared.
- Paste an error trace into an issue without markdown rendering changes.
Similar Commands
| Command | Difference | Choose It When |
|---|---|---|
/raw | Changes scrollback selection behavior | You need exact terminal output |
/copy | Copies the latest Codex response | You only need the last assistant output |
/diff | Shows Git diff | You are reviewing file changes |
Use Cases
- Sharing CI failure logs.
- Reviewing long rendered output in a more copy-friendly mode.
Cautions
/rawdoes not clear or compact the conversation.- Document the default with team keybindings if terminal behavior changes are confusing.
Release Basis
- Judgment: official docs listing
- First evidence version: official slash commands documentation
- Date (UTC): verified 2026-05-21
- Release link: https://developers.openai.com/codex/cli/slash-commands
Sources
- Codex slash commands: https://developers.openai.com/codex/cli/slash-commands
- Codex CLI features: https://developers.openai.com/codex/cli/features