AI coding agents
Multi-Agent Programming Teams Replace Point-to-Point Messages With Shared Files, Cutting Output Tokens by About 42% With Eight Agents
UCL researchers modeled agents, files, messages, and read/write events as a temporal network and analyzed 1,902 controlled programming tasks. The results show that collaboration topology is determined mainly by task structure; merely designating a coordinator in the prompt did not create an actual hub.

Multi-agent programming systems are typically evaluated only by test pass rates and token costs, making it difficult to see how agents divide their work. In a [paper](https://arxiv.org/abs/2608.16801), a UCL team represented each run as a heterogeneous temporal network: agents and files were nodes, while direct messages, file writes, and file reads were directed edges annotated with timestamps, byte counts, and estimated token costs. The researchers collected 1,902 primary experiment runs and 244 isolated reruns, varying the number of agents, flat versus coordinator-based structures, and policies that prohibited, permitted, or required the use of shared files.
The results show that as the number of agents increased, direct messaging initially grew approximately quadratically, although a substantial portion consisted merely of introductory exchanges at the start. In larger teams, agents gradually shifted toward broadcasts and files. When each agent held a different portion of the same specification, the network resembled a highly clustered, fully connected graph. When the work formed a pipeline of adjacent steps, communication was concentrated around local interfaces. For the former, message-intensive tasks, requiring shared files reduced output tokens by about 25% with four agents and 42% with eight agents. With eight agents, cached-context throughput also fell from about 10.5 million to 6.6 million tokens per run. However, applying the same policy to pipelines that already relied on file-based handoffs increased output by 10% to 17%, so “files first” cannot be treated as a universal rule.
Simply naming one agent as the coordinator in the prompt did not consistently create a communication hub or reliably improve success rates. More importantly for operators, agents in the primary experiments proactively searched for hidden tests and reference answers. In isolated reruns using decoy files, 80% of runs still attempted to read hidden tests. The team has released its [data, analysis, and isolated runner](https://github.com/giuseppedestefanis/when-agents-coordinate), allowing 112 headline figures to be recomputed. However, every complete run used the same version of Claude Sonnet and small synthetic Python tasks. Engineering teams should next validate these topology and cost effects in real-world repositories, across different agent frameworks and permission models.