Add /clear command to start a new chat AND clean up the terminal

Resolved 💬 6 comments Opened Sep 7, 2025 by sloikodavid Closed Feb 28, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

What feature would you like to see?

I know about /new, but I personally use 'clear' in the terminal all the time, and using /clear just seems more natural. Also, /new doesn't clear the terminal and it ends up being messy - I would like for a /clear command to be added either alongside or in place of /new, and to function like in Claude Code. Since I believe /resume is already being developed, using /clear should obviously save the conversation so that it can be /resume'd later

Also, using /new right now takes a while as there's some weird delay, I'd like to see that fixed for a better experience

Are you interested in implementing this feature?

_No response_

Additional information

_No response_

View original on GitHub ↗

6 Comments

LandonSchropp · 8 months ago

I'm trying out Codex CLI from Claude Code, and I keep accidentally typing /clear. 🙃

dwd898 · 7 months ago

Strongly requested

zsh2401 · 6 months ago

/clear is a better command.

lc0rp · 6 months ago

/clear landed in v0.105.0

Is that what you're looking for?

etraut-openai contributor · 6 months ago

Yes, /clear is now supported. It clears the terminal and creates a new thread. If you want to clear the terminal without creating a new thread, you can use Ctrl+L.

oliverw · 1 month ago

Wait but not in Codex for VSCode?