Grok Build Commands and Shortcuts¶
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
- 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.
/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.
/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.
/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.
/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.
/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.
/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.
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 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.
/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.
/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.
/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.
/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.
/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.
/home
- The welcome screen, listing recent sessions in this folder
The session you leave stays saved.
/quit Quits Grok Build (also /exit).
At the end of the day, a faculty member wants to close 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).
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.
/new
- A new, empty session; the finished one stays saved on disk
/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.
/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
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 -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.
/rename Renames the current session (also /title).
A clerkship coordinator has several sessions in one folder and wants this one easy to find later.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
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 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.
/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.
/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.
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.
/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.
/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.
/view-plan
- The plan preview opens again
/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.
/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.
/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.
/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.
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 --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.
/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.
/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.
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.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
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.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
/flush
- Flushing memory…
- A line reports the result, for example: Memory flushed through turn 12
Needs memory across sessions turned on.
/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.
/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.
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 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.
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.
/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.
/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.
/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.
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 models
- A list of the models you can use
/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.
/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.
/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.
/release-notes
- The release notes for the installed version
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 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.
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.
/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.
/<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.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
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.
/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.
/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.
/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).
/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.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
/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.
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.
/imagine a simple flat illustration of a stethoscope resting on a clipboard, for a title slide
- An image is generated from the description
/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.
/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
/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.
/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.
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.
/settings
- The settings window, where options such as Default screen mode can be changed
/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.
/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.
/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.
/compact-mode
- The layout tightens, with less padding between entries
The choice is kept for later sessions.
/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.
/multiline
- Multiline input is on: Enter adds a line, and Shift+Enter (or Alt+Enter) sends
/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.
/timestamps on
- Messages show the time they were sent
/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.
/density Grouped
- Tool calls are shown at the Grouped level of detail
/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.
/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.
/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.
/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.
/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.
/timeline
- A sidebar of tick marks, one per turn; clicking one moves there
Full-screen view only.
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.
/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.
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 doctor
- It names the configuration file or setting that prevents Grok Build from starting
grok doctor fix offers repairs and asks before changing anything.
/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.
/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.
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. |
More in This Section
Color key: Tool
- Tools & Prompts Section overview
- ChatGPT (OpenAI) Plans, models, Codex, and its commands
- Claude (Anthropic) Plans, models, Claude Code, and its commands
- Gemini (Google) Plans, models, Antigravity, and its commands
- Grok (xAI) Plans, models, Grok Build, and its commands
Browse Tools & Prompts21 pages
Find a Tool1 page
Use a Prompt2 pages
Work with Sources2 guides
Work with AgentsOptional, after the basics6 guides
Related Lesson in Learn
The Guides
- AI Agents What an agent is, and what it can do
- Choosing Your Interface Chat, work, or code
- Your First Agent Session Run one, once, on a safe folder
- Standing Setups: Assistants That Remember Assistants that remember your work
- Agent Skills Give an agent a playbook
- Always-On Agents: Study Help That Comes to You Reminders, practice, and a weekly check, sent to you
Run Models Locally2 guides
By Company4 company guides
Compare Models3 leaderboards
Color key: ToolPromptGuideLessonBenchmark