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.
/memory
setup
Edit CLAUDE.md memory files, enable or disable auto-memory, and view auto-memory entries.
/diff
code-review
Show the Git diff including files Git isn't tracking yet. Review Codex's edits before committing or running tests.
/ide
context-management
Include open files, current selection, and other IDE context in the next prompt without re-explaining what's open.
/mention
context-management
Attach a file or folder to the conversation via popup picker so Codex references it directly in the next turn.
/permissions
configuration
Set what Codex can do without asking first — switch between Auto, Read Only, or custom permission profiles mid-session.
/ask
exploration
Switch to Ask mode for read-only exploration — the agent searches and answers questions without editing any files.
/rules
setup
Create new rules or edit existing rules in .cursor/rules (.mdc files) for persistent project guidance.
/memory refresh
setup
Reload memory from global, project, and subdirectory GEMINI.md files without restarting.
/memory show
setup
Display the concatenated hierarchical memory from all active GEMINI.md files.
/restore
session-management
Revert files to their pre-tool state using checkpointing. Pass a tool_call_id to restore a specific checkpoint.
/redo
session-management
Restore a previously undone message and file changes. Git-backed. Keybind: Ctrl+x r.
/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.