Run End-to-End Tests from Your Terminal with Kane CLI

Author and Run Tests Right from the Terminal in Natural Language, with an Evidence-Backed Pass or Fail from a Real Browser.

npm install -g @testmuai/kane-cli

Grok Build: What Changes for Cursor Users and Their Tests

Cursor is now Grok Build. See what the rewrite changed, the CLI 2.0 upgrade commands, the @Build switch on December 7, and which rule files each surface reads.

Published

Summarise with AI

A repo carries two test rules. AGENTS.md tells the agent to run the Playwright suite before it calls a task done, and .cursor/rules/release-gate.mdc forbids opening a pull request while any test fails.

Open the repo in the Grok Build desktop app and the agent follows both rules. Start the same task from the new grok terminal app and only the AGENTS.md rule reaches the model, because the terminal does not load .mdc files.

The Grok Build announcement of November 30, 2026 brings SpaceXSI's and Cursor's coding products under one name: Cursor becomes the Grok Build desktop app, and the Grok Build terminal app now runs Cursor's agent harness.

TL;DR

Grok Build is SpaceXSI's AI coding app and, since November 30, 2026, the new name for Cursor. The Cursor editor became the Grok Build desktop app with a rewritten Agents Window, and the grok terminal app now runs Cursor's agent harness. Your IDE, agent sessions, and third-party models keep working as before.

Grok Build at a Glance

  • Desktop app: The Grok Build desktop app is the former Cursor editor. Its Agents Window was rewritten so it no longer sits on VS Code internals, and the new version is in open beta with a wider rollout over the coming weeks.
  • Terminal app: The grok command, version 2.x, keeps the Grok Build terminal interface and runs Cursor's agent harness underneath, adding third-party models, agent messaging, JavaScript workflows, and Remote Control.
  • @Build mentions: From December 7, teams tag @Build instead of @Cursor in Slack, GitHub, Linear, and Jira. Command-line and API automations that call the agent command keep working as written.
  • Cursor .mdc rules: The Grok Build desktop app reads .mdc rules in .cursor/rules, but the Grok Build terminal app does not, and Bugbot applies them only when .cursor/BUGBOT.md links them. Rules every Grok Build surface must follow belong in AGENTS.md.
  • Free plan: Yes. Grok's Free plan includes limited Grok Build agent requests, while cloud agents, automations, and AI code review start on the Premium plan.
  • Independent test check: Grok Build's browser tool and Bugbot grade the agent's own work. TestMu AI's Kane CLI runs the changed journey in a real Chrome browser and returns a pass or fail exit code the agent can read.

What Is Grok Build?

Grok Build is SpaceXSI's AI coding app for developers and enterprise teams. It runs coding agents in a desktop app, in a terminal app called grok, in cloud agents that each get their own machine, and in Bugbot code review on pull requests.

The Agents Window is Grok Build's agent-first interface for building with agents across repos, your machine, the cloud, and remote SSH hosts, while the editor keeps the classic IDE with VS Code extensions. You can switch between the two at any time.

SpaceX completed its acquisition of Cursor in August 2026. The rename places Grok Build in the Grok product lineup listed in the announcement:

ProductWhat it is
GrokGeneral chat assistant
Grok BuildCoding app, built for developers and enterprise teams
Grok BotAI teammates for general knowledge work
Grok APIProducts for voice, image, and more
Grok OriginAgent-first code repository

For Cursor users, the names map like this:

Before November 30NowWhat changed
Cursor desktop appGrok Build desktop appSame IDE; agent sessions and third-party models carry over
Cursor Agents WindowGrok Build Agents WindowRewritten from scratch and no longer built on VS Code internals; open beta
Cursor CLI (agent command)Grok Build terminal app (grok 2.x)An improved Cursor agent harness runs under the Grok Build interface; scripts that call agent keep working
Grok Build TUI (SpaceXSI)Grok Build terminal app (grok 2.x)Keeps its interface and gains third-party models, workflows, memory, and agent messaging
@Cursor in Slack, GitHub, Linear, Jira@BuildSwitch starts December 7

The Rust source for the terminal app and its agent runtime is published on GitHub as xai-org/grok-build under the Apache-2.0 license, with about 28,000 stars. Its README says the repository is synced periodically from the SpaceXAI monorepo.

