• Tech Dev NotesTech Dev Notes
Apps
  • App lookup
  • App compare
Market movement
  • App charts
  • App rankings
Visual proof
  • App screens
  • App listing screenshots
  • App icons
Build intelligence
  • App tech stacks
  • Tool releases
  • Developers
More
  • X feature flags
  • Grokipedia
  • Blog
  • Follow on X
Skip to content
All content/ filesChangelog

xai-docs/latest/content · Jun 27, 00:17 UTC

pages/build/modes-and-commands.md

MD·3.5 KB·98 lines

content/

  • .

    • llms.txt
  • pages

    • overview.md
  • pages/build

    • enterprise.md
    • modes-and-commands.md
    • overview.md
    • settings.md
  • pages/build/cli

    • headless-scripting.md
  • pages/build/features

    • skills-plugins-marketplaces.md
  • pages/console

    • billing.md
    • collections.md
    • usage.md
  • pages/console/faq

    • accounts.md
    • billing.md
    • security.md
  • pages/developers

    • community.md
    • cost-tracking.md
    • debugging.md
    • docs-mcp.md
    • files.md
    • grpc-api-reference.md
    • management-api-guide.md
    • models.md
    • pricing.md
    • quickstart.md
    • rate-limits.md
    • release-notes.md
  • pages/developers/advanced-api-usage

    • async.md
    • batch-api.md
    • context-compaction.md
    • deferred-chat-completions.md
    • mtls.md
    • priority-processing.md
    • prompt-caching.md
    • websocket-mode.md
  • pages/developers/advanced-api-usage/prompt-caching

    • best-practices.md
    • how-it-works.md
    • maximizing-cache-hits.md
    • multi-turn.md
    • usage-and-pricing.md
  • pages/developers/faq

    • accounts.md
    • billing.md
    • general.md
    • security.md
    • team-management.md
  • pages/developers/files

    • collections.md
    • managing-files.md
    • public-urls.md
  • pages/developers/files/collections

    • api.md
    • metadata.md
  • pages/developers/migration

    • may-15-retirement.md
  • pages/developers/model-capabilities

    • imagine.md
  • pages/developers/model-capabilities/audio

    • custom-voices.md
    • ephemeral-tokens.md
    • speech-to-text.md
    • text-to-speech.md
    • voice-agent.md
    • voice.md
  • pages/developers/model-capabilities/audio/voice-agent

    • sip.md
  • pages/developers/model-capabilities/files

    • chat-with-files.md
  • pages/developers/model-capabilities/images

    • editing.md
    • generation.md
    • multi-image-editing.md
    • understanding.md
  • pages/developers/model-capabilities/imagine

    • files.md
  • pages/developers/model-capabilities/imagine/files

    • inputs.md
    • outputs.md
  • pages/developers/model-capabilities/legacy

    • chat-completions.md
  • pages/developers/model-capabilities/text

    • comparison.md
    • generate-text.md
    • multi-agent.md
    • reasoning.md
    • streaming.md
    • structured-outputs.md
  • pages/developers/model-capabilities/video

    • editing.md
    • extension.md
    • generation.md
    • image-to-video.md
    • reference-to-video.md
  • pages/developers/models

    • speech-to-text.md
    • text-to-speech.md
    • voice-agent-api.md
  • pages/developers/rest-api-reference

    • collections.md
    • files.md
    • inference.md
    • management.md
  • pages/developers/rest-api-reference/collections

    • collection.md
    • search.md
  • pages/developers/rest-api-reference/files

    • download.md
    • manage.md
    • upload.md
  • pages/developers/rest-api-reference/inference

    • batches.md
    • chat.md
    • images.md
    • legacy.md
    • models.md
    • other.md
    • speech-to-text.md
    • videos.md
    • voice.md
  • pages/developers/rest-api-reference/management

    • audit.md
    • auth.md
    • billing.md
  • pages/developers/tools

    • advanced-usage.md
    • citations.md
    • code-execution.md
    • collections-search.md
    • function-calling.md
    • overview.md
    • remote-mcp.md
    • streaming-and-sync.md
    • tool-usage-details.md
    • web-search.md
    • x-search.md
  • pages/grok

    • connector-management.md
    • connectors.md
    • faq.md
    • management.md
    • organization.md
    • user-guide.md
  • pages/grok/connectors

    • custom-mcp-tunneling.md
    • gmail-google-calendar.md
    • google-drive.md
    • microsoft-teams.md
    • onedrive.md
    • outlook.md
    • salesforce.md
    • sharepoint.md
  • pages/grok/faq

    • team-management.md
  • pages/integrations

    • hubspot-mcp-setup.md

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.

Modes

Plan

Plan mode is for planning first. When it is active, write tools are blocked except for the session plan file.

Use it when you want Grok to sketch the approach before it starts making changes. Use /plan to view the current session 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:

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:

[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.

Command What it does
/always-approve Toggle always-approve mode
/btw <question> Ask a side question without interrupting
/compact [context] Compact conversation history
/compact-mode Toggle denser UI layout
/context View context usage
/feedback [text] Send feedback about the current session
/fork Fork the current session into a new one
/home Return to the welcome screen
/hooks Open the unified extensions modal at the Hooks tab
/logout Sign out of the current account
/mcps Open the unified extensions modal at the MCP tab
/model <name> Switch the active model
/multiline Toggle multiline input
/new Start a new session
/plan View the current session plan
/plugins Open the unified extensions modal at the Plugins tab
/quit (alias /exit) Quit the application
/rename <title> Rename the current session
/resume Resume a previous session
/rewind Rewind to an earlier point in the conversation
/session-info Show session info
/sessions Browse and pick from past sessions
/share Share the current session via URL
/skills Open the unified extensions modal at the Skills tab
/theme [name] Switch the color theme
/usage Show token and credit usage for the session

/hooks, /plugins, /skills, and /mcps all open the same extensions modal — they just pre-select a tab.

Shell-provided commands

Command What it does
/dream Trigger an offline memory-consolidation pass
/flush Flush conversation memory to disk now
/imagine <prompt> Generate an image from text
/imagine-video <prompt> Generate a video from text
/memory Search and edit persistent memory entries

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.

Previouspages/build/features/skills-plugins-marketplaces.mdNextpages/build/overview.md

© 2026 Tech Dev Notes

RSSAboutAPIPrivacyTermsSitemap@techdevnotes