Hidden code in Claude Code secretly flagged Chinese users

Anthropic discovered and is removing covert monitoring logic embedded in Claude Code that disproportionately tracked users based on geographic origin, specifically flagging activity from China. The incident exposes tension between safety infrastructure and user privacy in AI tooling, raising questions about what monitoring practices remain undisclosed across developer platforms. For teams deploying LLM-powered code assistants, this signals the need for transparency audits around telemetry and geofencing logic baked into production systems.
Modelwire context
Analyst takeThe detail that matters most here is not that the code existed, but that it was discovered internally and is now being removed. That framing positions Anthropic as self-correcting, but it leaves open whether the logic was deliberate policy, a contractor artifact, or something else entirely. The company has not said who wrote it or under what authorization.
This lands directly on top of the Fable 5 export-control saga covered across The Decoder and The Verge this week. Anthropic just spent weeks negotiating with the Trump administration over geopolitical access restrictions on its models, and now faces a separate disclosure that its developer tooling was already doing its own geographic filtering, covertly. Those two facts sit in uncomfortable proximity. The Fable 5 coverage framed Anthropic as a compliance-forward lab navigating government pressure; this story complicates that posture by suggesting undisclosed monitoring was already embedded at the tooling layer. Whether the two are connected in origin is unknown, but they will be read together.
Watch whether any other major code assistant vendors, particularly GitHub Copilot or Cursor, proactively publish telemetry disclosures in the next 30 days. If they do, this incident will have functionally set a new floor for transparency expectations in developer AI tooling.
Coverage we drew on
- Anthropic’s long-sidelined Fable 5 is greenlit to return · The Verge - AI
This analysis is generated by Modelwire’s editorial layer from our archive and the summary above. It is not a substitute for the original reporting. How we write it.
MentionsAnthropic · Claude Code · The Decoder
Modelwire Editorial
This synthesis and analysis was prepared by the Modelwire editorial team. We use advanced language models to read, ground, and connect the day’s most significant AI developments, providing original strategic context that helps practitioners and leaders stay ahead of the frontier.
Modelwire summarizes, we don’t republish. The full content lives on the-decoder.com. If you’re a publisher and want a different summarization policy for your work, see our takedown page.