Hello, everyone.
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 product called Devon. I want to spend most of my time here today, though, abstracting a bit away from that and focusing on what are we doing internally as an engineering team to move way faster. And so the backdrop I would put for all of 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. It's easy to miss. But that 2.7x, that is our engineering headcount 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?
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. The basic idea of a software factory is, 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.
Oftentimes, human judgment is needed, though. And that's where we have escalations. But by default, our entire software development process is just run by Devon from end to end. 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. Because anything that is described and can be implemented will be able to send to Devon.
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 the 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. 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. 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.
Devon immediately comes up, shows up at 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 work. We've abstracted away all the development to be based on evidence, videos. And I can 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. So 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.
But to get to this point, there's 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. It's not just you purchase a coding agent. You've got to go change the way you build. So before, when we test 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. 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 can all run inside a single virtual machine that every Devon 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. 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 code base from scratch, should be able to run very quickly and easily from scratch. If these builds ever fail because your code base is rapidly changing, we also have Devon be the first response there.
And they're always immediately fixing these VM snapshots. So every time we spin up an agent from Slack, it goes to a fresh machine on a fresh version of the code base with the latest updates. And these agents, you need to teach them how to test your code base 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, Devon will write its own skills for how to test our code base. The code base will change over time, so the way you test it will change. But Devon can keep on updating these skills so that it tests 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 the development process. iPads are also more secure. You see a lot of these hacks recently. A lot of it is because of DevOps and people leaking keys. Who knows what's on your developer machine? You might have secrets all over the place. When everything is in the cloud in these controlled VMs, you're actually in a much more secure spot. I've showed some basic versions of things you can test. We've also tested advanced multiplayer setups, which is really cool.
We've often, when we were developing Devon's ability to join voice in 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. So you can do quite advanced setups if you really push the limits of your code base. And actually, on top of all this, 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. 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 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 a minute off of our CI.
If we change this Lint script, we can catch 20% more of these bugs before they ever hit AI code review. And this has actually been a huge unlock, where you can just set up these systems, and the agents will go and optimize your software factory for you. This has been really exciting. One of the things that I don't hear people talking about a lot, but I think is 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.
And this is a bit of a paradigm shift. You really have to start treating these things like coworkers. So what does 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. Instead of you telling it what to do to do that, it should say, OK, 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 our P99 latency is, and here's how much it's improved. This is fundamentally the type of systems that we encourage all of our engineers to be building at Cognition. 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. Do you care about your application performance? Go measure 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 P99 latency, but there's also things like onboarding retention. 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 Hopper GPUs. 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 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. Go figure out how to push that to its limits. And over the course of what is about a week, the agent was able to go. We allocated it a permanent set of GPUs to work on. It was able to go find different strategies, test them. 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. And we were able to push the throughput on these new Hopper GPUs from what was worse than the GB300s to what is now significantly better than the previous class of GB300 GPUs. And again, this is all done by just giving an end goal to your agents. Another example that I like to share with folks, we are a fairly small engineering team. It means we do not have, oftentimes, 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. He said, OK, 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 Devon, hey, go maintain parity from our iOS application to our Android application end-to-end? And that is exactly what he did. But it wasn't just one Devon session to go do all this. He said, set up permanent hooks against our code base to monitor the iOS application. 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. Syncing these things live has been really cool. And I think the final results here are actually quite good. So we really just gave our agent this one high-level prompt, which is, hey, go manage the entire Android application. And over the course of 44 days, 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.
And on those days, 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, testing whether it's 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 open Devon. They're just from Slack looking at the recordings that it sends back to them. So in the end, the human is barely doing anything in this loop. This is how many messages a human actually had to send to our agent in this entire process. And it's not a slop application. This is actually something that we will be going live with very soon. So, cool.
That's actually all I had. I think the end message from all of this is if you set up the loop for your agents correctly, you can do some pretty incredible stuff. So I think really most teams are limited by the amount of ambition they have. So it's time to be ambitious. Thank you. 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. 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 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 a minute off of our CI. If we change this Lint script, we can catch 20% more of these bugs before they ever hit AI code review. And this has actually been a huge unlock, where you can just set up these systems, and the agents will go and optimize your software factory for you. This has been really exciting. One of the things that I don't hear people talking about a lot, but I think is 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.
And this is a bit of a paradigm shift. You really have to start treating these things like coworkers. So what does 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. Instead of you telling it what to do to do that, it should say, OK, 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 our P99 latency is, and here's how much it's improved. This is fundamentally the type of systems that we encourage all of our engineers to be building at Cognition. 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. Do you care about your application performance? Go measure 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 P99 latency, but there's also things like onboarding retention. 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 Verorubin GPUs. 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 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. Go figure out how to push that to its limits. And over the course of what is about, I guess, here, like a week, the agent was able to go. We allocated it a permanent set of GPUs to work on. It was able to go find different strategies, test them. 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. And we were able to push the throughput on these new and Verorubin GPUs from what was worse than the new GB300s to what is now significantly better than the previous class of GB300 GPUs. And again, this is all done by just giving a end goal to your agents.
Another example that I like to share with folks, we are a fairly small engineering team. It means we do not have, oftentimes, 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. He said, OK, 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 from our iOS application to our Android application end-to-end? 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 code base to monitor the iOS application. 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. Syncing these things live has been really cool. And I think 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. And over the course of 44 days, 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. 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, 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 open Devon.
They're just from Slack looking at the recordings that it sends back to them.
So in the end, the human is barely doing anything in this loop. This is how many messages a human actually had to send to our agent in this entire process. Yeah. And it's not a slop application. This is actually something that we will be going live with very soon.
So, cool. That's actually all I had. I think the end message from all of this is if you set up the loop for your agents correctly, you can do some pretty incredible stuff. So I think really most teams are limited by the amount of ambition they have. So it's time to be ambitious. Thank you.
Amazing. Amazing.
Amazing. Amazing Amazing Amazing Amazing Amazing Amazing Amazing Amazing ! Amazing Amazing Amazing Thank you.