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. 21 commands indexed.

commands
21
tools
5

/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 →

/resume

session-management

Claude Code

Resume a previous conversation by ID or name, or open the session picker.

resumesessionshistory
view command →

/rewind

session-management

Claude Code

Rewind the conversation and/or code to a previous checkpoint, or summarize from a selected message.

undocheckpointrevertrollback
view command →

/archive

session-management

Codex CLI

Archive the current session and exit. Removes it from active session lists; transcript kept locally. Restore with 'codex unarchive <SESSION>'.

archivesessioncleanup
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 →

/resume

session-management

Codex CLI

Resume a saved conversation from your session list. Continue work from a previous CLI session without starting over.

resumesessionshistory
view command →

/new-chat

session-management

Cursor CLI

Start a new chat session with empty context.

new-sessioncontext-resetchat
view command →

/quit

session-management

Cursor CLI

Exit the Cursor CLI.

exitquit
view command →

/resume

session-management

Cursor CLI

Resume a previous chat session by folder name.

resumesessionshistory
view command →

/clear

session-management

Gemini CLI

Clear the terminal screen and visible history (same as Ctrl+L).

clearterminalvisual
view command →

/restore

session-management

Gemini CLI

Revert files to their pre-tool state using checkpointing. Pass a tool_call_id to restore a specific checkpoint.

restoreundocheckpointrevert
view command →

/resume

session-management

Gemini CLI

Browse auto-saved sessions and manage manual checkpoints. Conversations are auto-saved; use tags for manual checkpoints.

resumesessionscheckpointshistory
view command →

/rewind

session-management

Gemini CLI

Navigate backward through history; revert chat and/or code to a prior state (also Esc Esc).

rewindundohistoryrollback
view command →

/exit

session-management

OpenCode

Exit OpenCode. Aliases: /quit, /q. Keybind: Ctrl+x q.

exitquit
view command →

/export

session-management

OpenCode

Export the current conversation to Markdown and open in $EDITOR. Keybind: Ctrl+x x.

exportmarkdowndocumentation
view command →

/new

session-management

OpenCode

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

newsessionclearcontext-reset
view command →

/redo

session-management

OpenCode

Restore a previously undone message and file changes. Git-backed. Keybind: Ctrl+x r.

redorestoregit
view command →

/sessions

session-management

OpenCode

List and switch sessions. Aliases: /resume, /continue. Keybind: Ctrl+x l.

sessionsresumehistory
view command →

/share

session-management

OpenCode

Share the current session publicly.

sharecollaborationpublic
view command →

/undo

session-management

OpenCode

Remove the last message and its responses, and revert any file changes made. Git-backed — requires a git repository. Keybind: Ctrl+x u.

undorevertgitrollback
view command →