Scaling AI Agents to 100+ Instances for OSS Automation
Peter Steinberger did something most engineering managers would fire you for: he fired up over 100 Claude Code agent instances in parallel and pointed them at open source projects, deliberately ignoring token costs. The results are both impressive and sobering.
Steinberger, known for PSPDFKit and deep iOS engineering work, ran what amounts to a stress test of the current state of AI agent scalability. This wasn’t a controlled benchmark with clean metrics. It was closer to “what happens when you throw money at agent instances until something interesting happens.” Something interesting did happen — and it says a lot about where agent-based development is headed.
The core idea is deceptively simple. Instead of running one AI agent to work through a backlog of issues sequentially, run dozens or hundreds in parallel. Each agent picks up a task — fixing a bug, writing documentation, refactoring a module, adding tests — and works independently. When they finish (or fail), the results get collected.
What actually happened
Steinberger hasn’t published a formal write-up yet (his tweet thread from May 2026 is the primary source), but the operational pattern is clear from his description and the discussions it sparked.
The agents were Claude Code instances, each running in its own context window with access to the full repository. Steinberger gave them specific, scoped tasks — not “fix everything” but targeted issues like “improve error handling in the PDF parser” or “add unit tests for the authentication module.”
At 100+ concurrent instances, the token burn rate is eye-watering. Claude Code’s agent mode generates significant token consumption per task — reading files, planning approaches, writing code, running tests, iterating on failures. Multiply that by 100 and you’re looking at costs that would make a CFO weep.
But Steinberger’s point wasn’t about cost optimization. It was about throughput. When you remove the constraint of thinking about per-task cost, what can agents actually accomplish?
The answer: a lot, with caveats.
Agents successfully generated functioning pull requests for straightforward tasks — test coverage additions, documentation improvements, type annotation additions, simple bug fixes. For these bounded problems, the parallel agent approach worked remarkably well. The limiting factor wasn’t agent capability but task scoping: the better the task was defined, the more likely the agent succeeded.
Complex refactors and architectural changes fared worse. Agents operating independently on shared code would produce conflicting changes. Without coordination, they’d modify the same files in incompatible ways. The merge conflicts weren’t just syntactic — they represented genuinely different approaches to solving the same underlying problem.
This is the fundamental tension in agent scaling: the more independence you give each agent, the more throughput you get. But more independence also means more coordination overhead when results need to converge.
The architecture pattern
The approach Steinberger used maps to what’s emerging as a standard pattern for multi-agent development:
Task decomposition layer. Someone (human or a “manager” agent) breaks the project backlog into discrete, independent tasks. Each task must be self-contained enough that one agent can complete it without needing to coordinate with others mid-execution.
Parallel execution layer. Each agent instance gets a task, a git branch, and a context window. They work independently. There’s no inter-agent communication — they don’t need it because the tasks were designed to be independent.
Integration layer. Results come back as pull requests. A human (or increasingly, another agent) reviews them for correctness, consistency with project conventions, and compatibility with other concurrent changes. Approved PRs get merged; rejected ones get feedback loops.
Cost accounting layer. This is the part most experiments skip and production deployments can’t. When you’re running 100+ agents, you need real-time cost tracking per agent, per task, and aggregate. Without this, you discover you spent $5,000 on a weekend experiment — which might be fine for Steinberger’s test but isn’t sustainable for regular use.
Comparison: agent scaling approaches
The AI agent space for code automation now has several distinct patterns worth comparing:
| Approach | Throughput | Coordination Cost | Best For |
|---|---|---|---|
| Single agent, sequential (baseline Claude Code) | Low | None | Small repos, solo developers |
| Parallel independent agents (Steinberger’s approach) | High | Medium (merge conflicts) | Bug bashing, test coverage, docs |
| Orchestrated agents with shared context | Medium | High (orchestration overhead) | Complex refactors, architectural changes |
| Human-in-the-loop agent swarm | Medium-High | Low (human coordinates) | Production-grade development |
The parallel independent pattern that Steinberger used is currently the sweet spot for throughput. Orchestrated approaches (where a “manager” agent coordinates workers, common in frameworks like CrewAI and AutoGen) add coordination overhead that often negates the parallelism gains for code tasks.
OpenAI’s Codex CLI and Anthropic’s Claude Code both support background agent execution now, but neither has a native multi-agent coordination layer. You have to build your own task distribution — which is what Steinberger did, though the specifics of his orchestration aren’t public.
What this means for open source
The implications for open source maintenance are significant.
Most open source projects struggle with triage bandwidth. Hundreds of issues pile up while maintainers focus on the ones that matter. Many issues are legitimate but low-priority: “this function could use better error messages,” “the README should mention this edge case,” “add type hints to this module.”
These are exactly the kinds of tasks that parallel AI agents handle well. They’re scoped, they’re independent, and they don’t require deep architectural understanding. A maintainer could triage 50 issues, tag 30 as “agent-suitable,” and launch a parallel agent run overnight. By morning, 25 PRs are ready for review.
The bottleneck shifts from “we don’t have enough contributor time” to “we don’t have enough reviewer time.” That’s a much better problem to have — reviewing is faster than writing, and AI-assisted review tools (GitHub’s own PR review features, code review agents) can help with the first pass.
For corporate-backed open source, the economics are interesting too. Companies that sponsor maintainers could supplement human hours with agent hours. A full-time maintainer costs $150K-300K/year fully loaded. Even at aggressive token pricing, you can run a lot of agent tasks for that budget — and the agent never burns out, never gets frustrated with the community, and works weekends without complaining.
Limitations and caveats
Steinberger’s experiment, useful as it is, has boundaries worth acknowledging:
Token costs are the elephant. Running 100+ Claude Code instances isn’t cheap. Claude Code uses Claude’s API under the hood, and agent mode with tool use (file reading, shell execution, git operations) generates far more tokens than simple chat. A single complex agent task can consume $1-10 in API costs. At 100 concurrent instances running multiple tasks, you’re looking at hundreds to thousands of dollars per run. That’s fine for experimentation but requires justification in production.
Quality variance is real. Not all agent outputs are merge-ready. Some PRs require significant rework. Others look correct but contain subtle bugs that pass superficial review. The “pass rate” for agent-generated code varies wildly depending on task complexity, codebase clarity, and test coverage. Steinberger hasn’t published specific pass rates, but the anecdotal pattern from multiple experiments (including my own) is 60-80% for simple tasks, dropping to 20-40% for complex ones.
Test coverage is non-negotiable. Agents rely heavily on test suites to validate their changes. In codebases with poor test coverage, agent output quality drops dramatically because there’s no feedback loop — the agent makes changes, runs whatever tests exist (or doesn’t), and declares success. Without tests, you’re reviewing agent code blind, which defeats the purpose.
Coordination doesn’t scale linearly. The merge conflict problem Steinberger encountered gets worse as task count increases. At 10 parallel agents modifying related files, you might get 1-2 conflicts. At 100, you get dozens. The integration cost grows faster than linear with agent count, creating an upper bound on practical parallelism for any given codebase size.
Who should try this
If you maintain an open source project with a backlog of well-defined, independent tasks and good test coverage, parallel agent runs are worth experimenting with. Start small — 5-10 agents, scoped tasks, weekend experiment budget. Measure pass rate and review time before scaling up.
If you’re at a company considering AI-assisted development at scale, Steinberger’s experiment validates the throughput potential but also exposes the coordination and cost challenges. Budget for integration overhead, not just agent runtime.
Who should not
If your codebase has poor test coverage, the agent feedback loop breaks. Fix tests first.
If your backlog consists mostly of architectural changes or complex features that touch many files, parallel independent agents will create more merge conflicts than value. Use orchestrated approaches or stick to sequential human-driven development.
If you’re cost-sensitive and can’t justify experimental spend, wait. The economics of agent-based development are improving fast — token costs are dropping, and more efficient agent architectures are emerging. What costs $1,000 today might cost $50 in six months.
The real story of Steinberger’s experiment isn’t that AI agents can automate open source work. That part was already obvious. The real story is that the bottleneck has shifted from “can agents do the work” to “can we afford for agents to do the work” and “can we coordinate enough agents to make the throughput meaningful.” Those are engineering problems, not research problems. And engineering problems get solved.
The economic math of parallel agents
Let’s put numbers to this, because the economics are what determine whether this approach is a curiosity or a production strategy.
A mid-sized open source project might have 200 open issues. Maybe 50 are real bugs, 80 are feature requests of varying complexity, and 70 are documentation/typo/refinement tasks. A human maintainer working 20 hours a week on the project might close 5-8 issues per week with proper testing and review. That’s 2-4 months to clear the backlog — assuming no new issues arrive (they will).
Now consider the agent approach. At current pricing, running a Claude Code agent instance for an average task costs roughly $0.50-2.00 in API fees. Documentation fixes and simple bug patches are at the low end. Moderate refactors at the high end. Running 50 agents against 50 independent, well-scoped tasks costs somewhere between $25 and $100.
For that $25-100, you get 50 pull requests in an afternoon instead of 5-8 per week. Even if only 60% are merge-ready (a conservative estimate based on my testing and Steinberger’s described results), that’s 30 merged improvements in a day. A human maintainer would need 4-6 weeks for the same output.
The economics invert hard at scale. A full-time open source maintainer costs $150K-300K/year. For the cost of one maintainer’s annual salary, you could run parallel agent tasks every single day — hundreds of thousands of agent-hours per year. The agent never takes vacation, never gets frustrated with entitled users, and works through weekends without burnout.
But here’s the catch: someone still has to review those 30 PRs. Review bandwidth becomes the new bottleneck. And review quality matters — accepting agent-generated code without proper review is how you accumulate technical debt at agent speed.
The review bottleneck and how to solve it
This is where the agent pipeline gets recursive. If agents can generate code, can agents review code?
The answer right now is “partially.” AI code review tools exist (GitHub’s own PR review features, specialized review agents, linters, test runners) and they catch surface-level issues reliably: style violations, missing tests, obvious logic errors, security anti-patterns. What they can’t reliably catch are architectural inconsistencies, business logic errors, and subtle correctness bugs.
The emerging pattern is a two-tier review system:
Tier 1: Agent review. An automated agent scans every agent-generated PR for mechanical issues. It runs the test suite, checks for style compliance, flags potential security issues, and verifies that the change matches the task description. PRs that fail tier 1 go back to the generating agent with feedback for revision.
Tier 2: Human review. PRs that pass tier 1 get human attention, but the human is reviewing a pre-validated change. They’re checking for correctness, architectural fit, and edge cases — not spending mental energy on formatting or missing imports.
This two-tier system dramatically increases human review throughput. A maintainer who could review 5 PRs per hour manually might handle 15-20 with tier 1 pre-filtering. The agent does the mechanical checking; the human focuses on judgment.
Tools for multi-agent orchestration
If you want to try this yourself, here are the current options, ranked by maturity:
Claude Code (Anthropic). The most mature agentic coding tool. Native git integration, file system access, shell execution. Run multiple instances in separate terminal sessions with different task descriptions. No built-in multi-agent coordination — you manage parallelism yourself.
Codex CLI (OpenAI). Terminal-based coding agent with background execution support. Strong at code generation but the tool ecosystem is less mature than Claude Code’s. OpenAI’s API access model makes cost tracking easier.
Cursor Agent (Cursor). IDE-integrated, so harder to run headless at scale. Better for interactive agent-assisted development than batch automation.
Replit Agent. Web-based, integrated with Replit’s hosting. Good for smaller projects, harder to scale to large codebases with complex build systems.
Custom orchestration with API. For maximum control, call the Claude or GPT API directly with tool-use enabled, manage your own task queue, and handle parallelism with whatever job runner you prefer (temporal, celery, even bash scripts). This gives you the most flexibility but requires the most engineering.
The custom orchestration approach is closest to what Steinberger presumably did. You write a dispatcher that reads a task list, spawns agent sessions, collects results, and presents them for review. The orchestration code doesn’t need to be sophisticated — even a simple bash loop with claude --task "fix issue #123" in parallel is enough to prove the concept.
Practical lessons from early adopters
Beyond Steinberger’s experiment, a few patterns have emerged from developers running agent automation at scale:
Task scoping is the hardest part. The difference between “agent nails it” and “agent produces garbage” is almost always task definition. A task that says “improve error handling” will produce inconsistent results. A task that says “add try/catch blocks to all database calls in src/db/*.ts and log errors with structured logging” will succeed reliably.
Codebase clarity matters more than model quality. Agents work better in codebases with clear conventions, good test coverage, and consistent patterns. A messy codebase with no tests will produce messy agent output regardless of which model you use.
Cost tracking is non-negotiable for production. If you’re running agents in production, you need per-task, per-agent cost accounting from day one. Without it, you’ll discover a $2,000 API bill at the end of the month with no way to trace which tasks generated which costs.
Start with the boring stuff. Documentation, test coverage, type annotations, linting fixes. These are high-success-rate, low-risk tasks that build confidence in the agent pipeline before you tackle complex refactors.