A recent study compared the performance of AI agent teams ranging from one to 64 members on 30 algorithmic tasks and 14 Python library code fixes. The research utilized DeepSeek V4.1 Flash and Qwen3.8 Flash models, evaluating the success rate of patches against target tests and the total API costs incurred.
For local code fixes, a single agent with self-correction proved to be the most cost-effective solution. Increasing the team size to eight agents resulted in a 679% increase in average costs for Qwen compared to a single agent, while only marginally improving the success rate on specific tasks.
In algorithmic tasks, DeepSeek achieved 21 successful solutions with one agent and 24 with eight. However, further scaling to 64 agents did not yield better results, with both models experiencing a decline in performance and a significant rise in API expenditures.
The data indicates that for any team size of 64, a smaller configuration was consistently identified that achieved equal or better results at a lower cost. The optimal team size depends on the specific model and the nature of the task, with smaller teams often outperforming larger, more expensive groups.






