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.
/clear
session-management
Start a new conversation with empty context. The previous conversation stays available in /resume. Optionally name the previous conversation.
/resume
session-management
Resume a previous conversation by ID or name, or open the session picker.
/rewind
session-management
Rewind the conversation and/or code to a previous checkpoint, or summarize from a selected message.
/archive
session-management
Archive the current session and exit. Removes it from active session lists; transcript kept locally. Restore with 'codex unarchive <SESSION>'.
/fork
session-management
Fork the current conversation into a new thread with a fresh ID, leaving the original transcript untouched for parallel exploration.
/new
session-management
Start a new conversation inside the same CLI session without clearing the terminal view.
/resume
session-management
Resume a saved conversation from your session list. Continue work from a previous CLI session without starting over.
/new-chat
session-management
Start a new chat session with empty context.
/quit
session-management
Exit the Cursor CLI.
/resume
session-management
Resume a previous chat session by folder name.
/clear
session-management
Clear the terminal screen and visible history (same as Ctrl+L).
/restore
session-management
Revert files to their pre-tool state using checkpointing. Pass a tool_call_id to restore a specific checkpoint.
/resume
session-management
Browse auto-saved sessions and manage manual checkpoints. Conversations are auto-saved; use tags for manual checkpoints.
/rewind
session-management
Navigate backward through history; revert chat and/or code to a prior state (also Esc Esc).
/exit
session-management
Exit OpenCode. Aliases: /quit, /q. Keybind: Ctrl+x q.
/export
session-management
Export the current conversation to Markdown and open in $EDITOR. Keybind: Ctrl+x x.
/new
session-management
Start a new session. Aliases: /clear. Keybind: Ctrl+x n.
/redo
session-management
Restore a previously undone message and file changes. Git-backed. Keybind: Ctrl+x r.
/sessions
session-management
List and switch sessions. Aliases: /resume, /continue. Keybind: Ctrl+x l.
/share
session-management
Share the current session publicly.
/undo
session-management
Remove the last message and its responses, and revert any file changes made. Git-backed — requires a git repository. Keybind: Ctrl+x u.