What xAI’s Grok Build CLI Sends to xAI: Full Repository Upload Claims Explained

yelzkiziWhat xAI’s Grok Build CLI Sends to xAI: Full Repository Upload Claims Explained

xAI Grok Build CLI Data Handling and Repository Upload Controversy

The current controversy around xAI’s Grok Build CLI is not really about whether cloud coding tools send some code to a server. That part is expected. The real question is whether Grok Build, in the consumer setup people actually install today, sends only the files it needs for an answer or whether it also uploads an entire tracked repository, including commit history and files the agent never opened.

As of July 13, 2026, the strongest public evidence for the broader upload claim comes from a detailed independent wire-level analysis of Grok Build version 0.2.93, a companion reproduction repository, and xAI’s own public Build documentation and changelog, which help establish what Grok Build is, how it is configured, and what xAI does and does not publicly document about data handling.

Grok Build is xAI’s official terminal coding agent. xAI describes it as a coding tool that runs in an interactive terminal UI, in headless scripts, or via the Agent Client Protocol, and the product page positions it as a full development workflow tool for planning, editing, testing, and research. The current public docs also show that Grok Build is powered by Grok 4.5, while the changelog shows the CLI moving rapidly through 0.2.93 to 0.2.98 in July 2026, which matters because any privacy analysis is version-sensitive.

The public evidence points to two distinct data transfer channels. First, when Grok reads a file, the independent wire analysis says the file content can be serialized into a live POST /v1/responses model request. Second, the same analysis says Grok stages and uploads larger archives through POST /v1/storage, including a session_state archive for read files and a broader repo_state or codebase snapshot path for repository uploads. This distinction separates data the model directly read during a conversation from data the client may have shipped in the background as part of repository state.

xAI’s public enterprise documentation confirms that prompts and file content are assembled locally and then transported over TLS, but it does not publicly explain the session_state or repo_state mechanisms described in the independent analysis. The strongest public evidence currently indicates that Grok Build 0.2.93 can upload entire repositories, but this conclusion is based on preserved artefacts from an independent test rather than an admission from xAI.

In the analysis, a captured POST /v1/storage body was reconstructed as a Git bundle, and cloning that bundle recovered a file the agent had been instructed not to open, along with the full Git history. The same investigation also reported multi-gigabyte /v1/storage transfers on large repositories, with upload sizes far exceeding what the model itself could reasonably have processed through the smaller /v1/responses requests.

The issue of files the agent never reads is connected to the difference between these two channels. On the live model-turn channel, the independent analysis found a narrower result: a control file the agent was explicitly told not to open did not appear in captured /v1/responses request bodies. However, on the separate repository-upload channel, the evidence was broader. The preserved Git bundle and staged manifests reportedly included never-read tracked files, meaning that “the model never read it” does not necessarily mean “the client never uploaded it.” This distinction is the main reason the full repository upload claim has gained attention.

The name grok-code-session-traces comes from the independent wire-level analysis rather than xAI’s public product documentation. The analysis states that the Grok binary contains strings referencing grok-code-session-traces, storage.googleapis.com, and code paths associated with data collection and upload. It also claims that staged metadata.json files use destinations in the format gs://grok-code-session-traces/..., suggesting that Grok Build’s storage path may point to a Google Cloud Storage bucket with that name.

However, xAI’s public documentation reviewed in the analysis only mentions storage.googleapis.com as a fallback CDN for CLI binaries and updates, not as a repository upload or trace storage destination. As a result, the bucket claim comes from the independent analysis rather than from publicly confirmed xAI documentation.

Yelzkiziwhat xai’s grok build cli sends to xai: full repository upload claims explained
Yelzkiziwhat xai’s grok build cli sends to xai: full repository upload claims explained
In This Article (7 sections)

How Grok Build Transfers Repository Data, Uploads Git History, and Handles Environment Files and Secrets

The reported transfer path changes with repository size. The wire-level analysis says smaller repositories were sent through single or chunked POST /v1/storage requests to cli-chat-proxy.grok.com, while a roughly 3 GB repository triggered a multipart flow with POST /v1/storage/multipart/init followed by chunk uploads to storage.googleapis.com. On a 12 GB repository, the preserved log shows dozens of roughly 75 MB chunks sent through /v1/storage, with more than 5.1 GiB captured before the researcher stopped the run. xAI’s enterprise documentation helps on the networking side by confirming that Grok honours standard proxy variables and supports TLS-inspecting proxies when their CA is installed into the OS trust store.

The public evidence says Grok Build can upload Git history. The reconstruction described in both the wire analysis and the reproduction repository recovered not just current tracked files but also the repository’s commit history from a captured Git bundle. This makes the privacy issue significantly broader than simply having current source files leave the machine, because commit history can contain deleted secrets, old code, internal notes, and branches of thought that are no longer visible in the working tree. xAI’s public documentation does not currently document any consumer-facing Git-history upload behaviour in the pages reviewed for this article.

The evidence also suggests two separate ways secrets can leave the machine. If Grok reads a secrets file such as .env, the independent analysis says the values can appear verbatim in the live /v1/responses request body and again inside a session_state archive uploaded through /v1/storage. Separately, if an environment file is tracked in Git and whole-repository bundling occurs, that file may also be included through the repository upload channel even if the model never needed to open it. The write-up is careful about one limitation: it demonstrated unredacted transmission of canary .env contents, but it did not prove that every possible real-world secret format bypasses all redaction logic.

The most important findings from the wire-level Grok Build analysis are that read file contents were visible in model-turn traffic, tracked repositories were uploaded through storage endpoints independently of what the model actually read, and staged metadata named a Google Cloud Storage destination. The analysis also claims that the “Improve the model” training toggle did not stop repository uploads in the tested runs, because the /v1/settings response still reported upload-related flags as enabled and a full repository bundle was still captured after the toggle was switched off. These findings are serious, but the author also explicitly states what was not proven: the work measured transmission and storage artefacts, not whether xAI later used that data for training.

Yelzkiziwhat xai’s grok build cli sends to xai: full repository upload claims explained
Yelzkiziwhat xai’s grok build cli sends to xai: full repository upload claims explained

Grok Build CLI Privacy, Security Risks, Storage, and Monitoring

Public xAI docs expose only part of the picture regarding how Grok Build session data is stored. The enterprise page says local session history is stored in ~/.grok/, while Zero Data Retention (ZDR) organisations avoid persistence at the inference layer, and the CLI reference shows headless sessions under ~/.grok/sessions. However, the independent researcher reports that Grok also stages upload artefacts under ~/.grok/upload_queue, including session_state and repository snapshot artefacts that can be race-copied during a run for inspection. This creates a practical distinction between local session history that users might expect and staged upload artefacts that public documentation does not clearly explain for consumer users.

The public evidence does not support a strong claim that Grok Build effectively redacts sensitive repository data. The documented canary .env values were reportedly transmitted verbatim, which challenges the assumption that sensitive files are automatically scrubbed before leaving the client. At the same time, the write-up limits its conclusion: it proves that the tested canary values were unredacted, but it does not prove that every possible credential pattern or token format would also pass through untouched. The safest conclusion is that public evidence currently shows no dependable repository-wide redaction guarantee, and xAI’s public Grok Build settings reference does not document such a guarantee.

If the independent findings are representative, the risks extend beyond a prompt accidentally exposing a few relevant files. The larger concerns include possible wholesale exfiltration of tracked source trees, historical commits, read secrets, and background storage of session traces that ordinary developers may not realise exist. There is also an operational risk, as the write-up states that ~/.grok/upload_queue can grow significantly during large uploads and may exhaust local disk space.

At the same time, xAI’s official enterprise documentation provides several security controls, including pinned policy files, disabling telemetry through managed policy, strict sandbox profiles, and Zero Data Retention for enterprise teams. These controls provide protection for managed environments, but they are not the same as a transparent consumer explanation of what Grok Build sends from a machine by default.

Developers can also monitor Grok Build network activity using tools and settings exposed by xAI. The enterprise documentation states that the CLI supports HTTPS_PROXY, HTTP_PROXY, and NO_PROXY, and allows TLS-inspecting proxies when the proxy CA is trusted by the operating system. The official settings reference also provides logging controls such as GROK_LOG_FILE and RUST_LOG, while grok inspect shows which configurations Grok actually loaded.

The independent reproduction harness uses mitmproxy to route Grok traffic through a local proxy, save xAI request bodies, and verify whether canary strings and Git bundles appear in captured uploads. In practice, this means developers can instrument Grok Build directly and inspect the data it sends instead of relying only on assumptions about its behaviour.

Yelzkiziwhat xai’s grok build cli sends to xai: full repository upload claims explained
Yelzkiziwhat xai’s grok build cli sends to xai: full repository upload claims explained

How to Protect Private Code When Using AI Coding Tools and What xAI Should Clarify About Grok Build Data Collection

The safest approach is layered when using AI coding tools. Keep secrets out of tracked repositories, because the public reproduction repo argues that the captured Git bundle contained tracked files and that Git tracking, not merely model access, can determine what ships. Use strict permission modes, sandboxing, and enterprise-managed policy where available, especially dontAsk, strict sandboxing, and policy pins in /etc/grok/requirements.toml for managed deployments. If a team has access to xAI enterprise features, ZDR materially changes the retention posture by preventing server-side persistence of API inputs and outputs. Before trusting any theoretical mitigation, verify it with a canary repo and a proxy capture, because Grok Build’s changelog shows that the client is changing on a near-daily basis.

xAI should also publish a plain-language data-flow document for Grok Build that answers five questions directly: whether tracked repositories are bundled by default, whether Git history is uploaded, where session_state and repository snapshots are stored, what retention policy applies outside enterprise ZDR, and which settings genuinely disable each upload path. The need for that clarity is obvious because the public docs reviewed here explain authentication, proxies, local storage, and enterprise controls, but do not publicly document a grok-code-session-traces pipeline. A later community comment on the original write-up claimed that config-level switches may disable the trace and codebase channels, yet xAI’s public settings reference still does not document those switches, leaving their support status unclear for ordinary users.

Frequently asked question

  1. Does this research prove that xAI trains Grok on uploaded repositories?
    No. The available research does not prove that xAI uses uploaded repositories as training data for Grok. The strongest evidence only shows that repository-related data was transmitted, staged, or stored during testing. The original analyst specifically separates these findings from training claims, stating that uploads and storage behaviour were observed, but there was no proof that the data was later used to train the model.
  2. Is the full repository upload claim based on official xAI documentation?
    No. The claim mainly comes from an independent technical analysis that examined network traffic and a public reproduction repository created to test the behaviour. xAI’s official documentation covers areas such as Grok Build functionality, networking, local storage, enterprise policies, and Zero Data Retention, but the reviewed documentation does not publicly describe a consumer-facing system that uploads entire repositories.
  3. Does Grok Build only send the files it reads in the active task?
    Not according to the public evidence from version 0.2.93. Files that Grok directly reads may be sent through the normal model interaction process, but the analysis identified separate repository-related upload activity. The captured Git bundle suggested that tracked files could be included in a broader repository transfer, meaning files that were never directly opened by the model could still potentially be transmitted.
  4. Can unread secrets still be exposed?
    Potentially yes, if those secrets are stored in tracked files and the repository upload behaviour identified in the analysis is present. The normal model request pathway appeared to involve files Grok actually accessed, but the larger concern comes from the separate repository transfer path because it may include tracked material that the model did not need to read during the task.
  5. Does turning off “Improve the model” stop repository uploads?
    The public evidence indicates that it did not stop the uploads observed during testing. xAI’s consumer FAQ explains that the “Improve the model” setting controls whether new conversations can be used for training purposes. However, the independent analysis reported that repository uploads still occurred even when this option was disabled, suggesting the setting may not control all forms of data transmission.
  6. What is the difference between model traffic and storage traffic in this controversy?
    Model traffic refers to the requests used for live AI processing, such as POST /v1/responses, where file contents may be included so Grok can understand and respond to the task. Storage traffic refers to separate upload processes, such as POST /v1/storage, which appear to handle session data, archives, or repository-related snapshots. The concern is that storage traffic may transfer more data than what is needed for the immediate model response.
  7. Can developers verify the claims themselves?
    Yes. Developers can independently test the behaviour using network inspection methods. xAI documents support for proxy configurations and TLS inspection compatibility, while the public reproduction repository provides a testing approach using tools such as mitmproxy and canary files to observe whether repository contents are transmitted and reconstruct uploaded bundles.
  8. Is Zero Data Retention available to everyone using Grok Build?
    No. According to xAI’s documentation, Zero Data Retention (ZDR) is an enterprise-level feature that is managed through team settings. It is not presented as a default privacy option available to all individual users of Grok Build, meaning consumer users should not assume that their data receives the same retention protections.
  9. Are there official xAI controls that help reduce risk?
    Yes. xAI provides several controls for managed environments, including policy settings through requirements.toml, sandbox profiles, permission controls, logging options, and enterprise authentication features. These tools can help organizations limit and monitor usage, but they do not replace the need for clear information about what data Grok Build uploads by default.
  10. What is the most important practical takeaway for teams?
    Teams should treat Grok Build as a network-connected coding tool that may transmit repository data unless they have verified its behaviour in their own environment. Because findings can depend on the specific CLI version, configuration, and future updates, relying only on assumptions or documentation gaps is risky. Testing through internal monitoring or proxy capture provides a more reliable understanding of what data leaves the environment.
Yelzkiziwhat xai’s grok build cli sends to xai: full repository upload claims explained
Yelzkiziwhat xai’s grok build cli sends to xai: full repository upload claims explained

Conclusion

The “full repository upload” controversy around xAI’s Grok Build CLI is credible enough to take seriously, but it should be described precisely. The strongest public evidence today supports a two-channel model: Grok Build sends read file contents in live model requests, and in version 0.2.93 it also appears to upload much broader repository state through storage endpoints, including tracked files the model never opened and the repository’s Git history. What has not been publicly proven is downstream training use.

What xAI’s own docs do clearly establish is that Grok Build is a fast-moving official coding agent with enterprise-grade controls such as policy pinning, proxies, sandboxing, and ZDR, yet the reviewed public docs still do not give ordinary developers a clear, consumer-readable explanation of repository upload scope, retention, and disabling behaviour. Until xAI clarifies that gap, the responsible reading of the evidence is simple: assume Grok Build may send more than the files you see it read, and verify with your own instrumentation before pointing it at sensitive code. 

Sources and citation

Recommendations

Table of Contents

PixelHair

3D Hair Assets

PixelHair ready-made curly afro fade 3D hairstyle in Blender using hair particle system
yelzkizi PixelHair Realistic male 3d character fade 3d hair in Blender using Blender hair particle system
PixelHair ready-made Chadwick Boseman full 3D beard in Blender using Blender hair particle system
PixelHair ready-made 3D hairstyle of Halle Bailey dreads knots in Blender with hair particle system
yelzkizi PixelHair Realistic Korean Two-Block Male 3d hair in Blender using Blender hair particle system
PixelHair ready-made Omarion full 3D beard in Blender using Blender hair particle system
yelzkizi PixelHair Realistic female 3d character Cardi B bob wig with bangs 3d hair in Blender using Blender hair particle system
PixelHair Realistic female 3d character curly bangs afro 4c hair in Blender using Blender hair particle system
PixelHair ready-made Lil Baby dreads woven Knots 3D hairstyle in Blender using hair particle system
PixelHair ready-made 3D hairstyle of Big Sean Afro Fade in Blender
yelzkizi PixelHair Realistic female 3d character curly afro 4c big bun hair with scarf in Blender using Blender hair particle system
yelzkizi PixelHair Realistic female 3d character curly dreads 4c hair in Blender using Blender hair particle system
PixelHair ready-made 3D hairstyle of Halle Bailey Bun Dreads in Blender
PixelHair ready-made 3D full beard with magic moustache in Blender using Blender hair particle system
yelzkizi PixelHair Realistic female 3d character Sleek Side-Part Bob 3d hair in Blender using Blender hair particle system
yelzkizi PixelHair Realistic female 3d character Cardi B Double Bun Pigtail with bangs and   middle parting 3d hair in Blender using Blender hair particle system
PixelHair Realistic 3d character afro dreads fade taper 4c hair in Blender using Blender hair particle system
PixelHair Realistic female 3d character pigtail dreads 4c hair in Blender using Blender hair particle system
PixelHair ready-made female 3D Dreads hairstyle in Blender with blender particle system
PixelHair ready-made 3D hairstyle of Nipsey Hussle Braids in Blender
PixelHair Realistic 3d character afro fade taper 4c hair in Blender using Blender hair particle system
yelzkizi PixelHair Realistic Yeat French Crop Fade male 3d character 3d hair in Blender using Blender hair particle system
PixelHair ready-made 3D Dreads (Heart bun) hairstyle in Blender
PixelHair ready-made top woven dreads fade 3D hairstyle in Blender using Blender hair particle system
PixelHair ready-made iconic Juice Wrld dreads 3D hairstyle in Blender using hair particle system
PixelHair ready-made Jcole dreads 3D hairstyle in Blender using hair particle system
PixelHair ready-made Big Sean braids 3D hairstyle in Blender using hair particle system
PixelHair ready-made 3D hairstyle of Big Sean  Spiral Braids in Blender with hair particle system
PixelHair ready-made Afro fade 3D hairstyle in Blender using Blender hair particle system
yelzkizi PixelHair Realistic female 3d character Cardi B red curly bun pigtail with bangs style 3d hair in Blender using Blender hair particle system
PixelHair ready-made iconic 21 savage dreads 3D hairstyle in Blender using hair particle system
PixelHair ready-made chrome heart cross braids 3D hairstyle in Blender using hair particle system
Fade 009
PixelHair ready-made full  weeknd 3D moustache stubble beard in Blender using Blender hair particle system
PixelHair ready-made 3D Beard of Khalid in Blender
PixelHair ready-made 3D Dreads curly pigtail bun Hairstyle in Blender
PixelHair ready-made 3D hairstyle of Ski Mask the Slump god Mohawk dreads in Blender
PixelHair ready-made dreads pigtail hairstyle in Blender using Blender hair particle system
PixelHair ready-made Long Dreads Bun 3D hairstyle in Blender using Blender hair particle system
PixelHair ready-made 3D hairstyle of Nipsey Hussle Beard in Blender
Dreads 010
yelzkizi PixelHair Realistic female 3d character braided bantu knots with hair strands on both sides of the head 3d hair in Blender using Blender hair particle system
PixelHair ready-made iconic Lil Yatchy braids 3D hairstyle in Blender using hair particle system
yelzkizi PixelHair Realistic female 3d character Bow Bun Locs Updo 3d hair in Blender using Blender hair particle system
PixelHair ready-made Top short dreads fade 3D hairstyle in Blender using Blender hair particle system
yelzkizi PixelHair Realistic female 3d character Layered Shag Bob with Wispy Bangs 3D Hair in Blender using Blender hair particle system
PixelHair ready-made Rhino from loveliveserve style Mohawk fade / Taper 3D hairstyle in Blender using Blender hair particle system
yelzkizi PixelHair Realistic female 3d character Cardi B Bow Tie weave 4c hair in Blender using Blender hair particle system
PixelHair pre-made The weeknd Dreads 3D hairstyle in Blender using Blender hair particle system
PixelHair ready-made full 3D beard in Blender using Blender hair particle system
PixelHair ready-made 3D full big beard with in Blender using Blender hair particle system
PixelHair Realistic 3d character bob mohawk Dreads taper 4c hair in Blender using Blender hair particle system
PixelHair Realistic r Dreads 4c hair in Blender using Blender hair particle system
PixelHair ready-made pigtail female 3D Dreads hairstyle in Blender with blender hair particle system
PixelHair ready-made short 3D beard in Blender using Blender hair particle system
PixelHair pre-made Afro Fade Taper in Blender using Blender hair particle system
PixelHair ready-made 3D Rihanna braids hairstyle in Blender using hair particle system
PixelHair ready-made full 3D goatee beard in Blender using Blender hair particle system
yelzkizi PixelHair Realistic female 3d character Unique Bantu puff twist hairstyle with curled afro ends and sleek parted base 3d hair in Blender using Blender hair particle system
yelzkizi PixelHair Realistic Korean Two-Block Fade 3d hair in Blender using Blender hair particle system
PixelHair pre-made Lil Baby Dreads Fade Taper in Blender using Blender hair particle system
PixelHair pre-made Chadwick Boseman Mohawk Afro Fade Taper in Blender using Blender hair particle system
yelzkizi PixelHair Realistic female 3d character curly hair afro with bun pigtail  3d hair in Blender using Blender hair particle system
yelzkizi PixelHair Realistic female 3d character full dreads 4c hair in Blender using Blender hair particle system
PixelHair Realistic female 3d character curly afro 4c hair in Blender using Blender hair particle system
PixelHair ready-made 3D hairstyle of XXXtentacion Dreads in Blender
PixelHair ready-made 3D hairstyle of lewis hamilton Braids in Blender
yelzkizi PixelHair Realistic female 3d character 4 braids knot 4c afro bun hair in Blender using Blender hair particle system
PixelHair pre-made Chris Brown inspired curly afro 3D hairstyle in Blender using Blender hair particle system
PixelHair pre-made Afro Fade Taper in Blender using Blender hair particle system
PixelHair ready-made dreads afro 3D hairstyle in Blender using hair particle system
Bantu Knots 001
PixelHair ready-made Scarlxrd dreads hairstyle in Blender using Blender hair particle system
PixelHair ready-made 3D KSI fade dreads hairstyle in Blender using hair particle system
PixelHair ready-made 3D hairstyle of Doja Cat Afro Curls in Blender
yelzkizi PixelHair Realistic male 3d character Afro Sponge Twists Dreads 3d hair in Blender using Blender hair particle system
PixelHair ready-made top bun dreads fade 3D hairstyle in Blender using Blender hair particle system
PixelHair pre-made Drake Double Braids Fade Taper in Blender using Blender hair particle system
yelzkizi PixelHair Realistic male 3d character Chris Brown Curly High-Top Fade 3d hair in Blender using Blender hair particle system
PixelHair ready-made Snoop Dogg braids hairstyle in Blender using Blender hair particle system
PixelHair Realistic female 3d character bob afro 4c hair in Blender using Blender hair particle system
PixelHair ready-made 3D Jason Derulo braids fade hairstyle in Blender using hair particle system
PixelHair Realistic Dreads 4c hair in Blender using Blender hair particle system
PixelHair pre-made Nardo Wick Afro Fade Taper in Blender using Blender hair particle system
PixelHair ready-made Afro fade 3D hairstyle in Blender using Blender hair particle system
PixelHair Realistic 3d character full beard in Blender using Blender hair particle system
yelzkizi PixelHair Realistic female 3d character Cardi B Bow Bun with bangs and stray strands on both sides of the head 3d hair in Blender using Blender hair particle system
PixelHair Realistic 3d character dreads fade taper in Blender using Blender hair particle system
PixelHair ready-made iconic 3D Drake braids hairstyle in Blender using hair particle system
yelzkizi PixelHair Realistic female 3d character curly puffy 4c big hair in Blender using Blender hair particle system
yelzkizi PixelHair Realistic 3D Dreadlocks: Realistic Male Locs 3d hair in Blender using Blender hair particle system
PixelHair ready-made 3D hairstyle of Dreadlocks wrapped in scarf rendered in Blender
PixelHair ready-made full 3D beard in Blender using Blender hair particle system
PixelHair pre-made Odel beckham jr Curly Afro Fade Taper in Blender using Blender hair particle system
yelzkizi PixelHair Realistic female 3d character 4 twist braids 4c afro bun hair with hair clip in Blender using Blender hair particle system
PixelHair ready-made full Chris Brown 3D goatee in Blender using Blender hair particle system
PixelHair pre-made Curly Afro in Blender using Blender hair particle system
yelzkizi PixelHair Realistic male 3d character curly fade with middle parting 3d hair in Blender using Blender hair particle system
PixelHair ready-made Afro fade 3D hairstyle in Blender using Blender hair particle system
yelzkizi PixelHair Realistic female 3d character curly weave 4c hair in Blender using Blender hair particle system