---
type: analysis
slug: grok-build-s-stream-json-output-needed-a-regression-fix-in-its-first-headline
title: "Grok Build's stream-json output needed a regression fix in its first headline release, so put an adapter between it and your CI"
description: "Grok Build 1.0.97 lists a newline-delimited JSON event stream for headless runs as a feature. The same release fixes stream-json so it includes workflow agent output again. On the same day, the Cursor merger invited Claude Code and Codex users to move over. Teams that parse this stream directly depend on a format that has no published schema and is changing during a merger. A small adapter you own is cheap protection."
published_at: 2026-12-01T18:00:00.000Z
topics: ["claude","claude_code","workflow"]
source_urls: ["https://x.ai/cli/changelogs/1.0.97.external.md","https://x.ai/changelog/build","https://grok.com/news/cursor-is-now-grok-build","https://www.oag.state.va.us/media-center/news-releases/jay-jones/3162-attorneys-general-jones-and-rayfield-file-suit-against-spacex-parent-company-of-x-xai-and-grok-over-creation-and-promotion-of-child-exploitation-and-non-consensual-images-on-platform"]
author: "Andrey Reshetnikov"
author_profile: https://newruntime.com/owner-profile.md
---
# Grok Build's stream-json output needed a regression fix in its first headline release, so put an adapter between it and your CI

Grok Build 1.0.97 lists a newline-delimited JSON event stream for headless runs as a feature. The same release fixes stream-json so it includes workflow agent output again. On the same day, the Cursor merger invited Claude Code and Codex users to move over. Teams that parse this stream directly depend on a format that has no published schema and is changing during a merger. A small adapter you own is cheap protection.

## Summary

Grok Build 1.0.97, dated November 30, 2026, lists a newline-delimited JSON event stream for headless runs (`--output-format stream-json`) as a feature. It also adds a `--sandbox enabled` flag, git-ref pinning for plugin marketplaces and `--resume=-1`. Under Bug Fixes, the same release says stream-json "includes workflow agent output again". Also on November 30, SpaceXSI announced that Cursor is now Grok Build, with one-step import of Claude Code settings and resumption of Claude Code and Codex sessions.

## What happened

Two things happened in the same week. One vendor hardened a coding agent for unattended use, and it also made switching to that agent cheaper for users of other tools.

The hardening is in the changelog. Release 1.0.97 lets headless runs emit an NDJSON event stream with `--output-format stream-json`. It also starts the workspace sandbox with `grok --sandbox enabled`, lets `--system-prompt` take a file path, and pins marketplace plugin sources to a branch, tag or commit. A failed `grok plugin marketplace update` now exits 1, and `grok update` refuses a binary that reports the wrong version. One bug fix matters most for anyone scripting the tool: stream-json "includes workflow agent output again". That wording means an earlier build emitted the stream without those events.

Earlier releases touched the same headless path:
- 1.0.90 (November 18) clarified the headless `--continue` message and stopped sandbox profile failures from failing silently.
- 1.0.91 (November 19) made headless JSON errors keep reply text that had already printed.
- 1.0.92 (November 19) added images from MCP tool results to headless streaming and JSON output.

That is four releases in about two weeks that change what a headless consumer receives.

The switching side is in the Cursor announcement. Cursor becomes the Grok Build desktop app. The TUI gets Cursor's agent harness, third-party models, workflows across "hundreds of agents" and agent-to-agent messaging. `/import-claude` brings over Claude Code permissions, environment variables, MCP servers and hooks. `/resume-claude` and `/resume-codex` pick up sessions from those tools. Users who tag @Cursor in Slack, GitHub, Linear or Jira must switch to @Build from December 7. The announcement says command-line and API automations will keep working as written.

Separately, on November 23, 2026, the Attorneys General of Virginia and Oregon sued SpaceX over Grok's image generation on X. That case says nothing about the coding agent or its output format.

## What the archive adds

An earlier New Runtime note on the rebrand reported that the desktop IDE, agent sessions and third-party models keep working as before. It pointed to `/import-claude` as the way to migrate Claude Code settings and tied the rebrand to SpaceX completing its Cursor acquisition in August. Cursor's acquisition post, dated August 14, 2026, said the deal combined Cursor's product with SpaceX compute to build more capable models at lower cost. New Runtime's earlier coverage also covered the Virginia and Oregon filings.