Periodic syncs mean the published code can trail the CLI release you install.

Grok Build sits alongside the other AI coding agents that plan work, edit files, and run commands on their own.

For a quick visual walkthrough of this concept, watch the video below from TestMu AI.

Youtube thumbnail

Subscribe to the TestMu AI YouTube channel for more tutorials on testing and automation.

Grok Build Rewrite: Speed Claims and New Features

The rewrite targets the Agents Window. According to the announcement, heavy work moved into separate worker threads so the renderer responds to user actions faster, and the web version of Grok Build now runs on the same foundation, so cloud agents and Projects behave the same in a browser.

The speed figures published on launch day describe different things:

Speed claimWhere it was publishedWhat it describes
3-10x faster, uses less memoryLaunch post from the @build account on XThe rewritten app as a whole
3x more responsiveGrok Build announcementThe new Agents Window, which also loads faster and uses less memory
Chat switching now feels instantGrok Build announcementMoving between long agent chats, which used to take up to a few seconds

Neither source names a test method or hardware. If speed matters to your team, time a switch between your longest agent chats before and after you join the open beta.

The announcement also lists features added to the desktop app in recent weeks:

  • Projects - rebuilt for multiplayer, so several teammates and their agents share context on one feature or migration.
  • Apps - deploy what an agent builds as a hosted app and share it with a URL.
  • Agents SDK - build your own agents on the same harness that powers Grok Build.
  • Computer use - agents drive desktop apps and check UI work on your machine or on cloud VMs.
  • Agents over SSH - remote sessions keep working with your laptop closed.

The Grok Build changelog lists version 2.0.5 on November 30 as the release that unifies the Grok Build terminal interface with Cursor's upgraded agent harness. It adds these terminal features:

  • Third-party models - the /model menu lists models from Anthropic, Google, OpenAI, and open-weight providers next to Grok, depending on your plan.
  • Workflows - JavaScript modules in .grok/workflows/ orchestrate parallel subagents, and legacy .rhai workflows convert automatically.
  • Agent messaging - subagents in a session message each other directly, you can steer a running subagent yourself, and subagents nest up to five levels deep.
  • Remote Control - the /remote command lets you follow and approve a local session from Grok Build for iOS while commands still run on your machine.
  • Cloud send - typing & on an empty prompt hands the session to a cloud agent and pushes your uncommitted files to a new branch, so check them for secrets first.

Changes Cursor Users Need to Make Before December 7

The core app stays the same: the announcement says the IDE, your agent sessions, and third-party models work as they did before. The changes that need action are in integrations, review triggers, and billing.

AreaWhat changesWhat to do
SlackThe app is renamed Build (fka Cursor) on December 7 and its handle becomes @Build, with no reinstallUpdate Slack workflows, saved prompts, and runbooks that mention @Cursor
GitHub pull requestsBugbot's @cursor remember command becomes @build remember on December 7Update PR templates and contributor docs that teach the command
Linear and JiraTag @Build instead of @Cursor to hand a ticket to an agentUpdate automation rules that assign work by mention
CLI and API automationsJobs that call agent keep working as writtenNo change on December 7; plan the CLI 2.0 switch on its own schedule
Bugbot manual reviewsThe docs still list cursor review and bugbot run, and Bugbot ignores either one when a bot account or GitHub App posts itStart manual reviews from a person's comment, not from a CI bot
Plans and billingThird-party models in Grok Build are billed separately on Premium, Super, and UltraCheck how much of your team's agent usage runs on Claude, GPT, or Gemini models

The Slack integration docs say the app appears as Cursor until December 7, when it becomes Build (fka Cursor) and the handle changes to @Build. You don't need to reinstall or reauthorize it.

The Bugbot docs make the same change on GitHub: @cursor becomes @build on December 7 for teaching Bugbot a rule, again with no reinstall.

Grok's pricing page lists Free, Plus, Premium, Super, and Ultra plans. Cloud agents and automations, AI code review, and code hosting through Origin start on Premium.

Note

Note: When several Grok Build cloud agents push to separate branches, TestMu AI's Cursor app testing runs the same user journeys against each preview URL, so you know which branch is safe to merge. start free

How to Switch From the Cursor CLI to the Grok Build CLI

The Grok Build 2.0 guide gives one install or update command for each starting point: the legacy Grok CLI, the legacy Cursor CLI, or a fresh install.

