Learning resourcesReviewed · xAI

Grok Modes and Commands

Modes and Commands is a reference for developers using Grok's terminal interface, but some commands depend on feature availability and installation is not covered. It explains session controls, permission modes, persistent goals, skills and reusable workflows.

Researched 15 Nov 2026

In short.

Modes and Commands is a guide for developers operating Grok in a terminal, but installation requirements, prices and operational reliability remain unspecified. It distinguishes plan approval from tool permissions and documents session management, memory, extensions, persistent goals and background workflows. Goals use reviewer subagents to assess completion, while workflows coordinate a bounded set of subagents through saved files. These are documented behaviors; nothing was executed, so enforcement, output quality and successful task completion were not assessed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is the complete selected page at [https://docs.x.ai/build/modes-and-commands.md], including modes, core TUI commands, shell-provided commands, skills, goals and workflows. All linked pages are excluded, including detailed permission, sandbox, keyboard, background-task and subagent documentation. Feature-availability qualifications and the documented workflow default are retained. The page supplies no explicit license notice, prices or release version. No installation, commands, goals, workflows, approval controls or generated outputs were executed or tested.

The overview

Identity

Modes and Commands is an xAI documentation page for Grok's terminal user interface, or TUI [https://docs.x.ai/build/modes-and-commands.md]. It separates commands handled by the interface from a smaller group supplied by xai-grok-shell, and explains how user-invocable skills also become slash commands. The resource is a reference page, with short explanations and examples.

Assessment

The page is useful for finding commands and understanding the difference between interactive sessions, goals and workflows. Its clearest practical distinction is that Plan mode restricts file editing independently of the permission mode. This helps explain why approving a plan and approving individual tools are separate decisions.

It works best as an operating reference for someone who already has Grok available. Several commands receive only a one-line description, and detailed permission, sandbox and feature behavior is delegated to linked pages.

Users

Beginners can use the command tables to find help, start or resume sessions, inspect context usage and locate settings. Experienced developers can use the goal and workflow sections to structure longer tasks, define completion criteria and coordinate background work.

The page assumes familiarity with terminal commands and project files. It does not teach terminal basics, Grok installation or the Rhai language used by workflow files.

Capabilities

The reference covers session creation, resumption, branching, rewind, sharing and export. Context controls include /context and /compact; model controls include /model and /effort. It also lists commands for memory, agent definitions, personas, hooks, plugins, skills and MCP connectors.

Longer-running work is supported through /goal, recurring prompts through /loop, saved workflows through /workflow, and background research through /deep-research. Image and video generation commands are listed, although some commands appear only when their features are available. The page does not identify supported models or establish the quality of any generated output.

Using it

Requirements

Using the commands requires the relevant Grok interface or shell component to be available. The page identifies /goal, /flush, /memory and /dream as shell-provided commands, while user-invocable skills require those skills to be present. Some interface commands depend on feature availability; workflows are documented as enabled by default.

Supported operating systems, installation prerequisites, hardware requirements and account entitlements are unknown from this page. Login commands are listed, but the page does not establish which operations require authentication or a particular plan.

Mechanism

Plan mode permits editing only the session plan file until approval, independently of the ask, auto or always-approve permission setting. Auto uses a classifier to approve tools judged safe, with dangerous operations potentially prompting. Always-approve skips tool permission prompts, while deny rules and hooks still apply. The page refers readers elsewhere for sandbox details.

A goal continues across rounds, checking progress after each round. When completion appears likely, reviewer subagents examine the evidence; completion requires agreement from most reviewers. Gaps lead to further work, and repeated unresolved gaps can cause a pause. Workflows coordinate a bounded set of background subagents, verification and a returned result.

Setup

Within an existing session, /help opens command and shortcut information, and /terminal-setup checks terminal and clipboard setup. Plan mode can be entered with /plan or Shift+Tab, and its plan reopened with /view-plan. Auto and always-approve have dedicated toggle commands.

For reusable automation, /create-workflow asks about scope, parallel work and verification. The documentation says Grok then authors, smoke-checks and saves a Rhai file under .grok/workflows/<name>.rhai for the project or ~/.grok/workflows/<name>.rhai for all projects. Workflows can be disabled through the documented configuration setting or GROK_WORKFLOWS=0. No setup steps were executed.

Example

The page gives this goal example: /goal Migrate the auth module to the new API, verified by the auth test suite passing, without changing public endpoints. It specifies a task, an observable completion condition and a boundary on changes. It is an illustrative instruction, with no migration or test results supplied.

For a saved workflow, the page shows /workflow review-changes {"target":"origin/main...HEAD"}. This passes a branch comparison as a JSON argument to an existing workflow. Separate commands pause, resume or stop runs; the example does not establish the accuracy of any resulting review.

Assessment & evidence

Limitations

Command availability can depend on enabled features, and the page does not tie its command list to a product version. It gives no complete installation procedure, model compatibility table or detailed sandbox explanation.

Reviewer agreement is the documented completion rule for goals; the page supplies no measurements of reviewer accuracy or missed errors. Likewise, its description of workflow smoke-checking provides no evidence that a particular workflow produces correct results. Reliability, performance and permission enforcement were not assessed through execution.

Reasoning

The page supports choosing a control style according to the task: plan approval for reviewing intended edits, goals for continued work toward a measurable result, and saved workflows for repeatable coordination. This suitability judgment follows from the documented controls and examples; it is not a measured productivity claim.

A concrete completion condition makes goal behavior easier to evaluate because reviewers have an explicit target. The authentication example demonstrates that structure, while leaving actual migration quality and reviewer effectiveness unknown.

Alternatives

Within the documented interface, ordinary sessions provide direct interaction, /goal supports continued work across rounds, and /workflow launches saved coordination logic with optional arguments. A user-invocable skill can also appear as its own slash command; a qualified name resolves naming collisions.

The page supplies no comparison with other assistants or command-line tools. Relative pricing, accuracy, usability and compatibility with external alternatives are unknown.

Evidence

The source is the complete Modes and Commands page at [https://docs.x.ai/build/modes-and-commands.md]. Its command tables, mode explanations and goal and workflow examples support the feature descriptions here.

The page describes intended behavior and supplies no execution receipts, benchmark results or independent evaluations. Nothing was executed. Linked documentation was outside the assessed source, so details available only through those links remain unknown.

Access & freshness

Costs

Prices, subscription requirements, credit rates and typical task costs are unknown. The page lists /usage for viewing credit usage or managing billing, without supplying amounts.

Goals accept --budget <tokens> to cap token spending, and goal status reports tokens used and elapsed time. A token budget does not establish a monetary price. The costs of reviewer subagents, workflows, research and media generation are not specified.

Rights

The page supplies no explicit documentation license, software license, redistribution permission or generated-output ownership terms. Those rights remain unknown.

Session sharing, conversation export and a privacy-status command are documented features. They do not establish rights to republish documentation or disclose project material. Shared-link access rules and data-retention terms are also unspecified.

Freshness

The available snapshot was captured on 15 November 2026 at 05:28:42 UTC. The page gives no publication date, update date or applicable product version.

The /release-notes command is listed as a way to view notes for the current version, but those notes are not included. Whether the documented commands match a particular installed release remains unknown.

Actions

In an existing installation, start with /help to inspect available commands and /terminal-setup to check terminal integration. Use /plan when you want to review planned edits, and consult the linked Permissions documentation before relying on automatic tool approval.

For a longer task, give /goal an observable completion condition and any required change boundaries; add a token budget if needed. For repeated coordination, create a saved workflow and inspect its file before reuse. Consult /usage for account-specific spending information and /privacy for the available privacy controls. These are suggested next steps, not completed checks.

Evidence for this report

selected-page.txtselected · checked 2026-11-15