Skip to content

Grok Build Commands and Shortcuts

Command reference94 commands, 75 with a worked example Facts checked against xAI's own pages on November 10, 2026

This page lists the commands of Grok Build, xAI's artificial intelligence (AI) agent for the terminal, and then keyboard shortcuts and symbols, for Grok Build and, in a few rows, for Grok Bot and the Grok app. In Grok Build you type a command starting with a slash, such as /plan, in the same box as your requests. A few start with grok instead, such as grok inspect; those are typed in an ordinary terminal, outside Grok Build. These are the commands a faculty member, student, or staff member might use, grouped by what they help with. Each example is a small, realistic situation, what you type, and what you then see, drawn from xAI's documentation; where xAI does not quote the screen, the figure describes it. Some commands appear only when a feature is turned on. Commands meant for software developers are listed under More Commands, Mostly for Developers, without examples. xAI documents no slash commands for the Grok app, and Grok Bot's few typed symbols are under Shortcuts and Symbols.

Plans and models are on the Grok (xAI) page, with how Grok Build asks before acting. A listing here is not an endorsement, and for work at the American University of Antigua, the AI Responsible Use Policy applies.

Getting Started

grok In a terminal, starts Grok Build in the current folder.

A course director has copied this term's anatomy lab handouts into a new folder and opens a terminal there to try Grok Build for the first time.

Grok Build

grok

  • On first launch, a browser window opens so you can sign in
  • The full-screen app opens on its welcome screen, which lists recent sessions in this folder

Install it first with the one-line installer on xAI's Get Started page, which has a PowerShell version for Windows.

Every other command starts here. Starting in a copied folder limits what the agent can reach to what the task needs. An illustration drawn from xAI's documentation, not a screenshot.

/help Lists the commands and keyboard shortcuts available to you.

A second-year student trying Grok Build on a folder of their own pathology notes cannot remember how to stop a running turn.

Grok Build

/help

  • A searchable list of commands and keyboard shortcuts

Typing / on its own opens a list of commands that narrows as you type; Ctrl+P opens a searchable list of every command, shortcut, and skill.

The quickest way to find a command without memorizing it. (Ctrl+C is the one that cancels a running turn.) An illustration drawn from xAI's documentation, not a screenshot.

/tutorial Opens xAI's short onboarding tour (also /tour).

A new instructor in the clinical skills department wants a guided introduction before trying Grok Build on real course files.

Grok Build

/tutorial

  • A list of nine short topics, each about a 30-second read, including your first prompt, attaching files, finding your way around, slash commands, worktrees, plan mode and permissions, customizing, switching from another agent tool, and where to go next

The right arrow moves straight on to the next topic. Nothing opens by itself; this command or the command palette is the way in.

A few minutes here cover the habits that matter most, such as planning first and checking permissions. An illustration drawn from xAI's documentation, not a screenshot.

/docs Opens xAI's how-to guides inside Grok Build, or its online documentation (also /guides).

A staff member in the curriculum office wants to read how plan mode works without leaving the terminal.

Grok Build

/docs Plan Mode

  • The how-to guide with that title opens inside Grok Build

/docs on its own opens a list of guides to pick from, and /docs web opens docs.x.ai/build/overview in your browser.

Answers to how-to questions without leaving the session you are in. An illustration drawn from xAI's documentation, not a screenshot.

grok inspect In a terminal, lists the instruction files, skills, plugins, hooks, and MCP (Model Context Protocol) servers Grok Build finds for this folder.

A pharmacology course director has put an AGENTS.md file in the course folder ("Use American Medical Association (AMA) citation style. Never edit anything in originals/.") and wants to confirm Grok Build will read it.

Grok Build

grok inspect

  • Each rules file found, with its path and approximate token count
  • The skills, plugins, hooks, and MCP servers found, each with where it came from

Run it in an ordinary terminal in the course folder, before starting Grok Build. If the folder is not a git repository, only the files in that folder itself are read.

A quick check that the folder's brief is being read before you rely on the agent to follow it. An illustration drawn from xAI's documentation, not a screenshot.

/import-claude Brings over your Claude Code settings: permissions, environment variables, MCP servers, hooks, and paths.

A faculty member who already uses Claude Code wants the same folder permissions and connections in Grok Build.

Grok Build

/import-claude

  • A preview of the settings found in your Claude Code configuration, each with a checkbox
  • Confirming writes the items you ticked into Grok Build's own settings

Grok Build already reads CLAUDE.md files and Claude Code skills without importing. From a terminal, grok import brings over Claude Code sessions, and the /resume-claude, /resume-codex, and /resume-cursor skills continue a recent session from those tools.

Decisions you have already made, such as folders the agent may not touch, carry over instead of being set up again. An illustration drawn from xAI's documentation, not a screenshot.

/login, /logout Signs in again without leaving the session, or signs out and returns to the sign-in screen.

A student finishes a study session on a shared computer in the library and wants to leave no account signed in.

Grok Build

/logout

  • You are signed out and returned to the sign-in screen

Sessions are saved on the computer itself, in the .grok folder in your user folder, and xAI does not say that signing out removes them; /delete removes one. From a terminal, grok logout also signs out and clears saved credentials.