The 2.0.5 changelog adds that the switch keeps your settings, MCP servers, skills, hooks, and sessions, including chats from an earlier Cursor CLI setup.

# Already on the Cursor CLI (the agent command)
cursor-agent update --channel grok

# Already on the legacy Grok CLI
grok update --channel unified

# Fresh install on macOS or Linux
curl -fsSL https://x.ai/cli/unified/install.sh | bash

# Fresh install on Windows (PowerShell)
irm https://x.ai/cli/unified/install.ps1 | iex

# A version that starts with 2. is the unified CLI
grok --version

On organization-managed teams, an admin has to unify your plans before the update works. If the new CLI breaks a workflow, you can go back:

  • Back to the Cursor CLI - run cursor-agent update --channel cursor.
  • Back to the legacy Grok CLI - in ~/.grok/config.toml, under [cli], set channel = "stable" and add build = "legacy", then run grok update.

The guide says your settings, sessions, and sign-ins stay on disk when you roll back either way.

In CI, the announcement says existing jobs that call agent keep working as written, so you can move them to grok one at a time.

The headless and scripting docs list the flags for automated runs: -p sends one prompt, --output-format json returns one JSON object at the end, and --no-auto-update skips background update checks in CI.

# XAI_API_KEY comes from your CI secret store
grok --no-auto-update -p "Run the unit tests and summarize any failures" --output-format json

If your team also runs Claude Code, /import-claude copies its permissions, environment variables, MCP servers, and hooks into Grok Build in one step. Read those permissions and hooks before you import them, because they decide which commands the agent runs without asking. Claude Code vs Cursor compares the two agents in more depth.

Grok Build Rule Files: Desktop vs Terminal vs Bugbot

If your test instructions are in rule files, check which files each Grok Build surface reads before you rely on them.

The Agents Window rules docs compare how the Agents Window and the Terminal UI read rule files.

For the formats themselves, Cursor rules explains .mdc frontmatter and AGENTS.md covers the plain Markdown file.

