Grok Build is xAI’s terminal-based AI coding agent, the grok binary you run from your command line. On 19 November, xAI shipped Grok Build 1.0.92, and the headline change matters most to anyone who runs it headless: a five-minute inactivity timeout that stops a run after five minutes with no model output, instead of letting it hang indefinitely. This guide walks through what changed in 1.0.92, how to install or update Grok Build, and how to run grok -p so your automated jobs finish cleanly instead of sitting idle.
What Grok Build Is
Grok Build is the coding agent xAI ships as a command-line tool. You install the grok binary, open a terminal in a project folder, and ask it to write code, fix bugs, run tests or refactor a module. It reads your files, edits them, and runs commands on your behalf. Grok Build first appeared in early beta on 25 May for SuperGrok and X Premium Plus subscribers. The default model tracks xAI releases, so the agent behind the binary changes as xAI ships new models. Documentation is hosted on x.ai, and the code is on GitHub under xai-org. For a look at another terminal coding agent, read how to use Claude Code in code mode.
What Changed in Grok Build 1.0.92
The 1.0.92 release, shipped on 19 November and picked up by the stable channel in the week of 23 November, is a reliability release rather than a feature launch. Three changes lead the changelog. First, headless sessions now get a five-minute inactivity timeout. Second, headless runs get error recovery, so a single hiccup no longer ends the task. Third, MCP tool results that contain images now include those images in headless streaming and JSON output. Around those three headline changes sit smaller fixes that clean up daily use, covered in detail below. You can read the full list in the official Grok Build changelog on x.ai.
The Five-Minute Headless Timeout
Headless mode, grok -p, is how you run Grok Build without an interactive session: you pass a prompt, it works, and the output comes back as text or JSON. That is the mode scripts and CI pipelines use, where a hung run hurts most. Before 1.0.92, a headless session that stopped producing model output could sit there indefinitely while nothing happened. The new behaviour is simple: if a headless session produces no model output for five minutes, the run stops. That is the changelog behaviour, not a setting you configure, so do not go looking for a timeout flag to tune. You can retry a stopped run from your script instead of discovering hours later that a job never finished, and the worst case is now a clean stop after five quiet minutes rather than an open-ended hang. For a different take on running an AI agent in the background, see how to use Grok 4.1.
Error Recovery in Headless Runs
Error recovery is the second headline change, and it pairs with the timeout. Before 1.0.92, one error during a headless run could end the whole task, even if the error was transient and the work was nearly done. Now a headless run can resume from errors instead of stopping at the first one. A flaky step or a tool call that fails once no longer wastes the work already completed. Your script still needs to check the final result, but the run gets a chance to finish instead of dying on a single hiccup. Keep each headless job small enough to verify. If you want a second opinion on how coding agents handle review and recovery, read how to use Claude Ship for code review.
MCP Image Results in Headless Output
The third headline change matters if you connect Grok Build to MCP servers. MCP tool results can contain images, for example a screenshot from a browser tool, a chart from a data tool, or a diagram from a design tool. In headless streaming and JSON output, those images now come through with the result instead of being dropped. A script that parses JSON output can see the image payloads rather than finding a gap where the image should have been. If you use MCP servers that return images, this closes a real gap. Independent coverage of the release is available in the Crypto Briefing report on the Grok Build 1.0.92 headless update.
How to Install or Update Grok Build
Installation is one command. Run curl -fsSL https://x.ai/cli/install.sh | bash to install the grok binary, or install it through npm with npm i -g @xai-official/grok. Run the same installer again to update, and confirm you are on 1.0.92 or later with grok –version before you rely on the new headless behaviour. One caution: the earlier grok-build-0.1 model was retired on 19 November, so if any script or configuration names that model, update it. The default model now tracks xAI releases, so re-check behaviour after an update rather than assuming identical output. For another terminal coding agent workflow, see how to use Pax, the Pydantic terminal coding agent.
How to Run Grok Build Headless
Headless mode is grok -p followed by your prompt. Change into your project directory, then run grok -p with a short, specific instruction, for example to fix a failing test. The result comes back as text, or as JSON if you ask for structured output. Keep three habits. First, scope the prompt tightly: one task, one outcome, named files where it helps. Second, run it in a git branch you can discard, because the agent edits files directly and a bad run is easier to throw away than to unpick. Third, capture the output. In a script, save stdout to a file and check the exit status before the next step. With the five-minute timeout, a run that goes quiet stops cleanly, so your script can log the stop, retry once, and move on. For a comparison with another coding assistant, read how to use GitHub Copilot Fusion.
Smaller Fixes Worth Knowing
The rest of 1.0.92 is polish, but polish that removes daily friction. Clickable file:// links now open the file the same way bare paths do. Question cards in minimal mode keep the first option visible instead of scrolling it off-screen. Session resume errors now give the same helpful instruction on every route. grok inspect shows the hooks a headless run would actually load, with a note for those that still need folder trust. Image paste with grok wrap works when Grok runs inside a remote tmux or through a second wrap. And grok no longer watches every directory when only tracking the current git branch. For a related workflow on using an AI model inside an existing assistant, see how to use GPT-6.2 Astra in ChatGPT Work and Codex.
Limits to Know Before You Automate
Three limits deserve a plain statement. The five-minute timeout is fixed behaviour, not a setting, so you cannot extend it for a job that needs long silent stretches. There is no built-in mobile app or hosted web remote for local CLI sessions, so do not plan to drive Grok Build from your phone. And the default model tracks xAI releases, so output can shift after an update. Keep jobs small, verify output, and keep a human in the loop for anything that touches production.
FAQs
What is Grok Build headless mode?
Headless mode runs Grok Build without an interactive session. You pass a prompt with grok -p, the agent works through it, and the result returns as text or JSON, which suits scripts, scheduled jobs and CI pipelines.
What happens if a headless run goes quiet for five minutes?
The run stops. Version 1.0.92 adds a five-minute inactivity timeout, so a headless session with no model output for five minutes ends instead of hanging indefinitely.
Can a headless run recover from an error?
Yes. Version 1.0.92 adds error recovery, so a headless run can resume from errors instead of one hiccup ending the task. Recovery does not guarantee success, so always check the final result before trusting it.
How do I install Grok Build?
Run curl -fsSL https://x.ai/cli/install.sh | bash, or install with npm using npm i -g @xai-official/grok. Confirm the version with grok –version before relying on the new headless behaviour.

