Anthropic removes hidden anti-distillation code from Claude Code after its discovery
On July 1, 2026, Anthropic updated Claude Code and removed a hidden defensive mechanism. For several months it had quietly tracked AI developers, Chinese ones in particular, who sent mass queries to Claude in order to copy the model's knowledge through distillation. After the code was discovered and became public, Anthropic decided to remove it.
AI-processed from 3DNews AI; edited by Hamidun News
On July 1, 2026, Anthropic updated Claude Code, its AI-based development tool, and removed hidden program code that the company had used for several months to identify developers trying to siphon data from its models through distillation, including those targeting Chinese AI companies.
What the hidden code did
The code fragment was added to Claude Code several months ago without any public notice: users of the tool knew neither that it existed nor what it did. The mechanism was designed to detect unauthorized distillation of models, a practice in which competitors send mass queries to Claude, collect the responses and use them as a training dataset for their own language models.
Knowledge distillation is, in itself, a legitimate machine-learning technique: a more powerful "teacher" model passes behavioral patterns to a more compact "student" model. This method has allowed a number of Chinese developers to build competitive models at significantly lower cost. However, systematically extracting knowledge from a closed commercial API without permission violates the terms of use and is, in effect, theft of intellectual property.
Key facts:
- The hidden code was added several months ago, without notifying users
- Its function was to identify developers using Claude for illegal distillation
- Chinese AI companies were among the presumed targets
- It was removed on July 1, 2026, after being discovered and made public
- Anthropic confirmed that the code existed and that it had been removed
Why Anthropic removed the code after it became public
When news of the hidden mechanism came out, Anthropic found itself in a contradictory position: a company that consistently promotes the principles of safe and transparent AI had used hidden tracking tools inside its own product for developers. In response, Anthropic removed the code in the July 1, 2026 update and publicly acknowledged that it existed, without disclosing details about the scale of its use or the data collected.
This is the aspect that raises the most serious questions: engineers using Claude Code as a work tool did not suspect that they were taking part, as a side effect, in a corporate counterintelligence operation. The line between protecting a business and abusing users' trust turned out to be thin.
What it means
The incident exposes the escalating confrontation in the global AI race: leading Western labs, including Anthropic, OpenAI and Google DeepMind, face competitive pressure from Chinese companies that release powerful models at significantly lower cost. Suspicions of systematic distillation of Western models have circulated in the industry for a long time.
But the Claude Code episode shows that defensive countermeasures, if hidden from the company's own customers, can do as much reputational damage as the threat they are meant to guard against.
- Dec 2, 2026Ai2 Releases MolmoWeb2 Web Agents: 27B Model Solves 75.3% of Tasks
- Dec 2, 202650 AI Models Beat 62 Teams at 'Zakovat': 48.3% Correct Answers vs 39.8%
- Dec 2, 2026Claude Fable 5.2 ran 1,000 agents for eight days and built an operating system
- Dec 2, 2026Amazon Releases Ergo Open Weights for Coding: 1.1 Trillion Parameters and 2,200 Tokens per Second
Key Questions Answered
What the hidden code did?
The code fragment was added to Claude Code several months ago without any public notice: users of the tool knew neither that it existed nor what it did. The mechanism was designed to detect unauthorized distillation of models, a practice in which competitors send mass queries to Claude, collect the responses and use them as a training dataset for their own language models.
Why Anthropic removed the code after it became public?
When news of the hidden mechanism came out, Anthropic found itself in a contradictory position: a company that consistently promotes the principles of safe and transparent AI had used hidden tracking tools inside its own product for developers. In response, Anthropic removed the code in the July 1, 2026 update and publicly acknowledged that it existed, without disclosing details about the scale of its use or the data collected.
What it means?
The incident exposes the escalating confrontation in the global AI race: leading Western labs, including Anthropic, OpenAI and Google DeepMind, face competitive pressure from Chinese companies that release powerful models at significantly lower cost. Suspicions of systematic distillation of Western models have circulated in the industry for a long time.
Free 2-Day Vibecoding & AI Agents Intensive
Day 1: the autonomous Hermes + DeepSeek AI agent — vibecoding and development on par with Claude Code / Codex / Gemini. Led by Jemal Hamidun, Head of AI at Alpina Digital and academic supervisor at MIPT. Right after you register with our bot Nika: the recording + 11 materials from the previous intensive.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
