Cognition is an applied AI lab that develops Devin, which it describes as an autonomous software engineer, along with other agents and tools intended to expand human capacity. Devin plans, writes, tests, and ships production code inside a user's codebase and existing team tools. The company describes an engineering process built around small pods with vertical ownership, self-driving pull requests, local service environments for agent testing, frequently rebuilt virtual machines, and assigning agents complete jobs rather than isolated tasks.
Datadog is a cloud monitoring and observability platform for collecting and analyzing metrics, traces, logs, and related data across infrastructure, applications, networks, containers, databases, and cloud environments. It provides infrastructure monitoring, application performance monitoring, log management, dashboards, alerting, incident management, security monitoring, synthetic monitoring, and user-experience monitoring. The platform is used to identify broken or correlated systems and investigate operational issues, although the video notes that observability alone does not necessarily establish root cause. Datadog also offers AI features, including investigation, remediation, agent observability, and an MCP server.
An AI software engineering agent developed by Cognition that runs isolated cloud coding sessions, writes and modifies code, and can test applications through a browser. Devin is designed as an end-to-end software-development environment for planning and implementing coding tasks. Vals evaluated it internally and increased its adoption after finding it to be token-efficient.
Linear is a project management and issue-tracking platform developed by Linear, Inc., designed for planning and building software products. It provides issue tracking, roadmaps, workflows and integrations with developer tools, and includes AI-assisted features to support planning and task management.
Zoom is a communications platform developed by Zoom Video Communications, Inc. that provides video conferencing, chat, VoIP phone, webinars, whiteboard, contact center and virtual events for businesses and individuals. Founded in 2011 and headquartered in San Jose, California, it is widely used for remote meetings and collaboration.
Searchable transcript of 40x More Merged PRs With 2.7x the Engineers — Walden Yan, Cognition — AI Engineer (14:08). Search for a phrase, then click its timestamp to jump straight to that moment in the video.
Captions sourced from the original video on YouTube, published by AI Engineer. The video, its captions and all related intellectual property remain the property of their respective owners; AINotes claims no ownership. Provided for research, accessibility and search — see the Transcript Notice and Copyright Policy.
00:12 Hello everyone. Um it's a pleasure to be here today. Quick introduction. I'm Walden. I'm one of the co-founders and chief product officer at Cognition. We build a AI product called Devin. I want to spend most of my time here today though kind of abstracting a bit away from that and and focusing on what are we doing internally as an engineering team to move way faster.
00:34 And so the backdrop I would put for all this is this is what our merged PR throughput looks like at Cognition. The start of this is around 12 months ago. So you're looking at about a snapshot of a year. And over this last year, this blue chart here, this 40x is a 40x in the number of merged PRs we are producing on our engineering team. Now you might also notice there's a small black line along the bottom there.
01:01 It's easy to miss, but that 2.7x that is our engineering head count growth in the same period. So we have been hiring engineers, but each of our engineers is now more than 10x more productive than they were before. And I would dare to say that these PRs are just as high quality, if not higher quality than they were a year ago. And so really the crux of what I want to talk about today is what did we do to unlock this 40x engineering throughput?
01:29 And there's a lot of things we did from both the code base to the way we structure engineering teams that I think are very practical steps you can take if you want to reproduce the same results. Many of you are probably familiar with the software factory. How many of you guys have heard of software factory? Let's see a raise of hands. Cool. So I'll start with the basics and then I'll work my way up to the more advanced stuff.
01:51 The basic idea of a software factory is yeah, by default everything should be self-driving. We have PRs that go from initial bug report to final merge and monitoring and maintenance without a single human involved. Often time, human judgment is needed, though, and that's where we have escalations. But by default, our entire development process is just run by Devon from end to end.
02:14 One of the things this means is that the role of the software engineer has to change quite a bit. Around March of this year, we had this conversation with the engineering team and we said, look, 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 cuz anything that is described and can be implemented will be able to send to Devon.
02:39 So really, everyone has to change the way that they're developing. And the way we've enforced this is we've taken our larger teams and we've broken them up into smaller pods. And these smaller pods not only are given swarms of agents to do work for them, they are given more vertical responsibility. So instead, you might have only two or three engineers on a team at a time, but they're responsible for everything beyond the engineering as well.
03:02 They're responsible for listening to customer bug reports. They're responsible for doing QA testing. They're responsible for doing the PMing and product management and basically every engineer manages their entire own linear board of things to do and they send that to an agent to implement for them. So it's really a fundamental change in the way that our engineers do work.
03:21 This has been one of the things that we've implemented over the last year and we've been helping a lot of large organizations implement for themselves as well. Another thing I'd really like to highlight is we work from Slack everywhere. So this is an example of what a customer bug report might look like. They send me a video on Slack and we just forward bug reports straight into our internal channel and we tag Devon and say, hey, please fix this.
03:49 Devon immediately comes up, shows up a PR, but then also sends back a video with the fix and proof. And this makes our lives so much easier because I literally don't have to leave Slack for most of my We've abstracted away all the development to be based on evidence, videos, and just send the proof that the fix is ready right back to the customer without having to open an IDE or even GitHub most of the time.
04:16 So this is kind of 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. But to get to this point, there was a lot of infrastructure we had to change underneath. And so this is the hard part that really every engineering team has to do if they want to get to that point.
04:37 It's not just you purchase a coding agent, you got to go change the way you build. So before when we tested our applications, we'd be testing them against cloud deployments. We'd have a staging environment, connect to a staging database, connect to live servers, and then we'd have our engineers manually go click through and verify that the flows work end to end.
04:54 We did a big migration to move every service to be able to run locally with Docker Compose. We've made it so every third-party service we have mocked versions to be able to run locally. And these could all run inside a single virtual machine that every dev in has access to. And every coding agent in our company now does not need to touch any live services at all to test their changes.
05:17 They In fact, these VMs, we rebuild them every hour at the company. Every hour we pull the latest version of the code, we rebuild the entire codebase from scratch to be able to run very quickly and easily from scratch. Um and if these builds ever fail because your codebase is rapidly changing, uh we also have dev in be the first response there. And they're always immediately fixing these VM snapshots.
05:39 So every time we spin up an agent from Slack, it goes to a fresh machine on a fresh version of the codebase with the latest updates. Um and by the way, these agents you need to teach them how to test your codebase as well. But the benefit of using cloud coding agents is that they can self-maintain their training loops. So that last section there on testing, dev in will write its own skills for how to test our codebase.
06:03 The codebase will change over time, so the way you test it will change, but Devon can keep on updating these skills so that test it over and over again. So the end result of this is literally people do not need to open their laptops anymore to test any code changes. In fact, several engineers at Cognition have already moved to using iPads for their development process.
06:21 By the way, iPads are also more secure. You know, a lot of you see a lot of these hacks recently, a lot of it is because of DevOps and and people leaking keys. Who knows what's on your developer machine? You might have secrets all over the place. Uh when everything is in the cloud with in these controlled VMs, you're actually in a much more secure spot.
06:37 Um I've shown some basic versions of things you can test. We've also tested advanced multiplayer setups, which is really cool. We've often times when we were developing Devon's ability to join voice and Zoom calls, we actually had Devon when it tests create multiple accounts, have them join the same Zoom call all from within their one VM and send voice memos back and forth to make sure that the functionality is working.
07:00 So you can do quite advanced setups if you really push the limits of your code base. Um and it actually on top of all of this, you know, you obviously want recursive self-improvement. I think people think about this from the model sense quite a lot. But actually, if you think about it, every single line of code that's being written, every single PR that's being generated, every decision, if you have a cloud agent setup, that's all tracked across your entire code base.
07:23 So there's no reason why you shouldn't also be able to run agents on top of that, do the data analysis and figure out where are we wasting time, where are we wasting tokens, what you know, things can be turned into scripts, what tests can we be adding to improve this process. And so we have a channel where Devon every day posts ideas about, hey, if we change our node setup, we can shave like a minute off of our CI.
07:45 If we change this lint script, we can like catch 20% more of these bugs before they ever hit AI code review. Um and this is actually been a huge unlock and where you can just set up these systems and the agents will go and optimize your software factory for you. Um this has been really exciting. One of the things that I don't hear people talking about a lot, but I think it's really where things are going next is moving from the world where you're giving tasks to your agents to giving jobs to your agents.
08:15 And this is a bit of a paradigm shift. You you really have to start treating these things like co-workers. So what is giving a job to an agent look like? Imagine I care about back-end performance. Really this is what the development flow of the future should look like. You should send to your agent, hey, I want to improve P99 latency of my application.
08:34 Instead of you telling it what to do to do that, it should say, okay, P99 latency, let me add the telemetry to figure out where our P99 latency is today. Let me set up alerts so I can figure out where we need to be in the future. Let me go break down every single task we need to do to be able to move this latency. Let me create DataDog alerts. Let me create weekly reports in Slack and let me send you updates on your phone every day on here's where a P99 latency is and here's how much it's improved.
09:01 This is fundamentally the type of systems that we encourage all of our engineers to be building at Cognition. We don't even 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. And anything in your company that you think isn't measurable, find a way to measure it.
09:20 You know, do you care about your application performance? Go measure, you know, the latency of clicks on your application. If your application has a lot of weird layout shifts, go measure the bounding boxes and try to figure out how you can minimize layout shifts across your application. There's obviously P9 9 latency, but there's also things like, you know, onboarding retention.
09:38 How much of what you guys do as engineers is things you can boil down to a single number or metric? And I encourage you that if you can do that, you should just set up an agent to go optimize that number 24/7. So a great example of this is inference latency. At Cognition, we're lucky to be the first receivers of Nvidia's new class of Vera Rubin GPUs.
09:59 Kernels were not built for these GPUs when we received them. So we had to from scratch figure out how do we build our own inference stack on top of this this new hardware that's coming out. And agents have allowed us to do this in a way that is much more efficient than before. So, we just tell it, hey, we care about the throughput, our TPM of these GPUs.
10:19 Go figure out how to push that to its limits. And over the course of what is about, I guess here like a week, um the agent was able to go We We allocated it a permanent set of GPUs to work on. It was able to go find different strategies, test them. Uh the strategies that it found worked best it was sent to a human engineer for final approval. But basically, there's eight or nine different things that were roughly discovered via just giving these agents these high-level goals.
10:48 And we were able to push uh the throughput on these new Ruben GPUs from what was worse than the new GB 300s to what is now significantly better than the previous class of GB 300 GPUs. Um and again, this is all done by just giving a end goal to your agents. Another example that I like to uh share with folks. We We are a fairly small engineering team.
11:15 It means we do not have often times the bandwidth to fully staff things that we might want to do like an Android application. But the other day, one of our engineers on our team, Samuel, he had this brilliant idea. Is He said, okay, look, we have a team of people working on building a great iOS application. Can't we just use that as a blueprint for our Android application and tell Devin, hey, go maintain parity with from our iOS application to our Android application end-to-end.
11:43 And that is exactly what he did. But it wasn't just, hey, one Devin session to go do all this. He said, set up permanent hooks against our codebase to monitor the iOS application. Uh you know, go listen to the Slack channels for user feedback about our applications. And then go recursively improve our application. Go do live QA testing of every detail and making sure it all works.
12:05 Um sinking these things live has been really cool. Uh and I think the the final results here are actually quite sick. So we really just gave our agent this one high-level prompt, which is, hey, go manage the entire Android application. Um and over the course of 44 days, uh we have a working application which we'll be putting out soon. But as a time lapse, most days there's not a single human message going to this agent working on it.
12:39 And on those days, you know, it's merging upward of like 40 50 PRs a day. All of this is being live QA tested against the iOS application, pixel for pixel, uh testing whether, you know, escalating only the most important decisions to a human at the end of the day. And most of the time, our engineers don't even need to look open dev and they're just from Slack looking at the recordings that it sends back to them.
13:09 So in the end, the human is barely doing anything in this loop. This is how many messages the human actually had to send to our agent in this entire process. Um yeah, and it's not a it's not a slop application. Uh this is actually something that we will be going live with very soon. So cool. Uh that's actually all I had. Um I think the end message from all of this is if you set up the loops for your agents correctly, you can do some pretty incredible stuff.
13:40 So I think really most teams are limited by the amount of ambition they have. So it's time to be ambitious. Thank you.