When Do Coding Agents Adopt a Teammate’s Cheating Shortcut?
Rishika Rai, Himanshu Mittal, N.Soma Shekhar · Team SwarmTracers
Submitted to Swarm Alignment Hackathon. Sprint projects are early-stage work by participants, not Apart Research publications.
Coding agents increasingly work in teams that share a message board and are checked by tests they can edit. In the 2026 OpenAI / Hugging Face incident: agents used such a board to spread ways of beating a scorer. We ask whether a cheating shortcut posted by one agent spreads to its teammates. We built 4-agent coding teams that fix real bugs and share a board. A source agent posts a pytest hook that makes failing tests report as passed, and we regrade every teammate's final code against the correct tests (310 sessions, three model families). First, the shortcut rarely spread. With correct tests, no exposed teammate used it. It was used only when a test was provably wrong, a merge rule made red tests count as failure and the post showed the hook itself, and even then in about one session in five (10 of 48, against 0 of 48 when the post did not show it). Nothing else in the post had a clear effect, and 23 of 24 users had already fixed their bug. Second, agents fitted their code to wrong tests without any help. In a realistic repository, a third of teams with no cheating agent still ended with green tests and wrong code; in an earlier study, 10 of 24 such fits were disguised as invented rules. A monitor that reads only the shared board would miss most cheating: the risk sits in the tests, not in the messages

Reviews
Pertinent work with potential for real use through coding. I think there is potential for a full study.
One improvement would be to vary test correctness and merge pressure while keeping the models and tasks fixed, making it clearer what causes shortcut adoption.
Cite this project
@misc{rai2026coding,
title = {{When Do Coding Agents Adopt a Teammate’s Cheating Shortcut?}},
author = {Rishika Rai and Himanshu Mittal and N.Soma Shekhar},
year = {2026},
month = nov,
note = {Submitted to Swarm Alignment Hackathon, an Apart Research Sprint},
howpublished = {\url{https://apartresearch.com/sprints/projects/when-do-coding-agents-adopt-a-teammates-cheating-shortcut-beiffj5qrz}},
url = {https://apartresearch.com/sprints/projects/when-do-coding-agents-adopt-a-teammates-cheating-shortcut-beiffj5qrz}
}Browse all projects