On a shared computer, the next person cannot use Grok Build on your account and plan. An illustration drawn from xAI's documentation, not a screenshot.

/home Leaves the current session and returns to the welcome screen (also /welcome).

A course coordinator finishes tidying one week's handouts and wants to pick a different saved session from the list.

Grok Build

/home

  • The welcome screen, listing recent sessions in this folder

The session you leave stays saved.

Moves between pieces of work without quitting the app. An illustration drawn from xAI's documentation, not a screenshot.

/quit Quits Grok Build (also /exit).

At the end of the day, a faculty member wants to close Grok Build.

Grok Build

/quit

  • Grok Build closes; the session stays saved and can be resumed later

Pressing Ctrl+Q twice also quits (Ctrl+D in terminals inside VS Code and similar editors).

A clean exit, and the session is saved, so tomorrow grok -c picks it up. An illustration drawn from xAI's documentation, not a screenshot.

Sessions: Saving, Finding, and Returning

/new Starts a new session; the previous one stays saved (also /clear).

A faculty member has finished reorganizing lab handouts and now wants to draft a grading rubric, an unrelated task, in the same folder.

Grok Build

/new

  • A new, empty session; the finished one stays saved on disk
A fresh session for a new task keeps old context out of it, and /resume still brings the old one back. An illustration drawn from xAI's documentation, not a screenshot.

/resume Opens a list of recent sessions in this folder so you can carry one on.

Yesterday a course director started building a practice quiz from her own lecture notes and wants to continue where she stopped.

Grok Build

/resume

  • A list of recent sessions for this folder; typing filters by title and also searches what was said in them
  • The chosen session returns, with its to-do list and the last status of each item
Long tasks rarely finish in one sitting, and resuming avoids explaining the job again. An illustration drawn from xAI's documentation, not a screenshot.

grok -c In a terminal, starts Grok Build by continuing the most recent session in this folder.

A student closed Grok Build partway through turning a week of cardiology notes into summary tables, and opens it again the next morning.

Grok Build

grok -c

  • Grok Build opens straight into the most recent session for this folder

grok --resume followed by a session's ID opens a particular one.

One step back into yesterday's work, without the welcome screen. An illustration drawn from xAI's documentation, not a screenshot.

/rename Renames the current session (also /title).

A clerkship coordinator has several sessions in one folder and wants this one easy to find later.

Grok Build

/rename Week 3 rotation schedule

  • The session takes the new title in the session lists

Titles are otherwise written automatically from the conversation; /rename --auto hands the title back to that.

A clear title makes the right session quick to find in /resume. An illustration drawn from xAI's documentation, not a screenshot.

/session-info Shows the current session's details: model, sign-in method, folder, sandbox, and how full the context is (also /status).

Before a long task, a teaching assistant wants to confirm which model and folder this session is using.

Grok Build

/session-info

  • The session's title, Grok Build version, sign-in method, session ID, working folder, and model
  • The sandbox profile, when one is set, and context use in tokens and as a percentage

Click a value to copy it; c copies the session ID.

A one-screen check that the agent is working where, and with what, you think it is. An illustration drawn from xAI's documentation, not a screenshot.

/dashboard Opens the Agent Dashboard, a live list of every session in this window (also /sessions, or Ctrl+\).

A staff member has one session reformatting handbook chapters and another checking links, and wants to see which is waiting for an answer.

Grok Build

/dashboard

  • Sessions grouped by state: Needs input, Working, Idle, Inactive, Completed, and Failed
  • Selecting one shows its latest activity; typing replies to it, and Enter opens it

Permission questions can be answered from the dashboard with the number keys. From a terminal, grok dashboard opens it directly.

One view of several jobs, so none sits waiting for a reply you did not see. An illustration drawn from xAI's documentation, not a screenshot.

/delete Deletes the current session's saved history, after asking you to confirm.

A faculty member opened the wrong file in a session and does not want that conversation kept on the computer.

Grok Build

/delete

  • A confirmation; once confirmed, the session's history is deleted permanently and you return to the welcome screen

To delete a session you are not in, open /resume, highlight it, and press d then y.

Saved sessions stay on the computer until deleted, and this removes one you no longer want. What xAI keeps on its side is a separate setting, under /privacy. An illustration drawn from xAI's documentation, not a screenshot.

grok sessions In a terminal, lists, searches, or permanently deletes the saved sessions for this folder.

A course director remembers discussing renal clearance in an earlier session, but not which one.

Grok Build

grok sessions search "renal clearance"

  • Matching sessions, found by title and by the prompts typed in them

grok sessions list shows recent sessions, and grok sessions delete followed by a session ID removes one for good.

Finds old work by what was said, not by when it happened. An illustration drawn from xAI's documentation, not a screenshot.

/share Listed in xAI's online command table as sharing the session through a link, but removed from Grok Build in version 1.0.51 (October 9, 2026), according to xAI's changelog.

A faculty member wants to send a colleague the session in which a small-group case was drafted.

Grok Build

/share

  • Session sharing is temporarily disabled

Earlier versions answered with this message, which is still in Grok Build's open-source code. /export saves a copy you can send instead.

Worth knowing before promising someone a link. xAI's code describes the link as public, so anyone holding it would see the whole session. An illustration drawn from xAI's documentation, not a screenshot.

