Why xAI put Grok Build on GitHub after a data breach
Terminator Coding Tools By What The Future Newsroom · July 16, 2026 · 4 min read

Why xAI put Grok Build on GitHub after a data breach

xAI published the full source code for Grok Build on GitHub under the Apache 2.0 license after criticism over file uploads to its Google Cloud servers. The upload feature has been disabled, uploaded user data is set to be fully deleted, and the tool can now run entirely locally.

xAI has moved its AI coding agent Grok Build into the open after a serious trust problem: users found that the tool uploaded all files in a directory to xAI's Google Cloud servers. The company has now disabled that upload feature, published the full source code on GitHub under the Apache 2.0 license, and said uploaded user data would be fully deleted.

“A coding agent uploaded users' local files to company servers, raising serious privacy and control risks despite later mitigation.”Why it scores Terminator

What triggered the backlash

Grok Build is a terminal-based coding agent launched with the grok command. It is designed to work inside codebases, where it can read and edit files, run shell commands, search the web, and manage longer tasks.

That level of access is useful for a coding agent, but it also makes trust essential. A tool operating from the terminal can sit close to source code, configuration files, project notes, credentials, and other material that may be present in a working directory.

The criticism began after users discovered that Grok Build uploaded all files in a directory to xAI's Google Cloud servers. One user reported that SSH keys, password databases, documents, and photos were transferred.

For developers, that kind of behavior cuts directly against expectations around local tools. A coding assistant may need broad file access to be useful, but users still expect clear boundaries around what leaves their machine.

xAI's response

Elon Musk then announced that all uploaded user data would be fully deleted. xAI also disabled the upload feature and released the full Grok Build source code on GitHub under the Apache 2.0 license.

The company presented the open-source release as a transparency step. By making the code visible, xAI is giving users and developers a way to inspect how the agent works rather than relying only on company statements about its behavior.

According to xAI, data storage has been off by default since July 12. The source article also notes that remnants of the upload function are still present in the code, but disabled.

The key response actions described in the source are:

  • the upload feature was disabled;
  • uploaded user data would be fully deleted;
  • the full source code was published on GitHub;
  • the project was released under the Apache 2.0 license;
  • Grok Build can now run entirely locally.

What Grok Build can do

Grok Build is not just a chat interface for code. It is described as an AI coding agent that works from the terminal and can take actions across a development environment.

The tool can read and edit codebases, run shell commands, search the web, and manage long-running tasks. It can be used interactively, where a person works with it in a session, or headlessly for scripting and CI.

It can also be embedded in editors through the Agent Client Protocol (ACP). That gives the tool several possible workflows: direct terminal use, automated runs, continuous integration use, and editor integration.

This broad operating model is part of why the upload issue mattered. A coding agent with file access and shell access can become deeply integrated into a developer's workflow. If its data handling is unclear, the risk is not only technical but operational: teams may hesitate to adopt it at all.

Why open source matters here

Open-sourcing Grok Build changes the trust model. Users can review the agent loop, the tools, the terminal UI, and the extension system for plugins and subagents instead of treating the software as a black box.

The codebase spans about 844,530 lines of Rust. That is large enough that transparency does not automatically mean every user can quickly understand every detail, but it does create a path for inspection by developers, researchers, and organizations evaluating the tool.

The Apache 2.0 license also matters because it gives the release a clear open-source framework. The source does not describe every practical implication of that license, but it does state that the full source code is now available under it.

The local-only option is another important change. If Grok Build can run entirely locally, users have a way to use the coding agent without relying on the disabled upload path described in the source.

The larger lesson for AI coding agents

The Grok Build episode shows how sensitive the operating environment is for AI coding tools. These systems are increasingly expected to act inside real projects, inspect files, change code, run commands, and connect with developer workflows.

That makes data handling a core product feature, not a footnote. A tool that helps write code must also be clear about what it reads, what it stores, what it sends, and which defaults are active.

For xAI, publishing Grok Build on GitHub is an attempt to rebuild confidence after users found behavior they did not expect. The open code, disabled upload feature, local execution option, and promised deletion of uploaded user data are all aimed at the same problem: restoring trust in a tool that asks for unusually deep access to a user's working files.

← Back to the wire

Read next