Competitors offer a comparison. OpenAI's write-up on Codex as a platform describes an open harness with sandbox and approval policies, MCP and streamed execution. It also warns that generated code can reach whatever files, credentials and network the environment exposes. Recent Claude Code changelog entries fix two problems: a sandboxed shell command that could write into a `--plugin-dir` folder later run outside the sandbox, and `CLAUDE_STREAM_IDLE_TIMEOUT_MS` not extending a connection limit. Sandbox and streaming code is still being patched across agent CLIs. xAI's docs on skills, plugins and marketplaces say official catalog plugins are pinned to commit SHAs and that the pin is checked at install. That protects integrity. It does not show the plugin code is safe.

## Trend signal

Coding agents are being called by other software. The headless entry point, the structured event stream and the sandbox boundary now matter as much as the interactive terminal, because CI jobs, review bots and orchestrators depend on them. Claude Code, Codex CLI and Grok Build all offer these features. Grok Build also says it is compatible with Claude Code configuration and imports Claude and Codex sessions, which makes trying it out cheap.

The weak point is the event format. Each vendor defines its own stream and changes it on its own schedule. According to the Grok Build changelog page on grok.com, versions 1.0.88 through 1.0.96 shipped between November 16 and 30, and a separate 2.0.5 release appeared on November 30. In that period, the headless output gained MCP images (1.0.92) and changed its error behaviour (1.0.91). Stream-json was also fixed to restore workflow agent output (1.0.97). Fast releases bring features quickly. Code that parses their output has to absorb every change.

## Why now

1) Integration after the acquisition. Cursor's August 14 post says the deal combined Cursor's product with SpaceX compute (d2). The November 30 announcement says the product and ML teams have merged and that Cursor's harness now runs under the Grok Build TUI. Merging two harnesses produces new flags and regressions like the missing workflow agent output.
2) Demand for orchestration. The announcement promotes workflows across hundreds of agents, an Agents SDK and agents that keep running over SSH. All of these need headless runs with machine-readable output, which is why 1.0.91, 1.0.92 and 1.0.97 each touch headless JSON paths.
3) Competing on switching cost. Claude Code and Codex already offer headless, sandboxed, MCP-capable harnesses (d4, d11). xAI's docs say Grok Build supports Claude Code-compatible configuration (d10), and the TUI adds `/import-claude` and `/resume-codex`.
4) Supply-chain pressure from plugins. Plugins bundle hooks and MCP servers that run code. Commit-SHA pins for catalog plugins (d10) and `--git-ref` pinning in 1.0.97 respond to that risk.

## Connections to other events

Taken together, these stories show that Grok Build lowers the cost of adopting it faster than it publishes a stable contract for its machine-readable output.

Adoption. `/import-claude`, `/resume-codex`, third-party models and the promise that CLI automations "keep working as written" all reduce switching costs. The Agents SDK, hosted Apps and the plugin marketplace increase how much a team builds on Grok Build specifically.

The contract. A pipeline that reads `--output-format stream-json` depends on event types, field names and complete output. The 1.0.97 fix shows that completeness slipped in an earlier build: workflow agent output was missing. The changelog does not say how long the bug lasted, which builds it affected, or whether a consumer would have seen an error or just fewer events. The release notes and the docs xAI links from Grok Build show no versioned schema or deprecation policy for this stream. Our read is that, for now, the format is whatever the current build emits.

The platform risk is narrower than "the vendor might vanish". The risk is that your parsing code silently becomes wrong after an upgrade you did not choose. Auto-update is on by default, and 1.0.97 itself fixes auto-updates that got stuck. So the cost of a vendor change falls on you at the vendor's pace. The fix is cheap: an adapter that maps any agent's event stream into your own internal event types, plus a pinned CLI version.

Against this, Claude Code and Codex may change their streaming output just as often. That would make this normal churn across the category, not a Grok Build problem. The Claude Code changelog entries New Runtime checked show streaming-connection and sandbox fixes, but none restoring missing events in a structured output format. A Codex changelog comparison was not done. If both rivals turn out to show similar output-format fixes over the same weeks, the right advice still holds, because the adapter protects you from all three. Only the claim that Grok Build is unusually volatile would weaken.

