40x More Merged PRs With 2.7x the Engineers — Walden Yan, Cognition

Loading slides…

Read the talk

40x More Merged PRs With 2.7x the Engineers

Cognition rebuilt its development workflow so Devin could take a customer bug from a Slack video to a tested fix. Walden Yan also describes two ongoing jobs for agents, one tuning inference throughput on new GPUs and the other keeping an Android app in sync with iOS.

From a talk by Walden Yan

At a glance

Ideas worth remembering

  • A Slack bug report can yield a video of the fix because Devin can run the changed application. Docker Compose, local mocks, hourly VM rebuilds and codebase-specific testing skills make that workflow possible.

  • An ongoing job needs a way for the agent to judge its work. Inference tuning used tokens per minute on dedicated GPUs. Android maintenance used a changing iOS app as the reference for both what to implement and what to check.

  • Human review can sit at a specific decision. The GPU agent sent its strongest strategies to a human engineer for final approval. The Android agent sent recordings to engineers in Slack and escalated its most important decisions.

What grew 40× at Cognition

Blue bars show merged pull request volume reaching 40.4× its November 2025 baseline by October 2026. A dotted black line shows R&D engineering headcount reaching 2.7× its baseline over the same period.Open full source frame
Cognition’s delivery capacity is exploding

Cognition’s merged pull requests rose 40× over roughly a year. On the opening chart, the blue series tracks merge throughput, while the small black line along the bottom tracks engineering headcount, which grew 2.7× over the same period. Walden Yan, a Cognition co-founder and its chief product officer, uses that gap to frame changes to both the codebase and the way the team works.

What does that gap amount to per engineer? Dividing the two growth figures gives roughly 15× as many merged PRs per engineer across the team. Yan judged the PRs at least as good as before. The chart measures merge volume and leaves the size and quality of those changes unmeasured.

0:170:19

Self-driving PRs and smaller pods

At Cognition, a “self-driving” change can start with a bug report and go all the way through implementation, merge, monitoring and maintenance. The default is for Devin, Cognition’s coding agent, to carry the work through. When a decision calls for human judgment, the work escalates to a person.

By around March, that default had raised a question about the engineer’s role. If an engineer spent the day pulling fully specified tickets from Linear and passing them to an agent, the engineer was relaying work Devin could already take on. Cognition split larger teams into pods that might have two or three engineers, gave them groups of agents, and widened what each pod owned.

The same pod now hears customer bug reports, decides what to build and owns QA. Each engineer manages their own Linear board and sends implementation work to agents. That puts the people deciding what matters to the customer in charge of checking whether the change solves it.

0:211:50

From a bug video to a fix video in Slack

A four-step bug turnaround workflow highlights the customer report while a Slack message is being typed.Open full source frame
In this Slack example, Cognition forwards a customer’s bug report to an internal channel and tags Devin. Devin replies with a pull request and proof of the fix. Cognition sends the proof back to the customer.

A customer sends Yan a video of a bug in Slack. He forwards it to an internal channel, tags Devin and asks for a fix. Devin sends back a pull request with the code change and a video showing the fix in action.

The two videos do different jobs. The customer’s recording gives Devin a behavior to investigate. The return recording shows the changed behavior in a form Yan can inspect and forward to the customer, often without opening an IDE or GitHub. To make that second video, Devin needs to run the changed application and exercise the relevant flow. Watch the transition to the test setup at 4:28

A full test environment inside one VM

Three panels show the move from live services to one VM with Docker Compose, agents repairing a failed hourly VM build, and a loop for running and fixing testing skills.Open full source frame
Cognition moved testing from live services to one VM with Docker Compose and mocked integrations. Devins repair failed hourly rebuilds and fix testing skills when their runs fail.

Cognition used to test against cloud deployments. Engineers connected to staging databases and live servers, then clicked through the application to verify flows end to end. The team migrated every service to run locally with Docker Compose and made local mocks for third-party services. Here, local means inside the agent’s cloud VM. Devin can bring up the application and test a change without touching live services. Those tests exercise the third-party behavior represented by the mocks.

Every hour Cognition pulls the latest code and rebuilds the VM environment from scratch. A fast-moving codebase can break that build, so Devin is the first responder when a snapshot fails. Repairing snapshots keeps the next agent launched from Slack starting on a fresh machine with recent code and a working test setup.

The VM gives Devin somewhere to test. Testing skills give it reusable instructions for exercising this particular codebase. Devin writes those instructions and updates them as the application and its test procedures change.

Several Cognition engineers had moved to iPads for development because the VM could run the tests. Yan also saw a security benefit in concentrating development in controlled cloud VMs, where engineers have less reason to keep keys and other secrets on individual devices.

Testing Devin’s ability to join a Zoom call by voice needed multiple participants. Devin created several accounts, had them join the same call from inside one VM, and sent voice memos back and forth. The exchange let it check that participants could actually pass audio between them.

