Agentic SDLC at Uber — Uday Kiran Medisetty & Adam Huda, Uber https://www.youtube.com/watch?v=17-YSUHo6Lk AI Engineer · 18 min · 219 sentences · sentence-level transcript from YouTube's caption track; each line begins at the time shown [00:01] [music] [00:12] Hey uh let's get started. [00:13] Uh good morning everyone. [00:15] I'm Udai. [00:16] I'm here with my colleague Adam. [00:17] We'll talk about our journey towards manage software factory. [00:21] And in the beginning in the first part of the talk I'll talk about the key building blocks that we are investing in. [00:26] And later Adam's going to talk about how we take all of these blocks to build an end to-end cohesive solution for our engineers. [00:33] To set some context, we have few thousand engineers across 12 global tech sites. [00:38] Over the last year, all of the investments we made in agentic AI have led to more than 70% of our PRs now either by local or cloud agents. [00:49] And all of this led to twice the number of lines of code per engineer year-over-year. [00:54] And this extends way beyond coding and we see it in every aspect of the engineering life cycle today. [01:00] And we are also accelerating toil at a toil reduction at a massive pace. [01:04] We handled more than 250 automated migrations 9 million lines of code automatically for our engineers. [01:12] And before even the building blocks um you know one all the investments we made over the last six years on moving to monor repos moving to basil all of that also laid a really solid foundation for us to accelerate this. [01:26] So the first I'll cover all of these six building blocks and Adam's going to talk about a specific example and show how that feature can be built end to end [01:37] uh with all of these and all of these are in various stages of maturity and rollout within Uber. [01:42] But we want to give everyone a sneak peek of what we are up to. [01:46] So let's go to the building blocks the six building blocks one by one. [01:49] The first one is model gateway. [01:52] This is one of our earlier investments. [01:54] The three things that we wanted to en ensure was no PII ever leaves our parimeter to any of the vendor by default and any guardrail that we add here the latency of that is strictly bounded [02:07] and every request that goes through this whether it's uh and we need to be able to attribute per user per project and per team. [02:15] So [02:15] [snorts] [02:15] we have a model gateway. [02:16] We made sure all of our internal use cases, our coding hardnesses, our external use cases, they all go through one single OpenAI anthropic compatible endpoint. [02:25] It goes through a series of middleares. [02:27] The first one is identity and authentication using Spire. [02:31] Uh we have a data anonymizer that redacts 20 plus PII types. [02:36] We have a AI guard that has five specialized models that handles various parts of safety and policy that we want to ensure. [02:43] And all of that runs under 100 milliseconds. [02:46] We also are investing in all kinds of caching and token optimization strategies at this layer. [02:52] And every request that goes through this, we are able to attribute to a specific project in our catalog. [02:58] And we can attribute per caller, per user, per team both in real time but also in our data lake. [03:05] This enables us to create all kinds of spend years and guardrails in a holistic way across our portfolio. [03:12] We also use this layer for capturing audit log session traces which are then plugged into our benchmarking and all kinds of self-improvement loop efforts. [03:23] And for an engineer at Uber, you take the vanilla client, you set the project ID and we and we take care of everything else. [03:30] Today we have 800 plus projects internally going through this cumulatively handling more than 100 million model requests per day. [03:38] This includes both the frontier models and also open source models whether that is hosted in our infrastructure or some of our vendors. [03:46] The next is how do we provide tools to all of these models. [03:50] Last year when we started on this journey we had thousands of internal APIs but none of them are agent accessible out of the box and we had so many other SAS tools and each one of them have different way to authenticate [04:03] different way to set up which is a lot of hassle for for everyone and once you end up with enough MCPs they'll all add up to and and have a massive token tax [04:14] similar to model gateway we have an MCP gateway that handles whole bunch of middleares for for engineers And we have an automated crawler that looks at our internal APIs [04:23] and projects all of these into MCPS with one single config change. [04:29] And we do the same thing even for our SAS MCPS whether it's Google, Slack, Jira, all of this, they go through the MCP gateway. [04:36] We h we host them, we do the token exchange. [04:39] So for all the engineers, they go through one single entry point, one common way to install any MCPS. [04:44] This simplified a lot for all of our engineers and employees. [04:49] And then the whole bunch of token optimization strategies. [04:52] We initially had direct MCP pattern. [04:55] Earlier this year we created Omni MCP which is one single MCP that you install which can discover and invoke any MCPS within the gateway. [05:05] And couple of months ago we projected all of these MCPS into CLI pattern so that even the response doesn't eat up in your context. [05:12] And of late we also have a code mode skill which is autoinstalled which on the fly creates Python scripts to hyper optimize some of the top MCP token consumer consuming use cases [05:27] and all of this led to like now we have thousand plus MCP tools and uh just with these optimization efforts we've saved more than 40% fleetwide savings. [05:41] So once we have the models and the tools, we need a place to run all of this. [05:46] For many years we had devpod which is our cloud remote environments. [05:50] We we we had this because we had like large mono repos with millions of lines of code and this is how engineers work at Uber. [05:57] And now we took what we had with devots and we agentified that. [06:02] Now we need some environment for agents to run for longer period of time. [06:06] They need to be quick. [06:07] They need to be isolated. [06:09] We can install any number of them and they need to be globally available across all of our sites. [06:15] So we have a pre-provisioned Kubernetes balloon pods. [06:18] When an agent requires a new environment to run, it can take one of that which is already pre-provisioned. [06:24] It has all of the repositories already snapshotted. [06:26] The search index is already built. [06:28] So the agents can start working within a matter of seconds. [06:32] The next thing we noticed is the the the roles of engineers are getting blurred. [06:37] We used to offer a dev port per language flavor for Go, Java, Android and so on. [06:44] Now we need agents to work across repositories and engineers also to work across repositories. [06:49] So we have a mega dev port that has all of the repositories in one one common place and this is what we use for our autonomous coding agents now. [06:57] And even for our non-engineer employees, we are providing a simple way for them to get started with any of the agent harnesses in matter of seconds. [07:09] Then now we get to knowledge part of it and we jumped on this bandwagon earlier this year. [07:14] Uh we started noticing engineers building tons of skills across many repositories. [07:19] Um one three problems we noticed was there's a lot of duplication same skill being built by different engineers in different discovery and configuration was a huge hassle and a lot of skills were of superpar quality. [07:33] So what we built an entire life cycle around skills. [07:35] So we have core core skills and domain specific skills. [07:39] All of that go into a managed skills marketplace. [07:42] We have 2,500 skills there right now. [07:45] Um and it goes through a whole bunch of lint checks, automated reviews which ensures a baseline skill quality for any skills that we have. [07:54] And we also simplified the installation and discovery. [07:57] So there is one single command to discover and install any plug-in in our ecosystem. [08:02] And based on the engineer personas, we even autoinstall some of the default skills. [08:07] So the agents automatically can pick up the right skill. [08:09] You don't even have to even install them. [08:13] And of late, we started working on collecting traces and comments and capturing continuous evals so that we can go give feedback back to the skill authors for skill improvements. [08:24] And this is an area of big investment for us right now. [08:27] and we have 2,500 skills and cumulatively more than 20,000 skill executions per day across our fleet. [08:37] The next piece of knowledge is context graphs. [08:40] Uh we we started noticing in our execution traces agents spending lot of time even trying to find basic context especially in our large monor repos. [08:48] You need to identify where the service is located, what are the dependencies, um who owns it, what kind of patterns I need to follow. [08:56] And all of this context is gathered across scattered systems across Uber. [09:00] There's 20 to 30 different systems. [09:02] Each needs its own skill skills, its own MCP to gather the context. [09:07] And this burns tokens. [09:09] This adds a lot of latency and it creates more unpredictable outcomes. [09:15] So we have one context graph. [09:17] We took all of the information of how Uber runs into one context graph. [09:21] This has 150 unique node and edge types. [09:24] We have 40 million entries there right now. [09:26] It captures all the way from how our mobile apps are built to our back end to our data lake. [09:32] All the design docs, Jira, incident bugs, everything is connected and this enables agents to quickly find the right context within our ecosystem. [09:41] We are now plugging all of our skills and use cases into the graph whether it's our on call RCAs whe it's a planning or data analysis or security scans [09:50] and we see across all of this they we are improving uh the skills by a lot and I'm just showing a very simple example of asking a simple question of how many mobility trips in India are are cash this needs to understand the concepts of each of these which tables what kind of cities you need to create [10:07] for this SQL with and without graph we see massive improvement in tokens, turns and latency and we see that across any earlier val that we did within our infrastructure [10:19] and the last thing is how do we package all of this for everyone in the company to use. [10:23] So we have uh our AI assistant called Cortana. [10:26] All of the things that I mentioned so far, whether it's skills, MCPS and context graph, they're all plugged into that in every surface possible whether it's on Slack, CLI, web. [10:37] So anyone in the company, they can ask a simple question. [10:40] It can look up the context graph, invoke any skill, check any code, check any code in any codebase and give an answer across any of these surfaces. [10:49] And now we started allowing employees to even personalize that. [10:53] You can hook up your custom skills, custom prompt and hook it up into your team Slack channel so that it it knows all of the things about that team and works like a the [11:04] that teammate. [11:07] And this this is a simple example of how you can invoke the same question before in Slack. [11:11] Um and all of the employ more like one or more people can even collaborate on the same Slack channel. [11:19] And we have the just in the last one month 300 unique personas created and more than 20,000 sessions per day. [11:25] I'll now pass on to Adam who'll talk about how we take all of this and build uh take and ship a feature end to end. [11:34] All right. [11:34] Thank you, Ud. [11:35] All right. [11:35] And as Ud said, we've got those building blocks. [11:38] We're going to use those to power our software factory. [11:40] So, we're going to take a feature here and show it going end to end through this. [11:46] All right. [11:46] First up, right, we need to have an idea, right? [11:48] A good idea probably for this moment would be something around the World Cup, right? [11:52] Would it be awesome if you were a writer and you were leaving a busy stadium if there was a better pickup location to get you away from the crowd? [11:59] So, that's the idea, right? [12:01] We have our idea. [12:02] We're jamming on it in Slack here. [12:04] Let's tag in Cortana, right? [12:06] That's our AI assistant to help us with that idea. [12:08] Cortana with that context graph can help us determine whether this is a good business opportunity to go after. [12:14] So, we can go here from Slack and now open Cortana into a web interface. [12:20] And you'll see an example here of what that business research could look like, right? [12:25] What other largecale venue events have happened before? [12:28] What are some stadiums that would make sense here? [12:31] From there, we start to think about the product requirements, right? [12:33] This should be probably just a North America rollout since that's where the stadiums are. [12:37] We can even then bring in Cortana to help us think about uh the Figma designs. [12:42] We can create some initial mock-ups, right? [12:44] Do two variants here. [12:45] We want to run an experiment A and B. So the the button strings here are different between the two. [12:50] So we'll test those two variants and see which one performs better. [12:54] Now we'll start to think a little bit about the design and Cortana 2 can help us think about what code changes we need to happen, right? [13:00] What can we leverage that's in the app already? [13:02] what screens and what can we leverage on the back end. [13:05] Right? [13:05] So this process before could take a long time. [13:08] It could take weeks to get everyone aligned. [13:10] Now we can compress this into a very short amount of time now. [13:13] Right? [13:14] And get to a prototype here very quickly. [13:17] All right. [13:17] So now we got to go build this. [13:19] So we we hand off from that Cortana agent to what we have at Uber. [13:22] We have a Minion agent. [13:24] It's a Uber's cloud coding agent solution. [13:28] All right. [13:28] So you can use Minion in an interactive mode or you can run it in an autonomous mode as well. [13:32] So I'm going to show you what this looks like. [13:34] Um UD mentioned the dev pod building block. [13:37] So this is powered by that dev pod. [13:39] So it's got a full build environment and it can work across repos. [13:42] So we're doing backend changes and the front end changes here too as well. [13:46] We're going to see Minion kind of progress here and it's going to stop at just creating a draft PR and it's not going to push it to CI yet. [13:53] The reason being is that we were seeing um uh that this was great for doing like toil sort of workloads but to build more advanced like endtoend features we really need to be able to validate uh the feature first and we want to prevent a lot of extra load coming on to CI. [14:08] So if we can validate sooner before we push to CI um that would be a big benefit. [14:14] So that's what we're going to see here next on validation. [14:17] Right? [14:17] In the SDLC, we have an inner loop. [14:19] We have the outer loop. [14:20] Of course, we can have these be aensified where we're shifting more checks now to happen in this inner loop. [14:27] Right? [14:27] So, some of the checks that initially happen that we've had there previously is like this the static analysis sort of checks. [14:33] When those are detected, now we fix those. [14:35] But we can shift things to happen in inter loop. [14:37] Things like visual validation. [14:39] So, we can launch an simulator with a skill, grab a screenshot from the simulator, compare it to the Figma specs. [14:45] We can also bring up the service and our backend staging environment and compare the front end and the backend integration together. [14:53] So now that we've moved a um now that we've done uh that part uh we move to the outer loop where CI uh typically happens errors can still happen on CI [15:04] right uh so self-healing CI is something that we've implemented here where we can fix a lot of the issues that you hit on CI code review is another thing that happens in the outer loop but this is another thing that we've shifted [15:16] we've moved parts of code review to happen in the inner loop right the outer loop code review can have a powerful model use reasoning a skill to do a deeper review. [15:23] And in the interloop, we can have a smaller model that runs uh faster with a with a with a medium model. [15:30] Now, another key thing here, right, is this if this is an autonomous diff coming from minion, we want to give a human reviewer some confidence that this diff has gone through a lot of self-improvement [15:39] already, right? [15:40] That not just touching that initial generation that happened, but all these other steps have happened. [15:44] And so on the PR, you will have a table attached that says all these different checks that it went through, including the screenshots. [15:53] All right, so we've got a lot more code coming through the software factory now, right? [15:56] Let's talk about maintenance. [15:57] Right, maintenance is even more important. [16:00] Um, what we have set up now is we can actually enroll our feature or skill into u our feature or ser uh service into maintenance uh skills. [16:10] So these are uh some examples of those skills that we have. [16:13] Uh feature flag cleanup, right? [16:15] We had two variants of that world cup uh modal. [16:19] Now that the the B variant is no longer needed, we can have that scheduled on a loop. [16:24] So the key thing here is that this is actually a managed loop that you go to, right? [16:28] We don't want thousands of loops being set up across the company without any bounds. [16:33] You have a managed surface that you go to to set up the loop. [16:36] So it runs on Sunday when we know we have better uh CI capacity available. [16:40] U we also don't want to overwhelm engineers that Monday morning with a bunch of extra diffs. [16:45] We want to control how many diffs they're seeing on Monday as well. [16:49] Another cool key thing here is that when that ski uh skill runs and makes those diffs, those diffs will get comments and either get landed or not landed. [16:56] That's all good label data that we can use to improve the skill itself. [17:00] And then at a kind of monthly cadence, we're looking to see what skills can we now learn um from in our incident reviews and turn those into new maintenance skills that we can apply to all of our services. [17:14] All right, so you've seen uh these parts of the SDLC that we've identified. [17:18] There's other parts too like monitoring. [17:21] Have you seen the uh building blocks that you can use to power those and the architecture underneath them? [17:27] One of the other things that we're really thinking about now is bottlenecks, right? [17:31] We're now we're putting more strain on our infrastructure. [17:33] So we're trying to anticipate where our CI capacity needs to be and make the right foundational investments there. [17:39] There's only so many experiments that we can feasibly run as well. [17:42] So that's another bottleneck. [17:43] And then lastly too, right, decision- making, right? [17:45] It's not about you know can we build we know we can probably build it now it's more of a question of should we build it all right so that's what we have for you today and the next talk [17:56] is going to be actually from Uber as well and if you want to learn more about our agentic code review aa and will be presenting that next uh in this room [18:04] thank Thank you. [18:22] [music]