Blog

What Grok Build CLI picks up from Claude Code and Cursor

On one Mac, Grok Build CLI listed configuration written for other assistants as loaded. The list had the permission rules, MCP servers, hooks, skills, agents and plugins set up for Claude Code, and the rules written for Grok Build (formerly Cursor). This post shows the command that prints the list on your machine, and how to read the files behind it.

Published 2026-12-01. Measured the same day on macOS, with Grok Build CLI at 1.0.97 and at 2.0.6.

See your own list

Cursor is now Grok Build (product page), and Grok Build 2.0, released on November 30, 2026, puts Grok Build CLI on Cursor's agent harness (changelog). Grok Build CLI has a command that, in the words of its own help text, shows "the configuration Grok discovers for this directory":

grok inspect

Run it in a project you work in. Some entries end with a tag, [claude] or [cursor], that says whose configuration they come from. Other sections name the file they read: the Permissions section names ~/.claude/settings.json as its source.

What it listed on one Mac

Both versions listed the same sources as loaded:

  • Instructions and rules from ~/.claude and from ~/.cursor/rules.
  • The permission rules in ~/.claude/settings.json.
  • Claude Code's skills, agents and plugins.
  • The MCP servers in ~/.claude.json.
  • The hooks in ~/.claude/settings.json.

Cursor's own hook entries in ~/.cursor/hooks.json were the exception. Grok Build CLI listed them as not run, with a note that it runs none of Cursor's own entries unless the cursor_hook_entries feature is on.

The last section of the output says what's switched on. It's shortened here to its cursor and claude rows:

Harness Compatibility └ cursor └ skills on (default) └ rules on (default) └ agents on (default) └ mcps on (default) └ hooks on (default) └ sessions on (default) └ claude └ skills on (default) └ rules on (default) └ agents on (default) └ mcps on (default) └ hooks on (default) └ sessions on (default)

Hooks are the one part observed at run time. The Skarn guard's prompt hook was set up for Grok Build CLI and for Claude Code on that Mac, and one prompt in Grok Build CLI 1.0.97 wrote a guard record in each of the two logs.

What was not measured

  • Which of the listed permission rules take effect when Grok Build CLI runs a tool.
  • Whether Grok Build CLI called any of the listed MCP servers.
  • Linux and Windows.
  • What Grok Build (formerly Cursor), the desktop app, loads.

Why read the list

You approved each permission rule and connected each MCP server with one assistant in mind. A second agent on the same machine now lists them as loaded. Which of them it acts on wasn't measured here, so review every broad grant and every server in the list.

Read the same files with skarn vet

skarn vet statically checks the local AI assistant configuration: hook commands, MCP server definitions, permission grants, and installed plugins and skills. Two of the files it reads are ~/.claude/settings.json and ~/.claude.json, which grok inspect listed above. It's read-only, makes no network call, and needs no license.

grok inspect shows which files Grok Build CLI lists as loaded. skarn vet shows what is in them.

The output below is Skarn 0.38.0 on a throwaway home directory with made-up configuration: a ~/.claude/settings.json that allows Bash(*), and a ~/.claude.json with two MCP servers. The home directory is shortened to ~ here:

$ skarn vet Skarn vetted this machine's AI assistant configuration 2 config file(s), 4 setting(s) examined - read-only, no network HIGH vet-permission-overbroad permission grant approves a whole class of actions ~/.claude/settings.json -> permissions.allow[1] Bash(*) MEDIUM vet-mcp-unpinned MCP server launcher resolves its package at run time with no pinned version or digest ~/.claude.json -> mcpServers.docs.command npx -y example-docs-mcp@latest MEDIUM vet-mcp-remote-endpoint MCP server endpoint is a remote host ~/.claude.json -> mcpServers.tracker.url https://mcp.example.com/mcp 3 finding(s): 0 critical, 1 high, 2 medium, 0 low

Each finding names the file and the entry. skarn vet doesn't edit a file or change a permission, and findings alone leave its exit status at 0.

Check your own machine

Run grok inspect, then install Skarn and run skarn vet.

Related: the leak in the connector setup, saved command approvals hold secrets, where each assistant saves approved commands, what Skarn is