ANTIGRAVITY LABJP
Articles/Agents & Manager
Agents & Manager/2026-06-19Advanced

More Agents Won't Speed Up Every Part of Your Pipeline — Designing the Parallel/Serial Line

Antigravity 2.0's parallel multi-agent execution is powerful, but adding agents doesn't make everything faster. Here's how I decide which work to parallelize and which to keep serial, derived from invariants and a dependency graph, with examples from running several sites as a solo developer.

agents98parallel-execution7orchestration21throughputantigravity-22

Premium Article

The day I raised the number of agents running at once from two to four, the overall result actually came out slower. As an indie developer running several sites of my own (Dolice Labs) in parallel, I had assumed that assigning each site's article generation to its own agent would simply double my throughput. In reality, generation itself got faster, but the final verification and push backed up into a single waiting line, and the total wait time grew.

With Antigravity 2.0 putting "true parallel execution of multiple agents" front and center, the picture where one agent writes a component, another wires up an API route, and a third runs visual regression tests has become real. But as the parallel openings widen, it gets easier to fall for the illusion that "just line everything up and it'll be fast." The real task is to decide which work to parallelize and which to keep serial from structure, not from intuition.

The Moment Parallelism Feels "Free"

Parallel execution feels unconditionally good when you look at each agent's work as an independent box. In practice, though, the boxes are connected by invisible lines: the same git working tree, the same disk, the same model API rate budget, and cross-cutting invariants like "the Japanese and English article counts must always match." Every one of these becomes kindling for contention the instant you step into parallelism.

What parallelism buys you is only the shrinkage of the parts that can progress independently. The parts that touch shared resources, or where ordering carries meaning, don't shrink no matter how many agents you stack. They can even get slower, as locks and retries pile up for coordination. The first move isn't adding agents; it's putting into words which of your work is independent and which is shared.

Three Questions for Spotting Parallel-Safe Work

Whether a piece of work can go into the parallel lane comes down to three questions. If even one answer is "no," lining it up as-is is likely to break something.

QuestionYes (fits parallel)No (pull toward serial)
Is the output independent of others?Site A's draft and Site B's draft don't reference each otherA later stage takes the earlier stage's output as input
Does it write to shared mutable state?Each writes only to its own file or branchThey update the same index or the same aggregate file
Does it share an external rate limit?Targets are separate, or there's ample headroom under the capEveryone competes for the same quota on the same model

Of these three, the third is the most easily missed. Even if each agent's work is independent, if all of them hit the same Gemini quota, the moment you raise the agent count the 429s increase and retries inflate wall-clock time. It's safer to treat the upper bound on parallelism as set by "the narrowest pipe among the shared resources," not by "how many agents you happen to have."

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
Three questions for telling parallel-safe work apart from serial work (independent output, shared mutable state, shared external rate limit), with a decision table
A copy-paste scheduler (JavaScript) that derives the critical path and the set of concurrently runnable tasks from a dependency map
A measurement harness for confirming why throughput doesn't scale linearly with agent count, plus how to design the join step that must stay serial
Secure payment via Stripe · Cancel anytime

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Antigravity Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

Related Articles

Agents & Manager2026-06-19
How to Orchestrate Multiple Agents: Drawing the Line Between Parallel and Serial Work
Antigravity 2.0 brings true parallel execution across multiple agents. But making everything parallel does not make it faster. Which work should fan out in parallel, and which should stay serial? This is an orchestration design that does not fall apart, viewed through dependencies and contention.
Agents & Manager2026-06-13
Running Multiple Agents on One Repo Breaks It — Isolating Work Areas with Worktrees
When you run several Antigravity 2.0 agents against the same repository, you hit index.lock collisions and half-staged commits. Here is an isolation design using git worktree and projects that gives each agent its own work area, drawn from an incident I ran into in production.
Agents & Manager2026-06-19
Parallel or Keep It Serial: The Break-Even Point When Orchestrating Multiple Agents
Should you run agents in parallel or keep them serial? A simple way to estimate the break-even between coordination cost and saved wall-clock time, plus how I actually split parallel vs serial across four scheduled sites.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →