Blog · cybersecurity · privacy · windows · · Trevor Heshka
Microsoft Now Tracks Your AI Coding Usage
Windows 11 optional diagnostics can track AI coding agents; turn them off under Settings > Privacy & security > Diagnostics & feedback.
Originally posted at linkedin.com
Microsoft now tracks your AI coding usage. Turning off optional diagnostics is the how to stop it.
Security researcher Xusheng Li reverse-engineered Windows 11 build 26200.9974 and confirmed that a system component called MissionControlAggregator.dll (loaded by AggregatorHost.exe) tracks the usage of specific AI coding agents. Instead of actively scanning running processes, the component listens to existing Windows system events—specifically KernelProcess.AppStateChangeSummary, Win32kTraceLogging.AppInteractivitySummary, and WSL Exec events—to identify which apps are running.
The tracking system looks for two main groups of coding tools, along with general developer utilities like python.exe and gcc.exe:
- Four CLI agent slots: copilot.exe, claude.exe, codex.exe, and agy.exe
- Five desktop agent slots: github.exe, claude.exe, codex.exe, cursor.exe, and antigravity.exe
When a user runs a matching executable, the component flips a corresponding bit in its local state. Using a feature called CLICodingAgentUsage (ID 62580080), it then generates a Segments.SubCohorts Event Tracing for Windows (ETW) report containing a simple usage bitmap. Li confirmed how this detection works by renaming cmd.exe to codex.exe, which immediately triggered the second CLI slot bit in the report.
Because Microsoft classifies this telemetry as optional diagnostic data (isRequired: false), the DiagTrack service queues it for upload only if the user has opted in. Users can block this reporting by turning off optional diagnostics under Settings > Privacy & security > Diagnostics & feedback. Finally, the report only logs basic binary usage bitmaps—it does not collect source code, user prompts, or exact session lengths.