## Why it matters

For builders who script Grok Build headless:
- Pin the CLI version. `grok install <version>` now aliases `grok update --version <version>`. Upgrade deliberately rather than through auto-update.
- Put a thin normalizer between the NDJSON stream and your CI logic.
- Pin plugin sources with `--git-ref` to a commit, not a branch.
- Turn on `--sandbox enabled` explicitly and check `/doctor`. Sandbox profile failures only started being reported loudly in 1.0.90.

One caution on monitoring. Alerting when a run with workflows produces zero workflow-agent events is a guess about how the regression showed up. The changelog does not say whether events were dropped silently or whether the run failed some other way. Treat it as a cheap canary, not proof that it would have caught this bug.

For buyers moving Cursor seats onto Grok Build: review how data is handled and how third-party models are routed under the new terms. Do not assume the Cursor-era terms carry over.

The strongest counter-argument is that this is ordinary early-platform hardening. Git-ref pinning, exit code 1 on a failed update and refusing mismatched binaries are what a maturing tool ships, and the stream format may settle within weeks. If it does, the adapter becomes cheap insurance you rarely use. That is still a good trade for a few dozen lines of code.

## What happens next

- **Another Grok Build release within three months will list a stream-json fix or change, showing the event format is still moving.** (3 months, 55%). Watch for: A changelog entry under Bug Fixes or Features that names `stream-json` in a release after 1.0.97. Resolves on 2027-03-01, yes if: The Grok Build changelog at x.ai/changelog/build lists, in a release dated between 2026-12-01 and 2027-02-28, an entry containing the string 'stream-json'.
- **xAI will not publish a versioned, field-level schema for the Grok Build stream-json event format within three months.** (3 months, 70%). Watch for: Grok Build headless docs either gain an event-type reference with a schema version number, or keep documenting only the flag. Resolves on 2027-03-01, yes if: On 2027-03-01, docs.x.ai has no Grok Build page that lists stream-json event types together with a declared schema version number.

## Limits and uncertainty

Several things are unknown:
- New Runtime has not seen the stream-json event schema and does not know whether xAI plans to version it.
- The changelog does not give the regression's scope, duration or failure mode.
- The 1.0.97 Features list presents stream-json as new, while its Bug Fixes say it works "again". Either the flag existed earlier in another form, or the wording is loose. That ambiguity limits what can be inferred about its history.
- The comparison with rival CLIs is partial. Claude Code entries were checked and Codex entries were not. Similar churn there would make this a category-wide pattern.

The Virginia and Oregon suits concern Grok's image generation on X and allegedly misleading safety claims. They provide no evidence about Grok Build's headless contract, and this take does not rely on them. At most they are a general input to vendor review.

The "keep working as written" promise for CLI and API automations may hold in full. No adoption, churn or reliability figures for Grok Build are public. New Runtime's archive has no comparable cases to use as a base rate.

## Competing readings

