Grok Build, xAI's AI coding assistant, was transmitting not only the files required to generate responses but users' entire software projects to the company's servers—including information that had been deleted months earlier but still existed in the project's revision history. In an independent test, the volume of data transferred was tens of thousands of times greater than necessary.
The story began with a technical investigation published on Sunday, July 12, 2026, by cybersecurity researcher known online as cereblab. The report revealed that Grok Build was uploading not only the project's current files but also its complete version history. As a result, a password or API key accidentally committed to a file could end up on xAI's servers together with the entire project, even if it had been removed from the code long before.
The incident matters not simply because an AI tool transmitted too much data, but because it challenges one of developers' fundamental expectations: that they know exactly what information leaves their computer and what remains exclusively under their control.
Over the past year, competition among AI coding assistants has focused almost entirely on model performance and code-generation speed. The Grok Build incident shifts the discussion to a far less glamorous—but potentially far more important—question: how much control does a developer retain over their own code once they accept the assistance of an AI model?
Perhaps the most troubling aspect was how users believed they were protecting themselves. The setting that allowed users to opt out of having their data used for future model training had no effect whatsoever on the automatic cloud upload: the entire project continued to be transmitted regardless of the selected option. Users could control whether the model learned from their code, but not whether that code was sent to xAI's servers in the first place. In cereblab's tests, competing tools such as Claude Code and Codex did not upload entire projects, suggesting this was not an unavoidable technical limitation but rather a deliberate design choice by xAI.
Is Musk's Promise Enough?
The company's response came quickly, but hesitantly. Shortly after the report was published, the automatic project uploads stopped without users installing any software update—a clear sign that xAI had intervened remotely through its own servers. The code responsible for the uploads was not removed from the application; it was merely disabled through a server-side switch, meaning xAI could reactivate it at any time without users' knowledge.
The fact that the mechanism could be disabled instantly, without updating the application itself, reveals as much about the product's architecture as the incident reveals about the company's data collection practices.
One day after the investigation was published, Elon Musk promised on X that all user data collected up to that point would be "completely and absolutely deleted." The statement, however, was not accompanied by a timeline, a mechanism allowing users to verify the deletion, or an independent audit. In a separate post, Musk suggested that retaining a limited amount of data could be useful for debugging purposes, raising even more questions about the company's actual data retention policy.
The implications extend well beyond the discomfort of a flaw acknowledged only after public scrutiny. For software teams, the practical risk is that passwords and access keys may remain hidden in a project's history even after they have been removed from the codebase. For many organizations, the issue also carries contractual implications, as internal policies often prohibit sending source code to external services without prior approval. The incident adds to a broader series of controversies surrounding xAI's handling of user data—controversies that have already prompted some organizations to favor alternatives offering stronger security guarantees.
How much confidence should anyone place in the public assurances of an AI provider when the privacy settings displayed in the application do not match the application's actual behavior?
Years from now, the Grok Build incident may be remembered as nothing more than an implementation bug that was fixed within hours. Or it may mark the moment the industry began to recognize that, in the age of AI agents capable of reading, modifying, and executing code, transparency about data flows is no longer a secondary feature but one of the fundamental prerequisites for trust.
If that shift in perspective proves lasting, competition among AI coding assistants will no longer be determined solely by the quality of the code they generate, but also by developers' ability to demonstrate that users remain in control of their own code. In the AI industry, performance may attract users—but trust is what keeps them.

Sources
This article is based on the technical analysis published by the independent cybersecurity researcher cereblab, public statements by Elon Musk and the xAI team, as well as xAI's official documentation and public communications regarding Grok Build.