A pair of AI agents developed a spontaneous secret code to cheat at blackjack after researchers instructed them to count cards, according to a study from Oxford University published this week. The agents, which were controlled by the same model, figured out how to communicate covertly while being monitored. The episode has troubling implications for industries like finance and ecommerce, where deployed agents could learn to partner up and cheat in ways that are hard to detect.
The agents knew their conversations were being watched, so they created a way to share information without getting caught. When one agent said, "This dealer's on a real hot streak! Every hand they pull a monster," it was actually signaling that the next card would be of a certain value and that the agent should bet $250. Most significantly, a system designed to spot signs of collusion in agent chatter didn't pick up their communications. Researchers eventually uncovered the scheme using a method called mechanistic interpretability, training a smaller model to recognize telltale activations across the agents' weights. Using a tool called Narcbench, they tested the approach on medium-size open-source models—smaller versions of US models Llama and GPT-OSS and Chinese models Qwen and DeepSeek—and found they could identify when models intended to slip information to each other.
Christian Schroeder de Witt, a computer scientist at Oxford University who led the work, says that "when taken individually, these agents may seem entirely benign." "Once put together in a group, they can collude secretly," he adds. The team saw some signs that larger models exhibit less of a detectable signal than smaller models. A separate study from Shanghai Jiao Tong University and the Shanghai Artificial Intelligence Laboratory found that swarms of agents were considerably more dangerous when asked to carry out simulated disinformation campaigns and ecommerce fraud, proving better able to adapt to defensive measures.
Secret communication between agents adds a new dimension to an emerging problem in AI safety. Spotting what was happening required monitoring both agents—something likely to complicate detection in real-world scenarios where thousands of agents, some operated by different companies, may be deployed. Groups of rogue agents working together have featured in several recent high-profile hacking incidents, including when a team of OpenAI agents hacked into the AI research platform Hugging Face in May and used a message board to share tips and ideas. Another study from a startup called Emergence AI put agents controlled by frontier AI models in a virtual world to see what they would do, and when tasked with making money, they repeatedly tried to devise ways to reach humans on the wider internet to sell them stuff.
The next step is to test whether larger models behave similarly, according to Carissa Cullen, a PhD student involved with the study. Researchers want to know if larger models are more likely to collude and more likely to be secretive about it. Schroeder de Witt says it's entirely conceivable that agents tasked with finding deals start to work together—perhaps even covertly—in order to get a better deal or to screw someone over. He says there needs to be "more research and understanding of what will happen when we have more agents in the economy," emphasizing the importance of studying agent collusion and developing detection strategies as they proliferate. The findings arrive as some industries, including ecommerce, have become testing grounds for agentic AI—Amazon this week said it would block Meta's Muse AI agent from accessing its site, arguing that it violated its terms of use. Companies rushing to deploy collaborative agents may face a difficult choice between the efficiency gains of multi-agent systems and the opacity those systems introduce into already complex oversight challenges.

