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

commands
17
tools
5

/btw

context-management

Claude Code

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

side-questioncontextquick
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 →

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

/skills

configuration

Claude Code

List available skills and manage which are shown to Claude. Press t to sort by token count, Space to hide a skill.

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

/mcp

integrations

Codex CLI

List configured Model Context Protocol (MCP) tools. Pass 'verbose' for server diagnostics.

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

/skills

configuration

Codex CLI

Browse and use local skills to improve task-specific behavior by loading relevant skill context.

skillscontexttask-specific
view command →

/status

diagnostics

Codex CLI

Display session configuration and token usage — active model, approval policy, writable roots, and context capacity.

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

/new-chat

session-management

Cursor CLI

Start a new chat session with empty context.

new-sessioncontext-resetchat
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 →

/memory show

setup

Gemini CLI

Display the concatenated hierarchical memory from all active GEMINI.md files.

memorygemini.mdcontextdebug
view command →

/skills

configuration

Gemini CLI

Manage agent skills — list, enable, disable, or reload.

skillscontextconfiguration
view command →

/compact

context-management

OpenCode

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

contextsummarizetokens
view command →