- **Platform risk. Grok Build lowers the cost of adopting it faster than it publishes a stable contract for its headless output, so pipelines that parse stream-json directly are fragile and should sit behind an adapter** (likely, about 55%). What would tell it apart: Headless output changed in 1.0.91, 1.0.92 and 1.0.97 within about two weeks, including a documented regression fix for stream-json ([x.ai](https://x.ai/cli/changelogs/1.0.97.external.md))([x.ai](https://x.ai/changelog/build)); Migration tooling and a promise that automations keep working encourage teams to integrate now ([grok.com](https://grok.com/news/cursor-is-now-grok-build)).
- **Normal churn. The cadence is ordinary hardening, comparable to Claude Code and Codex, and the format will settle soon with little cost to integrators. This reading gains ground if rival changelogs show similar output-format fixes over the same weeks** (unlikely, about 35%). What would tell it apart: Git-ref pinning, a failed update exiting 1 and refusing mismatched binaries are what a stabilising tool ships ([x.ai](https://x.ai/cli/changelogs/1.0.97.external.md)); The regression was fixed promptly and the vendor commits to existing automations continuing to work ([x.ai](https://x.ai/cli/changelogs/1.0.97.external.md))([grok.com](https://grok.com/news/cursor-is-now-grok-build)).
- **The legal overhang is the real story, and the state suits will force policy or availability changes for Grok Build that outweigh any churn in the output format** (very unlikely, about 10%). What would tell it apart: Two state attorneys general sued over Grok's image generation, not the coding agent ([oag.state.va.us](https://www.oag.state.va.us/media-center/news-releases/jay-jones/3162-attorneys-general-jones-and-rayfield-file-suit-against-spacex-parent-company-of-x-xai-and-grok-over-creation-and-promotion-of-child-exploitation-and-non-consensual-images-on-platform)).

## Base rate

The New Runtime archive could not be queried for comparable cases (canceling statement due to statement timeout), so it gives 0 cases: no base rate. The archive returned 0 cases and 0 matches, which is too few to support any base rate. This take rests on the changelog record alone.

## What would change this view

- By 2027-03-01, docs.x.ai publishes a versioned stream-json event schema with a deprecation policy (signal): The headless output is being treated as a stable public API, which reduces the case for an adapter.
- Between 2026-12-01 and 2027-02-28, no Grok Build changelog entry mentions stream-json or headless JSON output (signal): The event format has settled and the churn argument weakens.
- Claude Code and Codex changelogs for November 2026 show output-format fixes as frequent as Grok Build's (signal): The volatility is category-wide normal churn, not specific to Grok Build.

## Skill to build now

Build an adapter for agent event streams that does not depend on any one vendor.

First exercise:
1. Run one headless task through Grok Build with `--output-format stream-json`, and the same task through Claude Code or Codex CLI with their streamed JSON output.
2. Save both raw NDJSON files as fixtures.
3. Write a short script that maps both into five internal event types: started, tool_call, subagent_output, error, finished.
4. Add a regression test that replays the fixtures. It should fail if any event type present in the fixture disappears after an upgrade.

The test checks presence and shape. It does not assume how any particular past bug showed up.

## Reader takeaway

If Grok Build runs anywhere without a human watching, do three things this week:
1. Pin the CLI version with `grok install <version>`.
2. Pin every marketplace plugin source to a commit with `--git-ref`.
3. Route `--output-format stream-json` through a small normalizer you own, with a test that compares event types against a recorded run from a known-good version.

You can then upgrade, or switch to Claude Code or Codex, when it suits you.

## Open question

Will xAI treat the Grok Build event stream as a public API, with a version number and deprecation notice, once the Cursor merger settles? Or will its shape keep following the release cadence? And if Claude Code and Codex turn out to change their streams just as often, should buyers demand a schema commitment in writing from all three?

## Sources

- [Grok Build 1.0.97 adds stream-json output, sandbox flag, and session-picker badges](https://x.ai/cli/changelogs/1.0.97.external.md)

- [Grok Build Changelog | SpaceXSI](https://x.ai/changelog/build)

- [Today, Cursor becomes Grok Build.](https://grok.com/news/cursor-is-now-grok-build)

- [The service layer matters even when the whole interaction takes place on a screen.](https://www.oag.state.va.us/media-center/news-releases/jay-jones/3162-attorneys-general-jones-and-rayfield-file-suit-against-spacex-parent-company-of-x-xai-and-grok-over-creation-and-promotion-of-child-exploitation-and-non-consensual-images-on-platform)

- [Cursor is now a part of SpaceX | Cursor](https://prod.cursor.com/blog/joining-spacex?trk=article-ssr-frontend-pulse_little-text-block)

- [Grok Build: SpaceXSI’s Coding Agent](https://docs.x.ai/build/overview)

- [Skills, Plugins & Marketplaces](https://docs.x.ai/build/features/skills-plugins-marketplaces)

- [Codex as a platform: build on the open agent harness](https://developers.openai.com/blog/codex-as-a-platform)

- [Grok Build Changelog](https://grok.com/product/build/changelog)

- [Terminal UI overview | Grok Build Docs](https://docs.grok.com/build/overview)

- [Run modes | Grok Build Docs](https://docs.grok.com/build/agents-window/agent/security/run-modes)

Author: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Claude](https://newruntime.com/topics/claude.md): Explore the claude topic hub.
- topic hub: [Claude Code](https://newruntime.com/topics/claude-code.md): Explore the claude_code topic hub.
- collection: [Analysis](https://newruntime.com/analysis.json): Open the latest authorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
