xAI Open-Sources Grok Build After Outcry Over Directory Uploads
xAI has open-sourced the client code for Grok Build, its terminal-based coding tool, after a wave of complaints from users and security-minded developers who discovered that the software had been uploading entire local directories to company-controlled Google Cloud storage — in some cases, they said, sweeping up highly sensitive files along the way.
The move, announced days after the backlash erupted, is both an attempt at damage control and a broader argument for transparency. xAI said it had disabled the upload behavior, turned off data retention by default for Grok Build users beginning July 12 and was deleting coding data that had previously been retained. Elon Musk said on social media that earlier uploaded user data would be “completely and utterly deleted.”
But the episode has landed as a serious trust test for a fast-growing category of artificial intelligence tools: coding agents that run inside developers’ terminals, often with broad access to a machine’s files, shell commands and project history.
A Privacy Scandal in the Terminal
The controversy emerged in mid-July when users and independent researchers began reporting that early beta versions of Grok Build appeared to upload entire repositories or directories, rather than just the files needed to answer a coding request.
One especially alarming report came from a user who said that after running the tool in a home directory, it uploaded not only development files but “my SSH keys, my password manager database, my documents, photos, videos, everything.”
Subsequent reporting and retesting indicated that the behavior was present in early-beta builds, including version 0.2.93, and appeared to have been disabled server-side by July 13.
For developers, the distinction is not academic. A terminal agent that uploads a whole directory can expose far more than source code: environment files containing API keys, deployment credentials, commit history, private notes and personal records may all sit alongside a project. In many development setups, a single mistaken upload can amount to an inadvertent full-system disclosure.
That risk is especially acute because coding agents are marketed on convenience. Users often grant them wide access in exchange for speed: the ability to inspect a codebase, edit files, run tests and execute shell commands. The Grok Build episode underscored how quickly that convenience can become a liability when privacy boundaries are unclear.
xAI’s Response: Delete, Disable, Disclose
Grok Build was introduced in late May as an early-beta coding agent for SuperGrok and X Premium Plus subscribers. xAI documentation had described zero-data-retention as a feature for enterprise and team users, and the command-line interface included privacy-related controls. But outside analysis later suggested that at least some user-facing privacy settings did not prevent the broad directory-upload behavior under scrutiny.
Under pressure, xAI moved on several fronts at once.
First, it shut off the upload pathway. Then it said retained coding data would be deleted and that retention would be off by default going forward. Finally, on July 15, it published the Grok Build client and harness code on GitHub under the Apache 2.0 license.
The company cast the release as a step toward “complete user privacy,” saying the tool could now be run in a local-first way with a user’s own inference stack. The underlying Grok 4.5 model, however, remains closed.
That distinction matters. By opening the harness — the software that governs the terminal interface, agent loop and tools — xAI has given outsiders a way to inspect how the client is supposed to behave. But it has not fully answered the harder question raised by the uproar: why the software behaved the way it did before, and whether users have a reliable means to verify that uploaded data is truly gone.
What the Code Shows
The newly published repository quickly became an object of scrutiny in its own right.
Developers reviewing the code described it as a sprawling Rust project, with more than 844,000 lines of code. The release appears to have been published as a single commit, offering little historical record of how the product evolved or when controversial behaviors were introduced.
Early inspection found remnants of upload-related functionality still present in the source, including code for sending data to Google Cloud Storage. But reviewers also noted that those paths now appeared disabled, with one upload-related function returning a hard-coded “unavailable” error.
The release also revealed a broader architecture for Grok Build than many outsiders had expected: a text-based terminal user interface, an agent framework, tool dispatch systems and reusable components for tasks like rendering Mermaid diagrams as Unicode box art in a terminal. Some parts of the tool layer appear to have been ported from other open-source coding-agent projects, according to third-party notices in the repository.
That technical depth may help xAI make the case that Grok Build is a serious engineering effort rather than a hastily assembled beta. Yet the sophistication of the codebase cuts both ways. The more capable these agents become, the more consequential their defaults are.
An Open-Source Play for Trust
Open-sourcing the harness is a familiar move in the A.I. industry: when companies face skepticism, they often offer visibility into peripheral layers of a system even while the core model remains proprietary.
For xAI, the tactic appears aimed at turning a privacy scandal into an auditability story. If users can inspect the client, compile it themselves and run it locally, the argument goes, they do not have to rely entirely on company assurances.
That may resonate with some developers, particularly those already inclined to trust open-source tooling over black-box services. But others are likely to see the release as only a partial remedy. The central issue was never just what the code now says; it was what the software did in practice before the code became public.
Several questions remain unresolved: how many users were affected, which exact versions and settings triggered the uploads, how long uploaded data was stored, whether any retained information was accessed internally and how users can independently verify deletion.
Those uncertainties are likely to linger, particularly among developers who handle sensitive corporate repositories, security credentials or regulated data. In such environments, assurances of deletion may not be enough without logs, third-party audits or other evidence.
Why It Matters Beyond xAI
The Grok Build episode arrives at a moment when A.I. coding assistants are spreading rapidly from browser chat windows into the developer workstation itself. The new generation of tools does not merely suggest code snippets; it can inspect local files, patch repositories, run shell commands and coordinate multi-step tasks autonomously.
That shift is changing the privacy model of software development.
A chatbot that sees only pasted text poses one set of risks. A terminal agent embedded in a developer workflow poses another altogether. It may have visibility into an entire codebase, a user’s command history and secrets stored nearby. For companies racing to capture the coding-assistant market, the pressure to make these tools seamless can collide with the need for clear, minimal and verifiable data handling.
xAI’s handling of Grok Build is therefore being watched as more than a one-company mishap. It is a case study in what happens when an ambitious developer tool reaches users before its privacy boundaries are fully understood — and in how difficult it is to restore confidence once those boundaries appear to have failed.
For now, xAI is asking the developer community to trust a new posture of openness. Whether that will be enough may depend less on the publication of 844,000 lines of Rust than on what the company still has not fully explained.
Sources
Further reading and reporting used to add context:
- https://www.axios.com/newsletters/axios-future-of-cybersecurity-9168e100-7af2-11f1-bc32-bbfb768a7518
- https://x.ai/legal/faq
- https://x.ai/build/changelog
- https://thehackernews.com/2026/07/grok-build-uploads-entire-git.html?m=1
- https://x.ai/news/grok-build-cli
- https://docs.x.ai/build/enterprise
- https://docs.x.ai/developers/faq/security
- https://docs.x.ai/developers/migration/may-15-retirement
- https://www.axios.com/2026/07/14/spacexai-grok-customer-data
- https://www.reddit.com/r/accelerate/comments/1uxix52/spacexai_opensources_grok_build/
- https://github.com/xai-org
- https://www.reddit.com/r/LocalLLaMA/comments/1ut7tis/grok_build_cli_uploads_your_whole_repo_full_git/
- https://www.ctol.digital/news/the-invisible-exfiltration-xai-grok-build-quietly-uploading-your-entire-codebase/
- https://www.reddit.com/r/ObscurePatentDangers/comments/1uvuz8r/xai_grok_build_unauthorized_full_git_history/
- https://www.bodegaone.ai/blog/grok-build-cli-uploaded-private-repos
- https://www.basenor.com/blogs/news/grok-build-is-now-open-source-what-you-need-to-know
- https://www.reddit.com/r/better_claw/comments/1uvi1d1/grok_build_cli_was_uploading_entire_repos/
- https://www.reddit.com/r/LocalLLaMA/comments/1uxi5mf/grok_build_open_sourced_under_apache_20_license/
- https://www.reddit.com/r/CustomAI/comments/1uw1wvn/grok_build_cli_uploads_your_entire_repository_by/
- https://www.reddit.com/r/grok/comments/1uv42zg/the_tech_hypocrisy_of_xai_explaining_the_grok/
- https://www.reddit.com/r/SecOpsDaily/comments/1uw4g8t/grok_build_uploads_entire_git_repositories_to_xai/
- https://www.reddit.com/r/LLM/comments/1ux3szo/wtf_grok_uploading_code_to_github_without_asking/
- https://x.ai/legal/help-center/non-consensual-intimate-content
- https://x.ai/news?rfsn=5327068.99f96b
- https://docs.x.ai/build/overview
- https://docs.x.ai/build/modes-and-commands
- https://x.ai/news?trk=public_post-text
- https://docs.x.ai/grok/overview
- https://x.ai/legal/privacy-policy?_rsc=123u4
- https://x.ai/news/grok-plugin-marketplace
- https://x.ai/news/grok-build-0-1
- https://data.x.ai/2026-04-07-grok-4-20-model-card.pdf
- https://data.x.ai/2025-12-31-xai-frontier-artificial-intelligence-framework.pdf
- https://data.x.ai/2025-09-19-grok-4-fast-model-card.pdf
- https://data.x.ai/2025-08-20-grok-4-model-card.pdf
- https://tools.simonwillison.net/
- https://tools.simonwillison.net/grok-mermaid
- https://simonwillison.net/2025/Jul/15/
- https://simonwillison.net/2025/Jul/15/xai-mitigated/
- https://feeds.simonwillison.net/tags/ladybird/
- https://simonwillison.net/2026/Jul/
- https://simonwillison.net/2026/
- https://simonwillison.net/2026/Apr/30/
- https://simonwillison.net/tags/andreas-kling/
- https://simonwillison.net/tags/open-source/
- https://simonwillison.net/2025/Jul/?page=2
- https://simonwillison.net/tags/grok/
- https://static.simonwillison.net/static/2024/chrome-headless-page.pdf
- https://static.simonwillison.net/static/cors-allow/2025/rimu_kakapo_breeding_brief.pdf
- https://www.techmeme.com/260715/p52
- https://feeder.co/discover/d0e223d90b/simonwillison-net
- https://www.reddit.com/r/AIDeveloperNews/comments/1uxv8eg/spacexai_opensources_grok_build_the_rust_agent/
- https://www.reddit.com/r/AIGuild/comments/1uxoudu/spacexai_opensourced_the_grok_build_codingagent/
- https://tanstack.com/ai/latest/docs/adapters/grok-build
- https://www.reddit.com/r/LLMDevs/comments/1uwsw1o/grok_build_moved_5gb_off_a_test_machine_to_answer/
- https://cryptobriefing.com/grok-build-open-source-usage-limits/
- https://genalphai.com/grok-build-open-source-privacy-audit/
- https://www.reddit.com/r/HowToAIAgent/comments/1uxr891/xai_opensourced_grok_build_13m_lines_of_rust_i/
- https://aiinsiders.net/article/grok-build-cli-uploaded-whole-repos-before-xai-quietly-shut
- https://www.aibase.com/news/29627
- https://www.reddit.com/r/AgentContext_dev/comments/1uv6oi7/what_we_know_about_grok_build_in_july_2026/
- https://awesomeagents.ai/reviews/review-grok-build/
- https://www.iclarified.com/100870/xai-launches-grok-build-coding-agent-with-parallel-subagents-and-mcp-support
- https://arxiv.org/abs/2605.13357
- https://www.preprints.org/frontend/manuscript/10d7caee2cbe97ab04400a1a2dfbe125/download_pub
- https://openreview.net/pdf/f358711a95aaaf61fdeffd4ef3fc60fba9b8da57.pdf
- https://picrew.github.io/LLM-Harness/main.pdf
- https://hosted-files.sched.co/ossna2024/7e/oss_na24__mc_oai-1.pdf
- https://www.techmeme.com/
- https://www.techmeme.com/260715/p45
- https://www.techmeme.com/260716/p3
- https://simonwillison.net/tags/anthropic/
- Grok Build Uploaded Entire Git Repositories to xAI Storage, Not Just Files It Read
- Introducing Grok Build | SpaceXAI
- 🛠️ Hackers embrace AI














Leave a Reply