4:404:43

Agents look for waste in the development process

The cloud setup keeps records of the code agents write, the PRs they generate and the decisions they make. Cognition can give those records to agents to look for time or tokens spent on repeated work. That analysis can suggest a script for a recurring operation or a test that catches a recurring problem. Devin posts ideas to a channel every day.

Yan gave two examples of proposals from that channel.

  • Faster CI. A change to the Node setup might shave about a minute off CI.
  • Earlier bug detection. A change to a lint script might catch about 20% more of the bugs in question before they reach AI code review.
7:157:17

Give the agent a metric to improve

A bug report gives Devin a specific behavior to fix. An ongoing job can start with a goal such as lowering backend P99 latency, the 99th percentile of observed response times. The goal leaves the choice of changes open. Once the agent can measure the slow end of the response-time distribution, it can judge whether a change moves the metric.

In Yan’s example, the agent adds telemetry to establish the current P99 and breaks down the improvement goal into changes it can try. Datadog alerts flag changes that need attention. Weekly Slack reports and daily phone updates give the engineer two ways to follow the current latency and how far it has moved while the agent works.

What the agent measures depends on what the team wants to improve.

  • Click responsiveness. Measure the delay users experience when they click in the application.
  • Layout stability. Track the bounding boxes of interface elements to see how much they move and target unwanted shifts.
  • Onboarding. Track retention as the outcome.

Once the team has a measure the agent can observe, Yan proposes giving it the goal and letting it work on it continuously.

8:108:11

Tuning inference on new GPUs

When Cognition received Nvidia Vera Rubin hardware, it lacked the GPU kernels it needed and had to build an inference stack for the new hardware. The team assigned an agent a dedicated set of GPUs and gave it a concrete objective in tokens per minute. The GPUs gave it somewhere to run experiments, and the throughput measure gave it a way to compare them. Watch the throughput goal at 10:15

Over about a week, the agent found and tested different strategies. Yan counted roughly eight or nine ideas discovered this way. The agent sent the strongest candidates to a human engineer for final approval.

The new hardware started below the GB300 GPUs Cognition used for comparison. After tuning, Yan reported that it was substantially ahead on inference throughput. He gave the relative result and left the workload and absolute throughput figures unspecified.

An Android app with a moving iOS reference

Cognition had a team building its iOS app and limited capacity to staff an Android app. Sam, an engineer on the team, proposed using the iOS app as the blueprint and giving Devin an ongoing job to build Android and keep it at parity as iOS changed. Watch how the Android job started at 11:08

Sam asked Devin to set up persistent hooks in the codebase to monitor the iOS app and listen for user feedback in Slack. Changes to iOS tell Devin what to keep in sync. Feedback gives it problems to investigate. The running iOS app serves a second purpose during live QA, where Devin uses it as the reference for pixel-for-pixel checks of the Android app.

After 44 days, Cognition had a working Android app it planned to release. The time-lapse gives a sense of how much work could happen between prompts. Most days passed without a human message to the agent, and on some of those days Devin merged roughly 40 to 50 PRs.

Engineers usually followed the work through recordings Devin sent to Slack. Devin escalated the most important decisions to a person, so an engineer could weigh in when needed. Watch the review workflow at 12:52

Yan closed by asking teams to be more ambitious about the work they take on. Android was a project Cognition had limited capacity to staff. A changing reference app, a way to test against it and a route to a human for consequential decisions gave the team a way to build it with the capacity it had. Watch the closing remarks at 13:33

How does iOS guide both the Android changes and their QA?

iOS app and codebaseInputs — An evolving blueprint for Android and the live reference for QA.
User feedback in SlackInputs — Devin listens for reports about the apps.
DevinUpdates Android to keep it in sync and acts on feedback.
Live parity QAChecks the Android implementation against the iOS app pixel for pixel.
EngineersInspect recordings in Slack and handle escalated decisions.
The iOS codebase supplies changes to follow, and the running iOS app supplies behavior to compare against. Slack feedback gives Devin a separate input. Engineers receive recordings and handle escalated decisions.
Read the diagram as text
  • iOS app and codebase. Inputs — An evolving blueprint for Android and the live reference for QA.
  • User feedback in Slack. Inputs — Devin listens for reports about the apps.
  • Devin. Updates Android to keep it in sync and acts on feedback.
  • Live parity QA. Checks the Android implementation against the iOS app pixel for pixel.
  • Engineers. Inspect recordings in Slack and handle escalated decisions.
  • iOS app and codebase → Devin: Changes observed through codebase hooks.
  • User feedback in Slack → Devin: User feedback to investigate.
  • iOS app and codebase → Live parity QA: Reference behavior and appearance.
  • Devin → Live parity QA: Changed Android app to exercise.
  • Devin → Engineers: Slack recordings and escalated decisions.
Transcript download
Full transcript

Loading transcript…