I kept hitting the same failure with multi-agent setups. One step blocks, usually waiting on an approval or a slow tool, and instead of waiting, the other agents react to it. One retries in a loop. Another asks for the same approval again. A third reports "done" on work nobody checked, and the next agent builds on it. The human ends up approving things just to make the notifications stop.
OWASP lists this as "cascading failures" (ASI08) in their agentic Top 10, and the MAST paper (NeurIPS 2025) found a lot of multi-agent failures come from coordination and weak verification rather than the models themselves.
So I built SwarmCircuit. It's basically a circuit breaker for agent teams, except it trips on the dependency graph instead of an error rate:
- It watches which tasks depend on which, and flags approval storms, retry cascades and stalls as they happen.
- When something blocks, it pauses only the tasks that depend on it, at checkpoints in your code. Independent work keeps going.
- One human decision unblocks the branch, and each paused task resumes exactly once.
- An agent's "done" gets rechecked by something that isn't a model before the next step can use it.
The video is the bundled demo: six agents, one shared approval, public research finishing on its own while the protected branch waits.
Being upfront about the limits:
- It's a Python SDK.
- Control is cooperative, so it only pauses where you put checkpoints. It is not sandboxing.
- It runs locally for a single operator.
GitHub: https://github.com/al1-nasir/swarm_circuit (MIT)
I'm curious how others handle this. Do you cap retries per agent, use a queue, or just let a human babysit it?