Skip to content

Blog

Windows 11 was recording which of Claude, Codex and Cursor you use

7 min read

Cover image made from the Windows 11, Claude, OpenAI, GitHub Copilot and Cursor logos (Microsoft, Anthropic, OpenAI, GitHub, Cursor)
Cover image made from the Windows 11, Claude, OpenAI, GitHub Copilot and Cursor logos (Microsoft, Anthropic, OpenAI, GitHub, Cursor)

On November 16 (US time), security researcher Xusheng Li published a blog post that takes apart one of Windows 11's system components. The component, called MissionControlAggregator, records whether coding agents such as codex.exe, claude.exe, copilot.exe and cursor.exe have run on a PC. If optional diagnostic data is turned on, it puts the result in a queue to be sent to Microsoft.

The author first posted about it on X under the account @CrackmesOne. That post drew 3,000 likes, 440 reposts and 110,000 views. The blog post got 332 points and 205 comments on Hacker News. It was also featured on the Korean site GeekNews.

A system DLL contained a list of coding agent names

It started with AI. The author asked an AI to find undocumented features in the latest Windows binaries. Among the leads the AI brought back, a list of coding agent names stood out. The file that contained the names was MissionControlAggregator.dll.

Strings inside MissionControlAggregator.dll: copilot.exe, claude.exe, codex.exe, agy.exe, github.exe, cursor.exe and antigravity.exe (Xusheng Li's blog)
Strings inside MissionControlAggregator.dll: copilot.exe, claude.exe, codex.exe, agy.exe, github.exe, cursor.exe and antigravity.exe (Xusheng Li's blog)

Tracing them in the disassembler Binary Ninja showed that these names are used in code that compares them against executable names. There are four CLI agent slots (copilot, claude, codex, agy) and five desktop agent slots (github, claude, codex, cursor, antigravity). The name antigravity matches Antigravity, Google's agent development tool. The feature that turns this check on and off is called CLICodingAgentUsage.

The list does not stop at AI agents. It also checks developer tools such as node.exe, python.exe, dotnet.exe, gcc.exe, clang.exe, gdb.exe, javac.exe, devenv.exe (Visual Studio) and code.exe (VS Code), grouped into 12 categories. Some slots also check the publisher, such as Node.js Foundation for Node.js and Python Software Foundation for Python.

It does not scan processes itself; it picks names out of existing Windows events

MissionControlAggregator does not search running processes directly. It takes the summaries of app state changes, the app usage summaries and the WSL launch events that Windows already records, and matches the executable names in them against its list. So it catches not only Linux programs inside WSL but also codex.exe run directly in Windows.

When a name matches, it marks the corresponding slot. Roughly once a day, it bundles the marks into a report called Segments.SubCohorts. The report contains no names, only one bit per slot. If the Codex bit is set, Codex ran during that period. The original events include run time, time in the foreground, input counts and resource usage, but this component reportedly discards those values and keeps only the bits. The author reported finding no prompts or source code in the reports.

Table of the executable names MissionControlAggregator checks and how it reports them. Agents are reported as one bit per slot, developer tools as one bit per category (Xusheng Li's blog)
Table of the executable names MissionControlAggregator checks and how it reports them. Agents are reported as one bit per slot, developer tools as one bit per category (Xusheng Li's blog)

A cmd.exe renamed to codex.exe was also counted as Codex

The author checked whether this actually runs, using a Windows 11 ARM64 virtual machine (build 26200.9974) in Parallels. The CLICodingAgentUsage feature was already on without being switched on by hand, and the diagnostic data service DiagTrack was loading and running the DLL.

The test was simple. The author copied cmd.exe under the name codex.exe and ran it, and a mark appeared in the Codex slot of the stored state. Instead of waiting a day, the author moved the start of the reporting period back by 25 hours and restarted the service. This produced a report with CliAgentSubCohorts set to 4. The value 4 is the bit for Codex, the third slot. The author found this report directly in the upload queue bound for Microsoft. A cmd.exe renamed to gcc.exe was also caught in a developer tool slot. This also means the check judges by the executable name alone.

There is no basis, however, for assuming it is on for every PC. The author also noted that the feature was off on a default fresh install from the public ISO. On the author's virtual machine, it had already been turned on as a service experiment.

A fresh install with the US region had optional diagnostic data turned on

This report is classified as optional diagnostic data, not required. So if you turn off optional diagnostic data, it is not uploaded. The issue is the default. The author did a fresh install of Windows 11 Home ARM64 from the latest official ISO with the region set to the United States. On the setup screen, the diagnostic data option was set to Include Optional from the start. After setup was completed with the defaults, the AllowTelemetry setting was also 3, the optional level.

Diagnostic data set to Include Optional during a fresh Windows 11 Home install with the region set to the United States (Xusheng Li's blog)
Diagnostic data set to Include Optional during a fresh Windows 11 Home install with the region set to the United States (Xusheng Li's blog)

According to Microsoft's documentation, optional diagnostic data already includes which programs run, how long they run and how quickly they respond to input. Sending which programs were run is itself within the documented scope. What is new is that Windows sorts coding agents out separately, by name. The same documentation says the default since Windows 10 1903 is required diagnostic data, which differs from the default seen in the US Home install. As of November 17, I could not find an official explanation from Microsoft of what this feature is for.

Reactions split: some say nothing is new, others say the setting is poorly explained

On Hacker News, many comments argued that everyone already knows Windows collects this kind of data. Others pointed out that the setting's name alone does not make clear that the data is always recorded and is only withheld when you turn off diagnostic data sharing. Another comment noted that the statistics come only from Windows users who turned on optional diagnostic data, so they are skewed as a measure of developer tool market share.

On X, some speculated that MissionControlAggregator could be groundwork for a feature Windows 11 is building to launch AI agents from the taskbar and show their status. This has not been confirmed.

One more item to check when installing coding agents on company PCs

In my November 15 post “Claude Managed Agents now lets you keep agent servers and session records inside your company”, I covered how to keep the servers that run agents, and their records, inside the company. But wherever you run your agents, the operating system on a developer's PC can separately report which agents are used on that PC. This report contains no code or prompts. Still, for some companies, which development team uses which coding tools is also information they would rather not share outside.

On PCs managed by an organization, you can set the diagnostic data level with Allow diagnostic data in Group Policy, or with System/AllowTelemetry in an MDM such as Intune. Windows 11 Pro can go as low as required (1). Setting 0, which turns diagnostic data off entirely, works only on Enterprise and Education. When bringing agents into a client's development environment, I think this value should be checked along with the agent's own data policy.

It is also a sign that coding agents have become common enough for the operating system to count them separately. Until Microsoft explains what it uses this data for, I expect diagnostic data settings to become part of security checklists for development PCs.

https://xusheng.dev/posts/windows-coding-agent-telemetry/