Skip to content
All articles
Audit practice 9 min read· by Lars Zimmermann

What AI coding tools send, and how to measure it yourself

The telemetry switch covers only part of what coding agents send. How to measure the traffic and govern it with settings, network rules and the contract.

In short

Measure what an AI coding tool sends on a test machine behind a proxy that reads encrypted traffic. Sort every request by author: vendor code, conversation with the model, requests the model makes, third-party extensions. The telemetry switch governs only the first. Network rules, a company account with a data processing agreement and a transfer rule govern the rest.

Auf Deutsch lesen: deutsche Fassung

In the design office, someone uses an AI agent to write a script that transfers bills of materials into the ERP system. IT switched off telemetry beforehand and ticked the topic off. A developer shows in a tutorial video why that falls short. According to the video, the telemetry switch covers maybe a quarter of what leaves the machine. I put the vendors’ documentation next to it. The figure remains the video’s account. The direction is right. Most of the traffic is the conversation with the model, and you cannot switch that off without switching off the tool. So there are three questions: how does an organisation measure what a tool really sends? Which part does it govern with settings, which with network rules, which with the contract?

Four authors in one data stream

Anyone who captures a coding agent’s traffic first sees a list of destination addresses. The developer in the video suggests sorting every request by its author. Who wrote it? I adopt that, because each author belongs to a different lever in the organisation:

  • The vendor’s code: usage data, error reports, update checks, feature flags. Only this author has a switch.
  • The conversation: your prompts, the files the agent reads, the output of its commands. According to the vendor, Claude Code sends all prompts and all model responses over the network, encrypted in transit.
  • Requests the model triggers itself: a web page, a curl command, an external interface. The destination only emerges during the task and is on no list beforehand.
  • Third-party code with the agent’s rights: extensions, plugins, MCP servers. To your firewall and your logs, their traffic looks like yours.

The first author is also the most harmless. Claude Code describes its usage data as latency, reliability and usage patterns, never with code, prompts or file paths. A vendor of outbound network filters ran seven widely used coding agents behind an intercepting proxy in 2025 and published the results on its blog. It is not an independent study, but the setup, tasks and versions are disclosed. For Claude Code, the report counted almost a thousand telemetry requests in one run. The events often consisted almost entirely of identifiers and metadata. Boring, in the best sense.

A measurement reported in the same video shows how the volumes split. I have not re-measured it. A single code review session: 235 requests, 29.2 MB out, 771 KB back. Telemetry accounted for 7.8 MB. 21.3 MB sat in 130 requests to the model, 15.7 MB of which repeated the earlier history. The model’s interface has no memory, and every request carries the conversation from the start. That matches the vendor’s report: every request contained the entire history so far, and for some tools the requests grew to four times their size over the run.

Measuring as you would for a first article inspection

A new supplied part never goes into series production with us untested. It goes through first article inspection against drawing and inspection plan. I treat an AI tool the same way. The inspection plan has four parts:

  • Test item: a test machine or virtual machine, a test project with made-up data and a decoy file with a made-up access key. Never a colleague’s workstation, never real design data.
  • Measuring equipment: a proxy with its own certificate that opens the encrypted traffic and logs every request with destination and size. In the vendor’s report it sat invisibly in the network path, and that was necessary: not every component of an editor respected the proxy setting.
  • Test procedure: the same tasks in every run, as in the report. Explore the code, build a feature, push a commit, upload a test report, have the decoy file read. Three runs: telemetry off, telemetry on, telemetry on with the telemetry destinations blocked.
  • Evaluation: assign every request to one of the four authors and lay the destination list against the vendor’s list.

Claude Code reads the usual proxy variables and an additional root certificate. According to the vendor, the /status command shows the active proxy, but only the debug log confirms that the certificate has actually loaded. That is the calibration of your measuring equipment. Without it, you may be measuring past the proxy.

The vendor lists exist. In its network documentation, Claude Code names 18 addresses that proxy and firewall should allow (as of 30 November 2026), from sign-in through updates and plugins to two addresses of a third party that carry only telemetry. GitHub publishes a similar list for Copilot and names two addresses for telemetry there. Whatever shows up in your measurement log and is on no list belongs to the third or fourth author. Those are exactly the interesting lines.

A measurement log ages. The report is based on measurements from July to September 2025 with Claude Code 1.0.85 and saw telemetry going to an address of the vendor and to an error service. Today’s list names other addresses for this. How much data a typical session uploads is not stated in the Claude Code documentation (as of 30 November 2026). The measurement therefore belongs in change control: larger update, new first article inspection.

What settings switch off, and what they do not

