Software · Opinion
Windows 11 keeps a daily tally of which coding agents you run
A Windows diagnostics component flags Codex, Claude, Cursor and Copilot use. A bitmap is still workflow telemetry, and Microsoft should publish exactly what it collects and why.
Xusheng Li copied cmd.exe to a file called codex.exe, ran it, and Windows 11 recorded Codex as having been used. He changed nothing but the file name. The component doing the matching is MissionControlAggregator.dll, loaded by the DiagTrack telemetry service, and it checks for four CLI agents (copilot.exe, claude.exe, codex.exe, agy.exe), five desktop agents and twelve broader developer-tool categories, including python.exe, gcc.exe and code.exe. I expected a quirk. I came away thinking Microsoft owes developers a published, field-by-field description of this event.
The mechanism is tidy. The aggregator listens to events Windows already emits, such as KernelProcess.AppStateChangeSummary and the WSL Exec events. It sets a slot per tool and turns the slots into bitsets. It then emits a report called Segments.SubCohorts, version 0.1.5, behind a feature named CLICodingAgentUsage, ID 62580080. Li’s Codex test produced CliAgentSubCohorts: 4, which is 1 << 2. His gcc.exe copy produced 8, which is 1 << 3. With optional diagnostic data allowed, that report sat in DiagTrack’s upload queue marked isRequired: false.
The best defence is that it is only a bitmap. Li found no prompt text and no source code. Runtime, time in focus and interaction counters appear to be thrown away, and the timestamps describe a collection window of roughly a day. I accept all of that, and I still think it is the wrong place to relax. A daily bitmap is precisely what a product team wants if it is counting adoption: which machines ran which agent, on which day, as a share of the installed base. Copilot sits in the same list as Claude, Codex and Cursor. I am not claiming Microsoft uses it for competitive tracking, because I have no evidence of that and neither does Li. Nobody outside Microsoft can say what it is used for.
The other half of the defence is that the data is optional. Li checked a clean Windows 11 Home ARM64 install from the latest official ISO, region set to the United States. The diagnostic data toggle was already on and labelled Include Optional, and AllowTelemetry read 3. On his Parallels VM (build 26200.9974) the CLICodingAgentUsage experiment was already enabled, and he had not switched it on. An option that arrives enabled, with its feature flag already switched on remotely, stays on for anyone who does not go looking for it.
There is also a sloppiness argument. The match is on file name, so a renamed cmd.exe counts as Codex. Some slots also check the publisher, so Node.js expects Node.js Foundation and Python expects Python Software Foundation. The compiler and debugger group, which includes GCC and Clang, has no such check in this path. A signal this easy to spoof is poor evidence for anything except aggregate counting, which is the use I would expect from it. It also means the collection works as a census of tool presence, with no real verification behind it.
We found this because a researcher pointed an AI agent at the Windows binaries and followed string comparisons through ETW subscriptions, the DiagTrack Diagtrack-Listener session and the AsimovEvents table in EventStore.db, decompressing JSON batches by hand. Nothing in Li’s write-up points to a Microsoft page describing this event. Developers should not need a reverse-engineering session to learn that their toolchain is being counted. Microsoft already splits diagnostic data into required and optional, so listing every field of Segments.SubCohorts, what each bit means and how long the data is kept costs one documentation page.
If you want to act before that page exists, open Settings, then Privacy & security, then Diagnostics & feedback, and turn off Send optional diagnostic data. Then check on a spare VM that the AllowTelemetry value has dropped from 3, and ask your IT department what the fleet is set to.
Prompted by Windows 11 Is Collecting Data on Which Coding Agents and Developer Tools You Use, Xusheng Li.