Staying in Control

/plan Enters plan mode: Grok Build explores and drafts a plan, and only the plan file can be edited until you approve it.

A course director wants 40 copied lecture-note files merged into one study guide per organ system, and wants to see the approach before anything changes.

Grok Build

/plan Merge these lecture notes into one study guide per organ system. Leave the original files unchanged.

  • The status reads plan while it explores; a plan preview opens when it finishes
  • [a]pprove [c]omment [q]uit plan
  • Until you approve, only the plan file can be edited, even in Auto or Always-approve

On the review screen, a approves and starts the work, s asks for changes, c comments on a line, and q leaves plan mode. Shift+Tab also turns plan mode on.

You check the approach before any file is touched. Commands still follow your permission mode, so read what it asks to run. An illustration drawn from xAI's documentation, not a screenshot.

/view-plan Reopens the saved plan (also /show-plan).

Halfway through the approved study-guide merge, the course director wants to check what step four of the plan said.

Grok Build

/view-plan

  • The plan preview opens again
The plan is the agreement, and checking it mid-task shows whether the work is still following it. An illustration drawn from xAI's documentation, not a screenshot.

/auto Switches auto mode on or off: a classifier approves tool calls it judges safe, and the rest still ask.

A teaching assistant is renaming 60 transcript files to a fixed pattern and finds approving each step slow.

Grok Build

/auto

  • The status shows auto; actions the classifier does not approve still bring a permission prompt

Appears only when the feature is turned on. Running /auto again returns to asking, and deny rules and hooks still apply.

Fewer interruptions on routine work, while riskier actions still stop for you. An illustration drawn from xAI's documentation, not a screenshot.

/always-approve Switches always-approve mode on or off: no permission prompts for tool calls, though deny rules and hooks still apply.

A faculty member converting 200 public-domain histology images to a new format is tired of approving each step and is considering turning prompts off.

Grok Build

/always-approve

  • Permission prompts stop for tool calls; deny rules and hooks still apply
  • Running /always-approve again, or pressing Ctrl+O, returns to asking

xAI's guide suggests this mode for scripts and automation, with deny rules for hard limits, and the ask or auto modes for everyday interactive use.

With no prompts, nothing pauses a mistaken command, so it suits a copied folder you could afford to lose, ideally with a sandbox (documented for macOS and Linux). An illustration drawn from xAI's documentation, not a screenshot.

grok --sandbox In a terminal, starts Grok Build with a sandbox profile that limits where its commands can write.

On a Mac, a staff member wants Grok Build's commands kept inside a copied folder of department forms.

Grok Build

grok --sandbox workspace

  • Grok Build starts with commands able to write only in this folder, Grok's own settings folder and temporary files

