The Practice Room / Terminal AI Agents / Episode 2
Slash commands in Claude Code, Codex and Antigravity
Three rival companies, one keystroke. Type a single forward slash in Claude Code, Codex or Antigravity and a list opens. Four of those commands turn up in all three tools, and one of them decides how much the AI may do without stopping to ask you first.
Claude Code belongs to Anthropic. Codex belongs to OpenAI. Antigravity belongs to Google. They compete with each other, and all three of them run in the same black window on your computer.
In any one of them, you type a single forward slash and a list opens up. This page is the written version of the walkthrough, with what is in each list and what the shared ones actually do.
What the list is
The list is the things the tool can do that are not a question. Everything else you type is a request about your work. A slash command is an instruction about the tool itself.
Put another way, it is not what you are asking it to build. It is what you are asking it to be.
The four that turn up everywhere
These four appear in all three tools, which is worth knowing because learning one of them means you have learned it for whichever tool you open next.
- /clear empties the conversation and lets you begin again without closing anything. The session stays open and the history goes.
- /model changes which AI is answering you. Each tool has more than one, and they differ in speed and in cost.
- /compact squeezes a long conversation down so it keeps going instead of running out of room. The session has a ceiling on how much it can hold at once; this summarises what came before so you are not forced to start over.
- /permissions decides how much it is allowed to do without stopping to ask you first.
Three rival companies landed on the same four, which tells you something about which ones actually matter.
Checked against the installed tools rather than their documentation pages, because a reference page is a partial list: Antigravity's own help text describes /compact as summarising the conversation and ending the turn, so it is in all three.
The one I use most
Permissions is the one I reach for, and it is worth setting on purpose rather than clicking through.
When I start Codex it stops and asks me to approve every single step. For a long job that is forty interruptions, and I am not sitting there pressing yes over and over. So I type permissions and pick a level of trust that lets it get on with the work inside the folder I pointed it at.
That is a decision about how much rope you are giving it. A wider setting is faster and lets it do more between check-ins. A narrower one is slower and keeps you in the loop on each step. Neither is the right answer everywhere, which is exactly why the setting exists.
The lists are not identical
Past those four, each tool has its own. Claude Code has one for rewinding to an earlier checkpoint. Codex has one that runs a code review. Antigravity tells you plainly that there are dozens more underneath the few it shows you first.
So the habit to build is not memorising a list. It is typing the slash and reading what that particular tool offers, because the shape is the same even where the contents are not.
You can add your own
The last thing is that in Claude Code the list is not fixed.
A slash command is just a text file sitting in a folder. Whatever you name the file becomes the command, and whatever you write inside it is what the command does. There is nothing to install and nothing to configure.
I have thirty seven of my own in there now. The one I use most is the one that gets it back up to speed on whatever we were working on last time, so I do not spend the first ten minutes of every session explaining the project again.
What she says in the film
Type one forward slash in any AI terminal and a list opens.
Four of the things on that list are the same in all of them, whoever made it.
Claude Code comes from Anthropic. Codex comes from OpenAI. A G Y comes from Google.
They compete with each other, and they all run in the same black window on your computer.
That list is the things it can do that are not a question. Not what you are asking it to build, but what you are asking it to be.
Clear empties the conversation so you can start again without closing anything.
Model changes which AI is answering you, because each of them has more than one.
Compact squeezes a long conversation down so it keeps going instead of running out of room.
And permissions decides how much it is allowed to do without stopping to ask you first.
Permissions is the one worth setting on purpose. Left alone, some of them stop and ask you to approve every single step.
Type it and you get a few levels of trust. Pick the one that lets it work inside the folder you pointed it at.
That is a decision about how much rope you are handing it, and it is better made than clicked through.
Learn those four once and you have learned them for whichever one you open next.
Subscribe.
No permission required.
Book a session and we do it together on a call.
Book an hourAsk what did not make sense
Comments go through our own form and are read before they appear. Links are not allowed; describe it in words.
More from Terminal AI Agents.

What are slash commands in Claude Code and Codex
Claude Code and Codex both take commands that start with a slash. They are not questions for the AI. They are…

The setting that costs you 3.5x
A word beside the model name decides what every message spends. On Max, Claude's own warning is three and a ha…

Auto, manual, accept edits or plan
Four permission modes, and they are one question: how much changes before you look at it. Set per session, so…
Words used in this piece.

Claude Code vs Cursor vs Codex: which one for a non-coder?
Claude Code and Codex are agents that run in a terminal and work on the files in a folder; Cursor is a code ed…

What is vibe coding?
Vibe coding is building software by describing what you want in plain language to an AI coding tool and accept…
Get the next walkthrough.
One email when something goes up. The argument, the film and the term, nothing else. One click to leave.
Have a question now? Ask Mstimaj, she knows the archive.