Claude Code has three individual switches as environment variables: DISABLE_TELEMETRY for usage data, DISABLE_ERROR_REPORTING for error reports, DISABLE_FEEDBACK_COMMAND for the feedback command. There is also the collective switch CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC. According to the vendor, it stops auto-updates, telemetry, error reports, the feedback command and the release notes, among other things. It does not stop two things. Before the built-in web fetch tool retrieves a page, the hostname goes to the vendor to be checked against a blocklist, even when the model runs via Amazon Bedrock or Google Cloud. And the official plugin marketplace sets itself up on first launch. Both have their own switches. With telemetry off, the tool also stops loading feature flags, and some functions are then unavailable.

The least conspicuous point is the feedback command. Anyone who reports a bug in Claude Code with /feedback sends, according to the vendor, a copy of the history including code. In the dialogue, other sessions of the same project from the last 24 hours or seven days can be added. This is retained for five years. If the model runs via a cloud provider such as Amazon Bedrock, the command writes an archive to the local machine instead. So a design engineer’s well-meant bug report takes along the bill of materials logic they are working on. I would switch the command off centrally and report bugs to the vendor through the agreed channel.

Codex and Gemini CLI name their switches differently. Codex sends anonymous usage and health data by default, according to its documentation without personal data. You switch this off with analytics.enabled = false, and the feedback upload with feedback.enabled = false. Gemini CLI collects usage statistics in its default setting, by its own account without the content of prompts, responses and files. The switch there is called privacy.usageStatisticsEnabled.

Two peculiarities belong in the inspection log. For DISABLE_TELEMETRY, DISABLE_ERROR_REPORTING and the Claude Code collective switch, the value 0 or false also switches off. The only way back is to remove the variable or leave it empty. So check whether it is set. The second peculiarity: for proxy and certificate variables, the vendor writes that they do not reliably reach background agents if they are only set in an employee’s shell. I therefore put all switches in the settings file, better still in the centrally distributed managed settings. Gemini CLI has a system settings file for this that overrides all others, and Codex has managed requirements for feedback.

A switch on a single machine is an intention. It only becomes evidence once it is distributed centrally and the measurement shows that it works.

Network rules for the authors without a switch

For requests the model triggers itself, there is no variable. Only the network helps here, on two levels.

First level, on the machine. Claude Code comes with a sandbox for shell commands, off by default. Once on, commands only go out through a local proxy that checks every destination against a list of allowed domains. The list starts empty. A managed setting can specify that only the centrally approved domains apply. If an allowed name points only to a local address, such as a cloud’s metadata service, the proxy still refuses the connection. The vendor names the limits itself. The sandbox covers shell commands only. File and web tools, local MCP servers and hooks run outside it, and web fetches follow their own permission rules. By default, the proxy does not inspect encrypted content. A broad allowance such as github.com can therefore become a way out in its own right.

Second level, in the company network. An allowlist in the proxy or firewall based on the vendor lists, with a justification for each address. Add blocked telemetry destinations as a second safeguard behind the switch. According to the report, blocking these destinations made none of the tools unusable. There were only background side effects, such as repeated retries. For one tool, requests to telemetry addresses continued even with telemetry switched off. The vendor recommends that organisations govern outbound traffic at network level, independently of individual developers’ settings. It sells such filters itself. The observation with telemetry switched off still speaks for the recommendation.

ISO/IEC 27001 has the matching controls in Annex A: networks security (A.8.20), security of network services (A.8.21), segregation of networks (A.8.22) and web filtering (A.8.23). In practice: machines on which agents work with broad rights go into their own segment, separated from production IT and the machine network.

For the fourth author, no rule in the tool is enough. What counts here is origin and a pinned version, as with any other bought-in part.

What belongs in the contract

The conversation always goes to the vendor, so it is governed in the contract. At Anthropic, company accounts fall under the commercial terms, which incorporate the data processing addendum. Section B.1 states: the customer is the controller, Anthropic its processor. The commercial terms are expressly not intended for consumers. Anyone who codes with a personal subscription works under the consumer terms, with a separate training setting and different retention.

Which data ends up with the vendor for the three kinds of coding tools, and how long it stays there:

Read the article on data flows when coding with AI

The contract only covers what runs through the company account. Claude Code can restrict claude.ai sign-ins to your own organisation via a managed setting (forceLoginMethod and forceLoginOrgUUID). An option under which the vendor does not store prompts and responses after processing, except where law or misuse prevention requires it, exists only for selected Enterprise accounts, enabled individually. This option does not cover data that flows through MCP servers or other integrations, and it switches off the feedback command.

Two comparisons make the contract auditable. First, the destination list from your measurement against the list of subprocessors. Article 28(2) GDPR requires authorisation for further processors and, under a general authorisation, information about every intended change. Second, the data types from the measurement against a transfer rule under ISO/IEC 27001 A.5.14: which data may go to whom with which tool? The supplier side is covered by A.5.19 to A.5.21, meaning risks from supplier relationships, requirements in the agreement and the ICT supply chain.

