Slash Commands
Commands that start with / control Grok (not a normal chat question). Learn how to run them, then browse the list.
Checked against Grok Build 0.2.112 (official user guide + installed grok). If your version differs, trust in-app /docs and /release-notes.
What a slash command is
A slash command starts with /. It controls Grok (new session, settings, plan mode). It is not a normal question to the AI. Example: /new starts a blank chat. “What is a function?” without / is a normal prompt.
Why slash? You stay on the keyboard: settings, compact history, switch models, and more. Type / for the menu, or use /help.
Not a slash command: grok --yolo is a command-line flag for always-approve. There is no /yolo. In the screen use /always-approve or Ctrl+O.
How to run one (step by step)
- Click the bottom prompt (or Tab until you can type there).
- Type
/. A list appears. - Keep typing part of the name to filter (example:
/compfinds compact). - Use ↑/↓ to highlight, then Enter to run. Or finish typing the full command and Enter.
- If a command needs extra words, type them after a space:
/rename my cool session.
A menu with command names and short descriptions. Some commands open a second screen (settings, session picker). Others run immediately and print a result in the history.
Session — manage this conversation
A session is the saved chat you are in right now (history + tool results).
/new
What it does: Throws away the current conversation view and starts fresh (still in the same project folder). When to use: Topic change, or the chat got confusing.
/resume
What it does: Opens a list of older sessions so you can reopen one. When to use: “I worked on inventory yesterday—bring that chat back.”
/compact [note]
What it does: Summarizes older history so Grok has room to think (frees the context window). Optional note tells it what to keep: /compact keep the save-file format decisions. When to use: Long sessions that feel forgetful or hit limits.
/context
What it does: Shows a breakdown of what is filling Grok’s memory for this chat (system text, messages, tools, free space). When to use: Before a huge task, to see if you should compact first.
/session-info
Shows which model you are on, how you signed in, how many turns you have taken, and other session stats (including usage when available).
/fork
Starts a side chat from this point, keeping history so far, so you can try a risky idea without spoiling the original thread. Optional flags in the install: /fork [--worktree|--no-worktree] [directive].
/rewind
Steps backward to an earlier point in the chat and discards what came after (including related file snapshots when available). Use carefully—it is real undo for the session timeline. (Double-Esc on an empty idle prompt can open the same rewind picker.)
/rename
Gives the session a human name: /rename inventory-ui. Helps when resuming later.
/copy
Copies Grok’s latest answer to the clipboard. Options: /copy 2 (Nth-latest), or a file path to write text (handy over SSH). Also backs up to ~/.grok/last-copy.txt (or GROK_COPY_FILE).
/export
Saves or copies the whole conversation.
/find [text]
Search the conversation history (the messages above the typing box) for text.
/jump
Jump to a turn in the conversation (navigate the transcript by turn).
/recap
Summarize the session so far (handy before compact or handoff).
/share
Share this session via URL when sharing is available for your account/build. If disabled, Grok will say so.
/quit
Leaves Grok and returns you to the normal terminal.
/home
Leaves the session and returns to the welcome screen (there is no default key binding for this—slash only).
/edit-prompt
In minimal mode only, opens your external editor for a new empty draft ($VISUAL then $EDITOR then vi). Hidden outside minimal mode. To edit an existing draft when a terminal steals Ctrl+G, use the command palette → Edit Prompt in External Editor.
Model & working mode
/model
Switches which AI model powers answers (different models have different strengths/cost). Example: /model grok-build.
/effort
For models that support it, sets how hard the model “thinks” (low → xhigh). Higher can be slower/more thorough.
/always-approve
Turns on “skip most permission popups” (sometimes nicknamed YOLO). Run it again to go back to Ask. Leave off while learning. Keyboard: Ctrl+O. CLI flags (not slash): --always-approve or --yolo.
/auto
Lets Grok auto-allow safer tools; riskier work may still ask you. Only appears when the auto permission-mode feature is enabled on your build. If it is missing from the menu, stay on Ask.
/plan
Enters plan mode: Grok designs an approach for your approval before editing product code. Optional text: /plan add user login. You can also cycle into Plan with Shift+Tab (Normal → Plan → Always-approve).
/view-plan
Open a preview of the current saved plan.
/multiline
When on, Enter inserts a newline; send with Shift+Enter or Alt+Enter. Mid-turn, bare Enter on an empty composer can still force-send the top queued follow-up.
/history
Open prompt-history search (fuzzy over prompts you sent this session). On an empty prompt, ↑ is the quick path to the last prompt.
/vim-mode
Toggle optional Vim-style keys for moving in history (j/k, and more). Off by default; beginners can ignore. Setting saves to [ui] vim_mode.
/minimal · /fullscreen
Switch how this session looks: fullscreen is the usual full Grok screen; minimal is an experimental layout that uses more of your terminal’s normal scrollback. Does not rewrite config—use /settings → Default screen mode for permanent defaults.
/compact-mode
Tighter visual spacing (display density), not the same as /compact history compression.
Memory (optional long-term notes)
Memory is an experimental feature that can remember facts across sessions. It is off by default. Enabling is covered in Sessions & Memory.
/remember
Always available: save one note right now (“staging server is eu-west”).
/memory
Browse or toggle memory when enabled.
/flush · /dream
Write session knowledge into memory / reorganize memories. Need memory enabled.
Extensions — skills, plugins, agents, MCP
These open management UIs. You will understand each concept in later lessons; commands are listed here so the encyclopedia is complete.
/skills · /plugins · /marketplace · /hooks
Same extensions window, different tabs: reusable recipes, installable bundles, store browsing, lifecycle scripts.
/mcps
Manage MCP servers (bridges to other apps/tools).
/config-agents
Open the agents modal: view/manage agent definitions, set the default, switch the active one.
/personas
Create, edit, and delete personas (overlays a subagent can apply).
Media
/imagine
Generate an image from a text description.
/imagine-video
Generate a short video from a description (multi-step under the hood).
Automation & multi-session
/loop
Run a prompt on a recurring interval (30m, 1 hour, …). Minimum interval is 60 seconds. Recurring tasks expire after 7 days.
/goal
Set/manage an autonomous goal that only completes after independent evidence review. Subcommands: status, pause, resume, clear. Only appears when goal mode is enabled for the session—if missing, use normal prompts or workflows instead.
/deep-research
Start a structured research workflow with sources and verification; follow progress in /workflows.
/workflow · /workflows
/workflow launches or manages a saved multi-agent script by display name. /workflows is the live run dashboard (not a catalog of definitions). Project scripts: .grok/workflows/*.rhai; user: ~/.grok/workflows/*.rhai.
/dashboard
Fullscreen overview of running sessions (multi-session)—switch between, rename, or close active sessions (parent + forks). Alias /sessions is the same command (official sessions guide + install menu). Also try the command palette or any dashboard chord your build advertises in-app.
/tasks
List background tasks, subagents, and scheduled tasks. Full TUI: Ctrl+G toggles the tasks pane (in minimal mode, Ctrl+G may mean external-edit draft instead—use this slash or the palette if the chord conflicts).
/queue
List prompts queued behind the running turn. Mid-turn, plain Enter with text queues follow-ups; empty Enter / send-now chords can promote the top item.
Help, account, appearance
/help
Browse commands and keyboard shortcuts (built-in help entry from the install menu).
/docs
How-to guides picker, online Build docs (/docs web), or a guide by title (/docs Getting Started).
/tutorial
Official onboarding topics inside Grok (~30s each). Nothing auto-shows—you open this on purpose.
/doctor
Diagnose terminal/clipboard/color/input/sandbox issues; /doctor fix lists automatic fixes.
/theme
Switch the TUI color theme.
/settings
Interactive settings modal.
/timestamps
Toggle message timestamps on or off.
/btw
Ask a side question without interrupting the main task (answer is not part of the main turn).
/login · /logout
Authenticate or sign out without leaving the app shell awkwardly.
/usage
Credit usage / billing: bare /usage or /usage manage.
/privacy
Show or toggle privacy / data-retention status (opt-in / opt-out). Team rules may restrict who can toggle.
/feedback
Report an issue or send feedback.
/import-claude
Import settings from Claude Code (~/.claude): permissions, env, MCP, hooks, paths.
/release-notes
What changed in this Grok version.
/debug [scroll|fps|log]
Toggle debug overlays (scroll diagnostics HUD, FPS, scroll flight recorder). For advanced troubleshooting—not everyday work.
/voice
Start voice dictation when speech features are available (also Ctrl+Space / F8 when enabled in settings). Skip if you do not use voice.
/toggle-mouse-reporting
Toggle terminal mouse reporting when selection/scroll fights your terminal. Advanced; see /doctor if mouse feels wrong.
/announcements
Show or hide product announcement banners: /announcements hide or /announcements show.
/transcript
View the full conversation transcript in your system pager ($PAGER). Useful after a long session when you want the raw thread outside the TUI chrome.
/expand
Re-print the last collapsed block, fully expanded. Minimal mode only (--minimal / /minimal); the install rejects it outside minimal mode.
If you (or a plugin) install a skill marked user-invocable: true, it appears as /skill-name. Built-in commands always win if names clash; use /user:name or /local:name to be specific.
Grok Build is Beta. Features gate by config/build (memory, auto mode, goals, sharing). When something is missing from your menu, that is usually expected—check /docs, /release-notes, and ~/.grok/docs/user-guide/ for your version. Academy inventory source: data/slash-commands-inventory.json.
In a throwaway session run: /rename practice-commands, then /help, /session-info, and /context. Optional curiosity: type /gboom once if you have a graphics-capable terminal—then close it and get back to real work. No need for always-approve or destructive tools.