File or locationAgents Window (desktop)Terminal app (grok)Bugbot
AGENTS.md, root and nestedRead; nested files apply to their folderRead; deeper files win on conflictsNot among Bugbot's rule sources
.mdc files in .cursor/rules/Read, with always, file-pattern, agent-requested, and manual activationNot readApplied only when .cursor/BUGBOT.md links the file
Plain .md files in .cursor/rules/IgnoredRead in every sessionApplied only when .cursor/BUGBOT.md links the file
.grok/rules/*.mdNot listedRead in every sessionNot listed
CLAUDE.md and CLAUDE.local.mdNot listedRead; gitignored files are skippedNot listed
.cursor/BUGBOT.mdNot listedNot listedRoot file always; nested files when the review touches their folder
See what loadedCustomize, then Rulesgrok inspectComment bugbot run verbose=true

The terminal rules page says Grok loads only plain .md files sitting directly in .cursor/rules/ and does not load .mdc files at all, so a rule set written for Cursor produces no rules in the terminal.

The terminal also changes how a carried-over test rule applies:

  • No activation metadata - frontmatter such as globs and alwaysApply is stripped, so every rule the terminal loads applies to every session.
  • No subfolders - the terminal does not search nested directories under .cursor/rules/.

Bugbot follows its own rule sources. Per the Bugbot docs, it merges team rules, .cursor/BUGBOT.md files, learned rules, and manual rules into one block, within these limits:

  • Per rule - each rule is truncated at 30,000 characters when included in a review.
  • Per review - the combined rules are capped at 100,000 characters, and required team rules are kept first.
  • Linked files - every .md or .mdc file linked from .cursor/BUGBOT.md counts as its own rule.

To make one set of test rules reach every surface:

  • Put the rules every agent must follow, such as the test command and the no-PR-while-failing rule, in AGENTS.md at the repo root. The desktop app and the terminal both read it.
  • Keep scoped .mdc rules for the desktop app, and copy a short .md version of any you need in the terminal into .grok/rules/. It loads in every session, so keep it brief.
  • Copy review rules into .cursor/BUGBOT.md, or link the .mdc files from it, so Bugbot applies them.
  • Run grok inspect in the repo. It lists each rules file the terminal found, with its path and approximate token count.
  • Comment bugbot run verbose=true on a pull request. Bugbot posts a table of every rule it included and flags any it truncated or omitted.

A test section in AGENTS.md that both the desktop app and the terminal pick up:

# Agent instructions

## Tests
- Run `npx playwright test` and paste the summary line before you report a task as done.
- Do not open a pull request while any test in tests/ is failing.
- Never edit files under `tests/fixtures/`.

How to Keep Test Checks Independent of Grok Build

Grok Build's browser tool lets the agent navigate, click, type, take screenshots, and read console output while it tests an application.

The agent that wrote the change also decides whether the page works, so the browser check grades Grok Build's own work.

Bugbot reviews the diff, and the Bugbot docs note that its findings default to neutral. Requiring the Bugbot check in branch protection does not block a merge on findings unless your organization turns on fail-on-unresolved behavior.

Testing AI-generated code needs at least one check that the agent did not write and cannot grade. TestMu AI's Kane CLI runs a natural-language objective in a real Chrome browser, or in a native app on an emulator, simulator, or real device, and returns a pass or fail backed by evidence such as screenshots, console logs, and network responses.

Kane CLI exits with standard codes, so the Grok Build agent or a CI job can decide what to do next: continue, fix the bug, or hand the failure to a person.

Because the Grok Build desktop app and terminal both read AGENTS.md, it is the one file that reaches every coding agent session. Install it with npm install -g @testmuai/kane-cli, run npx @testmuai/kane-cli-skill, and ask the skill to make Kane CLI the project default. It adds this block to AGENTS.md:

<!-- kane-cli:start -->
## End-to-end testing

Use Kane CLI (`kane-cli`) for end-to-end, regression and smoke testing of web and mobile apps in this repository.

- After changing UI or user-facing behaviour, verify the flow in a real browser or mobile app before committing: `kane-cli run "<objective>" --agent` (add `--target android` or `--target ios` for a mobile app)
- For features with a PRD or spec, generate the tests with the Kane CLI assurance commands. Do not hand-write E2E test cases.
- Report the verdict and the evidence link from each run.

Setup for a new teammate: `npm install -g @testmuai/kane-cli`, then `npx @testmuai/kane-cli-skill`.
<!-- kane-cli:end -->

TestMu AI's Kane CLI is free to install, and new accounts start with 10,000 Kane CLI credits free for 30 days. The Kane CLI with AI coding agents docs cover the setup for each coding agent.

Kane CLI - Testing Agent in Your Terminal

Conclusion

Run grok inspect in your busiest repository before your team moves its terminal sessions to Grok Build 2.0, and move any test rule missing from that list into AGENTS.md. Then search your Slack workflows, PR templates, and Jira automations for @Cursor and switch them to @Build before December 7.

To check what a Grok Build agent ships, add the Kane CLI block to AGENTS.md and follow the Kane CLI introduction for sign-in and your first run.

Testing from the terminal? Kane CLI by TestMu AI lets SDETs and developers plan, write, run and debug tests from the command line.

To run your first test, start free, or
for a full walkthrough of the product.

Was this helpful?

Authors

Shravan Mahajan

Shravan Mahajan

Author · 13 posts

Shravan Mahajan is a Software Engineer at TestMu AI building Kane CLI, the command-line tool that runs browser automation from the terminal, describing flows in natural language that execute in a real Chrome browser and return pass or fail with shareable proof. He has an experience of 6 years in the Technical industry. His top skills are JavaScript, React.js, and full-stack development. At Fractal he built automated data pipelines with T-SQL, SSIS, Python, and Azure. He is also a Microsoft Certified Azure Data Engineer Associate.

Sri Harsha

Sri Harsha

Reviewer

Sri Harsha is Engineering Manager of the Open Source Program Office at TestMu AI, where he leads open-source engineering behind the Selenium and Appium automation grid and builds agentic AI systems for quality engineering. He is a member of the Selenium Technical Leadership Committee and a committer to WebdriverIO and Appium, and was recognized with the LambdaTest Delta Award 2023 for Best Contributor in open-source testing. He brings over 10 years of experience in software testing and automation, with earlier roles at EPAM Systems and ZenQ. Sri Harsha holds a B.Tech in Computer Science from Jawaharlal Nehru Technological University.

Grok Build FAQs

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests