---
title: "What your AI coding CLI actually sends: the Grok case and the paradox in reverse"
description: "A wire-level analysis of xAI's coding CLI (grok) documents the upload of the entire repository and .env files to an xAI cloud bucket, even with 'improve the model' turned off. Together with the footprint of desktop agents and the 'reverse information paradox', it is a reminder that the code you give a cloud AI leaves your perimeter. The answer: sovereignty and governance."
url: "https://www.noze.it/en/insights/ai-coding-cli-telemetry/"
lang: "en"
alternate: "https://www.noze.it/insights/ai-coding-cli-telemetria/"
published: "2026-07-14"
author: "noze S.r.l."
keywords: "AI, Cybersecurity, Governance, AI Coding, Grok, xAI, Data Exfiltration, Telemetry, AI Governance, AI Sovereignty, On-Premise, Admina, Privacy"
---

# What your AI coding CLI actually sends: the Grok case and the paradox in reverse

A wire-level analysis of xAI's coding CLI (grok) documents the upload of the entire repository and .env files to an xAI cloud bucket, even with 'improve the model' turned off. Together with the footprint of desktop agents and the 'reverse information paradox', it is a reminder that the code you give a cloud AI leaves your perimeter. The answer: sovereignty and governance.

14 July 2026

![Diagram of the data leaving an AI coding CLI: every tracked repository file, the full git history, the .env file with keys and secrets, and files the agent never read travel over two channels (192 KB on the model turn, 5.10 GiB on the storage channel) to xAI infrastructure and a Google Cloud Storage bucket](https://www.noze.it/images/insights/ai-coding-cli-egress-en.svg)

What leaves the machine when a cloud AI coding CLI works on your repository, with the volumes measured on the two outbound channels. Diagram based on @cereblab’s wire-level analysis of grok 0.2.93.

## The code you give an AI leaves your perimeter

When you connect a cloud coding agent to your repository, you are giving it access to your code. The operational question, which almost no one asks, is: **what actually leaves your machine, and where does it end up?** Two documents from mid-July 2026 try to answer concretely, and the answer deserves attention.

> **Note.** This article reports third-party analyses and reports (independent researchers and news outlets), not technical verification carried out by noze. The situations described are evolving: where known, we note the vendors’ responses. Figures, endpoints and behaviours refer to the versions and dates indicated and may already have changed.

## The Grok case: whole repository and secrets uploaded

The first is a **wire-level analysis** of xAI’s coding CLI (`grok`), published by independent researcher **@cereblab**. Intercepting traffic with mitmproxy and canary markers, the analysis documents that, on a normal consumer login, the CLI does three things worth knowing precisely.

**First**, it transmits the contents of the files it reads, including a **`.env` file with keys and secrets**, to xAI verbatim and unredacted, over two channels: the model turn (`POST /v1/responses`) and an uploaded archive (`POST /v1/storage`, which returns `HTTP 200`).

**Second**, and this is the point, it uploads the **whole repository** (every tracked file plus git history) as a _git bundle_, **independent of what the agent reads**. In the cited test, on a 12 GB repo of random files with an explicit instruction to read nothing, the model channel (`/v1/responses`) moved about **192 KB**, while the storage channel moved **5.10 GiB**: a ratio of roughly **27,800×**. A placeholder file (`src/_probe/never_read_canary.txt`), which the agent had been told not to open, was recovered **verbatim** from the captured git bundle.

**Third**, the destination is a **Google Cloud Storage** bucket named `grok-code-session-traces`. And the detail that closes the loop: turning off the **“improve the model”** setting does not stop the upload, because the settings endpoint keeps reporting `trace_upload_enabled: true`.

The analysis (of version `grok 0.2.93`) has a stated methodology (TLS interception with mitmproxy, canary markers, SHA-256-verified git bundles) and was picked up by numerous industry outlets. After publication, xAI disabled the upload server-side and introduced a `disable_codebase_upload` option in the CLI, but so far there is no formal public statement about the incident. What the analysis documents stands either way: the codebase, and any secrets in it, left the machine with the “improve the model” setting off.

## The hidden footprint of desktop agents

There is a second axis, different in kind but revealing: the **footprint** of these tools. In OpenAI Codex’s case, several outlets (among them _The Register_) documented a **logging bug** that wrote enormous amounts to the SSD: a TRACE-level SQLite log (`~/.codex/logs_2.sqlite`) that, in one measurement, produced about **37 TB in 21 days**, on the order of **640 TB per year**, enough to erode the write endurance (TBW) of a consumer SSD in under a year. OpenAI has since fixed the behaviour, with fixes in the 0.142.x line cutting writes by around 85%. Some reports also mention high network usage (on the order of 150 GB per month) tied to persistent WebSockets and cloud sandboxes, with lighter CLIs at comparable token counts: figures to take with more caution, but consistent with a simple principle. A desktop agent can have far more network and disk activity than the interface suggests. Here the issue is a fixed defect, not exfiltration, but the lesson is the same: what the agent does under the hood is rarely visible.

## The information paradox, in reverse

**Satya Nadella** (Microsoft’s CEO) coined the phrase **reverse information paradox** in July 2026, picked up in various commentary, including an essay on _sn scratchpad_. Arrow’s classic paradox is about the _seller_ of information, who risks giving it away in order to sell it. In the AI era the problem flips onto the _buyer_: to really use these systems you have to reveal your proprietary knowledge. As the essay puts it, “you pay for intelligence twice, once with money, and again with something even more valuable, the proprietary knowledge you must reveal”. Prompts, code, corrections and workflows become _exhaust_ that flows in one direction only, toward whoever owns the infrastructure.

## What we think

The Grok case makes concrete what usually stays invisible, but the theme is not about one vendor: **any cloud coding agent ships your code to infrastructure you do not control**, under rules that can change and with options that, as we have seen, do not always do what they promise. For anyone building critical software, or simply caring about their secrets, that is a risk to weigh.

Our answer is architectural, and it has two legs. The first is to **own the operational floor**: open-weight models running locally, where the code never leaves the perimeter. This is no longer science fiction, as we have covered in [DwarfStar 4](https://www.noze.it/en/insights/dwarfstar-4/), [colibri](https://www.noze.it/en/insights/colibri-glm-5-2-local/), [GLM 5.2](https://www.noze.it/en/insights/glm-5-2-open-weight-ai-sovereignty/) and, on agentic coding specifically, [Ornith 1.0](https://www.noze.it/en/insights/ornith-1-0-self-scaffolding/): an open model that matches the closed frontier and runs on your hardware removes the exfiltration problem at the root.

The second is to **govern the stack** when a remote model is genuinely needed. That is exactly what [Admina](https://www.noze.it/en/open-source/admina/) does: a control plane that brings an audit trail of every AI interaction, redaction of PII and secrets, and bidirectional ALLOW/BLOCK/REDACT policies on any model, local or remote. It is the layer that intercepts a `.env` about to leave, rather than discovering it in someone else’s bucket months later. The Grok case shows why the control point has to be yours: the settings endpoint kept reporting `trace_upload_enabled: true` while the interface said the upload was off.

It is the sense of [Open Intelligence, Secure Governance](https://www.noze.it/en/insights/open-intelligence-secure-governance-agentic/), and the same logic by which we treat the closed frontier as technology someone else can filter or switch off ([the Fable 5 case](https://www.noze.it/en/insights/fable-5-shutdown-us-government-ai-sovereignty/), [GPT-5.6 Sol](https://www.noze.it/en/insights/gpt-5-6-sol/)). AI coding tools send out more than they declare: [owning the model or governing the calls](https://www.noze.it/en/artificial-intelligence/) are the two ways to keep using them without losing control of the code.

## Sources

- [@cereblab: What xAI’s Grok Build CLI Actually Sends to xAI, A Wire-Level Analysis (grok 0.2.93)](https://gist.github.com/cereblab/dc9a40bc26120f4540e4e09b75ffb547)
- [The Hacker News: Grok Build Uploaded Entire Git Repositories to xAI Storage](https://thehackernews.com/2026/07/grok-build-uploads-entire-git.html)
- [The Register: OpenAI Codex bombards SSDs with needless write operations](https://www.theregister.com/ai-and-ml/2026/06/23/openai-codex-bombards-ssds-with-needless-write-operations-costing-millions/)
- [sn scratchpad: The Reverse Information Paradox](https://snscratchpad.com/posts/reverse-information-paradox/)
- [Business Standard: Satya Nadella coins “Reverse Information Paradox”](https://www.business-standard.com/technology/artificial-intelligence/satya-nadella-reverse-information-paradox-ai-risks-126071300520_1.html)
