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

commands
12
tools
5

/memory

setup

Claude Code

Edit CLAUDE.md memory files, enable or disable auto-memory, and view auto-memory entries.

memoryclaude.mdproject-configauto-memory
view command →

/diff

code-review

Codex CLI

Show the Git diff including files Git isn't tracking yet. Review Codex's edits before committing or running tests.

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

/permissions

configuration

Codex CLI

Set what Codex can do without asking first — switch between Auto, Read Only, or custom permission profiles mid-session.

permissionssecurityautoapproval
view command →

/ask

exploration

Cursor CLI

Switch to Ask mode for read-only exploration — the agent searches and answers questions without editing any files.

ask-moderead-onlyexplorationsafe
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 →

/memory refresh

setup

Gemini CLI

Reload memory from global, project, and subdirectory GEMINI.md files without restarting.

memorygemini.mdrefresh
view command →

/memory show

setup

Gemini CLI

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

memorygemini.mdcontextdebug
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 →

/redo

session-management

OpenCode

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

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