Windows 11 can record which AI coding agents and developer tools you run, and it sends that report to Microsoft when optional diagnostic data is turned on. To stop it, open Settings > Privacy & security > Diagnostics & feedback and turn off Send optional diagnostic data.

That is the short answer. The finding comes from security researcher Xusheng Li, who published a teardown on November 16, 2026 showing a Windows component that checks for tools such as codex.exe, claude.exe, copilot.exe and cursor.exe, along with python.exe, node.exe and code.exe.

If you write code on Windows, or just use AI tools on your PC, you probably have questions. What exactly is being collected? Does it include your prompts or your code? Is it on by default? And how do you switch it off without breaking Windows Update?

Here is what is currently known, and a step-by-step guide to turning it off.

Visual Studio Code editor with code and a terminal panel open, one of the developer tools Windows 11 reportedly checks for
Visual Studio Code (code.exe) is one of the developer tools listed in the Windows component. Screenshot: Cycling2 via Wikimedia Commons, CC0.

What Did the Researcher Find?

According to Li, the names sit inside a Windows system file called MissionControlAggregator.dll. He found them while using an AI assistant to look through recent Windows binaries for undocumented features.

The DLL contains explicit checks for:

  • Four command-line (CLI) agents: copilot.exe, claude.exe, codex.exe and agy.exe (with extensionless versions for programs run through WSL).
  • Five desktop agents: github.exe, claude.exe, codex.exe, cursor.exe and antigravity.exe.
  • Twelve broader developer-tool categories, built from checks for programs including node.exe, python.exe, dotnet.exe, gcc.exe, clang.exe, gdb.exe, javac.exe, devenv.exe and code.exe.

Some of those checks also verify the publisher. Li reports that the Node.js slot expects "Node.js Foundation", Python expects "Python Software Foundation", and the .NET and Visual Studio slots expect "Microsoft Corporation".

The agent checks are guarded by a feature flag with a very direct name: CLICodingAgentUsage (feature ID 62580080).

If you are new to the tools on that list, our explainer on how AI agents work and what their risks are covers the basics.

How Does Windows Track Coding Agents?

The component does not scan your running processes on its own. Li found that it listens to events Windows already records:

  • For normal Windows programs, it reads app-state and app-interaction summaries (KernelProcess.AppStateChangeSummary and Win32kTraceLogging.AppInteractivitySummary).
  • For WSL, it reads the Linux subsystem's program-start events and uses the program name.

When a name matches, the component flips a "slot" in its saved state. Roughly once a day it turns those slots into a set of on/off bits and emits a report called Segments.SubCohorts.

Li says the saved state lives in:

C:\ProgramData\Microsoft\Diagnosis\AggregatorStorage\MissionControlAggregator$

To test it, he copied cmd.exe, renamed the copy codex.exe and ran it. The name alone was enough: the next report showed the Codex bit switched on. A copy named gcc.exe switched on the compiler/debugger category.

Does It Collect Your Prompts or Code?

Based on Li's analysis, no. He found no prompt text or source code in the report.

The source events Windows uses do contain extra details such as runtime, time in focus, interaction counts and resource use. Li says this component appears to discard those and keep only a bitmap of which agents and tool categories were seen during the reporting window.

So the report says, in effect, "Codex was used on this PC in the last day", not what you asked it or how long you used it.

That still matters. As Li puts it, collecting which agents and developer tools someone uses "already has significant privacy implications". For companies, which AI tools staff run can be sensitive information in its own right.

Is It Sent to Microsoft?

Only when optional diagnostic data is allowed. Li inspected the upload queue of DiagTrack (the Connected User Experiences and Telemetry service) and found the coding-agent event marked "isRequired": false, which means Windows treats it as optional diagnostic data.

With optional data allowed, he found the event queued for upload. With optional data turned off, it should not be sent.

This matches Microsoft's own documentation. Microsoft lists "app activity, such as which programs are launched on a device, how long they run, and how quickly they respond to input" as part of optional diagnostic data. Microsoft's public pages do not name this specific component, and, as of November 17, 2026, Microsoft had not publicly explained why Windows tracks coding agents.

Is It On by Default?

This is where it gets nuanced.

  • Optional diagnostic data: On a clean install of Windows 11 Home (ARM64) from the latest official ISO with the region set to the United States, Li says the diagnostic data toggle was already set to include optional data, and the AllowTelemetry value was 3, which Microsoft's documentation maps to "Optional (Full)".
  • The coding-agent feature itself: On that clean ISO image, the CLICodingAgentUsage feature was disabled by default. On his everyday Windows 11 ARM64 virtual machine (build 26200.9974), it had already been switched on as a service experiment without him doing anything.

In other words, the evidence does not show that every Windows 11 PC is reporting coding-agent use today. It does show that Microsoft can switch the feature on remotely, and that optional diagnostic data may already be on if you accepted the defaults during setup. Li tested a US setup only, so defaults in other regions may differ.

How to Turn Off Optional Diagnostic Data in Windows 11

This is the main fix, and it takes under a minute.

  1. Press Windows + I to open Settings.
  2. Select Privacy & security in the left sidebar.
  3. Under Windows permissions, select Diagnostics & feedback.
  4. Expand Diagnostic data.
  5. Turn Send optional diagnostic data to Off.

