40x More Merged PRs With 2.7x the Engineers with Walden Yan, CPO, Cognition
By restructuring engineering teams into small vertically-responsible pods, rebuilding infrastructure so coding agents can test and operate entirely in the cl
By Sean Weldon40x More Merged PRs With 2.7x the Engineers: An Analysis of Cognition's Software Factory Model
Abstract
This synthesis examines a production case study in agent-driven software development at Cognition, the organization behind the Devin coding agent. The central claim is that the binding constraint on agentic engineering throughput is not model capability but organizational and infrastructural readiness. Three coupled interventions are analyzed: restructuring teams into small, vertically-responsible pods; rebuilding development infrastructure so that agents can execute and validate work in hermetic cloud environments without touching live services; and shifting the delegation unit from discrete tasks to open-ended, long-horizon goals. Reported outcomes include a 40x increase in merged pull request (PR) throughput against 2.7x headcount growth, implying greater than 10x productivity per engineer. Two case studies - GPU inference optimization and a 44-day Android parity project - illustrate the underlying mechanism. Practical implications concern infrastructure design, measurement discipline, and the redefinition of the software engineering role.
1. Introduction
The deployment of Large Language Model (LLM)-based coding agents has largely followed a substitutive pattern: an engineer selects a ticket, delegates implementation to an agent, then reviews the resulting diff. This synthesis describes an alternative pattern, termed the software factory, in which autonomous execution is the default state of the system and human involvement is an exception triggered by escalation rather than a required step in the control flow.
The operative definition is strict. In the software factory, PRs proceed from initial bug report through merge to monitoring and maintenance without human participation at any stage. As stated in the source material: "We have PRs that go from initial bug report to final merge and monitoring and maintenance without a single human involved." Escalation paths exist for decisions requiring human judgment, but they remain the exception.
Two terms recur throughout the analysis. A pod denotes a 2-3 engineer unit holding vertical responsibility for a product surface, including bug triage, QA, product management, and its own work queue. A job denotes a delegated objective expressed as a goal or metric, contrasted with a task, which specifies implementation steps. The central question this analysis addresses is what organizational and infrastructural preconditions must hold before agent autonomy translates into measurable throughput gains. Section 2 situates this against conventional agentic workflows; Section 3 analyzes the coupled interventions; Section 4 presents technical findings; Section 5 discusses implications and open questions.
2. Background and Related Work
The conventional agentic workflow inherits its structure from human-led development: a Linear or Jira board decomposes work into tickets, and agents substitute for human implementers at the ticket level. This preserves the human as the decomposition bottleneck. The position advanced in the source material is that such substitution does not scale: "If you are right now just picking off tickets off a linear board and then sending that to an agent and implementing it, you're not going to really be set up for success in the age of AI."
The underlying reasoning is that anything which can be fully described can also be implemented by an agent, which concentrates remaining human value in specification, prioritization, verification standards, and escalation adjudication rather than in code production itself. This motivates an explicit redefinition of the engineering role rather than an incremental tooling change, and frames the four organizing constructs used below: the software factory as target operating model, pod-based vertical teams as organizational substrate, task-to-job delegation as interaction paradigm, and recursive self-improvement as the mechanism by which agents optimize the development pipeline itself, not merely the product code.
3. Core Analysis
3.1 Organizational Restructuring: Pods with Vertical Responsibility
Larger engineering teams were decomposed into smaller pods, a change motivated by the increased per-engineer leverage made possible by agent swarms. A pod of 2-3 engineers assumes responsibility for customer bug reports, QA testing, product management, and management of its own Linear board of work routed to agents. This compresses the traditional separation between engineering, QA, and product functions into a single accountable unit, consistent with the broader claim that "anything that is described and can be implemented can just be sent to Devin." The pod's residual function is specification and judgment, not implementation.
3.2 Interface Collapse: Working Entirely from Slack
A second intervention relocates the primary interface for development work from IDEs and GitHub to Slack. Customer bug reports - frequently screen recordings - are forwarded directly into internal channels and tagged to Devin, which produces a PR and returns a video demonstrating the fix. This establishes an evidence-based development loop in which the artifact exchanged with customers and engineers is proof of correct behavior rather than a diff. The explicit target state is articulated directly: "This is the end goal you want to reach, which is a point where you can do your entire development lifecycle without opening up an IDE or without opening up a single coding agent." This interface collapse is presented not as a convenience but as a leading indicator of how fully a workflow has been automated.
3.3 Infrastructure Rebuild: Hermetic, Agent-Operable Environments
The interface and organizational changes depend on a substantial infrastructure rebuild. Every service was migrated from staging/cloud-dependent testing to local execution via Docker Compose, with mocked versions of every third-party service running inside a single VM accessible to all developers. This removes the need for coding agents to touch live services during validation. Development VMs are rebuilt hourly, pulling the latest code and rebuilding the codebase from scratch; when a rebuild fails, Devin is the first responder, fixing VM snapshots without human intervention. Every agent invoked from Slack therefore runs on a fresh machine with a fresh codebase, and agents maintain their own testing loops by writing and updating their own test "skills" as the codebase evolves. A secondary effect noted is a shift toward iPad-based development among some engineers, justified on security grounds: "iPads are also more secure... when everything is in the cloud with in these controlled VMs, you're actually in a much more secure spot," since local secrets and keys are a common source of breaches. The infrastructure also supports unconventional validation strategies, such as Devin creating multiple accounts inside one VM, joining a shared Zoom call, and exchanging voice memos to validate real-time multiplayer functionality.
3.4 Recursive Self-Improvement and Task-to-Job Delegation
Because every PR and decision is tracked across the codebase under the cloud-agent setup, agents can run their own analysis on this data to locate wasted time, wasted tokens, and optimization opportunities. A dedicated Slack channel captures Devin's daily proposals - for example, CI configuration changes or lint-script modifications intended to catch a larger share of bugs before AI code review - indicating that agents are applied to optimizing the factory itself, not solely the product.
This capability is coupled with a shift in delegation granularity from tasks to jobs: rather than specifying the steps to improve P99 latency, an engineer states the goal and the agent adds telemetry, sets alerts, decomposes the work, and reports status on a recurring cadence. The stated organizational intent is explicit: "We don't even want you to be prompting your agents most of the time. We want you to just be giving your agent goals that they can work toward over long durations of time." A corollary principle is that any previously unmeasured dimension of the company - performance, layout shifts, onboarding retention - should be converted into a measurable metric so that an agent can optimize it continuously.
4. Technical Insights
Several implementation-relevant findings emerge. First, the reported headline metric - a 40x increase in merged PR throughput against 2.7x headcount growth over roughly twelve months - implies greater than 10x productivity per engineer, but this figure aggregates across pods and does not isolate the marginal contribution of infrastructure versus organizational changes versus model capability improvements over the same period; it should be read as a system-level outcome rather than a controlled estimate of any single intervention.
Second, the hourly VM rebuild cycle functions as a continuous integration stress test, and routing rebuild failures to the agent itself (rather than to an on-call human) is a specific design choice that converts infrastructure maintenance into another delegable job. Third, the GPU inference case study demonstrates task-to-job delegation applied to a problem without existing tooling: given Nvidia's new Vera Rubin GPUs with no existing kernels, an agent allocated a permanent GPU set was given the goal of maximizing tokens-per-minute (TPM) throughput, discovered roughly eight or nine optimization strategies over approximately one week, and surfaced the best candidates for human approval. The outcome moved throughput on the new hardware from below the prior-generation GB300 baseline to significantly above it. This illustrates a division of labor in which the agent performs breadth-first experimentation and the human performs final judgment - a pattern consistent with the escalation-as-exception model described in Section 1.
Fourth, the 44-day Android parity project shows sustained autonomous operation at scale: using the existing iOS application as a specification, an agent was given persistent hooks into iOS monitoring and Slack feedback channels and performed pixel-level QA against the iOS reference. On active days the agent merged 40-50 PRs; across the full 44 days, only a small handful of human messages were sent to it. This suggests that long-horizon goal delegation can remain stable without continuous human steering, provided the specification (feature parity with an existing product) is well-defined and verification is automatable (pixel comparison).
A notable limitation across all cases is that none of the reported figures are accompanied by a counterfactual baseline, controlled comparison, or disclosure of failure rates, escalation frequency, or defect rates in merged PRs; the source material presents outcomes without discussing agent error rates or rework overhead.
5. Discussion
The broader implication is that agent capability alone does not produce the reported throughput gains; the gains are attributed jointly to organizational restructuring that concentrates decision rights in small vertical pods, infrastructure that removes dependency on live services and human-operated test environments, and a delegation paradigm that trades step-level control for goal-level autonomy. This positions infrastructure investment - hermetic environments, mocked services, hourly rebuilds - as a prerequisite rather than a byproduct of agentic scaling, which runs counter to approaches that treat agents as drop-in replacements for ticket-level implementation within unchanged pipelines.
A significant open question concerns escalation policy design: the model depends on agents correctly identifying when human judgment is required, yet the source material does not specify the criteria, failure modes, or false-negative rate of this escalation mechanism. Similarly, the recursive self-improvement loop, in which agents propose changes to CI and linting infrastructure, raises governance questions about how such proposals are reviewed before merge, which are not addressed. These gaps matter because the software factory model's safety properties depend heavily on the quality of escalation and review gates that receive comparatively little description relative to the throughput narrative.
This case study is relevant to current industry discussion about agent orchestration and "agentic coding" platforms, suggesting that organizations evaluating such tools should weigh infrastructure readiness (test environment isolation, reproducibility, mocking of dependencies) and organizational design (team size, decision-rights allocation) as co-equal factors alongside model selection.
6. Conclusion
The Cognition case study indicates that large gains in agentic engineering throughput are contingent on coupled organizational and infrastructural changes rather than on agent capability in isolation. Vertically-responsible pods, hermetic cloud-operable infrastructure, and goal-based delegation together are presented as the mechanism behind a reported 40x PR throughput increase against 2.7x headcount growth. Practically, organizations seeking comparable outcomes should prioritize test-environment isolation and reproducibility, reconsider team structure around end-to-end ownership, and experiment with long-horizon goal delegation in bounded, verifiable domains before scaling it broadly. Future investigation should focus on failure rates, escalation criteria, and governance of agent-proposed infrastructure changes, none of which are quantified in the available source material.
Sources
- 40x More Merged PRs With 2.7x the Engineers - Walden Yan, CPO, Cognition - Original Creator (YouTube)
- Analysis and summary by Sean Weldon using AI-assisted research tools
About the Author
Sean Weldon is an AI engineer and systems architect specializing in autonomous systems, agentic workflows, and applied machine learning. He builds production AI systems that automate complex business operations.
Sean Weldon builds apps and custom software at 22Atlas.