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

Walden Yan, Cognition

[Talk page](https://ai.engineer/talks/U92J5mCDLMc-40x-more-merged-prs-2-7x-engineers) · [Video](https://www.youtube.com/watch?v=U92J5mCDLMc)

## 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.

### What grew 40× at Cognition

[0:12](https://www.youtube.com/watch?v=U92J5mCDLMc&t=12s)

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.

![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.](https://ai.engineer/api/talk-essay-media/7d90220d5e833a6a95083c805cb46a7810906f9ff6d6c3020baab0b095dbf6bd)

Cognition’s delivery capacity is exploding

### Self-driving PRs and smaller pods

[1:41](https://www.youtube.com/watch?v=U92J5mCDLMc&t=101s)

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.

### From a bug video to a fix video in Slack

[3:31](https://www.youtube.com/watch?v=U92J5mCDLMc&t=211s)

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](https://www.youtube.com/watch?v=U92J5mCDLMc&t=268s)

![A four-step bug turnaround workflow highlights the customer report while a Slack message is being typed.](https://ai.engineer/api/talk-essay-media/8a184e729a8544ddd9ecb37c424b27f505ddcee066779c550f7e6e1f5482374b)

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 full test environment inside one VM

[4:28](https://www.youtube.com/watch?v=U92J5mCDLMc&t=268s)

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.

![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.](https://ai.engineer/api/talk-essay-media/bdbb96a69cdde7c4ddcabb7bb6998e2432b3ef3598f2b6bcfaa8fff577dde098)

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.

### Agents look for waste in the development process

[7:05](https://www.youtube.com/watch?v=U92J5mCDLMc&t=425s)

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.

### Give the agent a metric to improve

[8:03](https://www.youtube.com/watch?v=U92J5mCDLMc&t=483s)

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.

### Tuning inference on new GPUs

[9:49](https://www.youtube.com/watch?v=U92J5mCDLMc&t=589s)

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](https://www.youtube.com/watch?v=U92J5mCDLMc&t=615s)

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

[11:08](https://www.youtube.com/watch?v=U92J5mCDLMc&t=668s)

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](https://www.youtube.com/watch?v=U92J5mCDLMc&t=668s)

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](https://www.youtube.com/watch?v=U92J5mCDLMc&t=772s)

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](https://www.youtube.com/watch?v=U92J5mCDLMc&t=813s)

How does iOS guide both the Android changes and their QA?
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.
- iOS app and codebase — An evolving blueprint for Android and the live reference for QA.
- User feedback in Slack — 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)

## Key takeaways

- 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.

## Slides

### A new era of software engineering

Walden Yan, Cognition’s co-founder and chief product officer, opens the talk with a focus on how Cognition’s own engineering team works to ship software faster.

[0:24](https://www.youtube.com/watch?v=U92J5mCDLMc&t=24s) [Cognition title slide for A new era of software engineering, presented by Walden Yan, co-founder and chief product officer.](https://assets.ai.engineer/sites/aiecode2025/sha256/581540bb3059e1dd071e5a89db020693ce901542b9a44811f2326e905047a4ba.webp)

A new era of
software engineering

Cognition
Walden Yan · Co-Founder and Chief Product Officer, Cognition

Interface text:
AI Engineer
Code Summit
PRESENTED BY
Google DeepMind
A New Age of Software Engineering
Walden Yan / Chief Product Officer
Cognition

### Cognition’s delivery capacity is exploding

In October 2026, Cognition merged 40.4x as many pull requests as it did in November 2025. Over the same period, its R&D engineering headcount reached 2.7x its November level.

[0:40](https://www.youtube.com/watch?v=U92J5mCDLMc&t=40s) [Monthly bars for merged pull requests rise much faster than the dotted line for R&D engineering headcount.](https://assets.ai.engineer/sites/aiecode2025/sha256/6d0385732d38d00fedbf19c9f3e7055de319f80e5e83788baa6e0a02ed90025d.webp)

Cognition’s delivery capacity is exploding

Merged PR volume
Engineering headcount (R&D)
Y-axis ticks: 0x, 5x, 10x, 15x, 20x, 25x, 30x, 35x, 40x
Timeline: Nov 2025, Dec 2025, Jan 2026, Feb 2026, Mar 2026, Apr 2026, May 2026, Jun 2026, Jul 2026, Aug 2026, Sep 2026, Oct 2026
Chart labels: 1x, 40.4x, 2.7x

Cognition
PROPRIETARY & CONFIDENTIAL

Interface text:
AI Engineer
Code Summit
PRESENTED BY
Google DeepMind
A New Age of Software Engineering
Walden Yan / Chief Product Officer
Cognition

[0:41](https://www.youtube.com/watch?v=U92J5mCDLMc&t=41s) [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.](https://assets.ai.engineer/sites/aiecode2025/sha256/7d90220d5e833a6a95083c805cb46a7810906f9ff6d6c3020baab0b095dbf6bd.webp)

Cognition’s delivery capacity is exploding

Merged PR volume
Engineering headcount (R&D)
Y-axis ticks: 0x, 5x, 10x, 15x, 20x, 25x, 30x, 35x, 40x
Timeline: Nov 2025, Dec 2025, Jan 2026, Feb 2026, Mar 2026, Apr 2026, May 2026, Jun 2026, Jul 2026, Aug 2026, Sep 2026, Oct 2026
Chart labels: 1x, 40.4x, 2.7x

Cognition
PROPRIETARY & CONFIDENTIAL

Interface text:
AI Engineer
Code Summit
PRESENTED BY
Google DeepMind
A New Age of Software Engineering
Walden Yan / Chief Product Officer
Cognition

### We’ve transformed how we build

Walden Yan moves from Cognition’s growth in merged pull requests to what the company changed in its codebase and how it structures its engineering teams.

[1:27](https://www.youtube.com/watch?v=U92J5mCDLMc&t=87s) [A Cognition section divider reads “We’ve transformed how we build” in large black text on a pale patterned background.](https://assets.ai.engineer/sites/aiecode2025/sha256/2e049b4482268edb646a6910471b55e5db5b665ca47dc333dd24b3cd6c8cfcee.webp)

We’ve transformed how we build
Cognition

Interface text:
AI Engineer
Code Summit
PRESENTED BY
Google DeepMind
A New Age of Software Engineering
Walden Yan / Chief Product Officer Cognition

### We’ve restructured our teams to ship more

Cognition split role-based teams into small pods for areas like billing and integrations. Each pod owns product, engineering, QA and on-call. Engineers manage their own backlogs and send implementation tasks to agents.

[2:37](https://www.youtube.com/watch?v=U92J5mCDLMc&t=157s) [A before-and-after chart contrasts separate product, engineering, and QA and on-call roles with Billing, Mobile app, and Integrations teams. Each product team has a full grid of agent icons and covers all four responsibilities.](https://assets.ai.engineer/sites/aiecode2025/sha256/04eee44aeb14944f655fb2fb772ff7f89df180a142580222006f484534963340.webp)

We’ve restructured our teams to ship more

BEFORE · ORGANIZED BY ROLE

PRODUCT
PM

ENGINEERING
ENG  ENG  ENG  ENG

QA & ONCALL
QA

AFTER · ORGANIZED BY VERTICAL

VERTICAL 1
e.g. Billing
PM  ENG
PRODUCT · ENG
QA · ONCALL

VERTICAL 2
e.g. Mobile app
ENG  ENG
PRODUCT · ENG
QA · ONCALL

VERTICAL 3
e.g. Integrations
ENG  QA
PRODUCT · ENG
QA · ONCALL

Cognition
Proprietary & Confidential

### Customer Bug Report in Slack

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.

[3:29](https://www.youtube.com/watch?v=U92J5mCDLMc&t=209s) [A four-step bug turnaround workflow highlights the customer report while a Slack message is being typed.](https://assets.ai.engineer/sites/aiecode2025/sha256/8a184e729a8544ddd9ecb37c424b27f505ddcee066779c550f7e6e1f5482374b.webp)

Debugging, Testing & Merging all from Slack

Instant bug report turnaround
1 Customer reports a bug
2 Forwarded to the internal channel
3 Devin replies with a PR and proof
4 Shared back to the customer

Florian 10:01 PM
small product nit for devin review: file comment should sc

Cognition
PROPRIETARY & CONFIDENTIAL

Interface text:
SLACK CONNECT · LISTEN LABS
#team-listenlabs-cognition

### Building an Agent-Testable Codebase

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.

[4:26](https://www.youtube.com/watch?v=U92J5mCDLMc&t=266s) [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.](https://assets.ai.engineer/sites/aiecode2025/sha256/bdbb96a69cdde7c4ddcabb7bb6998e2432b3ef3598f2b6bcfaa8fff577dde098.webp)

Building an Agent-Testable Codebase

Before
Testing against live services
aws
Application

After
Everything on one VM
VM
Application
docker compose

Hourly VM snapshots
Devins repair failed builds
Timeline: 09:00, 10:00, 11:00, 12:00

Testing skills
Devins fix and maintain them
SKILL.md
fix
run

Cognition
PROPRIETARY & CONFIDENTIAL

### Agent Testing of Multi-Player Setups

One Mac VM sends synthesized speech through Zoom. On the other, BlackHole feeds the call audio into Chrome’s mic input. Devin’s voice transcript shows a reply to a spoken question about Spain’s capital.

[6:39](https://www.youtube.com/watch?v=U92J5mCDLMc&t=399s) [Two Mac virtual machines illustrate a voice test. One sends synthesized speech through Zoom, and the other routes the meeting audio into Devin voice mode, where sample responses appear.](https://assets.ai.engineer/sites/aiecode2025/sha256/282163e01c451fba03ff8180958ca8ceb3129427df1152489fed8ddb5ac6422b.webp)

Agent Testing of Multi-Player Setups

TWO MAC VMS, ONE ZOOM MEETING
One spoken phrase, speaker Mac to Devin

SPEAKER MAC VM: DEVIN SPEAKER (MAC)
$ say -v Daniel -a "BlackHole 2ch" \
  "This is Devin Speaker on the Mac. Devin, what is
  nine minus four?"

BlackHole 2ch
virtual audio device
microphone: BlackHole 2ch

The child session plays synthesized speech into the virtual device. Zoom reads that device as its microphone.

ZOOM AUDIO
internet

LISTENER MAC VM: DEVIN LISTENER
speaker: BlackHole 2ch, captions on
Devin Speaker (Mac)
This is Devin Speaker on the Mac. Devin, what is nine minus four?

BlackHole 2ch
Zoom speaker, Chrome mic

DEVIN VOICE MODE TRANSCRIPT
This is Devin speaker on the Mac. Devin, the secret color is teal. Please repeat the secret
Teal.
This is Devin speaker on the Mac. Devin, what is the capital of Spain
Madrid.
This is Devin speaker on the Mac. Devin, what is 9 minus 4

Devin hears only audio. Nothing is typed into the app.

Cognition
Proprietary & Confidential
8

Interface text:
Terminal

Zoom Meeting
2 participants
DS
Devin Speaker (Mac)
DL
Devin Listener

Zoom Meeting
2 participants
DS
Devin Speaker (Mac)
DL
Devin Listener

app.devin.ai voice call live mic: BlackHole 2ch

### Recursive Self-Improvement for Agents

The slide shows Devin analyzing 1,302 past sessions and feeding changes into future runs. It reports 31% less test time after Devin saved a login workflow used in 80% of test runs as a reusable skill.

[7:03](https://www.youtube.com/watch?v=U92J5mCDLMc&t=423s) [An analysis loop shows 1,302 past sessions and one finding. Saving a repeated login workflow as a reusable skill is shown reducing test time by 31 percent.](https://assets.ai.engineer/sites/aiecode2025/sha256/0b3d7b421a6c86becb61d689048582842c9f17b2dcca61b9e4bca4cfa059c955.webp)

Recursive Self-Improvement for Agents

PAST SESSIONS ANALYZED
1,302
Analyze

WHAT DEVIN FOUND AND CHANGED
INEFFICIENT PROCESS
−31% test time
Login by computer use repeated in 80% of test runs → saved as a skill

EVERY CHANGE FLOWS BACK INTO THE NEXT SESSIONS

Cognition
PROPRIETARY & CONFIDENTIAL

### Recursive Self-Improvement for Agents

Devin analyzes 1,347 past sessions and feeds changes into later runs. The slide shows 18% lower cost from testing only the diff, zero retries after fixing a flaky suite that retried 12 times a week, and 31% less test time with a login skill.

[7:10](https://www.youtube.com/watch?v=U92J5mCDLMc&t=430s) [The analysis loop shows 1,347 past sessions and three findings covering lower CI cost, zero retries after a flaky test fix, and shorter test time.](https://assets.ai.engineer/sites/aiecode2025/sha256/873ddbe3245d09400a47d6204edf83c65673b29734a6858423a45e25704eefa6.webp)

Recursive Self-Improvement for Agents

PAST SESSIONS ANALYZED
1,347
Analyze

WHAT DEVIN FOUND AND CHANGED

COST
−18% cost
Sessions re-run full CI on every small edit → tests scoped to the diff

REPEATED FAILURE
0 retries
One flaky e2e suite retried 12x/week → root cause fixed

INEFFICIENT PROCESS
−31% test time
Login by computer use repeated in 80% of test runs → saved as a skill

EVERY CHANGE FLOWS BACK INTO THE NEXT SESSIONS

Cognition
PROPRIETARY & CONFIDENTIAL

### Recursive Self-Improvement for Agents

Cognition shows Devin analyzing 1,365 past sessions and feeding fixes into later runs. Yan says Devin posts ideas daily. In one example, a blueprint pins the Node toolchain and setup drops from 9 min to 40 s.

[7:52](https://www.youtube.com/watch?v=U92J5mCDLMc&t=472s) [The analysis loop shows 1,365 past sessions and four findings. The added reliability card shows setup time dropping from nine minutes to 40 seconds after pinning the toolchain.](https://assets.ai.engineer/sites/aiecode2025/sha256/9f8d80ae846cfe336bb229b13fadeac6dd07c210a2ae4fa1f61953e45df4acf0.webp)

Recursive Self-Improvement for Agents

PAST SESSIONS ANALYZED
1,365
Analyze

WHAT DEVIN FOUND AND CHANGED

RELIABILITY
9 min → 40 s
Setup fails on Node drift → blueprint pins the toolchain

COST
−18% cost
Sessions re-run full CI on every small edit → tests scoped to the diff

REPEATED FAILURE
0 retries
One flaky e2e suite retried 12x/week → root cause fixed

INEFFICIENT PROCESS
−31% test time
Login by computer use repeated in 80% of test runs → saved as a skill

EVERY CHANGE FLOWS BACK INTO THE NEXT SESSIONS

Cognition
PROPRIETARY & CONFIDENTIAL

### Devin for Android

Walden Yan reports that 999 of 1,134 pull requests for Devin’s Android app merged without human approval. The app was already in open testing on Google Play, and Yan said it would go live soon.

[13:17](https://www.youtube.com/watch?v=U92J5mCDLMc&t=797s) [The closing card reports that 999 of 1,134 pull requests merged without human approval and that the app was in open testing on Google Play.](https://assets.ai.engineer/sites/aiecode2025/sha256/9ebc8e5ea1cca6b1f565fa44d467741a4f7b39f8bd5f474814a2612eb0b43d5b.webp)

Devin for Android

999 of 1,134 pull requests merged with no human approval.

In open testing on Google Play.

Devin
Cognition

Interface text:
AI Engineer
Code Summit
PRESENTED BY
Google DeepMind
A New Age of Software Engineering
Walden Yan / Chief Product Officer
Cognition
[illegible]Mind
[illegible]2i

### It’s time to be ambitious.

Walden Yan closes by arguing that well-designed loops for coding agents give teams room to take on more ambitious software projects.

[13:29](https://www.youtube.com/watch?v=U92J5mCDLMc&t=809s) [The stage screen reads “It’s time to be ambitious.” in large white type over a dark patterned background. The podium partly obscures the second line.](https://assets.ai.engineer/sites/aiecode2025/sha256/3982cce616b45a88d91a7c4357029de4a8812f2edecf58faabb937aa7cb382b6.webp)

It's time to be ambitious.

AI Engineer
Code Summit
PRESENTED BY
Google DeepMind
SUPPORTED BY
G2i

AI Engineer
Code Summit
PRESENTED BY
Google DeepMind
SUPPORTED BY
G2i

AI Engineer
Code Summit
PRESENTED BY
Google DeepMind

AIE

## Full transcript

[0:12](https://www.youtube.com/watch?v=U92J5mCDLMc&t=12s) Hello everyone. Um, it's a pleasure to

[0:15](https://www.youtube.com/watch?v=U92J5mCDLMc&t=15s) be here today. Uh, quick introduction.

[0:17](https://www.youtube.com/watch?v=U92J5mCDLMc&t=17s) I'm Walden. I'm one of the co-founders

[0:19](https://www.youtube.com/watch?v=U92J5mCDLMc&t=19s) and chief product officer at Cognition.

[0:21](https://www.youtube.com/watch?v=U92J5mCDLMc&t=21s) We build a AI product called Devon. I

[0:25](https://www.youtube.com/watch?v=U92J5mCDLMc&t=25s) want to spend most of my time here today

[0:27](https://www.youtube.com/watch?v=U92J5mCDLMc&t=27s) though kind of abstracting a bit away

[0:29](https://www.youtube.com/watch?v=U92J5mCDLMc&t=29s) from that and and focusing on what are

[0:31](https://www.youtube.com/watch?v=U92J5mCDLMc&t=31s) we doing internally as an engineering

[0:34](https://www.youtube.com/watch?v=U92J5mCDLMc&t=34s) team to move way faster. And so the

[0:36](https://www.youtube.com/watch?v=U92J5mCDLMc&t=36s) backdrop I would put for all this is

[0:38](https://www.youtube.com/watch?v=U92J5mCDLMc&t=38s) this is what our merged PR throughput

[0:41](https://www.youtube.com/watch?v=U92J5mCDLMc&t=41s) looks like at Cognition. Uh the start of

[0:43](https://www.youtube.com/watch?v=U92J5mCDLMc&t=43s) this is around 12 months ago. So you're

[0:46](https://www.youtube.com/watch?v=U92J5mCDLMc&t=46s) looking at about a snapshot of a year.

[0:48](https://www.youtube.com/watch?v=U92J5mCDLMc&t=48s) And over this last year, this blue chart

[0:51](https://www.youtube.com/watch?v=U92J5mCDLMc&t=51s) here, this 40x is a 40x in the number of

[0:53](https://www.youtube.com/watch?v=U92J5mCDLMc&t=53s) merged PRs we are producing on our

[0:56](https://www.youtube.com/watch?v=U92J5mCDLMc&t=56s) engineering team. Now you might also

[0:58](https://www.youtube.com/watch?v=U92J5mCDLMc&t=58s) notice there's a small black line along

[1:01](https://www.youtube.com/watch?v=U92J5mCDLMc&t=61s) the bottom there. It's easy to miss, but

[1:02](https://www.youtube.com/watch?v=U92J5mCDLMc&t=62s) that 2.7x that is our engineering

[1:04](https://www.youtube.com/watch?v=U92J5mCDLMc&t=64s) headcount growth in the same period. So

[1:07](https://www.youtube.com/watch?v=U92J5mCDLMc&t=67s) we have been hiring engineers, but each

[1:09](https://www.youtube.com/watch?v=U92J5mCDLMc&t=69s) of our engineers is now more than 10x

[1:11](https://www.youtube.com/watch?v=U92J5mCDLMc&t=71s) more productive than they were before.

[1:14](https://www.youtube.com/watch?v=U92J5mCDLMc&t=74s) And I would dare to say that these PRs

[1:16](https://www.youtube.com/watch?v=U92J5mCDLMc&t=76s) are just as high quality, if not higher

[1:18](https://www.youtube.com/watch?v=U92J5mCDLMc&t=78s) quality, than they were a year ago. And

[1:20](https://www.youtube.com/watch?v=U92J5mCDLMc&t=80s) so really the crux of what I want to

[1:22](https://www.youtube.com/watch?v=U92J5mCDLMc&t=82s) talk about today is what did we do to

[1:25](https://www.youtube.com/watch?v=U92J5mCDLMc&t=85s) unlock this 40x engineering throughput.

[1:29](https://www.youtube.com/watch?v=U92J5mCDLMc&t=89s) And there's a lot of things we did from

[1:31](https://www.youtube.com/watch?v=U92J5mCDLMc&t=91s) both the code base to the way we

[1:33](https://www.youtube.com/watch?v=U92J5mCDLMc&t=93s) structure engineering teams that I think

[1:36](https://www.youtube.com/watch?v=U92J5mCDLMc&t=96s) are very practical steps you can take if

[1:38](https://www.youtube.com/watch?v=U92J5mCDLMc&t=98s) you want to reproduce the same results.

[1:41](https://www.youtube.com/watch?v=U92J5mCDLMc&t=101s) Many of you are probably familiar with

[1:42](https://www.youtube.com/watch?v=U92J5mCDLMc&t=102s) the software factory. How many of you

[1:43](https://www.youtube.com/watch?v=U92J5mCDLMc&t=103s) guys have heard of software factory?

[1:44](https://www.youtube.com/watch?v=U92J5mCDLMc&t=104s) Let's see a raise of hands. Cool. So,

[1:47](https://www.youtube.com/watch?v=U92J5mCDLMc&t=107s) I'll start with the basics and then I'll

[1:48](https://www.youtube.com/watch?v=U92J5mCDLMc&t=108s) work my way up to the more advanced

[1:50](https://www.youtube.com/watch?v=U92J5mCDLMc&t=110s) stuff. The basic idea of a software

[1:52](https://www.youtube.com/watch?v=U92J5mCDLMc&t=112s) factory is yeah, by default everything

[1:54](https://www.youtube.com/watch?v=U92J5mCDLMc&t=114s) should be self-driving. Um, we have PRs

[1:58](https://www.youtube.com/watch?v=U92J5mCDLMc&t=118s) that go from initial bug report to final

[2:01](https://www.youtube.com/watch?v=U92J5mCDLMc&t=121s) merge and monitoring and maintenance

[2:02](https://www.youtube.com/watch?v=U92J5mCDLMc&t=122s) without a single human involved. Oftent

[2:04](https://www.youtube.com/watch?v=U92J5mCDLMc&t=124s) time human judgment is needed though and

[2:06](https://www.youtube.com/watch?v=U92J5mCDLMc&t=126s) that's where we have escalations. But by

[2:08](https://www.youtube.com/watch?v=U92J5mCDLMc&t=128s) default, our entire software development

[2:10](https://www.youtube.com/watch?v=U92J5mCDLMc&t=130s) process is just run by Devon from end to

[2:12](https://www.youtube.com/watch?v=U92J5mCDLMc&t=132s) end.

[2:14](https://www.youtube.com/watch?v=U92J5mCDLMc&t=134s) One of the things this means is that the

[2:16](https://www.youtube.com/watch?v=U92J5mCDLMc&t=136s) role of the software engineer has to

[2:18](https://www.youtube.com/watch?v=U92J5mCDLMc&t=138s) change quite a bit. Around March of this

[2:21](https://www.youtube.com/watch?v=U92J5mCDLMc&t=141s) year, we had this conversation with the

[2:23](https://www.youtube.com/watch?v=U92J5mCDLMc&t=143s) engineering team and we said, "Look, if

[2:25](https://www.youtube.com/watch?v=U92J5mCDLMc&t=145s) you are right now just picking off

[2:27](https://www.youtube.com/watch?v=U92J5mCDLMc&t=147s) tickets off a linear board and then

[2:29](https://www.youtube.com/watch?v=U92J5mCDLMc&t=149s) sending that to an agent and

[2:30](https://www.youtube.com/watch?v=U92J5mCDLMc&t=150s) implementing it, you're not going to

[2:32](https://www.youtube.com/watch?v=U92J5mCDLMc&t=152s) really be set up for success in the age

[2:34](https://www.youtube.com/watch?v=U92J5mCDLMc&t=154s) of AI because anything that is described

[2:36](https://www.youtube.com/watch?v=U92J5mCDLMc&t=156s) and can be implemented, we'll be able to

[2:38](https://www.youtube.com/watch?v=U92J5mCDLMc&t=158s) send to Devon." So really, everyone has

[2:40](https://www.youtube.com/watch?v=U92J5mCDLMc&t=160s) to change the way that they're

[2:42](https://www.youtube.com/watch?v=U92J5mCDLMc&t=162s) developing. And the way we've enforced

[2:45](https://www.youtube.com/watch?v=U92J5mCDLMc&t=165s) this is we've taken our larger teams and

[2:46](https://www.youtube.com/watch?v=U92J5mCDLMc&t=166s) we've broken them up into smaller pods.

[2:49](https://www.youtube.com/watch?v=U92J5mCDLMc&t=169s) In these smaller pods, not only are

[2:50](https://www.youtube.com/watch?v=U92J5mCDLMc&t=170s) given swarms of agents to do work for

[2:52](https://www.youtube.com/watch?v=U92J5mCDLMc&t=172s) them, they are given more vertical

[2:54](https://www.youtube.com/watch?v=U92J5mCDLMc&t=174s) responsibility.

[2:56](https://www.youtube.com/watch?v=U92J5mCDLMc&t=176s) So instead, you might have only two or

[2:59](https://www.youtube.com/watch?v=U92J5mCDLMc&t=179s) three engineers on a team at a time, but

[3:01](https://www.youtube.com/watch?v=U92J5mCDLMc&t=181s) they're responsible for everything

[3:02](https://www.youtube.com/watch?v=U92J5mCDLMc&t=182s) beyond the engineering as well. They're

[3:04](https://www.youtube.com/watch?v=U92J5mCDLMc&t=184s) responsible for listening to customer

[3:05](https://www.youtube.com/watch?v=U92J5mCDLMc&t=185s) bug reports. They're responsible for

[3:08](https://www.youtube.com/watch?v=U92J5mCDLMc&t=188s) doing QA testing. They're responsible

[3:10](https://www.youtube.com/watch?v=U92J5mCDLMc&t=190s) for doing the PMing and product

[3:11](https://www.youtube.com/watch?v=U92J5mCDLMc&t=191s) management. And basically, every

[3:12](https://www.youtube.com/watch?v=U92J5mCDLMc&t=192s) engineer manages their entire own linear

[3:15](https://www.youtube.com/watch?v=U92J5mCDLMc&t=195s) board of things to do. and they send

[3:17](https://www.youtube.com/watch?v=U92J5mCDLMc&t=197s) that to an agent to implement for them.

[3:19](https://www.youtube.com/watch?v=U92J5mCDLMc&t=199s) So, it's really a fundamental change in

[3:20](https://www.youtube.com/watch?v=U92J5mCDLMc&t=200s) the way that our engineers do work. This

[3:22](https://www.youtube.com/watch?v=U92J5mCDLMc&t=202s) has been one of the things that we've

[3:24](https://www.youtube.com/watch?v=U92J5mCDLMc&t=204s) implemented over the last year and we've

[3:26](https://www.youtube.com/watch?v=U92J5mCDLMc&t=206s) been helping a lot of large

[3:27](https://www.youtube.com/watch?v=U92J5mCDLMc&t=207s) organizations implement for themselves

[3:28](https://www.youtube.com/watch?v=U92J5mCDLMc&t=208s) as well.

[3:31](https://www.youtube.com/watch?v=U92J5mCDLMc&t=211s) Another thing I'd really like to

[3:33](https://www.youtube.com/watch?v=U92J5mCDLMc&t=213s) highlight is we work from Slack

[3:34](https://www.youtube.com/watch?v=U92J5mCDLMc&t=214s) everywhere. So, this is an example of

[3:36](https://www.youtube.com/watch?v=U92J5mCDLMc&t=216s) what a customer bug report might look

[3:37](https://www.youtube.com/watch?v=U92J5mCDLMc&t=217s) like. They send me a video on Slack

[3:40](https://www.youtube.com/watch?v=U92J5mCDLMc&t=220s) and we just forward bug reports straight

[3:43](https://www.youtube.com/watch?v=U92J5mCDLMc&t=223s) into our internal channel and we tag

[3:45](https://www.youtube.com/watch?v=U92J5mCDLMc&t=225s) Devon and say, "Hey, please fix this."

[3:49](https://www.youtube.com/watch?v=U92J5mCDLMc&t=229s) Devon immediately comes up, shows up a

[3:51](https://www.youtube.com/watch?v=U92J5mCDLMc&t=231s) PR, but then also sends back a video

[3:54](https://www.youtube.com/watch?v=U92J5mCDLMc&t=234s) with the fix and proof.

[3:58](https://www.youtube.com/watch?v=U92J5mCDLMc&t=238s) And this makes our lives so much easier

[3:59](https://www.youtube.com/watch?v=U92J5mCDLMc&t=239s) because I literally don't have to leave

[4:00](https://www.youtube.com/watch?v=U92J5mCDLMc&t=240s) Slack for most of my work. We've

[4:02](https://www.youtube.com/watch?v=U92J5mCDLMc&t=242s) abstracted away all the development to

[4:04](https://www.youtube.com/watch?v=U92J5mCDLMc&t=244s) be based on evidence, videos, and I can

[4:07](https://www.youtube.com/watch?v=U92J5mCDLMc&t=247s) just send the proof that the fix is

[4:09](https://www.youtube.com/watch?v=U92J5mCDLMc&t=249s) ready right back to the customer without

[4:11](https://www.youtube.com/watch?v=U92J5mCDLMc&t=251s) having open IDE or even GitHub most of

[4:13](https://www.youtube.com/watch?v=U92J5mCDLMc&t=253s) the time.

[4:16](https://www.youtube.com/watch?v=U92J5mCDLMc&t=256s) So, this is kind of the end goal you

[4:17](https://www.youtube.com/watch?v=U92J5mCDLMc&t=257s) want to reach, which is a point where

[4:20](https://www.youtube.com/watch?v=U92J5mCDLMc&t=260s) you can do your entire development life

[4:21](https://www.youtube.com/watch?v=U92J5mCDLMc&t=261s) cycle without opening up an IDE or

[4:24](https://www.youtube.com/watch?v=U92J5mCDLMc&t=264s) without opening up a single coding

[4:25](https://www.youtube.com/watch?v=U92J5mCDLMc&t=265s) agent.

[4:28](https://www.youtube.com/watch?v=U92J5mCDLMc&t=268s) But to get to this point, there's a lot

[4:30](https://www.youtube.com/watch?v=U92J5mCDLMc&t=270s) of infrastructure we had to change

[4:33](https://www.youtube.com/watch?v=U92J5mCDLMc&t=273s) underneath. And so this is the hard part

[4:35](https://www.youtube.com/watch?v=U92J5mCDLMc&t=275s) that really every engineering team has

[4:36](https://www.youtube.com/watch?v=U92J5mCDLMc&t=276s) to do if they want to get to that point.

[4:38](https://www.youtube.com/watch?v=U92J5mCDLMc&t=278s) It's not just you purchase a coding

[4:39](https://www.youtube.com/watch?v=U92J5mCDLMc&t=279s) agent. You got to go change the way you

[4:40](https://www.youtube.com/watch?v=U92J5mCDLMc&t=280s) build. So before when we test our

[4:43](https://www.youtube.com/watch?v=U92J5mCDLMc&t=283s) applications, we'd be testing them

[4:44](https://www.youtube.com/watch?v=U92J5mCDLMc&t=284s) against cloud deployments. We'd have a

[4:46](https://www.youtube.com/watch?v=U92J5mCDLMc&t=286s) staging environment, connect to a

[4:47](https://www.youtube.com/watch?v=U92J5mCDLMc&t=287s) staging database, connect to live

[4:48](https://www.youtube.com/watch?v=U92J5mCDLMc&t=288s) servers, and then we'd have our

[4:50](https://www.youtube.com/watch?v=U92J5mCDLMc&t=290s) engineers manually go click through and

[4:52](https://www.youtube.com/watch?v=U92J5mCDLMc&t=292s) verify that the flows work end to end.

[4:54](https://www.youtube.com/watch?v=U92J5mCDLMc&t=294s) We did a big migration to move every

[4:57](https://www.youtube.com/watch?v=U92J5mCDLMc&t=297s) service to be able to run locally with

[4:59](https://www.youtube.com/watch?v=U92J5mCDLMc&t=299s) Docker Compose. We've made it so every

[5:01](https://www.youtube.com/watch?v=U92J5mCDLMc&t=301s) third party service we have mocked

[5:02](https://www.youtube.com/watch?v=U92J5mCDLMc&t=302s) versions to be able to run locally. And

[5:04](https://www.youtube.com/watch?v=U92J5mCDLMc&t=304s) these can all run inside a single

[5:07](https://www.youtube.com/watch?v=U92J5mCDLMc&t=307s) virtual machine that every Devon has

[5:09](https://www.youtube.com/watch?v=U92J5mCDLMc&t=309s) access to. And every coding agent in our

[5:11](https://www.youtube.com/watch?v=U92J5mCDLMc&t=311s) company now does not need to touch any

[5:13](https://www.youtube.com/watch?v=U92J5mCDLMc&t=313s) live services at all to test their

[5:15](https://www.youtube.com/watch?v=U92J5mCDLMc&t=315s) changes.

[5:17](https://www.youtube.com/watch?v=U92J5mCDLMc&t=317s) They in fact these VMs, we rebuild them

[5:20](https://www.youtube.com/watch?v=U92J5mCDLMc&t=320s) every hour at the company. Every hour we

[5:22](https://www.youtube.com/watch?v=U92J5mCDLMc&t=322s) pull the latest version of the code. We

[5:24](https://www.youtube.com/watch?v=U92J5mCDLMc&t=324s) rebuild the entire codebase from scratch

[5:26](https://www.youtube.com/watch?v=U92J5mCDLMc&t=326s) to be able to run very quickly and

[5:27](https://www.youtube.com/watch?v=U92J5mCDLMc&t=327s) easily from scratch. Um, and if these

[5:30](https://www.youtube.com/watch?v=U92J5mCDLMc&t=330s) builds ever fail because your codebase

[5:32](https://www.youtube.com/watch?v=U92J5mCDLMc&t=332s) is rapidly changing, uh, we also have

[5:34](https://www.youtube.com/watch?v=U92J5mCDLMc&t=334s) Devon be the first response there. And

[5:36](https://www.youtube.com/watch?v=U92J5mCDLMc&t=336s) they're always immediately fixing these

[5:38](https://www.youtube.com/watch?v=U92J5mCDLMc&t=338s) VM snapshots. So every time we spin up

[5:40](https://www.youtube.com/watch?v=U92J5mCDLMc&t=340s) an agent from Slack, it goes to a fresh

[5:42](https://www.youtube.com/watch?v=U92J5mCDLMc&t=342s) machine on a fresh version of the

[5:44](https://www.youtube.com/watch?v=U92J5mCDLMc&t=344s) codebase with the latest updates. Um,

[5:46](https://www.youtube.com/watch?v=U92J5mCDLMc&t=346s) and by the way, these agents, you need

[5:49](https://www.youtube.com/watch?v=U92J5mCDLMc&t=349s) to teach them how to test your codebase

[5:51](https://www.youtube.com/watch?v=U92J5mCDLMc&t=351s) as well. But the benefit of using cloud

[5:54](https://www.youtube.com/watch?v=U92J5mCDLMc&t=354s) coding agents is that they can

[5:55](https://www.youtube.com/watch?v=U92J5mCDLMc&t=355s) self-maintain their training loops. So

[5:57](https://www.youtube.com/watch?v=U92J5mCDLMc&t=357s) that last section there on testing,

[5:59](https://www.youtube.com/watch?v=U92J5mCDLMc&t=359s) Devon will write its own skills for how

[6:02](https://www.youtube.com/watch?v=U92J5mCDLMc&t=362s) to test our codebase. The codebase will

[6:04](https://www.youtube.com/watch?v=U92J5mCDLMc&t=364s) change over time. So the way you test it

[6:05](https://www.youtube.com/watch?v=U92J5mCDLMc&t=365s) will change, but Devon can keep on

[6:07](https://www.youtube.com/watch?v=U92J5mCDLMc&t=367s) updating these skills so that tests it

[6:08](https://www.youtube.com/watch?v=U92J5mCDLMc&t=368s) over and over again. So the end result

[6:11](https://www.youtube.com/watch?v=U92J5mCDLMc&t=371s) of this is literally people do not need

[6:13](https://www.youtube.com/watch?v=U92J5mCDLMc&t=373s) to open their laptops anymore to test

[6:14](https://www.youtube.com/watch?v=U92J5mCDLMc&t=374s) any code changes. In fact, several

[6:16](https://www.youtube.com/watch?v=U92J5mCDLMc&t=376s) engineers at Cognition have already

[6:17](https://www.youtube.com/watch?v=U92J5mCDLMc&t=377s) moved to using iPads for their

[6:19](https://www.youtube.com/watch?v=U92J5mCDLMc&t=379s) development process.

[6:21](https://www.youtube.com/watch?v=U92J5mCDLMc&t=381s) By the way, iPads are also more secure.

[6:23](https://www.youtube.com/watch?v=U92J5mCDLMc&t=383s) You know, a lot you've seen a lot of

[6:24](https://www.youtube.com/watch?v=U92J5mCDLMc&t=384s) these hacks recently. A lot of it is

[6:25](https://www.youtube.com/watch?v=U92J5mCDLMc&t=385s) because of DevOps and and people leaking

[6:28](https://www.youtube.com/watch?v=U92J5mCDLMc&t=388s) keys. Who knows what's on your developer

[6:29](https://www.youtube.com/watch?v=U92J5mCDLMc&t=389s) machine? You might have secrets all over

[6:31](https://www.youtube.com/watch?v=U92J5mCDLMc&t=391s) the place. Uh when everything is in the

[6:32](https://www.youtube.com/watch?v=U92J5mCDLMc&t=392s) cloud in these controlled VMs, you're

[6:34](https://www.youtube.com/watch?v=U92J5mCDLMc&t=394s) actually in a much more secure spot.

[6:37](https://www.youtube.com/watch?v=U92J5mCDLMc&t=397s) Um I've showed some basic versions of

[6:39](https://www.youtube.com/watch?v=U92J5mCDLMc&t=399s) things you can test. We've also tested

[6:40](https://www.youtube.com/watch?v=U92J5mCDLMc&t=400s) advanced multiplayer setups, which is

[6:42](https://www.youtube.com/watch?v=U92J5mCDLMc&t=402s) really cool. We've oftentimes when we

[6:44](https://www.youtube.com/watch?v=U92J5mCDLMc&t=404s) were developing Devon's ability to join

[6:46](https://www.youtube.com/watch?v=U92J5mCDLMc&t=406s) voice in Zoom calls, we actually had

[6:48](https://www.youtube.com/watch?v=U92J5mCDLMc&t=408s) Devon when it tests create multiple

[6:50](https://www.youtube.com/watch?v=U92J5mCDLMc&t=410s) accounts, have them join the same Zoom

[6:52](https://www.youtube.com/watch?v=U92J5mCDLMc&t=412s) call all from within their one VM and

[6:55](https://www.youtube.com/watch?v=U92J5mCDLMc&t=415s) send voice memos back and forth to make

[6:58](https://www.youtube.com/watch?v=U92J5mCDLMc&t=418s) sure that the functionality is working.

[7:00](https://www.youtube.com/watch?v=U92J5mCDLMc&t=420s) So you can do quite advanced setups if

[7:01](https://www.youtube.com/watch?v=U92J5mCDLMc&t=421s) you really push the limits of your

[7:02](https://www.youtube.com/watch?v=U92J5mCDLMc&t=422s) codebase.

[7:05](https://www.youtube.com/watch?v=U92J5mCDLMc&t=425s) Um, and actually on top of all this, you

[7:07](https://www.youtube.com/watch?v=U92J5mCDLMc&t=427s) know, you obviously want recursive

[7:08](https://www.youtube.com/watch?v=U92J5mCDLMc&t=428s) self-improvement. I think people think

[7:10](https://www.youtube.com/watch?v=U92J5mCDLMc&t=430s) about this from the model sense quite a

[7:12](https://www.youtube.com/watch?v=U92J5mCDLMc&t=432s) lot, but actually if you think about it,

[7:15](https://www.youtube.com/watch?v=U92J5mCDLMc&t=435s) every single line of code that's being

[7:17](https://www.youtube.com/watch?v=U92J5mCDLMc&t=437s) written, every single PR that's being

[7:19](https://www.youtube.com/watch?v=U92J5mCDLMc&t=439s) generated, every decision, if you have a

[7:21](https://www.youtube.com/watch?v=U92J5mCDLMc&t=441s) cloud agent set up, that's all tracked

[7:23](https://www.youtube.com/watch?v=U92J5mCDLMc&t=443s) across your entire codebase. So there's

[7:25](https://www.youtube.com/watch?v=U92J5mCDLMc&t=445s) no reason why you shouldn't also be able

[7:26](https://www.youtube.com/watch?v=U92J5mCDLMc&t=446s) to run agents on top of that, do the

[7:28](https://www.youtube.com/watch?v=U92J5mCDLMc&t=448s) data analysis, and figure out where are

[7:30](https://www.youtube.com/watch?v=U92J5mCDLMc&t=450s) we wasting time, where are we wasting

[7:32](https://www.youtube.com/watch?v=U92J5mCDLMc&t=452s) tokens, what, you know, things can be

[7:34](https://www.youtube.com/watch?v=U92J5mCDLMc&t=454s) turned into scripts, what tests can we

[7:35](https://www.youtube.com/watch?v=U92J5mCDLMc&t=455s) be adding to improve this process. And

[7:38](https://www.youtube.com/watch?v=U92J5mCDLMc&t=458s) so we have a channel where Devon every

[7:40](https://www.youtube.com/watch?v=U92J5mCDLMc&t=460s) day posts ideas about, hey, if we change

[7:43](https://www.youtube.com/watch?v=U92J5mCDLMc&t=463s) our node setup, we can say shave like a

[7:45](https://www.youtube.com/watch?v=U92J5mCDLMc&t=465s) minute off of our CI. If we change this

[7:47](https://www.youtube.com/watch?v=U92J5mCDLMc&t=467s) lint script, we can like catch 20% more

[7:50](https://www.youtube.com/watch?v=U92J5mCDLMc&t=470s) of these bugs before they ever hit AI

[7:52](https://www.youtube.com/watch?v=U92J5mCDLMc&t=472s) code review. Um, and this has actually

[7:54](https://www.youtube.com/watch?v=U92J5mCDLMc&t=474s) been a huge unlock where you can just

[7:55](https://www.youtube.com/watch?v=U92J5mCDLMc&t=475s) set up these systems and the agents will

[7:57](https://www.youtube.com/watch?v=U92J5mCDLMc&t=477s) go and optimize your software factory

[7:59](https://www.youtube.com/watch?v=U92J5mCDLMc&t=479s) for you. Um, this has been really

[8:01](https://www.youtube.com/watch?v=U92J5mCDLMc&t=481s) exciting.

[8:03](https://www.youtube.com/watch?v=U92J5mCDLMc&t=483s) One of the things that I don't hear

[8:05](https://www.youtube.com/watch?v=U92J5mCDLMc&t=485s) people talking about a lot, but I think

[8:07](https://www.youtube.com/watch?v=U92J5mCDLMc&t=487s) is really where things are going next is

[8:10](https://www.youtube.com/watch?v=U92J5mCDLMc&t=490s) moving from the world where you're

[8:11](https://www.youtube.com/watch?v=U92J5mCDLMc&t=491s) giving tasks to your agents to giving

[8:13](https://www.youtube.com/watch?v=U92J5mCDLMc&t=493s) jobs to your agents. And this is a bit

[8:16](https://www.youtube.com/watch?v=U92J5mCDLMc&t=496s) of a paradigm shift. You really have to

[8:17](https://www.youtube.com/watch?v=U92J5mCDLMc&t=497s) start treating these things like

[8:18](https://www.youtube.com/watch?v=U92J5mCDLMc&t=498s) co-workers. So what is giving a job to

[8:21](https://www.youtube.com/watch?v=U92J5mCDLMc&t=501s) an agent look like? Imagine I care about

[8:24](https://www.youtube.com/watch?v=U92J5mCDLMc&t=504s) back-end performance.

[8:26](https://www.youtube.com/watch?v=U92J5mCDLMc&t=506s) Really, this is what the development

[8:28](https://www.youtube.com/watch?v=U92J5mCDLMc&t=508s) flow of the feature should look like.

[8:29](https://www.youtube.com/watch?v=U92J5mCDLMc&t=509s) You should send to your agent, hey, I

[8:31](https://www.youtube.com/watch?v=U92J5mCDLMc&t=511s) want to improve P99 latency of my

[8:33](https://www.youtube.com/watch?v=U92J5mCDLMc&t=513s) application. Instead of you telling it

[8:35](https://www.youtube.com/watch?v=U92J5mCDLMc&t=515s) what to do to do that, it should say,

[8:37](https://www.youtube.com/watch?v=U92J5mCDLMc&t=517s) okay, P99 latency, let me add the

[8:39](https://www.youtube.com/watch?v=U92J5mCDLMc&t=519s) telemetry to figure out where our P99

[8:41](https://www.youtube.com/watch?v=U92J5mCDLMc&t=521s) latency is today. Let me set up alerts

[8:44](https://www.youtube.com/watch?v=U92J5mCDLMc&t=524s) so I can figure out where we need to be

[8:45](https://www.youtube.com/watch?v=U92J5mCDLMc&t=525s) in the future. Let me go break down

[8:47](https://www.youtube.com/watch?v=U92J5mCDLMc&t=527s) every single task we need to do to be

[8:50](https://www.youtube.com/watch?v=U92J5mCDLMc&t=530s) able to move this latency. Let me create

[8:52](https://www.youtube.com/watch?v=U92J5mCDLMc&t=532s) data dog alerts. Let me create weekly

[8:54](https://www.youtube.com/watch?v=U92J5mCDLMc&t=534s) reports in Slack. and let me send you

[8:55](https://www.youtube.com/watch?v=U92J5mCDLMc&t=535s) updates on your phone every day on

[8:57](https://www.youtube.com/watch?v=U92J5mCDLMc&t=537s) here's where P99 latency is and here's

[8:59](https://www.youtube.com/watch?v=U92J5mCDLMc&t=539s) how much it's improved.

[9:01](https://www.youtube.com/watch?v=U92J5mCDLMc&t=541s) This is fundamentally the type of

[9:03](https://www.youtube.com/watch?v=U92J5mCDLMc&t=543s) systems that we encourage all of our

[9:05](https://www.youtube.com/watch?v=U92J5mCDLMc&t=545s) engineers to be building a cognition. We

[9:07](https://www.youtube.com/watch?v=U92J5mCDLMc&t=547s) don't even we don't even want you to be

[9:08](https://www.youtube.com/watch?v=U92J5mCDLMc&t=548s) prompting your agents most of the time.

[9:09](https://www.youtube.com/watch?v=U92J5mCDLMc&t=549s) We want you to just be giving your agent

[9:11](https://www.youtube.com/watch?v=U92J5mCDLMc&t=551s) goals that they can work toward over

[9:13](https://www.youtube.com/watch?v=U92J5mCDLMc&t=553s) long durations of time. And anything in

[9:16](https://www.youtube.com/watch?v=U92J5mCDLMc&t=556s) your company that you think isn't

[9:17](https://www.youtube.com/watch?v=U92J5mCDLMc&t=557s) measurable, find a way to measure it.

[9:20](https://www.youtube.com/watch?v=U92J5mCDLMc&t=560s) You know, do you care about your

[9:21](https://www.youtube.com/watch?v=U92J5mCDLMc&t=561s) application performance? Go measure, you

[9:23](https://www.youtube.com/watch?v=U92J5mCDLMc&t=563s) know, the latency of clicks on your

[9:25](https://www.youtube.com/watch?v=U92J5mCDLMc&t=565s) application. If your application has a

[9:27](https://www.youtube.com/watch?v=U92J5mCDLMc&t=567s) lot of weird layout shifts, go measure

[9:28](https://www.youtube.com/watch?v=U92J5mCDLMc&t=568s) the bounding boxes and try to figure out

[9:30](https://www.youtube.com/watch?v=U92J5mCDLMc&t=570s) how you can minimize layout shifts

[9:31](https://www.youtube.com/watch?v=U92J5mCDLMc&t=571s) across your application. There's OCP9

[9:34](https://www.youtube.com/watch?v=U92J5mCDLMc&t=574s) latency, but there's also things like,

[9:35](https://www.youtube.com/watch?v=U92J5mCDLMc&t=575s) you know, onboarding retention.

[9:38](https://www.youtube.com/watch?v=U92J5mCDLMc&t=578s) How much of what you guys do as

[9:40](https://www.youtube.com/watch?v=U92J5mCDLMc&t=580s) engineers is things you can boil down to

[9:41](https://www.youtube.com/watch?v=U92J5mCDLMc&t=581s) a single number or metric. And I

[9:43](https://www.youtube.com/watch?v=U92J5mCDLMc&t=583s) encourage you that if you can do that,

[9:45](https://www.youtube.com/watch?v=U92J5mCDLMc&t=585s) you should just set up an agent to go

[9:46](https://www.youtube.com/watch?v=U92J5mCDLMc&t=586s) optimize that number 247.

[9:49](https://www.youtube.com/watch?v=U92J5mCDLMc&t=589s) So a great example of this is inference

[9:51](https://www.youtube.com/watch?v=U92J5mCDLMc&t=591s) latency. At Cognition, we're lucky to be

[9:54](https://www.youtube.com/watch?v=U92J5mCDLMc&t=594s) the first receivers of Nvidia's new

[9:56](https://www.youtube.com/watch?v=U92J5mCDLMc&t=596s) class of Vera Rubin GPUs.

[9:59](https://www.youtube.com/watch?v=U92J5mCDLMc&t=599s) Kernels were not built for these GPUs

[10:01](https://www.youtube.com/watch?v=U92J5mCDLMc&t=601s) when we received them. So we had to from

[10:03](https://www.youtube.com/watch?v=U92J5mCDLMc&t=603s) scratch figure out how do we build our

[10:05](https://www.youtube.com/watch?v=U92J5mCDLMc&t=605s) own inference stack on top of these this

[10:07](https://www.youtube.com/watch?v=U92J5mCDLMc&t=607s) new hardware that's coming out. And

[10:09](https://www.youtube.com/watch?v=U92J5mCDLMc&t=609s) agents have allowed us to do this in a

[10:11](https://www.youtube.com/watch?v=U92J5mCDLMc&t=611s) way that is much more efficient than

[10:12](https://www.youtube.com/watch?v=U92J5mCDLMc&t=612s) before. So we just tell it, hey, we care

[10:16](https://www.youtube.com/watch?v=U92J5mCDLMc&t=616s) about the throughput or TPM of these

[10:18](https://www.youtube.com/watch?v=U92J5mCDLMc&t=618s) GPUs. Go figure out how to push that to

[10:21](https://www.youtube.com/watch?v=U92J5mCDLMc&t=621s) its limits. And over the course of what

[10:23](https://www.youtube.com/watch?v=U92J5mCDLMc&t=623s) is about, I guess here like a week, um

[10:27](https://www.youtube.com/watch?v=U92J5mCDLMc&t=627s) the agent was able to go, we we

[10:29](https://www.youtube.com/watch?v=U92J5mCDLMc&t=629s) allocated it a permanent set of GPUs to

[10:31](https://www.youtube.com/watch?v=U92J5mCDLMc&t=631s) work on. It was able to go find

[10:33](https://www.youtube.com/watch?v=U92J5mCDLMc&t=633s) different strategies, test them. Uh the

[10:35](https://www.youtube.com/watch?v=U92J5mCDLMc&t=635s) strategies that it found worked best, it

[10:37](https://www.youtube.com/watch?v=U92J5mCDLMc&t=637s) would send to a human engineer for final

[10:39](https://www.youtube.com/watch?v=U92J5mCDLMc&t=639s) approval. But basically there's eight or

[10:41](https://www.youtube.com/watch?v=U92J5mCDLMc&t=641s) nine different things that were roughly

[10:44](https://www.youtube.com/watch?v=U92J5mCDLMc&t=644s) discovered via just giving these agents

[10:47](https://www.youtube.com/watch?v=U92J5mCDLMc&t=647s) these high level goals and we were able

[10:49](https://www.youtube.com/watch?v=U92J5mCDLMc&t=649s) to push uh the throughput on these new

[10:51](https://www.youtube.com/watch?v=U92J5mCDLMc&t=651s) inver GPUs from what was worse than the

[10:55](https://www.youtube.com/watch?v=U92J5mCDLMc&t=655s) new GB300s to what is now significantly

[10:57](https://www.youtube.com/watch?v=U92J5mCDLMc&t=657s) better than the previous class of GB300

[10:59](https://www.youtube.com/watch?v=U92J5mCDLMc&t=659s) GPUs. Um and again this is all done by

[11:02](https://www.youtube.com/watch?v=U92J5mCDLMc&t=662s) just giving a end goal to your agents.

[11:08](https://www.youtube.com/watch?v=U92J5mCDLMc&t=668s) Another example that I like to uh share

[11:10](https://www.youtube.com/watch?v=U92J5mCDLMc&t=670s) with folks, we we are a fairly small

[11:14](https://www.youtube.com/watch?v=U92J5mCDLMc&t=674s) engineering team. It means we do not

[11:16](https://www.youtube.com/watch?v=U92J5mCDLMc&t=676s) have oftentimes the bandwidth to fully

[11:18](https://www.youtube.com/watch?v=U92J5mCDLMc&t=678s) staff things that we might want to do

[11:19](https://www.youtube.com/watch?v=U92J5mCDLMc&t=679s) like an Android application.

[11:22](https://www.youtube.com/watch?v=U92J5mCDLMc&t=682s) But the other day, one of our engineers

[11:23](https://www.youtube.com/watch?v=U92J5mCDLMc&t=683s) on our team, Sam, he had this brilliant

[11:25](https://www.youtube.com/watch?v=U92J5mCDLMc&t=685s) idea is he said, "Okay, look, we have a

[11:28](https://www.youtube.com/watch?v=U92J5mCDLMc&t=688s) team of people working on building a

[11:29](https://www.youtube.com/watch?v=U92J5mCDLMc&t=689s) great iOS application. Can't we just use

[11:33](https://www.youtube.com/watch?v=U92J5mCDLMc&t=693s) that as a blueprint for our Android

[11:34](https://www.youtube.com/watch?v=U92J5mCDLMc&t=694s) application and tell Devon, hey, go

[11:37](https://www.youtube.com/watch?v=U92J5mCDLMc&t=697s) maintain parody with from our iOS

[11:39](https://www.youtube.com/watch?v=U92J5mCDLMc&t=699s) application to our Android application

[11:41](https://www.youtube.com/watch?v=U92J5mCDLMc&t=701s) end to end. And that is exactly what he

[11:44](https://www.youtube.com/watch?v=U92J5mCDLMc&t=704s) did. But it wasn't just, hey, one Devon

[11:47](https://www.youtube.com/watch?v=U92J5mCDLMc&t=707s) session to go do all this. He said, set

[11:50](https://www.youtube.com/watch?v=U92J5mCDLMc&t=710s) up permanent hooks against our codebase

[11:52](https://www.youtube.com/watch?v=U92J5mCDLMc&t=712s) to monitor the iOS application. uh you

[11:54](https://www.youtube.com/watch?v=U92J5mCDLMc&t=714s) know go listen to the Slack channels for

[11:57](https://www.youtube.com/watch?v=U92J5mCDLMc&t=717s) user feedback about our applications and

[12:00](https://www.youtube.com/watch?v=U92J5mCDLMc&t=720s) then go recursively improve our

[12:01](https://www.youtube.com/watch?v=U92J5mCDLMc&t=721s) application, go do live QA testing of

[12:04](https://www.youtube.com/watch?v=U92J5mCDLMc&t=724s) every detail and making sure it all

[12:06](https://www.youtube.com/watch?v=U92J5mCDLMc&t=726s) works. Um syncing these things live has

[12:09](https://www.youtube.com/watch?v=U92J5mCDLMc&t=729s) been really cool. Uh and I think the the

[12:11](https://www.youtube.com/watch?v=U92J5mCDLMc&t=731s) final results here are actually quite

[12:13](https://www.youtube.com/watch?v=U92J5mCDLMc&t=733s) sick.

[12:20](https://www.youtube.com/watch?v=U92J5mCDLMc&t=740s) So we really just gave our agent this

[12:22](https://www.youtube.com/watch?v=U92J5mCDLMc&t=742s) one highle prompt which is hey go manage

[12:25](https://www.youtube.com/watch?v=U92J5mCDLMc&t=745s) the entire Android application and over

[12:27](https://www.youtube.com/watch?v=U92J5mCDLMc&t=747s) the course of 44 days uh we have a

[12:29](https://www.youtube.com/watch?v=U92J5mCDLMc&t=749s) working application which we'll be

[12:30](https://www.youtube.com/watch?v=U92J5mCDLMc&t=750s) putting out soon but as a time lapse

[12:33](https://www.youtube.com/watch?v=U92J5mCDLMc&t=753s) most days there's not a single human

[12:36](https://www.youtube.com/watch?v=U92J5mCDLMc&t=756s) message going to this agent working on

[12:37](https://www.youtube.com/watch?v=U92J5mCDLMc&t=757s) it and on those days you know it's

[12:41](https://www.youtube.com/watch?v=U92J5mCDLMc&t=761s) merging upward of like 40 50 PRs a day

[12:45](https://www.youtube.com/watch?v=U92J5mCDLMc&t=765s) all of this is being live QA tested

[12:47](https://www.youtube.com/watch?v=U92J5mCDLMc&t=767s) against the iOS application pixel for

[12:49](https://www.youtube.com/watch?v=U92J5mCDLMc&t=769s) pixel uh testing whether you know

[12:52](https://www.youtube.com/watch?v=U92J5mCDLMc&t=772s) escalating only the most important

[12:53](https://www.youtube.com/watch?v=U92J5mCDLMc&t=773s) decisions to a human at the end of the

[12:55](https://www.youtube.com/watch?v=U92J5mCDLMc&t=775s) day

[12:58](https://www.youtube.com/watch?v=U92J5mCDLMc&t=778s) and most of the time our engineers don't

[12:59](https://www.youtube.com/watch?v=U92J5mCDLMc&t=779s) even need to look open devon they're

[13:00](https://www.youtube.com/watch?v=U92J5mCDLMc&t=780s) just from Slack looking at the

[13:02](https://www.youtube.com/watch?v=U92J5mCDLMc&t=782s) recordings that it sends back to them

[13:09](https://www.youtube.com/watch?v=U92J5mCDLMc&t=789s) so in the end the human is barely doing

[13:11](https://www.youtube.com/watch?v=U92J5mCDLMc&t=791s) anything in this loop this is how many

[13:13](https://www.youtube.com/watch?v=U92J5mCDLMc&t=793s) messages a human actually had to send to

[13:15](https://www.youtube.com/watch?v=U92J5mCDLMc&t=795s) our agent in this entire process.

[13:19](https://www.youtube.com/watch?v=U92J5mCDLMc&t=799s) Um, yeah, and it's not a slop it's not a

[13:21](https://www.youtube.com/watch?v=U92J5mCDLMc&t=801s) slop application. Uh, this is actually

[13:23](https://www.youtube.com/watch?v=U92J5mCDLMc&t=803s) something that we will be going live

[13:25](https://www.youtube.com/watch?v=U92J5mCDLMc&t=805s) with very soon.

[13:31](https://www.youtube.com/watch?v=U92J5mCDLMc&t=811s) So, cool. Uh, that's actually all I had.

[13:33](https://www.youtube.com/watch?v=U92J5mCDLMc&t=813s) Um, I think the end message from all of

[13:36](https://www.youtube.com/watch?v=U92J5mCDLMc&t=816s) this is if you set up the loops for

[13:38](https://www.youtube.com/watch?v=U92J5mCDLMc&t=818s) agents correctly, you can do some pretty

[13:40](https://www.youtube.com/watch?v=U92J5mCDLMc&t=820s) incredible stuff. So I think really most

[13:43](https://www.youtube.com/watch?v=U92J5mCDLMc&t=823s) teams are limited by the amount of

[13:45](https://www.youtube.com/watch?v=U92J5mCDLMc&t=825s) ambition they have. So it's time to be

[13:46](https://www.youtube.com/watch?v=U92J5mCDLMc&t=826s) ambitious. Thank you.
