Modes and Commands

The TUI has pager-local slash commands, plus a smaller set provided by xai-grok-shell. User-invocable skills also appear as slash commands.

In the TUI, Shift+Tab cycles session modes. For the full key reference, see Keyboard Shortcuts.

Modes

Plan

Plan mode is for planning first. When it is active, edits to the session plan file are auto-approved while writes to other files still require your approval.

Use it when you want Grok to sketch the approach before it starts making changes. Enter it with /plan [description] and view the current plan with /view-plan.

Plan mode keeps the working plan visible in the TUI.

It can also stop to ask a clarifying question before edits.

Always-approve

Always-approve skips permission prompts for tool calls.

You can start in this mode with:

Bash

grok --always-approve

You can also toggle it from the TUI with /always-approve.

Permission mode in config.toml

Set the default permission behavior in ~/.grok/config.toml:

Text

[ui]
permission_mode = "always-approve"

Use permission_mode = "ask" for prompts on each tool call, or permission_mode = "always-approve" to skip them. The default is ask. The legacy keys approval_mode and yolo = true are still accepted but permission_mode takes precedence.

Put this in ~/.grok/config.toml, not project-scoped .grok/config.toml.

For the full set of config.toml options, see Settings.

Core TUI commands

The command palette groups session, context, model, and tool actions.

Use /context to check current context usage.

CommandWhat it does
/quit (alias /exit)Quit the application
/helpBrowse commands and keyboard shortcuts
/homeReturn to the welcome screen
/new (alias /clear)Start a new session
/resumeResume a previous session
/sessionsSwitch, rename, or close active sessions
/forkBranch the current session into a peer agent
/rename <title> (alias /title)Rename the current session
/shareShare the current session via URL
/session-infoShow session info
/contextView context usage
/compact [context]Compact conversation history
/rewindRewind to a previous turn
/exportExport the conversation to a file or clipboard
/copy [N]Copy the last (or Nth-latest) response to the clipboard
/findSearch the conversation scrollback
/transcriptView the full transcript in your pager ($PAGER)
/model <name> (alias /m)Switch the active model
/effortSet reasoning effort for the current model
/always-approveToggle always-approve mode
/plan [description]Enter plan mode
/view-planView the current plan
/btw <question>Ask a side question without interrupting
/loop [interval] <prompt>Run a prompt on a recurring interval — see Background Tasks
/imagine <prompt>Generate an image from a text description
/imagine-video <prompt>Generate a video from a text description
/tasksList background tasks, subagents, and scheduled tasks
/queueList the prompts queued behind the running turn
/dashboardOpen the Agent Dashboard
/settings (alias /config)Open the settings modal
/theme [name] (alias /t)Switch the color theme
/compact-modeToggle denser UI layout
/multiline (alias /ml)Toggle multiline input
/vim-modeToggle vim-style scrollback keybindings
/timestampsToggle message timestamps
/terminal-setupCheck terminal and clipboard setup
/config-agents (alias /agents)Manage agent definitions
/personasManage personas
/remember <note>Save a memory note
/import-claudeOpen the Claude settings import modal
/feedback [text]Send feedback about the current session
/release-notes (alias /changelog)View release notes for the current version
/usageView credit usage or manage billing
/privacyShow or toggle privacy and data-retention status
/login, /logoutSign in, or sign out of the current account
/hooksOpen the unified extensions modal at the Hooks tab
/pluginsOpen the unified extensions modal at the Plugins tab
/marketplaceOpen the unified extensions modal at the Marketplace tab
/skillsOpen the unified extensions modal at the Skills tab
/mcpsOpen the unified extensions modal at the MCP tab

/hooks, /plugins, /marketplace, /skills, and /mcps all open the same extensions modal — they just pre-select a tab. A few commands appear only when their feature is available (for example /imagine and /loop).

Shell-provided commands

CommandWhat it does
/flushFlush conversation memory to disk now
/memory (alias /mem)Browse, view, and manage your memories
/dreamRun memory consolidation

These appear when cross-session memory is enabled.

Skills as commands

Any user-invocable skill can also appear as a slash command, for example /<skill-name>.

If names collide, use the qualified form, such as /local:commit.


Last updated: July 2, 2026