The gist author ran the CLI behind a proxy and logged every outbound request, documenting that xAI receives file contents from context expansion, git metadata, working-directory snapshots, and environment fingerprints — including during actions that appear local-only. The evidence-driven teardown implicitly argues that the disclosure gap between what the CLI does and what users think it does is the real problem.
The editorial frames the finding as 'necessary and disclosed are two different things,' arguing that even if the payloads are technically required for the product to function, most privacy pages haven't caught up to the reality of agentic tooling. The problem isn't malice — it's that telemetry surface has quietly expanded from 'the prompt you typed' to 'everything the agent had to touch.'
Roughly half of the 125-comment thread argued the disclosed behavior is unavoidable: an agent that answers questions about a file obviously needs the file, and shipping git metadata plus environment fingerprints is table stakes for a coding assistant to produce useful output. From this view, the teardown documents nothing surprising and no policy violation.
The editorial argues the same teardown could be reproduced against Claude Code, Cursor, Copilot CLI, Codex, Cline, or Aider within an hour using mitmproxy. Grok drew attention only because it's newest — the categorical shift from autocomplete-era telemetry to agentic telemetry applies to every vendor, and the community will eventually publish the same shape of report for each of them.
A gist by GitHub user `cereblab` climbed to 269 points on Hacker News with a simple, unglamorous title: *What xAI's Grok Build CLI Actually Sends to xAI*. The author ran the CLI behind a proxy, logged every outbound request, and pasted the results — headers, JSON bodies, the works.
The short version: Grok Build CLI ships more context to xAI's servers than a reasonable developer would guess from the docs. The payloads include the obvious things — user prompts, the model's tool-call responses — and also the less obvious: file contents pulled in via context expansion, `git` metadata, working-directory snapshots, and environment fingerprints (OS, shell, Node version, terminal). Some of that traffic flows even when the user's action reads as local-only, like listing files or opening a diff for the model to look at.
The HN thread turned into the usual mix: half the comments defending it as necessary for the product to work ("of course the model needs the file to answer questions about the file"), half arguing that necessary and disclosed are two different things. xAI has not responded publicly at the time of writing.
This is not a Grok-specific problem. It's the AI-CLI problem, and every vendor in this space has some version of it — Claude Code, Cursor, Copilot CLI, Codex, Cline, Aider. The moment a coding assistant becomes agentic, its telemetry surface stops being 'the prompt you typed' and starts being 'everything the agent had to touch to answer.' That's a categorical change from the autocomplete era, and most privacy pages haven't caught up.
The interesting thing about the Grok teardown isn't that xAI is uniquely bad. It's that the exercise is trivially reproducible and nobody had bothered to publish it. Point mitmproxy at any of these tools, accept the cert, and you get the same shape of answer within an hour. The community will do this for every vendor eventually — Grok just drew the short straw because it's the newest and its trust bank is the thinnest.
Compare the disclosure patterns. Anthropic publishes a fairly explicit data-usage note for Claude Code and lets you disable telemetry via env var. GitHub Copilot has a documented content-exclusion mechanism and enterprise controls that most teams don't actually configure. Cursor added a Privacy Mode toggle after user pressure and now defaults it on for paid tiers. Grok Build CLI, per the gist author, has none of that: no toggle surfaced in the CLI, no per-repo opt-out, no clear statement about training-set use.
The gap between 'we send what we need' and 'here is exactly what we send, and here is how to send less' is the entire product question for AI dev tools in 2026. Enterprise procurement is starting to ask it out loud. Legal is starting to ask it out loud. The developers running these tools inside repos that contain customer PII, unshipped features, or contract-bound proprietary code should have been asking it out loud a year ago.
There's also a subtler point in the gist that's easy to miss. Some of the captured requests include content from files the user didn't explicitly reference — pulled in by the agent's own context expansion ("let me also read the config file to understand this better"). That's a real design trade-off: agents are useful precisely because they gather context autonomously, but every autonomous file read is a piece of your codebase leaving your machine. The user experience of an agent has no natural surface for representing this.
If you're running any AI coding CLI against a repo that isn't fully public, do the audit yourself. It takes about thirty minutes. Set up a proxy — mitmproxy or Charles is fine — install the vendor's root cert, drive the tool through a normal session, and look at what leaves the machine. You'll learn more about your tool in that half hour than any privacy page will tell you.
For anything touching regulated data — health, finance, defense, or code under NDA — treat AI CLIs as an outbound data channel and gate them the same way you'd gate a Slack integration or a SaaS analytics SDK. That means an approved list, a documented data-flow diagram, and a real answer to "does this training our vendor's next model." "We assume not" is not an answer.
For everyone else, the pragmatic playbook is smaller: keep a `.aiignore`-style excludes file (most of these tools now support one, under various names), don't run agents from your home directory or a monorepo root when you only need them in a subfolder, and rotate any API keys that lived in shells you exposed to an AI CLI before you understood what it was reading. That last one is not paranoia — the environment-fingerprint calls in the Grok payload can, depending on shell config, sweep up `env` output.
The Grok gist won't be the last of these, and it shouldn't be. The healthiest thing that could happen to this category is a norm where every AI CLI vendor publishes a canonical, wire-level trace of a standard session — "here is exactly what leaves your machine when you run `foo build`" — and updates it every release. The vendors who do this first will look paranoid for a quarter and then look like the adults in the room. The ones who wait for a security researcher to do it for them will spend the next year explaining why they didn't.
I always separate the coding tools from LLM providers, and use bubblewrap to sandbox the coding tools so they:1. Can only read the working project directory, with .git read-only and sensitive directories hidden (mounted as empty directories).2. Have an isolated network namespace; they can only acces
This is one of the reasons why native proprietary coding agent runners like claude-code, codex, grok-build etc are so dangerous for privacy… you just don’t know what “secret sauce” they’ll add in the next update…It’s much safer to use something like opencode and use models via their API… however, th
"It uploads the whole repository — every tracked file's content plus git history — independent of what the agent reads"Holy cow!!!! I mean I kinda expected Elon would do something like this to try to catch-up.. but this is extremely concerning.This is precisely the reason, even though
I wish a human would’ve written the overview.Nonetheless, this is disturbing.
Top 10 dev stories every morning at 8am UTC. AI-curated. Retro terminal HTML email.
Mitigation for use: ``` export GROK_TELEMETRY_TRACE_UPLOAD=0 export GROK_TELEMETRY_ENABLED=0 # or config file with [telemetry] trace_upload = false, [harness] disable_codebase_upload = true ``` The practical takeaway for users: your entire codebase leaves (uploaded) your machine unencrypted on each