A Researcher Found Windows 11 Recording Which Coding Agents You Run, Claude Code and Codex Included. It Sits Under Optional Diagnostic Data. Here Is the Switch.
A post dated November 16, 2026 on Xusheng Li's site, titled "Windows 11 Is Collecting Data on Which Coding Agents You Use", walks through a Windows telemetry component that watches for coding agents by process name. The watched names include claude.exe, codex.exe, copilot.exe and cursor.exe. The component keeps one bit per agent per reporting window and queues a report for upload as optional diagnostic data. The author found no prompt text or source code in it.
That's a narrower finding than the headline suggests, and the post is honest about its limits. I think it's still worth five minutes if you do client work on a Windows machine.
What the post shows
The component is MissionControlAggregator.dll, loaded by AggregatorHost.exe under DiagTrack, the service Windows calls Connected User Experiences and Telemetry. The author reverse-engineered it on a Windows 11 ARM64 virtual machine, build 26200.9974.
According to the post, it has four slots for command-line agents (copilot.exe, claude.exe, codex.exe and agy.exe, plus extensionless equivalents run inside WSL) and five for desktop apps (github.exe, claude.exe, codex.exe, cursor.exe and antigravity.exe). It also checks for general developer tools such as node.exe, python.exe, dotnet.exe and code.exe, which feed broader categories the post doesn't name.
The report is an event called Microsoft.Windows.MissionControlAggregator.Segments.SubCohorts, with one bitmap for CLI agents and one for desktop agents. A set bit means the tool was seen during the window. The source events carry more than that, including runtime and time in focus, and the author says the component appears to discard those. That part is the author's inference from the code.
The rename test
The matching is by file name. The author copied cmd.exe to a file called codex.exe, ran it, and the Codex slot was set in the component's saved state. After a forced report, the event came out with the Codex bit on.
So the signal says "a process with this name ran", and nothing about what it did. Anything named claude.exe counts.
What it does not show
I'd keep four limits in view before repeating this story anywhere.
The author found the report in DiagTrack's upload queue. The post doesn't show it being sent to Microsoft. The post's intro says "uploaded" while the evidence in the body shows "queued", and the author says outright that an event alone doesn't prove data leaves the machine.
It was one virtual machine. On a second VM built from the public ISO, the feature (named CLICodingAgentUsage) was off by default in the image. On the ARM64 VM it had been switched on as a service experiment, without the author enabling it. The post says plainly that this doesn't show the feature is active on every Windows install.
The report is flagged as not required, which puts it under optional diagnostic data. The post says optional data is enabled by default during Windows installation. It doesn't cover how that default differs by region, and I haven't checked that myself.
There's no response from Microsoft in the post.
Why I'd care anyway
Which agent I use isn't a secret. I write about it here. A bitmap of four agents is about as low-stakes as telemetry gets.
Two things still bother me. One is that it covers WSL, so the tools I run inside Linux on a Windows laptop are counted too, and I wouldn't have guessed the diagnostic setting reached in there. The other is client work. Some contracts say which AI tools you may use on the client's code, and some say none. A machine that keeps even a coarse record of which agents ran is something I'd want to know about before signing a clause like that, whichever direction it cuts.
More generally, "optional diagnostic data" is a category I agreed to once during setup and haven't thought about since. Its contents change with Windows updates, and nobody tells you when a new kind of report is added.
The switch
The post gives one way to turn it off, and it's the ordinary one:
Settings > Privacy & security > Diagnostics & feedback > Send optional diagnostic data: Off
Microsoft's support page describes the same screen as Start > Settings > Privacy & security > Diagnostics & feedback, where you pick an option under Diagnostic data, so the label may read a little differently on your build. You can also decline optional data during Windows setup. The author doesn't give a registry key or group policy for this specific report, so I'm not going to invent one. Turning off optional diagnostic data turns off the whole category, which includes more than this report.
Where I could be wrong
This may be a small, sensible product metric. Microsoft sells Copilot and ships developer features in Windows, and knowing roughly how many machines run a coding agent is an obvious thing for a product team to want. One bit per tool, with no content, is close to the least invasive way to count it.
The finding also rests on one person's reverse engineering of one build. I can't reproduce it from where I sit, and details like the exact slot list could differ on other builds or change next month. If Microsoft documents the event, I'd read that before anything else.
What I'd actually do
On a personal dev machine, I'd leave it. The data is coarse and I'm not hiding which tools I use.
On a machine where I do client work under an agreement that mentions AI tools, I'd turn optional diagnostic data off today. It takes under a minute and I can't think of a feature I'd lose that I'd notice. I'd also write the setting into my machine setup notes, next to disk encryption and the screen lock timeout, because a fresh install puts it back to the default.
Author
Lukas
@lukcombinator