Slash Command Reference

This page lists the public slash-command surface in the TUI. It documents the canonical command names only.

Notes:

  • aliases such as /artifact, /settings, or /permissions are intentionally not listed here
  • some workflows also accept direct subcommands that are less visible in the command palette
  • commands shown as unavailable in the product, such as /voice, are still listed because they are part of the current user-facing surface
Command What it does
/accent change accent color
/agents inspect built-in and workspace agent roles
/analytics inspect session analytics and friction signals
/autopilot start, inspect, and review local background autopilot runs
/bg inspect or cancel live background tasks and persisted local inbox jobs
/bench open projected route evidence in Control
/bench adopt adopt the latest or named bench policy
/bench report inspect bench reporting in Control
/bench run generate a benchmark scorecard from recent runtime behavior
/harness open harness status in Control
/harness run run one or more harness suites
/harness report inspect the latest or named harness run
/harness diff diff a run against a blessed baseline or another run
/harness bless choose a lane and bless its baseline
/bug generate a structured bug report template
/checkpoint inspect saved session checkpoints
/checkpoint save save a named checkpoint
/checkpoint list list all checkpoints
/checkpoint restore restore a checkpoint by id or name
/changes list file changes made in this session
/clear clear the current session transcript
/clear queue clear the queued message backlog
/commands inspect custom workspace commands
/compact compress conversation history
/connect open the guided xAI connect wizard
/context inspect context window usage
/context build build a bounded context package from session and pinned research
/deep launch a deep research-first task run
/deck choose the right lane by task type or jump directly
/diff show all file changes in this session as diffs
/docs inspect and manage the docs cache
/docs add cache docs from text or a URL under a key
/docs get open a cached docs entry by key
/docs clear clear all cached docs entries
/doctor inspect runtime and project diagnostics
/editor open $EDITOR for multi-line input
/enable_exa set up Exa-backed web search
/exit exit grok
/export export the current graph branch as markdown
/gate open the governed Gate lane
/gate drawer toggle the compact gate drawer inside Work
/gate apply apply the latest or named staged change
/gate list open the full Gate lane
/gate reject reject the latest or named staged change
/gate rollback restore the latest or named rollback checkpoint
/handoff create a handoff file for later continuation
/help inspect the command palette and runtime shortcuts
/hooks list configured hooks
/image attach an image to the next prompt
/index force a code index rebuild
/index off disable auto-context for this session
/index status inspect current index stats
/import import Claude, Cursor, or MCP compatibility assets
/init initialize .grok/ in the current project
/init-deep generate hierarchical AGENTS.md files for the project
/init-project interview and scaffold structured project docs
/learn inspect or create learned skills
/login inspect current xAI auth, region, and runtime setup
/reload reload extension resources and inspect diagnostics
/mcp inspect local MCP, xAI Remote MCP, and current turn tooling
/memory inspect memory index and auto-memory status
/memory toggle toggle auto-memory on or off
/memory clear clear all project memory
/control open the Control lane
/preferences open the floating preferences panel
/mission open the Mission panel inside Work
/mission panel open the Mission panel explicitly
/mission close close the Mission side panel
/mission create create a mission from title, goal, and milestones
/mission pause pause the latest or named mission run
/mission resume resume the latest or named mission run
/mission start start the latest or named mission
/model choose the xAI model Grok Code should use
/mouse toggle mouse scroll and terminal selection mode
/notepad inspect saved notepads
/notify configure notifications
/persist start a verify-and-fix task run
/plan inspect plans and run saved plan steps
/profile choose a routing profile
/qa start a QA-guided task run
/quit exit grok
/refactor launch a structured refactor run
/inspect inspect a diff, PR, or working tree for bugs and regressions
/resume restore a saved branch
/recall open the Recall session tree workflow
/recall pick open the Recall session tree workflow
/research open Research or run a research query
/research pin pin the latest or named research result into context
/retry resend the last prompt
/search search saved session messages
/share share the current graph branch to cloud or a local markdown artifact
/voice voice input is currently unavailable in the xAI-only build
/walkthrough generate and inspect a markdown walkthrough artifact
/session delete delete a saved run
/session rename rename the current run
/status open runtime readiness in Control
/stop stop the active turn, pause todo enforcement, and clear queued continuation
/style change output verbosity
/steer queue a non-interrupting operator note for the active run
/followup queue work to run after the current turn settles
/thinking toggle show or hide the reasoning stream
/subagent-config configure subagent role models
/subagent-config set set a role model directly
/subagent-config reset clear model overrides for all roles or one role
/team dispatch a coordinated team run
/teams-config configure team defaults and member overrides
/teams-config show inspect a team configuration
/teams-config set set a team-level default directly
/teams-config member set a member-level override directly
/teams-config reset clear all overrides for a team
/theme choose the active Grok/xAI theme preset
/think open the reasoning mode picker
/thinking choose reasoning mode
/todo inspect todo progress
/todo enforce on enable todo enforcement
/todo enforce off pause todo enforcement
/todo clear clear all todos
/trust show or set permission mode
/work return to the Work lane
/undo undo the last file change
/undo all undo all changes in this session
/undo git restore all files from git HEAD
/verify inspect detected project checks
/quick launch a focused task run with commit discipline
/map generate stack, architecture, convention, and concern maps
/worktree open the worktree manager
/worktree create create a worktree directly
/worktree list inspect active worktrees
/worktree merge merge a named worktree back into the current branch
/worktree remove remove a named worktree
/resume-work load the latest handoff and continue from it

Was this page helpful? Report issues on GitHub.