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

commands
11
tools
5

/btw

context-management

Claude Code

Ask a quick side question without adding it to the main conversation history.

side-questioncontextquick
view command →

/compact

context-management

Claude Code

Free up context by summarizing the conversation so far. Optionally pass focus instructions for the summary.

contextmemorysummarizetokens
view command →

/context

context-management

Claude Code

Visualize current context usage as a colored grid. Shows optimization suggestions for context-heavy tools and capacity warnings.

contexttokensusagediagnostics
view command →

/compact

context-management

Codex CLI

Summarize the visible conversation to free tokens. Use after long runs so Codex retains key points without blowing the context window.

contextsummarizetokenscompact
view command →

/ide

context-management

Codex CLI

Include open files, current selection, and other IDE context in the next prompt without re-explaining what's open.

ideeditorcontextfiles
view command →

/mention

context-management

Codex CLI

Attach a file or folder to the conversation via popup picker so Codex references it directly in the next turn.

fileattachcontextpath
view command →

/side

context-management

Codex CLI

Start an ephemeral side conversation for a focused detour — the parent thread keeps running and its status stays visible.

sideephemeraldetourquick
view command →

/compress

context-management

Cursor CLI

Summarize conversation to free context window space while keeping a high-level record of what happened.

contextcompresssummarizetokens
view command →

/compress

context-management

Gemini CLI

Replace the current chat context with a summary to save tokens and free up context window space.

contextsummarizetokenscompress
view command →

/compact

context-management

OpenCode

Summarize the current session to save tokens. Alias: /summarize.

contextsummarizetokens
view command →

/editor

context-management

OpenCode

Open the external $EDITOR for composing messages — useful for long or structured prompts. Keybind: Ctrl+x e.

editorinputcompose
view command →