slash commands / reference

COMMAND REFERENCE

Slash commands for every AI coding tool — Claude Code, Cursor, Codex CLI, Gemini CLI, and OpenCode. Find the right command for your workflow. 10 commands indexed.

commands
10
tools
6

/clear

utility

Antigravity CLI

Clear the active terminal viewport and reset the screen buffer. Alias: /new.

uiclearscreen
view command →

/fork

session-management

Antigravity CLI

Fork the current conversation thread into a new session, keeping original history intact. Alias: /branch.

forksessionbranch
view command →

/clear

session-management

Claude Code

Start a new conversation with empty context. The previous conversation stays available in /resume. Optionally name the previous conversation.

clearnew-sessioncontext-reset
view command →

/model

configuration

Claude Code

Switch the AI model and save it as your default for new sessions. Adjust effort level with left/right arrows on models that support it.

modelconfigurationeffortspeed
view command →

/fork

session-management

Codex CLI

Fork the current conversation into a new thread with a fresh ID, leaving the original transcript untouched for parallel exploration.

forkbranchparallelexploration
view command →

/new

session-management

Codex CLI

Start a new conversation inside the same CLI session without clearing the terminal view.

newsessioncontext-reset
view command →

/new-chat

session-management

Cursor CLI

Start a new chat session with empty context.

new-sessioncontext-resetchat
view command →

/rules

setup

Cursor CLI

Create new rules or edit existing rules in .cursor/rules (.mdc files) for persistent project guidance.

rulesconventionsproject-configcursor-rules
view command →

/connect

configuration

OpenCode

Add a provider and API key to connect a new AI model provider.

providerscredentialsconfigurationapi-key
view command →

/new

session-management

OpenCode

Start a new session. Aliases: /clear. Keybind: Ctrl+x n.

newsessionclearcontext-reset
view command →