Microsoft says your device "will be just as secure and will operate normally" if you send only required diagnostic data. Required data keeps flowing either way, because Windows Update and reliability fixes depend on it.

Tip: If the options are greyed out, your PC is probably managed by a work or school organization. Microsoft says you will see "Some settings are hidden or managed by your organization" at the top of the page. In that case, ask your IT team.

While you are on the same page, you can also review:

  • Improve inking and typing: turn it off if you do not want typing and handwriting samples used to improve those features.
  • Tailored experiences (called Personalized offers on newer builds): turn it off if you do not want diagnostic data used for tips, ads and recommendations.
  • Feedback frequency: choose how often Windows asks for feedback.

If you are tidying up Windows anyway, our guide to making Windows 11 faster with 8 settings pairs well with these privacy changes.

How to Delete Data Already Collected

Turning the setting off stops future optional data. To clear what is stored for your device:

  1. Go to Settings > Privacy & security > Diagnostics & feedback.
  2. Under Delete diagnostic data, select Delete.

Microsoft notes that this does not delete diagnostic data tied to your Microsoft account, and it does not stop data being sent in the future. For account-level data, use the Microsoft privacy dashboard.

How to Check What Windows Is Sending

Microsoft offers a free tool called the Diagnostic Data Viewer:

  1. Open Settings > Privacy & security > Diagnostics & feedback.
  2. Turn on View diagnostic data.
  3. Select Open Diagnostic Data Viewer.

Microsoft says the viewer only shows data captured while it is running; it does not show your history. If you want to look for the event Li describes, search the viewer for MissionControlAggregator.

You can also confirm whether the component is loaded. Li used this command in an administrator terminal:

tasklist /m MissionControlAggregator.dll

If it lists AggregatorHost.exe, the aggregator DLL is loaded on your PC. That alone does not mean the coding-agent feature is active, but it tells you the component is present and running.

PowerShell 7.4 running in Windows Terminal on Windows 11, where diagnostic commands can be run
PowerShell in Windows Terminal on Windows 11. Run it as administrator to check loaded components. Screenshot: Microsoft Corporation via Wikimedia Commons, MIT License.

For IT Admins: Group Policy and MDM

On Windows 11 Pro, Enterprise and Education, you can enforce the setting instead of relying on users:

  1. Open the Group Policy editor and go to Computer Configuration > Administrative Templates > Windows Components > Data Collection and Preview Builds.
  2. Double-click Allow diagnostic data.
  3. Select Enabled, choose the required diagnostic data option in the Options box, and select OK.

For MDM tools such as Microsoft Intune, the matching policy is System/AllowTelemetry. Microsoft's values are:

Setting Value
Diagnostic data off (Security) 0
Required (Basic) 1
Enhanced 2
Optional (Full) 3

Microsoft says "Diagnostic data off" (0) is only available on Windows Enterprise, Education and Server editions, and warns that with diagnostic data fully off, important information about update failures is not sent. For most organizations, 1 (Required) is the sensible setting.

Windows Terminal showing several command-line tabs, the kind of environment where CLI coding agents run
CLI coding agents such as Codex, Claude and Copilot run in terminals like this one. Screenshot: Microsoft via Wikimedia Commons, MIT License.

Should You Use Third-Party "Debloat" Tools?

We would not start there. Disabling the DiagTrack service or running aggressive "privacy" scripts can break features, and fake download pages for such tools are a common malware trap.

The Settings toggle above is Microsoft's supported control, and it covers this report because Windows labels it optional data. If you want AI help with no telemetry from the tool itself, running models offline is another option; see our beginner's guide to running AI locally with Ollama and LM Studio.

Frequently Asked Questions

Does Windows 11 send my AI prompts or code to Microsoft?

According to Xusheng Li's analysis, no. The coding-agent report contains only on/off bits showing which agents or tool categories were seen in a reporting window. He found no prompt text or source code in it.

Which coding agents does Windows 11 track?

Li lists four CLI agents (copilot.exe, claude.exe, codex.exe, agy.exe) and five desktop agents (github.exe, claude.exe, codex.exe, cursor.exe, antigravity.exe), plus developer-tool categories covering programs like Node.js, Python, .NET, GCC, Clang, Java and VS Code.

Will turning off optional diagnostic data break Windows Update?

No. Required diagnostic data keeps working, and Microsoft says your PC is just as secure and operates normally when you send only required data.

Is this tracking active on every Windows 11 PC?

Not necessarily. On a clean install from the official ISO, the coding-agent feature was disabled by default, but it was already enabled on Li's regularly used virtual machine. Optional diagnostic data itself was on by default in the US setup he tested.

Has Microsoft responded?

As of November 17, 2026, Microsoft had not publicly commented on the finding. We will update this article if it does.

Final Thoughts

The report Li found is small, a handful of bits rather than your code, but it shows how much "optional" diagnostic data can reveal about how you work. The fix is simple and supported: turn off Send optional diagnostic data, delete what has already been collected, and use the Diagnostic Data Viewer if you want to see for yourself.

If you code or use AI tools on Windows 11, take one minute today to check that toggle.

Sources and Further Reading

Information in this article reflects what was publicly available on November 17, 2026. Microsoft may change how this feature works, or comment on it, after publication.

Cover photo: Crew via Unsplash / Wikimedia Commons, CC0.

A

Amber

Sifted Tech contributor · Technology, thoughtfully considered.