Other profiles include read-only (writes only to Grok's own folder and temporary files) and strict (also limits reading). The sandbox is off by default and documented for macOS and Linux only; xAI describes none for Windows.

A second line of defense, so that even an approved command cannot change files elsewhere on the computer. An illustration drawn from xAI's documentation, not a screenshot.

/privacy Opens the setting for whether xAI may keep and train on your Grok Build sessions.

Before using Grok Build on course materials, a faculty member wants to check whether those sessions can be used to train xAI's models.

Grok Build

/privacy

  • Settings opens on Coding data, retention, and training
  • Opt in
  • Opt out

On a team account only an admin can change it, and the row shows ZDR (zero data retention) or Admin Managed instead of the choice.

Shows, and lets you change, one of the settings that decide what happens to what you type. An illustration drawn from xAI's documentation, not a screenshot.

Checking the Work

/rewind Rolls the conversation back to an earlier prompt, dropping the turns after it (also /undo, or Esc twice on an empty prompt).

A course coordinator's request to reformat a reading list was misread, and the next few turns built on the misunderstanding.

Grok Build

/rewind

  • A list of rewind points, one for each prompt you sent
  • After you pick one, a confirmation
  • Yes
  • Yes, and don't ask again
  • No

Since version 1.0.1 (August 10, 2026), rewinding rolls back only the conversation; files changed after that point stay as they are. xAI's Sessions page still says files are restored, so check the files and put back any you need yourself.

A clean restart from a good point without retyping the conversation. Working on copies remains the safety net for the files. An illustration drawn from xAI's documentation, not a screenshot.

/btw Asks a side question without interrupting the running task.

While Grok Build formats 60 practice questions, a new faculty member wants to know what the lead-in of a board-style question is.

Grok Build

/btw What is the lead-in in a board-style multiple-choice question?

  • The answer appears while the main task keeps running; the side question is not added to the main task

/btw also works in the middle of a message, and the whole message then becomes the side question.

You can learn as you go without derailing a long task. An illustration drawn from xAI's documentation, not a screenshot.

/export Saves the conversation as a Markdown file, or copies it to the clipboard.

A faculty member wants a record of how a module's exam blueprint was built, to keep with the module files.

Grok Build

/export blueprint-session.md

  • The conversation is written to blueprint-session.md

Without a file name, the whole transcript is copied to the clipboard. From a terminal, grok export followed by a session ID exports a saved session.

Keeps a readable record of what the agent did and why. An illustration drawn from xAI's documentation, not a screenshot.

/copy Copies the latest response, or an earlier one, to the clipboard or to a file.

A student wants the summary table Grok Build produced two replies ago, to paste into their own notes.

Grok Build

/copy 2

  • A brief confirmation, such as: Copied!

Each copy is also saved to a backup file in Grok's own folder, in case the clipboard cannot be reached. /copy notes.md writes the reply to a file instead.

Moves a result into your own document without retyping it. An illustration drawn from xAI's documentation, not a screenshot.

/history Searches the prompts you have typed in this session, newest first, so you can reuse one.

Earlier in the session, a coordinator wrote a long, carefully worded request for formatting the rotation schedule, and wants it again for the next block.

Grok Build

/history

  • A search over this session's prompts, newest first; Enter or Tab puts the chosen one back in the input box

The up arrow on an empty prompt also steps back through recent prompts.

A request that worked once can be reused or adjusted instead of rewritten. An illustration drawn from xAI's documentation, not a screenshot.

/find Searches the conversation for a word or phrase.

In a long session, a faculty member wants to find where Grok Build mentioned the file of learning objectives.

Grok Build

/find learning objectives

  • A search of the conversation opens, starting from the words you typed

Works in the full-screen view; in the minimal view, use your terminal's own search.

Finds an earlier detail without scrolling through every step. An illustration drawn from xAI's documentation, not a screenshot.

Context and Memory

/context Shows how full the model's working memory (its context window) is, and with what.

After Grok Build has read a long published clinical guideline and twelve lecture-note files, its answers start to drift.

Grok Build

/context

  • The context window split into System prompt, Messages, Reasoning/overhead, and Free

Grok Build compacts the conversation by itself once the window reaches 85 percent.

Tells you when to compact the conversation or start fresh with /new. An illustration drawn from xAI's documentation, not a screenshot.

/compact Compresses the conversation so far into a summary, to free space in the context window.

Midway through a long session writing practice questions from her own notes, a faculty member sees from /context that the context window is nearly full.

Grok Build

/compact

  • The conversation history is compressed, freeing space in the context window

xAI's online reference shows an optional instruction about what to keep, but Grok Build's open-source code, as published on September 29, 2026, refuses one with: /compact takes no arguments.

A long session keeps going with room to work. Rules that must not be lost, such as agreed item-writing conventions, are safest written in the folder's AGENTS.md file rather than left in the conversation. An illustration drawn from xAI's documentation, not a screenshot.

/context-window Picks the size of the context window for this session, when the model offers more than one.

A researcher wants Grok Build to keep a long published systematic review and its supplement in view at once.

Grok Build

/context-window 500k

  • The session uses the 500k window from now on

Listed only when the current model offers more than one size. A size smaller than what is already in use starts a compaction.

Matches the working memory to the amount of material in front of you. An illustration drawn from xAI's documentation, not a screenshot.

/recap Summarizes the session so far, to catch up on where things stand (also /summarize).

A staff member returns from a meeting to a long session that has been reorganizing the student handbook.

Grok Build

/recap

  • A short summary of the session appears in the conversation; it is not added to what the model reads

In a session with nothing in it yet, it answers: No messages yet.

A quick way back into work you stepped away from. An illustration drawn from xAI's documentation, not a screenshot.

/remember Saves a note for later sessions.

A course director wants every future session, in any folder, to use AMA citation style and US English without repeating it.

Grok Build

/remember I write in US English and cite in AMA style

  • A review panel shows the note, with an optional reworded version (Tab switches between them); nothing is saved until you confirm
  • Memory saved to ~/.grok/memory/MEMORY.md

Starting a prompt with # saves a note the same way. A preference for every folder goes to that global file; a note about one project goes to that project's own memory file instead.

A light way to set a standing preference; for one course folder, an AGENTS.md file in the folder is easier for colleagues to see and edit. An illustration drawn from xAI's documentation, not a screenshot.

/memory Opens a browser of the notes Grok Build has saved to memory, where you can read them, delete one, or turn memory on (also /mem).

Before sharing a course folder with a colleague, a faculty member wants to see what Grok Build has remembered about it.

Grok Build

/memory

  • A Memory window listing Global, Workspace, and Sessions notes, with a preview of the selected one
  • t turns memory on or off for this session; x deletes the selected note

Memory across sessions is off unless you turn it on, and the t switch here lasts only for the session.

Memory shapes later sessions, so checking it shows what the agent has kept and lets you remove a wrong note. An illustration drawn from xAI's documentation, not a screenshot.

/flush Saves what matters from this session into memory now, instead of waiting.

At the end of a productive session settling the conventions for a new question bank, a faculty member wants them kept before compacting.

Grok Build

/flush

  • Flushing memory…
  • A line reports the result, for example: Memory flushed through turn 12

Needs memory across sessions turned on.

Locks in decisions before a compaction or the end of the day can lose them. An illustration drawn from xAI's documentation, not a screenshot.

/dream Merges saved memory notes into organized topics.

After a month of sessions on one course, a faculty member's memory notes have grown into many small observations.

Grok Build

/dream

  • Consolidating memory…
  • A line reports how many observations were merged into how many topics, or that there was nothing to merge

Needs memory across sessions turned on.

Tidier notes are easier to read and correct with /memory. An illustration drawn from xAI's documentation, not a screenshot.

grok memory clear In a terminal, deletes Grok Build's memory files for this folder, its global notes, or both.

A faculty member is passing a laptop on to a colleague and wants Grok Build's remembered notes removed first.

Grok Build

grok memory clear --all

  • A confirmation, then both this folder's memory and the global notes are cleared

With no option, or with --workspace, only this folder's notes are cleared; --global clears only the notes that apply everywhere.

Removes what was remembered in one step, rather than note by note. An illustration drawn from xAI's documentation, not a screenshot.

Model, Effort, and Usage

/model Switches the model, then the context size and effort where the model offers them (also /m).

A faculty member wants to see which models Grok Build offers before starting a long literature-summary task.

Grok Build

/model

  • A picker of models; after the model, it asks for a context size where offered, then an effort level

/model grok-4.6 switches directly. Ctrl+M opens the picker when the prompt is not selected.

Match the model to the job; Grok 4.7 is Grok Build's default. An illustration drawn from xAI's documentation, not a screenshot.

/effort Sets how hard the current model reasons: low, medium, high, or xhigh.

A teaching assistant is renaming 40 lecture PDFs to a fixed pattern, a job that needs little judgment.

Grok Build

/effort low

  • Reasoning effort for the current model is set to low

Applies only to models that support effort levels; a level the model does not support is refused.

Lower effort is quicker for mechanical work; keep higher effort for tasks that need judgment. An illustration drawn from xAI's documentation, not a screenshot.

grok models In a terminal, lists the models available to Grok Build.

Before a session, a course director wants to know which models her plan gives her in Grok Build.

Grok Build

grok models

  • A list of the models you can use
Know the choices before you start, so you can name one with /model. An illustration drawn from xAI's documentation, not a screenshot.

/usage Shows how much of your plan's allowance is used, or opens billing (also /cost).

A student on Premium has run several long Grok Build sessions and wants to know how much of the weekly pool is left before exam week.

Grok Build

/usage

  • Your account's allowance, with this session's context and token totals

/usage manage opens billing. The command is hidden for Free and X Basic personal accounts.

Grok Build draws on the same weekly allowance as chat and images, so a long task can use much of a week's share. An illustration drawn from xAI's documentation, not a screenshot.

/release-notes Shows what changed in the version you have installed (also /changelog).

After an update, a faculty member notices a new button and wants to know what changed.

Grok Build

/release-notes

  • The release notes for the installed version
Grok Build changes often, and the notes explain new behavior before it surprises you. An illustration drawn from xAI's documentation, not a screenshot.

grok update In a terminal, checks for a newer version of Grok Build and installs it.

A colleague mentions a command that a faculty member's copy of Grok Build does not have.

Grok Build

grok update

  • Grok Build checks for a newer version and installs it

grok version shows the version you have. If Grok Build was installed with WinGet on Windows, grok update prints the WinGet command to use instead and changes nothing.

Commands and fixes arrive in new versions, so an old copy can lack what the documentation describes. An illustration drawn from xAI's documentation, not a screenshot.

Skills, Connections, and Extensions

/skills Opens the extensions window on its Skills tab, listing the skills installed.

A department has shared a case-vignette-writer skill, and a faculty member wants to confirm it is installed.

Grok Build

/skills

  • The extensions window opens on its Skills tab, beside tabs for Hooks, Plugins, Marketplace, Workflows, and MCP Servers

Turning a skill off here also stops it appearing as a slash command.

Shows which skills Grok Build may use before you rely on one. An illustration drawn from xAI's documentation, not a screenshot.

/<skill-name> Runs a skill by its name, like a command.

The department's case-vignette-writer skill drafts small-group cases in an agreed format, and a faculty member needs one on diabetic ketoacidosis.

Grok Build

/case-vignette-writer diabetic ketoacidosis in a 19-year-old, for second-year small groups

  • Grok Build follows the skill's instructions to draft the case

If a skill shares a name with a built-in command, the built-in wins and the skill is reached with a prefix, such as /local:compact.

A department's agreed method is applied the same way every time. An illustration drawn from xAI's documentation, not a screenshot.

/skillify Turns the current session into a new skill.

After an hour refining how Grok Build turns lecture notes into flashcards, a student wants to reuse the method next week.

Grok Build

/skillify

  • Grok Build captures the session as a new skill

Named on xAI's Grok Build product page; it is not in the command reference.

A method that took effort to get right becomes one command. An illustration drawn from xAI's documentation, not a screenshot.

/mcps Opens the list of MCP servers (connections to outside tools), to switch them on or off, add them, or sign in to them.

The library has set up a read-only connection to a reference manager for a faculty member, who wants to check it works before asking for help with citations.

Grok Build

/mcps

  • The MCP tab of the extensions window, listing the configured servers
  • Space switches a server on or off, r refreshes, i signs in to a server that needs it, a adds, and x removes

Tools from a server appear under its name, such as refs__search.

Each connection widens what the agent can reach, so seeing and switching them keeps that a deliberate choice. An illustration drawn from xAI's documentation, not a screenshot.

/plugins Opens the extensions window on its Plugins tab: installed plugins, installing new ones, and trust (also /plugin).

An instructional designer was told that a plugin bundles the department's skills and connections, and wants to see what is installed.

Grok Build

/plugins

  • The Plugins tab, listing installed plugins, with ways to install from the marketplace and manage trust

One plugin can bundle skills, helper agents, hooks, and MCP servers.

A plugin can add several capabilities at once, so it is worth knowing what each one brings. An illustration drawn from xAI's documentation, not a screenshot.

/marketplace Opens the extensions window on its Marketplace tab, to browse and install plugins.

A faculty member wants to see whether a ready-made plugin exists for working with PDFs before building anything.

Grok Build

/marketplace

  • The Marketplace tab, listing plugins from the sources in your settings, each with an install option

Sources can include a team's own git repository.

Check what exists before building your own, and read what a plugin includes before installing it. An illustration drawn from xAI's documentation, not a screenshot.

Long Jobs and Background Work

/goal Hands over a long task: Grok Build keeps working, round after round, until a check confirms the goal is met.

A student wants flashcards made from every file in their own notes folder, each card citing the note it came from.

Grok Build

/goal Turn every file in notes/ into flashcards in cards.csv, one card per key fact, each citing its source file

  • Grok Build plans an approach, breaks the work into a progress checklist and starts
  • /goal status shows the live progress panel; /goal pause stops and keeps the goal; /goal clear drops it

It marks the goal complete only after an independent review of the evidence; if that fails, the goal stays open or pauses with the gaps listed.

Suits long jobs with a clear finish line, and you still review the result. An illustration drawn from xAI's documentation, not a screenshot.

/loop Runs a prompt again and again at an interval you set.

In the week before term, a coordinator wants Grok Build to check the shared slides folder every hour and add each newly uploaded deck to the course checklist.

Grok Build

/loop 1h check the slides folder for new decks and add each one to checklist.md

  • The prompt runs now, then again every hour, each time as a new turn

Intervals run from 60 seconds to days; a loop expires after 7 days, and up to 50 can be active. Cancel one from the tasks pane (Ctrl+G).

Repetitive checking happens without you, and stops by itself. An illustration drawn from xAI's documentation, not a screenshot.

/tasks Lists what is running in the background: commands, helper agents, and scheduled prompts.

A coordinator has a loop running and a long conversion in the background, and wants to see both at once.

Grok Build

/tasks

  • A list of background tasks, helper agents, and scheduled tasks

Ctrl+G opens the live tasks pane instead. To stop a background command, select it in the conversation and press x, or ask Grok Build to stop it.

Shows what is still working on your behalf, so nothing runs longer than you meant. An illustration drawn from xAI's documentation, not a screenshot.

/queue Lists the prompts waiting behind the one now running.

While Grok Build works through a long reformatting job, a faculty member has typed two follow-up requests and wants to check their order.

Grok Build

/queue

  • The queued prompts, in the order they will be sent

Prompts typed during a turn are queued, not lost; Ctrl+; opens the queue panel.

Confirms what will happen next before the current step finishes. An illustration drawn from xAI's documentation, not a screenshot.

/deep-research Starts a research workflow in the background that checks each claim against its sources and writes a cited report.

While revising a syllabus, a faculty member wants a background review of published evaluations of AI tutors in preclinical anatomy teaching.

Grok Build

/deep-research Published evaluations of AI tutors in preclinical anatomy teaching since 2024

  • The command returns at once; the report appears in the conversation when it is ready
  • Only claims that pass an independent check are kept, and the report is marked Partial when anything could not be checked

/workflow runs shows its progress.

A research brief that runs while you keep working. Open and check every citation before you rely on it. An illustration drawn from xAI's documentation, not a screenshot.

/workflow Starts a saved workflow, or shows and controls the ones running.

A faculty member wants to see how far the background literature review has got.

Grok Build

/workflow runs

  • The Workflow Runs dashboard: each run's name, phase, helper agents, progress, and result
  • In a run's details, p pauses, r resumes, and x stops it

/workflow followed by a saved workflow's name starts it.

Background work stays visible and can be paused or stopped. An illustration drawn from xAI's documentation, not a screenshot.

/workflows Lists the saved workflows Grok Build has found, built-in, project, and personal.

A course director wants to know which ready-made workflows exist before writing one.

Grok Build

/workflows

  • The Workflows tab of the extensions window: each saved workflow with its source, description, and file location

xAI's online command table describes /workflows as the live run dashboard; its newer user guide and changelog give that job to /workflow runs.

Check what already exists before building your own. An illustration drawn from xAI's documentation, not a screenshot.

/create-workflow Writes and saves a new workflow, after asking how it should divide, check, and limit the work.

Each term a faculty member checks all 40 lecture handouts against the department's style guide, and wants it done the same way each time.

Grok Build

/create-workflow Check every handout against the style guide, then verify each finding

  • Grok Build asks about fan-out, verification, and scope
  • It writes the workflow, tests it briefly, and saves it in the project's .grok/workflows folder

Run it later with /workflow and its name.

A repeated, many-step check becomes one command that runs the same way each time. An illustration drawn from xAI's documentation, not a screenshot.

/fork Copies the current conversation into a second session that works alongside it.

A faculty member has an agreed outline for a team-based learning session and wants a second version for an online cohort, without losing the first.

Grok Build

/fork write the online version of this session plan

  • A second session starts from a copy of the conversation, with your words as its first prompt
  • Unless you say, it asks whether to run in a separate git worktree

Without a worktree, both sessions work in the same folder and can overwrite each other's files; a worktree (which needs a git repository) keeps them apart.

Two directions from one starting point, each with the full context. An illustration drawn from xAI's documentation, not a screenshot.

Images, Video, and Voice

/imagine Makes an image from a description, when the feature is available to you.

A faculty member wants a simple illustration of a stethoscope on a clipboard for the title slide of a study-skills workshop.

Grok Build

/imagine a simple flat illustration of a stethoscope resting on a clipboard, for a title slide

  • An image is generated from the description
Quick visuals for teaching materials without leaving the folder you are working in. An illustration drawn from xAI's documentation, not a screenshot.

/imagine-video Makes a short video from a description, when the feature is available to you.

A student-life coordinator wants a few seconds of moving title for an orientation video.

Grok Build

/imagine-video a slow pan across a sunny campus lawn with palm trees, for an opening title

  • Grok Build plans the shots, makes source images, and animates them into a video
A short clip without separate video software. Video uses far more of your allowance than chat. An illustration drawn from xAI's documentation, not a screenshot.

/voice Starts voice dictation into the prompt; Esc or Enter stops it, and Enter also sends.

A faculty member with a long, detailed request finds it easier to say it than to type it.

Grok Build

/voice

  • A recording banner shows while you speak, and your words go into the prompt

Ctrl+Space or F8 starts and stops dictation too. An organization can switch dictation off.

Long instructions are often quicker to say, and Esc leaves the text in the box to edit before sending. An illustration drawn from xAI's documentation, not a screenshot.

Display and Navigation

/settings Opens the settings window (also /config, or F2).

A staff member wants Grok Build to open in its simpler minimal view every time.

Grok Build

/settings

  • The settings window, where options such as Default screen mode can be changed
Every option in one place, without editing configuration files. An illustration drawn from xAI's documentation, not a screenshot.

/theme Switches the color theme (also /t).

A faculty member is showing Grok Build on a lecture-hall projector, where the dark default is hard to read.

Grok Build

/theme light

  • The display switches to the GrokDay light theme

/theme on its own opens a picker with a live preview, and a theme of auto in the settings follows your computer's light or dark mode.

Readable on a projector or in a bright room. An illustration drawn from xAI's documentation, not a screenshot.

/compact-mode Switches a denser layout on or off: less padding and tighter spacing.

A student working on a small laptop screen wants more of the conversation visible at once.

Grok Build

/compact-mode

  • The layout tightens, with less padding between entries

The choice is kept for later sessions.

More on screen without shrinking the text. An illustration drawn from xAI's documentation, not a screenshot.

/multiline Switches multiline input on or off: Enter starts a new line and Shift+Enter sends (also /ml).

A course director wants to type a request with several numbered steps without each Enter sending it.

Grok Build

/multiline

  • Multiline input is on: Enter adds a line, and Shift+Enter (or Alt+Enter) sends
Long, structured requests are easier to write and check before sending. An illustration drawn from xAI's documentation, not a screenshot.

/timestamps Sets which messages show the time: off, minimal, or on.

A faculty member wants the time beside each message, to record how long a revision session took for a teaching portfolio.

Grok Build

/timestamps on

  • Messages show the time they were sent
A simple record of when things happened in a session. An illustration drawn from xAI's documentation, not a screenshot.

/density Sets how much of each step the conversation shows: Detailed, Diff focus, Balanced, Grouped, or Compact.

A staff member new to Grok Build finds the full detail of every file operation distracting.

Grok Build

/density Grouped

  • Tool calls are shown at the Grouped level of detail
Less clutter while you follow the work; switch back to Detailed when you need to check exactly what was done. An illustration drawn from xAI's documentation, not a screenshot.

/minimal, /fullscreen Switches the session to the simpler, experimental minimal view, which uses your terminal's own scrolling; /fullscreen switches back.

A student's terminal does not copy text well from the full-screen view.

Grok Build

/minimal

  • The session switches in place; a running task, your draft, and your permission mode carry over

A few commands, such as /find, /jump, and /theme, work only in the full-screen view, and /expand (which reprints a shortened block in full) only in the minimal one.

Copying and scrolling then behave like any other text in your terminal. An illustration drawn from xAI's documentation, not a screenshot.

/jump Jumps to an earlier turn of the conversation.

A faculty member wants to go back to the turn, much earlier in a long session, where the module's learning objectives were agreed.

Grok Build

/jump

  • You pick a turn, and the view moves to it

Full-screen view only. Shift with the left or right arrow also moves between turns.

Gets back to a decision point without scrolling. An illustration drawn from xAI's documentation, not a screenshot.

/timeline Shows or hides a sidebar with a clickable mark for each turn.

In a session of many turns, a course coordinator wants a quick way to move between them with the mouse.

Grok Build

/timeline

  • A sidebar of tick marks, one per turn; clicking one moves there

Full-screen view only.

An outline of a long session, one click from any turn. An illustration drawn from xAI's documentation, not a screenshot.

Troubleshooting and Feedback

/doctor Checks the terminal, clipboard, colors, input, notifications, and sandbox, and explains how to fix each problem (also /terminal-setup).

Copying from Grok Build does not reach the clipboard on a faculty member's laptop.

Grok Build

/doctor

  • What it found, with how to resolve each problem

/doctor fix lists the fixes it can apply for you; the rest come with steps to follow.

The first step before asking for technical help. An illustration drawn from xAI's documentation, not a screenshot.

grok doctor In a terminal, diagnoses setup problems, including one that stops Grok Build from starting.

After a settings change, Grok Build will not open at all on a staff member's computer.

Grok Build

grok doctor

  • It names the configuration file or setting that prevents Grok Build from starting

grok doctor fix offers repairs and asks before changing anything.

Works even when the app cannot start and /doctor is out of reach. An illustration drawn from xAI's documentation, not a screenshot.

/feedback Reports a problem or sends feedback to xAI.

Grok Build keeps cutting off long tables in its replies, and a faculty member wants to tell xAI.

Grok Build

/feedback Long tables in replies are cut off after about 20 rows

  • The message is sent; if sending fails, it is saved to Drafts

/feedback on its own opens a form with a Write tab and a Drafts tab.

Reports go straight to the team that builds Grok Build. An illustration drawn from xAI's documentation, not a screenshot.

More Commands, Mostly for Developers

grok -p Runs one request without the full-screen view, for scripts and automated pipelines.

grok agent stdio Runs Grok Build as an agent that an editor or another app drives through the Agent Client Protocol (ACP).

grok mcp Adds, lists, removes, or diagnoses MCP servers from a terminal (list, add, remove, doctor).

grok plugin Installs, updates, enables, disables, checks, or removes plugins; grok plugin marketplace manages where plugins come from.

grok worktree Lists, shows, or removes the git worktrees (separate copies of a repository) made for sessions; grok -w starts a session in a new one.

grok clone Fetches a git repository through xAI's Grove system, when that is turned on in the settings.

grok du Reports how much disk space Grok Build's own folder uses, including saved sessions and worktrees.

grok usage Prints the recorded token and cost figures for a saved session, turn by turn, as machine-readable data.

grok wrap Runs a command in a local terminal that passes clipboard copies through, for remote sessions.

grok completions Generates tab-completion scripts for your shell.

grok setup Fetches and installs configuration managed by your organization.

grok login In a terminal, signs in to Grok Build; with --device-auth it signs in with a code instead, for a computer without a browser.

/code-review Reviews code changes; it ships with Grok Build.

/transcript Opens the full transcript in your terminal's pager program (also /log).

/vim-mode Switches the conversation view to vim-style keys.

/edit-prompt Opens the prompt in the external text editor your environment names.

/config-agents Manages the definitions of helper agents (also /agents).

/personas Creates and edits personas, tone and focus settings that helper agents can apply.

/hooks Opens the extensions window on its Hooks tab, to view, add, remove, or switch off hooks; /hooks-trust lets a project's own hooks run.

Shortcuts and Symbols

Keys What They Do
Shift+Tab Cycle modes (Normal, Plan, Auto where available, Always-approve).
Ctrl+C Cancel the running turn.
Esc Esc Clear the prompt, or open rewind when the prompt is empty.
Ctrl+O Switch always-approve on or off.
Ctrl+P Open the command palette, a searchable list of every command, shortcut, and skill.
Ctrl+. Show all keyboard shortcuts (Ctrl+X on Windows and in some other terminals).
F2 Open settings (also Ctrl+,).
Ctrl+Enter Send now: stop the running turn and send what you typed (also Ctrl+I; Ctrl+L in VS Code and similar editors).
Shift+Enter Start a new line (Alt+Enter where Shift+Enter does not work).
Ctrl+R Open the list of saved sessions, as /resume does.
Ctrl+T Show or hide the to-do list.
Ctrl+G Show or hide the tasks pane of background work.
Ctrl+B Send the running command to the background.
Ctrl+\ Open the Agent Dashboard.
Ctrl+Space Start or stop voice dictation (F8 also works).
Alt+V Paste an image on Windows (Ctrl+V on Linux, Cmd+V on macOS).
Ctrl+Q Quit (press twice; Ctrl+D in VS Code and similar editors).
Ctrl+K In Grok Bot's desktop app, open the search palette to switch Bots or find earlier messages, files, and routines (Cmd+K on macOS).
Ctrl+D In Grok Bot's desktop app, dictate into the message box while it is selected (Cmd+D on macOS); you can edit the text before sending.
Ctrl+Shift+M In Grok Bot's desktop app, open Connect apps, where apps and packaged skills are installed (also Ctrl+Shift+W; Cmd instead of Ctrl on macOS).
Type What It Does
@ Attaches a file to the prompt, with a file picker; @notes.md:10-50 attaches only those lines, and @! reaches hidden files.
! On an empty prompt, switches to shell mode so you run a command yourself; Grok can see the output too.
# At the start of a prompt, saves the rest as a memory note, as /remember does.
@ In Grok Bot, mentions a Bot, group, routine, or connector, or attaches a connector to a task.
@ In the instructions of a Grok app automation, mentions a connector so every run uses it.