Grok Build/CLI accused of silently uploading entire codebases; xAI promises to delete data

In mid-July, developers accused xAI's Grok Build/CLI of uploading entire codebases to the cloud by default during local use — far exceeding what tasks required, and potentially sweeping up Git history, secrets, and home-directory files. The dispute escalated from "is the data used for training?" to "was content sent off-box without adequate disclosure?", raising privacy and supply-chain concerns. xAI and Elon Musk responded by emphasizing Zero Data Retention (ZDR) and retroactive deletion, and pledged to wipe all previously uploaded data.

Controversy and test findings

op7418 first flagged (Jul 13) that the build CLI would package and ship the entire repository — including keys — to a remote endpoint. Line-level and binary analysis, relayed by jedisct1, banteg, and rickasaurus, gave concrete figures: in a 12GB test repo the tool uploaded 5.1GB while the actual coding task needed only a small fraction, with targets pointing to a Google Cloud bucket holding private repos and unredacted secrets; even with no tool calls invoked, the full codebase was still uploaded. ctjlewis's tests were the most damning: upload is on by default (requiring an explicit `disable_codebase_upload = true` to disable), and opting out did not stop it — he likened it to "stealing the `.git` directory." He added that launching Grok Build from the home directory could upload the entire home directory, including ssh keys, claude config, documents, and media. Scobleizer and Gergely Orosz framed the problem as actively uploading the whole repo, `.git` history, and files like `.env.local` and `.dev.vars`.

xAI's response

On Jul 13, SpaceXAI said enterprise teams with ZDR enabled leave no code traces in Grok Build and that API key usage follows ZDR; non-ZDR users can run `/privacy` in the CLI to opt out, with the setting retroactively deleting previously synced data. On Jul 14, Elon Musk added that the CLI in ZDR mode has never retained data since release — but that remote session lists, cloud agents, and handoff/share features may still store data. He then announced that, as a precaution, all previously uploaded user data would be permanently deleted. tetsuoai defended Grok, noting that both Grok Build and the Grok website offer opt-out at any time, comparable to other major AI companies.

Unanswered questions

Critics argue the core question is not whether data can be deleted afterward, but whether the default upload involved clear consent and why its scope ballooned to whole repos and unrelated files. Retweets from JFPuget and others stressed that xAI never explained why such uploads occurred in the first place; some accounts noted the behavior appeared to be switched off via a hidden server-side toggle after exposure.

2026-07-13 ~ 2026-07-15 · 47 related posts

Full story(3 episodes)→

5 near-duplicate retellings: charliermarsh · TheZachMueller · julianharris · rickasaurus · OwariDa