AuthorSettingNetwork ruleContract
Vendor’s codeswitch off telemetry, error reports and feedback centrallyblock telemetry destinationslist of subprocessors
Conversation with the modelcannot be switched off, only approved files in the project folderallow only the model address or your own cloud accesscompany account, data processing, retention
Requests by the modelpermission rules for web fetchessandbox with an empty starting list, allowlist in the company networktransfer rule under A.5.14
Third-party codeonly approved extensions with a pinned versionseparate network segmentorigin in the supplier evaluation
Four authors and their three levers

15 questions for suppliers and software vendors on customer data, training, subcontractors and incidents, ready to send:

Template: AI supplier questionnaire

What I want to see in the audit

In the audit, I ask to see five pieces of evidence for every coding tool:

  • a measurement log per tool and larger update, with date, version, tasks, destination list and author per request
  • the centrally distributed settings and proof that they work, for Claude Code for instance the /status display of proxy and settings sources
  • the allowlist in the proxy or firewall, with a justification per address and blocked telemetry destinations
  • the company account as a requirement, the data processing agreement and the comparison with the list of subprocessors
  • ongoing monitoring under A.8.16, for example proxy logs that flag unknown agent addresses

For ongoing monitoring, Claude Code can export metrics and events to your own OpenTelemetry collector. Every event carries the signed-in person’s email address, where available. Prompts and commands are hidden by default and can be switched on individually. That makes visible who does what and when. In Germany, that touches Section 87(1) no. 6 of the Works Constitution Act (Betriebsverfassungsgesetz, BetrVG): the works council has a co-determination right over technical equipment for monitoring behaviour or performance. Bring the works council in before the first record flows.

This is my interpretation from practice. For legal advice, please turn to the appropriate professionals.

How I check which destinations your AI tools reach, what they log and which rules really work:

AI security

My suggestion for Monday: one test machine, one test project with a decoy file, one proxy, three runs. Afterwards you know which addresses your tool really contacts, and you can tie every rule to a measurement. Which line in your measurement log would surprise you most?

Primary sources

Measuring the network traffic of an AI coding tool

  1. Set up the test item

    Test machine or virtual machine, a test project with made-up data and a decoy file with a made-up access key.

  2. Insert the proxy

    Put a proxy with its own certificate in front that reads the encrypted traffic, and check in the tool that proxy and certificate have loaded.

  3. Fix the tasks

    The same tasks in every run: explore the code, build a feature, push a commit, upload a test report, have the decoy file read.

  4. Do three runs

    Telemetry off, telemetry on, telemetry on with telemetry destinations blocked.

  5. Sort by author

    Assign every request to vendor code, the conversation, requests by the model or third-party code, and lay it against the vendor’s address list.

  6. Derive rules and repeat

    For each author, set a setting, network rule or contract point, and repeat the measurement after every larger update.

Share: LinkedIn E-Mail

Frequently asked questions

Is it enough to switch off telemetry?+

No. The switch only governs what the vendor’s code reports about usage. Most of the traffic is the conversation with the model, meaning prompts, files read and command output. You govern that through what sits in the project folder, through network rules and through the contract with the vendor.

What does the feedback command send to the vendor?+

For Claude Code, according to the vendor, a copy of the history including code, and on request further sessions of the same project. This is retained for five years. You can switch the command off with DISABLE_FEEDBACK_COMMAND=1 or with the collective switch for non-essential traffic.

How do I measure what a coding agent sends?+

On a test machine with a test project and made-up data, behind a proxy with its own certificate that reads the encrypted traffic. The same tasks in three runs: telemetry off, on, and on with telemetry destinations blocked. Then sort every request by author and lay it against the vendor’s address list.

Which ISO 27001 controls fit?+

For the network A.8.20 to A.8.23, for ongoing monitoring A.8.16, for the rule on which data may go where A.5.14, and for the vendor A.5.19 to A.5.21. The measurement provides the evidence for all of them.

Author & expert review: Lars Zimmermann · ISO/IEC 42001 Senior Lead Auditor & Senior Lead Implementer · ISO 9001 Senior Lead Auditor · ISO/IEC 27001 Lead Auditor & Lead Implementer (PECB)

An auditor with shop-floor experience and managing director of a manufacturing company, who audits and builds AI management systems and information security. Author of “Stallgeruch” (in German). Verify the credential on Credly · More about me.

Last updated: 01 December 2026. Researched and reviewed to the best of my knowledge. This is my interpretation from practice. For legal advice, please turn to the appropriate professionals.

Questions about your own case?

In a free 15-minute intro call we assess where you stand on ISO 42001, ISO 27001 and the EU AI Act, honestly and without a sales pitch.

Continue reading