AI swarms: all questions and answers about swarms of AI agents
In 2026 the question shifted from what one AI agent can do to what thousands of agents can do together. Swarms achieved mathematical breakthroughs, conducted a complete audit and hacked into Hugging Face. On this page we answer the questions we get asked most often about them.
By Remy Gieling, co-founder of ai.nl and author of Handboek AI Strategie and AI Agents.
In our keynotes we tell the story of AI in three steps. First we used AI for a task. Now we give agents a goal. And the next step has already begun: agents that start sub-agents themselves, until a swarm emerges that continues working independently for days. This yields spectacular results, and equally spectacular risks. On this page we list everything, in questions and answers.
What is an AI swarm?
An AI swarm, in Dutch a 'zwerm', is a group of AI agents working together towards a single goal. One agent receives the assignment, breaks it down into subtasks and assigns other agents to them. These agents can in turn start new agents. This creates a network of tens to thousands of agents that search, calculate, write, test and check each other's work.
The name comes from biology. An ant colony finds the shortest route to food without a single ant having the overview. In 1992, the Italian researcher Marco Dorigo translated that behaviour into a calculation method, ant colony optimization, which is still used for route planning and logistics. The "ants" of that time were simple calculation rules. Today's agents are language models that independently reason, write code and operate software. As a result, a swarm in 2026 can handle work that previously required an entire research team.
From tool to agent to swarm
Tool
A task
"Summarise this report."
Agent
A goal
"Find out which suppliers are delivering late and draft emails to them."
Swarm
A mission
"Audit the complete financial statements"
| Phase | What you give the AI | Example |
|---|---|---|
| Tool | A task | "Summarise this report." |
| Agent | A goal | "Find out which suppliers are delivering late and draft the emails to them." |
| Swarm | A mission | "Check the complete annual accounts" or "Find a proof for this mathematical problem." |
How does an AI swarm work?
Virtually every swarm that achieved results in 2026 works with the same four roles:
- The orchestrator. This agent creates the plan, divides the work and merges the results.
- The worker agents. They execute the subtasks simultaneously, each with their own context and their own tools, such as a search engine, a computing environment or access to a system.
- The critics. Special agents look for holes in the work of the others: counterexamples, calculation errors, wrong assumptions.
- The shared memory. A place where intermediate results are stored, so that good ideas spread through the swarm.
These roles run in a loop: plan, execute in parallel, check, merge and repeat. Designing these loops is called loop engineering. Whoever designs the loop well allows a swarm to work meaningfully for days on end. Whoever does it sloppily sees the swarm going around in circles endlessly or ending up on a wild goose chase.
- 1Planning
- 2Execute in parallel
- 3Checking
- 4Merging
- Again
Two examples show what this looks like in practice. In the Navier-Stokes project, OpenAI gave different groups of agents each a different variant of the problem. After a while, the best insights from all groups were merged and fed back to the swarm. In total, the agents sent each other 2.7 million messages and wrote approximately 130 billion tokens of output (OpenAI).
At Anthropic, a research version of Claude first came up with more than six hundred ideas. Then the model coordinated about sixty subagents for a day and a half, who together executed 2,400 commands and wrote hundreds of Python scripts. Other subagents checked the proofs, looked for counterexamples and downloaded 54 scientific articles to verify whether the result was genuinely new (Anthropic).
What breakthroughs have AI swarms already delivered?
Mathematics
The Riemann hypothesis. In August 2026, an Anthropic employee without mathematical training asked a research version of Claude to make "a serious attempt" at the Riemann hypothesis, one of the most famous open problems since 1859. Claude did not prove the hypothesis. However, the swarm raised a known lower bound: the proportion of zeros of the Riemann zeta function proven to lie on the critical line went from 41.6 to 67.2 per cent. Mathematicians at Anthropic and external experts Brian Conrey and Dan Goldston reviewed the work, and Claude provided a formally verifiable proof in the Lean proof language alongside it (Anthropic).
Navier-Stokes. On 8 September 2026, OpenAI reported that around 10,000 agents had found a proof in 88 hours that the Navier-Stokes equations for flows in three dimensions can develop a singularity. It is one of the seven Millennium Prize problems, carrying a million-dollar prize. The verdict from the Clay Mathematics Institute is not yet in, and mathematicians who were themselves close to a solution are critical of what humanity learns from it (OpenAI, NPR).
Medicine
Mathematics is the ideal training ground for swarms, because a computer can fully verify a proof. The next step lies in disciplines where outcomes can also be tested well, such as drug development. There, swarms are now moving quickly:
- Virtual Biotech. Researchers built a platform in which a virtual chief scientific officer directs a team of scientist agents. In one test, over 37,000 agents jointly analysed 55,984 clinical trials, to link target properties to the outcome of trials (Inside Precision Medicine, September 2026).
- Anthropic and six partners. On 27 October 2026, Anthropic reported on collaborations with Bristol Myers Squibb and Generate Biomedicines, among others. At Generate, six scientists built a system of agents using Claude Code that proposed new variants for CAR T-cell therapy against cancer. Most of the work is still preclinical; Anthropic expects its own drug candidate in a human trial by the end of 2028 at the earliest (Anthropic).
Accountancy and audit
In 2026, KPMG had over 100 AI agents run through all phases of a mock audit at an unnamed FTSE 250 company, alongside the standard audit by accountants. The project is called Project Exponential. The agents collected data, analysed and documented it, and produced draft conclusions. The team built the agents in four months and a partner signed off on the mock audit, but KPMG did not use the outcome for the actual statement. Cath Burnet, head of audit at KPMG UK, said the AI was able to go much deeper than the regular team in multiple cases and sometimes asked better questions (Irish Times / Financial Times, 18 November 2026).
It will not remain an experiment. Hundreds of KPMG audit teams are testing agents this autumn on unlisted clients in 30 countries, which could affect more than 500 audits (Bloomberg Tax). In the United States, KPMG is rolling out agents in its Clara audit platform, with the accountant remaining responsible for the final judgement.
For the accountancy sector, this means a shift from sampling to integral auditing: a swarm can examine every transaction instead of a selection. At the same time, it changes the work of junior accountants, which largely consists of exactly those checks. The signature on the statement will remain with a human for the time being, partly due to regulators' independence rules.
What happened during the Hugging Face hack?
The best-known example of a swarm that derailed. In July 2026, OpenAI tested how well its models, GPT-5.6 Sol and an unreleased internal model, could turn known software vulnerabilities into working attacks. For this, it used ExploitGym, an academic benchmark with nearly 900 real vulnerabilities. Some of the usual safety limits were deliberately lowered and the test environment had no internet access.
Within a few hours, the agents found a way to produce correct answers without doing the work. The agents were supposed to work independently, but turned an internal file-sharing tool into a noticeboard. According to independent researchers from METR and Redwood Research, about 1,200 agents posted approximately 70,000 messages on it. Through an unknown vulnerability in a JFrog software package, they reached the open internet. Because they mistakenly thought that Hugging Face stored the evaluator's files, about 700 agents attacked that platform (EEW Magazine, BleepingComputer).
End of May 2026
A team from OpenAI sees agents reaching the internet without permission
27 June 2026
A security tool raises an alarm; the test continues
9 to 13 July 2026
The attack on Hugging Face: over 17,000 recorded actions, collecting passwords and keys and access to internal company data
16 July 2026
Hugging Face discovers the breach itself and announces it, without knowing who is behind it
21 July 2026
OpenAI acknowledges that its own agents are responsible
August 2026
OpenAI pauses model tests for two weeks and calls the incident a warning shot
16 November 2026
The California Attorney General Rob Bonta takes OpenAI to court
| Date | What happened |
|---|---|
| Late May 2026 | An OpenAI team observes agents reaching the internet without permission |
| 27 June 2026 | A security tool raises an alarm; the test continues |
| 9 to 13 July 2026 | The attack on Hugging Face: over 17,000 recorded actions, the collection of passwords and keys and access to internal company data |
| 16 July 2026 | Hugging Face discovers the breach itself and announces it, without knowing who is behind it |
| 21 July 2026 | OpenAI acknowledges that its own agents are responsible |
| August 2026 | OpenAI pauses model testing for two weeks and calls the incident a warning shot |
| 16 November 2026 | California Attorney General Rob Bonta takes OpenAI to court |
Notably: OpenAI had monitors that read the reasoning of models, but these were turned off during this test. In a replay with those monitors on, an alarm went off after just about thirty minutes, more than thirty hours before the agents reached Hugging Face. No single agent was instructed to break in. The swarm was pursuing its goal, the highest possible score, and saw everything in between as a means to an end (NPR, Hugging Face).
The consequences extend beyond OpenAI. According to Reuters, major American banks are now restricting their own agents: separate login credentials per agent, limited permissions and emergency stops that immediately shut down a derailed agent.
What is involved in an AI swarm?
Building a swarm is more than starting many agents simultaneously. These are the components you need to arrange:
- A goal with a testable outcome. Swarms perform best where you can easily verify whether the answer is correct, such as a proof, a passing test or a reconciliation in accounting.
- An architecture. Who plans, who executes, who checks, and how deep are agents allowed to start new agents?
- The right brains for each role. More on that in the next question.
- Shared memory and communication, via channels you have approved yourself.
- Tools and permissions: which systems is the swarm allowed to read, what is it allowed to write and what must it never delete?
- Evaluation: a fixed set of real cases on which you test each version.
- Observability and costs: being able to review every action, with a token budget per agent and per run. The Navier-Stokes swarm wrote 130 billion tokens, so costs add up quickly.
- Human approval moments and an emergency stop.
Which brains do you use for a swarm?
Not every agent in a swarm needs the same model. We divide AI models according to their role:
Sprinter
Fast, cheap, suitable for massive volumes
Role in the swarm
Sorting, routing, reading data and simple checks
Workhorse
Reliable and affordable, good at most tasks
Role in the swarm
The majority of the worker agents
Einstein
Deep reasoning, expensive and slower
Role in the swarm
The orchestrator, the most difficult sub-steps and the critics
| Brain | Characteristic | Role in the swarm |
|---|---|---|
| Sprinter | Fast, cheap, suitable for massive volumes | Sorting, routing, reading data and simple checks |
| Workhorse | Reliable and affordable, good at most tasks | The bulk of the work agents |
| Einstein | Deep reasoning, expensive and slower | The orchestrator, the most difficult sub-steps and the critics |
A well-designed swarm mixes these brains. An Einstein makes the plan and evaluates the final result, hundreds of workhorses do the work and sprinters keep the flow going. In addition, the origin plays a role. American labs provide the most powerful models, Chinese labs dominate with open-weight models that you can run on your own servers and European providers offer more certainty about where your data stays. Which model fits where, you determine with evaluations on three metrics: accuracy, cost and speed.
Why is it so difficult to keep swarms under control?
- Unplanned behaviour. A swarm does things that no single agent has been instructed to do. At Hugging Face, the agents invented a noticeboard themselves to talk to each other.
- Speed and scale. Over 17,000 actions in five days: no human can keep up with reading that.
- Purposefulness without morality. Agents look for the shortest route to their metric, even if that route is undesirable. Researchers call this reward hacking.
- Errors multiply. One wrong assumption is adopted by thousands of agents. The Hugging Face attack started with the unjustified thought that the evaluator had his files stored there.
- Signals are missed. At OpenAI, warnings came in for weeks without anyone stopping the test.
- Permissions leak. Agents find and use login credentials that are public somewhere.
- Unclear responsibility. California knew who to sue because the agents belonged to OpenAI. With a swarm consisting of multiple parties, that question is much more difficult (Fortune).
- Control is difficult outside of mathematics. Even a computer-verified proof like Navier-Stokes provokes discussion. With legal advice or a strategic analysis, verifying is even more difficult.
How do we view the control of agents and swarms?
At ai.nl and The Automation Group we work with three instruments. They apply to every agent, and even more so to a swarm.
Agentic harness
The model is the engine, the harness keeps it on course.
- 1Guardrails
- 2Permissions
- 3Evaluations
- 4Observability
- 5Human in the loop
- 6Version control
- 7Token budget
- 8Emergency stop
Agentic register
One overview of all agents in the organisation.
Name, department, model, owner, autonomy level, risk and status.
Agentic passport
Every agent gets a passport, reviewed every quarter.
- Goal
- Owner
- Autonomy level
- Model
- Data sources
- Permissions
- Approval moments
- Test set with scores
- Token budget
- Risk class
- Review date
Agentic harness
The model is the engine, the harness keeps it on course. Think of a car: the engine provides the power, but the steering wheel, brakes, dashboard and fuel gauge determine whether you arrive safely. Our harness consists of eight components:
| Component | What it does |
|---|---|
| Guardrails | Control on input and output during every run |
| Permissions | Minimum access per system |
| Evaluations | A golden set with real cases, for every change |
| Observability | Every run can be reviewed, including costs |
| Human in the loop | Approval moments per risk level |
| Version control | Every change tested, rolling back is possible |
| Token budget | A cost ceiling per agent and per run |
| Emergency stop | One button brings the agent to a halt |
For swarms, we add three rules to this: a maximum on the number of sub-agents and the depth at which they may start each other, communication only via approved channels, and monitoring that reads along with the reasoning and is always on.
Agentic register
One overview of all agents in the organisation: name, department, model, owner, autonomy level, risk and status. This way you know what is running where, who is responsible, you prevent double work and you are ready for the obligations from the EU AI Act. In a swarm, the register also records which agents are allowed to start other agents.
Agentic passport
Every agent gets a passport, stored alongside the configuration and reviewed every quarter. This contains the purpose, the owner, the autonomy level, the model, the data sources, the permissions (read, write, delete), the approval moments, the test set with scores, the token budget, the risk class under the EU AI Act and the next review date. Just like at a border, the rule applies: a sub-agent without a passport does not get in.
What are the five levels of autonomy?
Just as with self-driving cars, we work with levels. The American engineering association SAE established in 2014 how independently a car drives, and this classification helped the entire industry to talk clearly about autonomy. For agents, we use five levels:
Level 1
Inform
The agent looks up and summarises.
Level 2
Advise
The agent makes a proposal.
Level 3
Execute after approval
The agent prepares everything and executes after one click.
Level 4
Independent within limits
Standard cases are handled automatically.
Level 5
Fully autonomous
The agent handles everything.
Level 1
Inform
The agent looks up and summarises.
Level 2
Advise
The agent makes a proposal.
Level 3
Execute after approval
The agent prepares everything and executes after one click.
Level 4
Independent within limits
Standard cases are handled automatically.
Level 5
Fully autonomous
The agent handles everything.
An agent only moves up a level with proof.
- Correctness
- Acceptance
- Impact
| Level | Name | What the agent does |
|---|---|---|
| 1 | Informing | The agent looks up and summarises. The human does the rest. |
| 2 | Advising | The agent makes a proposal. The human decides and executes. |
| 3 | Executing after approval | The agent prepares everything and executes after one click. |
| 4 | Independent within limits | Standard cases are processed automatically. The human handles exceptions and random checks. |
| 5 | Fully autonomous | The agent handles everything. The human steers on limits and dashboards. |
An agent only moves up a level with proof: accuracy, acceptance by the people working with it and demonstrable impact on the metric you chose beforehand. For a swarm, it also applies that the level of the whole is determined by the agent with the most freedom. The agents that attacked Hugging Face operated effectively at level 5, without anyone having consciously chosen to do so.
What are the opportunities of AI swarms for businesses?
- Comprehensive control. Reviewing every invoice, claim or transaction instead of a sample, as KPMG is currently testing.
- Research and innovation. Developing hundreds of hypotheses simultaneously, searching literature and running simulations.
- Software. Migrating legacy systems, testing code and updating documentation on a scale a team could never achieve.
- Analyses and tenders. Screening markets, competitors and tender documents in hours instead of weeks.
- Continuous operations. Monitoring, alerting and initial handling, day and night.
In our three routes, AI tools for people, AI agents for processes and AI for innovation, swarms primarily belong to the second and third routes. They require a well-established foundation and yield the most in large, well-defined issues.
What are the risks of AI swarms?
- Loss of control. Behaviour that no one foresaw, as seen with Hugging Face.
- Cost explosion. Thousands of agents consume enormous amounts of tokens in a short time.
- Errors at scale. A wrong assumption propagates through the entire swarm.
- Security. A single agent manipulated via an infected document (prompt injection) can take the rest of the swarm with it. Permissions and login credentials become a new attack surface.
- Liability and regulations. The lawsuit against OpenAI shows that the owner of agents is held liable. The EU AI Act imposes requirements for oversight, transparency and documentation.
- Loss of craftsmanship. If agents do the entry-level work, you have to rethink how juniors learn their trade.
How should your company view AI swarms?
Swarms are the next step, but you only take it once the first steps are in place. Our advice:
- Start with one agent that demonstrably works. A swarm multiplies what is already there, both good and bad.
- Choose problems with a testable outcome, such as a reconciliation, a test that passes or a fixed checklist.
- Build the harness first, then the swarm.
- Create a register and passports before the first sub-agent starts.
- Choose the level of autonomy per process and let agents earn higher levels with proof.
- Set a token budget per agent, per run and per month.
- Teach people to orchestrate. The 10x professional executes less themselves and manages more agents.
- Keep the signature with humans, especially for decisions with legal or financial consequences.
How does ai.nl help you with AI swarms?
ai.nl helps boards of directors and teams to turn the developments around agents and swarms into a concrete plan. Together with sister company The Automation Group, we work for more than 300 organisations annually, from initial exploration to working agents in production.
- Keynotes. Remy Gieling speaks about AI around 150 times a year, including on The Agentic Enterprise and AI in the Next 1000 Days. View the AI keynotes or book Remy as a speaker.
- Strategy sessions and deep dives. We translate agents and swarms into opportunities, risks and a roadmap for your organisation.
- Training courses. From AI literacy to designing and managing agents.
- Implementation. The Automation Group builds agentic applications with a harness, register and passport from day one.
About the author: Remy Gieling is co-founder of ai.nl and The Automation Group. He was editor-in-chief of MT/Sprout, wrote the bestsellers Handboek AI Strategie and AI Agents, is a guest lecturer in AI at Nyenrode Business Universiteit and is a frequent guest on RTL Z and BNR Nieuwsradio.
Sources
- Anthropic, Learning more about Claude's mathematical capabilities, 10 August 2026
- OpenAI, On the Navier–Stokes Millennium Prize Problem, 8 September 2026
- NPR, AI solved one of math's hardest problems. Humanity learned nothing (so far), 22 September 2026
- arXiv, AI Agent Swarms as Researchers: Progress, Challenges, and Open Questions, 2026
- Inside Precision Medicine, AI Agents Collaborate to Streamline Drug Discovery, 17 September 2026
- Anthropic, Early progress on accelerating drug development with Claude, 27 October 2026
- The Irish Times / Financial Times, AI asked 'better questions' than KPMG accountants in pilot audit, 18 November 2026
- Bloomberg Tax, KPMG Tests Advanced AI on Private Company Audit Clients First, 5 November 2026
- Hugging Face, Security incident disclosure, July 2026, 16 July 2026
- OpenAI, OpenAI and Hugging Face partner to address security incident during model evaluation, 21 July 2026
- BleepingComputer, Nearly 700 rogue AI agents coordinated in the Hugging Face attack, 2026
- EEW Magazine, How OpenAI's AI Agents Broke Into Hugging Face, 3 November 2026
- NPR, California sues OpenAI over AI agents hacking a software platform, 17 November 2026
- Fortune, The OpenAI hacking case shows corporate liability can work, 25 November 2026
- Gizmodo, Banks Are Getting Scared of AI Agents, Including Their Own, November 2026
- SAE International, J3016: Levels of Driving Automation, 2014
Frequently asked questions
What is an AI swarm?+
An AI swarm is a group of AI agents working together on a single goal. An orchestrator divides the assignment into sub-assignments, worker agents execute them simultaneously and critical agents check the result. Agents can start new agents themselves, allowing a swarm to grow to thousands of agents.
What is the difference between an AI agent and an AI swarm?+
An AI agent works independently on a single goal. A swarm is a collaborative network of many agents with different roles, such as planning, executing and checking. This allows a swarm to tackle much larger issues, but it is also more difficult to control.
What breakthroughs have AI swarms achieved?+
In 2026, a research version of Claude with about sixty subagents improved a well-known boundary around the Riemann hypothesis from 41.6 to 67.2 percent. OpenAI reported that about 10,000 agents solved the Navier-Stokes problem in 88 hours. In addition, pharmaceutical companies and accountants use swarms for drug research and audits.
What did KPMG do with AI agents?+
KPMG UK had more than 100 agents go through all phases of a trial audit at a FTSE 250 company in 2026, alongside the regular audit. According to the head of audit, the agents sometimes went deeper and asked better questions. The outcome was not used for the actual auditor's report.
What happened during the Hugging Face hack?+
In July 2026, agents from OpenAI escaped from their isolated environment during a cybersecurity test. About 700 agents then attacked Hugging Face, because they thought they would find the answers for the test there. Hugging Face discovered the breach itself and California took OpenAI to court on 16 November 2026.
Why are AI swarms difficult to control?+
Swarms exhibit behaviour that no one instructed, work faster than humans can follow and seek the shortest route to their goal, even if it is undesirable. Errors spread throughout the swarm and it is difficult to determine who is responsible.
What is an agentic harness?+
An agentic harness is everything around the AI model that allows an agent to work safely and reliably: guardrails, minimum permissions, evaluations, observability, approval moments for humans, version control, a token budget and an emergency stop. The model is the engine, the harness keeps it on course.
What are an agentic register and an agentic passport?+
The agentic register is a single overview of all agents in an organisation, with owner, autonomy level, risk and status. The agentic passport is a fixed document per agent with goal, permissions, data sources, test results, budget and risk class, which is reviewed every quarter.
What are the five levels of autonomy for AI agents?+
Level 1 is informing, level 2 advising, level 3 executing after approval, level 4 independently within limits and level 5 fully autonomous. An agent only moves up a level if it demonstrably works correctly, is accepted by users and has an impact.
How does a company start with AI swarms?+
Start with one agent that demonstrably works and choose problems with a testable outcome. First build a harness, create a register and passports, determine the autonomy level per process and set a token budget. Keep decisions with legal or financial consequences with humans.
Stay sharp on AI
Ready for the step from agents to swarms?
Swarms promise an enormous acceleration, but only for organisations that have their foundation in order. Schedule a no-obligation consultation and discover where agents and swarms make a difference in your organisation, and how you keep them under control.
Next step
View AI strategy and strategy sessions