What kind of internal tools and software engineers at Uber use to build software today? We get an exclusive insider and visuals heavy look from one of Uber's longest tenured engineers who died here at Mendicelli. Today, with the idea of the work on the Gen2KI at Uber. In this conversation, we get into internal developer systems Uber has built and used pre-AI, like you own M3DB, Michelangelo, Cadence, Morpheus and others. AI Foundational Systems a company built like its MCV Gateway, AI Garden, AI ethics.
Recent systems used by nearly all engineers like Minyun, Code, Inbox, Slate, Shepherd, Wisdom and others. If you want to understand what AI native development looks inside of a modern tech company with thousands of engineers like Uber, and why it's much easier to retrofit AI on top of Battle Tensor Developer Infra, this episode is for you. This episode is presented by TurboPuffer, Vector and Full-Tech Search built on object storage. It's fast, cheap and extremely scalable. Today's episode is about the close to two dozen internal systems that Uber has built to help engineer ship with AI agents.
One of the takeaways will be that production-ready code is far more complicated than just using an AI coding harness. The harness is the easy part. What's hard is all the things around them. This is where you need to mention our season sponsor, WorkOS. One piece that is always a hard problem with agents is permissions.
Do you want an agent to have standing access to everything it might touch? Or do you just approve every single prompt until you stop reading the prompts? WorkOS built airlock for this. Airlock is an authorization layer that sits between your agents and the tools they call and it judges every single request against the agents' intent and your rules. You write the rules in plain English, agents never see your credentials, and every verdict is logged.
It works with code agents like Cloud Code and CodeX. WorkOS Airlock is how agents do real work without over-permissioning. Check it out at workOS.com slash airlock. Good night. Welcome to the podcast.
Thank you so much for having me. I've been following your work. It's amazing to see the kind of impact you've had and all of the great content you publish for all of the engineers. So I'm super honored to be here and talk to you today about what you're doing. Well, we worked together well before the PyMedic engineer was born back at Uber.
I'm not together together, but I knew of your work as well. When did you join Uber? Exactly. Yeah, so I joined Uber in May 2015. In fact, the two engineers would have heard me.
They're still here. So I joined in our real-time API team. It was during the period where we were trying to break out, break out, monoliths into microservices. And I was working on our API gateway for all of our mobile apps and like I worked on changing our mobile protocol. Since then I worked on many different business platforms from our fulfillment to both of our business, on our own onboarding, marketplace pricing.
And the last one here has been all agent.ai both for our users, customer support and users and so on. So yeah, it's been like a roller coaster last year on working on this. Yeah, and for those people who didn't work there with us, can we recall a little bit what real-time API or RT API is used to call it inside? What it was and why it was a big deal and why it had so much load? So when I joined, we had just two services that we worked with called dispatch written in Node.js And API written in Python, dispatch used to handle all of the rider and driver traffic at that point in time.
And the protocol was pretty simple at that point. It was like a four-second pink protocol we used to call that would give you the entire state of the world. And when the trip is completed, we would hand out to API, you could handle all of the post trip processing payments, series and everything. RT API was born at that point in time to abstract all of the internal services and mobile and also changing the protocol from simple forcing protocol to back like where we have both REST APIs and we also have server to client communication. We used to call it push protocol.
So we would because so much of our app is very dynamic, everything keeps changing every few seconds. So we needed a way to efficiently update the state of the app across both riders and drivers as and when we get new updates, as and when things change in physical world. So it used to be at that point, like one of the highest UPS services and over the years, we kind of because all of our stack was just Node.js and Python. So that was the natural source at that point. But in the subsequent years, we have converted that into Go and which is one of our highest UPS services.
And I think for people listening, they're going to be surprised when they hear like, Oh, there's only two services in 2015 or around that time at Uber because of course Uber was known for the micro services boom and Twan was on this podcast. He talked a little bit about this. But would you mind just recalling how those micro services came to be and from your perspective, you know, like what it meant to suddenly have so many services. Yeah. I think there's like so many blogs and like so many people talking about that.
So I think like when I joined right like we were, as I said, we just two services and there and you also think going back in those days, the kind of hyper growth phase where we were in, we were constantly expanding to new countries. We were constantly expanding a product portfolio across mobility and later we started to reach and that also was expanding. We needed a mechanism for teams to really build all kinds of functionality very quickly to match up to the scale at which the business was growing. So we have invested a lot in all kinds of service infrastructure, making it easy for teams to build services, Metra, extracing, monitoring, observability, deployment, the whole bunch of stuff around that. And there's not much of the shelf software for these things at that point at the scale and the rate of change that we had.
And there's a lot of stuff that we had to build in those days internally and that created a boom cycle of a lot of we went from like two services to a lot of thousands of services. Then around 2018, 2019 was when we standardized our languages, we picked Go and Java as our primary languages. We modernized a lot of our tech stack. We spent a lot of time in thinking about the layers of our architecture, how do we platformize and over the years. In fact, when I worked on a full platform, we actually reduced some of the services to a few services.
Even now we are kind of in the similar ballpark of number of services, even though our business is 10 times larger, we are doing many, many more products. And this whole bunch of platformization and years of investment that has gone into it, like we're still running one single global tech stack across all the countries we operate in. There's many, many platforms that serve all of the mobility verticals and all of the delivery verticals using one shared building block. And I think that kind of loves us to build more mobility verticals, more delivery verticals because we have platformized a lot over the years. Would you mind telling us when you joined how big was Uber's engineering team at?
How did it grow over time? Because I don't think people from the outside appreciate just how big that growth was. So when I joined, I was around the first 600 engineers. And in fact, the whole of marketplace team at that point used to be like maybe 50, 60 engineers. And over the next two years, as we scaled our business, as we scaled our traffic, like then we grew to thousands of engineers and around 2019, 2020, we started also expanding across different sites.
Now we have 12 global tech sites across the world in almost every continent we operate in. In fact, that helps us build products for those hyper local markets. And some of those products are then told out globally across all the markets where we could roll out that kind of functionality. So I think that gives us a lot of ability to tap into talent globally and also build nuanced local products. And that also helps us build one global tech stack.
And speaking of building products, techs, you worked, you still work on the platform team, right? Yeah. So at least like until my first 10 years, I worked on different business platform teams. And in the last one year, I'm more spending my time on a developer platform on a agent, a AI for engineers, agent, a AI for the rest of the company. And in the process, I've also worked on some user facing AI initiatives as well.
Can you take us back? So I 2015 on how Uber's internal tooling changed because again, from I was there and I was really surprised to see just how much custom tooling we had. We talked about RT API, but there was things like Morpheus, Edge Gateway and other things. What am I talking through? Like back in 2015, 2016, if an engineer joined Uber, what kind of tools did they use and how did those evolve?
I'm talking obviously, the main one that most engineers back in are mobile engineers touched at Uber. Yeah, absolutely. I think like in those days, given the way in which we were scaling, there's not many of the shelf products that we could tap into. And like, so I think we talked about RT API and Edge Gateway. Some of the other stuff that we had to build was a system called UONE that will enable anyone in the company to identify who won specific asset.
Like it was like services, right? And you could look at the during on call, if it was out, did you could figure out which team owns it, who's on call for that kind of stuff, right? Yeah, absolutely. And as the engineering size group, we also have to build end to end engineering design docs, product design docs, getting all of those into one single place. We have to work on getting all of our incident manager into one single place.
We are really obsessed about how we handle our incidents and learnings from that. So we built a lot of really good tooling around that. I think it was some of the complex ones that metrics like even back in 2015, 2016, we should probably have around like 500 million metrics and metrics per second with the cardinality. And there's no of the shelf metric system that we could use and that gave rise to M3DB, which was open source later and like this. When companies formed around that and that enabled us to build like the kind of like handle kind of metrics volume that we had.
We also had to build our own into end machine learning platform because we used to have like hundreds of ML models. And if you take the whole life cycle from creating the features, building the models, monitoring, serving this is Michael Angelore right Michael Angelore and like recently just a couple of months ago, we open source are deep learning and like part of the Michael Angel infrastructure. So there's a lot of like really good solid foundational building blocks there. The other interesting one is also cadence, which is to think about some of the workflows, right? Like they have they span across multiple days, whether it's a driver on boarding, whether it could be some CRM campaign.
You could see a lot of engineers doing their own resilience, each of their own like state management and that gave rise to cadence, which is a durable workflow engine. And later even that got open source. I think not many people in locations, but a lot of people in the temporal, right? Which was as I said, either inspired by cadence or a lot of the ideas came from there. I'm not even sure it was the open source version of cadence, but it had a lot of like it's kind of the external version of whatever cadence is for Uber or used to be.
Yeah. And I think those folks like this, all like there's a real need for something like this and they're able to go and like build like a scale it even further beyond Uber. But I think that the back end of it, I'm trying to say like there's a whole bunch of things that we had to like invent in those days for the scale that we had. And over the years, then we're like now, as the industry also mentioned, like now we have few products that we built, some where we think there's some unique need to be by. And if we build anything, if we think it's interesting for the industry, then we try to open source wherever possible.
Yeah, I think two more tools that I think is worth mentioning because I just remember them as one is Morpheus, or that's basically Long Jargly for Uber. But it was way more integrated everywhere, right? Like you could go in there and run experiments, you could see the results immediately. It was almost like feature flagging and experimentation, but integrated into mobile feature flags. And it was like, I remember it was like all of these integration.
It was just integrated a bunch of tools, all of them, right? Yeah. And since I was since we were also expanding to so many countries, like you need a really good configuration platform, whether it's for like configuring our back end services also having feature flag system and also experimentation. And it was a very data driven company and like everything goes through a feature flag, everything goes through an XP experiment. So then and since we have also it's not and since we had two sided marketplace and three sided marketplace, some of the experiments are also not like really complex.
It's not just simply be we also have switchbacks and like we have to build like really deep experimentation that's baked into like all of our tools and it can automatically generate analysis and like what are the p-values, what metrics to use and that also led to like working a lot on our metrics foundations data foundations so that whatever analysis that we generate from this metrics are trashed over the end, we can make business decisions based on that. Yeah. And I remember I was always wondering why do we have our own feature flag system, but then I was thinking like, hmm, like, show me a feature flagging solution for vendor that supports cities. In fact, cities are first class citizens because inside Uber, like I think cities were so important and like a lot of our tools have cities as, for example, for cardinality, like every city had its own metrics and then you start to realize like, oh, very few things treat like you were a bunch of interesting constraints, right? Like that no one else had at this scale.
Yeah, absolutely. Yeah. I think the city one is an interesting one. It's like so deeply baked into like our infrastructure. Like, for example, some of our like critical platform services, we also do sharding by city because then we can also like observe across different tiers of cities because like we need to make sure like even now like across all of the regions where we serve our traffic, the shard a city to a specific region.
We can also at any point in time failover that city across regions and even and we also have like a logical deployment groups where a group of cities are routed to a group of containers. And this is for few services. We don't do it for all the services. We do it for some of the services that are where we need that level of that level of sharding and that level of reliability. One other system I want to ask you about that I remember using and it was being developed in 2017, I believe, which is DevPods and it felt really ahead of the industry at the time. How did that come along and what did it turn into?
Yeah. So I think the back story for DevPods is because we already talked about the growth of microservices. Initially, we had micro reports where every service was it's own repository and we didn't have a standard build system at that point. Each service had their own like we had at least two, three build systems, two, three testing systems and it was very hard for us even for the central team and we wanted to do library upgrades and go across all the services and do upgrades. So around 2017, 18, we then changed the strategy to getting to mono repos even though their microservices, but all of the services were deployed from the mono repos.
We had one mono repo per language. So we had a mono repo for Go, one for Java, one for mobile iOS, one for Android and so on. Then once the scale of that repository was pretty big enough, then it was pretty hard to run the build and getting all of those systems set up on your local laptop also, then you have to go through all kinds of setup issues. So we took on this thing of DevPod, which is like cloud developer boxes and you can have any number of them. We had one DevPod per mono repo. So if I'm working primarily in Java, I create the Java version of the flavor of the DevPod and it has all the build system cached.
I can have faster builds. It's working on cloud machines as a beefier than even the laptops. So then you can have really good SLAs on your build time on your test time and we don't have to worry about the setup issues because we can show the right tools in place. And now the interesting part is as we go to the AI era, even the agents need the similar workspaces and cloud boxes and we're able to latch on to that. And we also created now a mega-deff pod with all of the repositories because then I can have my agents create PRs across the repositories.
It has all the tools it has to work in any repository to look at context across any repository. This also helps us to create the agents empty cloud empty at the top folder because we have standardized build, standardized testing. Once we set up the top level files, most things will get really good value out of the bat. They don't have to go into per module setup. And on the DevPod, all of the AI tools are installed by default.
So you can get in your DevPod. You don't have to go through installing cloud code code. They're all there in the DevPod. So this made it really easy even for non-engineers in the company to create a DevPod and start playing with cloud code, starting with code out of the bat. I guess having cloud development environments really really helped a lot.
Yeah. I think all of those years of platformization builds also helped a lot as we expanded on our agent journey because you could use all the things that we built making the life easier for engineers and it makes it easy for our agents as well. Yeah, I wanted to talk a little bit about before we got into what's on today because I think a lot of things are connected. So there was so many things being built for platforms for tools often custom for Uber. But having talked enough about that, what does it look like today?
What does development look like today? What kind of tools do you use? Maybe you could give us a little bit of a primer of the foundations that you put in place specifically for AI and what you built in why. First thing is, especially in the AI world, one thing we realized very early on was because the landscape is changing pretty quickly. Harnesses are changing pretty quickly. Models are changing pretty quickly.
We wanted to invest in the right set of building blocks that are hardness and model agnostic so that no matter any of these things change, we can easily port across different models, different harnesses. So a few things that we invested in. So we started working on a model gateway from the initial reduction of the AGPT, late 2013, early 2014. So we had a model gateway back then, which would expose an opening eye compatibility or anaerobic compatibility. So sorry, this is 2023-24, right?
Yeah, so 2023-20, early 2024. When the AGPT was launched and the GPT models were first launched and we quickly noticed we wanted to make it easy for any teams in the company who want to leverage and build agents with these models. And so we had a model gateway that would abstract all of the complexity behind where we had all of the security and policy guards in place. We had all of the visibility in place. So you could switch across different models or different vendors for these models and you could just have your ID for the organization or the project and then you can use any of the models exposed.
So this was used as a model selector and it piped into the model gateway and it would route it to the right. You know, may that be a JPT at a time or over at the time, that kind of those models. Yeah, and it was built on Michelangelo itself. So we've created Michelangelo, Jenny. Oh, Michelangelo, but that's that's ML platform, right?
Yeah, and then now there's a JEN AI set of foundations on Michelangelo platform. Like, so then you go to create a JEN AI project or agent, AI project on Michelangelo, then you can set up the project. You can select the model that you want. You can then you'll get a unique project, your ID that then you can use for your agents. So then you have all of the same, like able to use the same Michelangelo infrastructure, then to start building on AI specific EVALS and stuff on the same on the same foundations.
Looking back, I think that was pretty like pretty early investment that like paid that gave a lot of other way later. So it was a model gateway. You can show like a quick primer into like what we had built. And this was late 2023 when the first set of LLMs were launched. And we quickly realized that we had a whole bunch of internal teams wanting to use it for different use cases and we wanted to make it really easy for them.
And this was built on top of the Michelangelo platform and one more component inside that they can set up there. And Michelangelo just to recap, that's the ML platform that was built from like 2015, 2016. So it was built a long time before LMs. Exactly. And now we have like a JEN AI or agent AI set of components also inside Michelangelo.
And also building a lot more right now that those are not in the open source version yet, but they're actively building a lot of stuff for agent AI. But my model gateway was the first such one. And the initial version, we didn't have all of these middle version components and we built some of these over the last one two years. But the experience for any team in the company is, you know, they create a client. They give their project ID which they initialized in Michelangelo and then the caller token and that's all.
And we expose one open AI compatible API or anthropic compatible API. So and all of the models across all the vendors open way or closed way. They're all behind behind this gateway. And the first thing we added there was what we call AI guard. What is AI guard?
Essentially, we wanted to make sure we are not sending any sensitive content back to the user. So this was one way where one entry point where we could add this middleware that we can enforce consistently across all the projects and security team had ability to like, you know, then they could iterate on all of the AI guard specific models. So it's on content, it's on safety policy, whether it's on like whole bunch of comms policy, we like five different set of fine-tune models that they built there, which would, which runs on every request and every response, which strict latency guardrails. This helped a lot to make sure that all of our projects have same standard baseline. And then because every project is tracked here, we could have like per user per caller attribution and we could have like, then as we progressed earlier this year, we were able to add spend tears for projects, spend tears for users.
And since all the requests go through one place, we could also add like audit logging session traces and whole bunch of infrastructure around this. Every model request that we go through this. So there's no model request that doesn't go through this. So that gives us like one single entry point for across all the models. And I assume like you can just try building as well, like costs and all of those things.
Exactly. Like track billing, cash iterate and all kinds of things. And now, you know, as we progress into like a lot of discussion of like, you know, model routing and all of that, this could be like a good entry point that we can leverage because all of our models go through this. I think on the same journey of like being able to make it easy for engineers to switch across models. The next thing was how do we make it easy for engineers to switch across harnesses?
If I'm using cloud code, then if I switch to codecs, then I need to like carry forward all of my settings, all the tools, all the plugins. So we internally wrap all of the harnesses with a wrapper called AIFX AI foundations. And this is pre-installed on DevPods. I already can install on your local machine and we have a concept of personas. So then that personas comes with whole bunch of default plugin sense skills so that you don't even have to install like any engineer.
They get sold bunch of default skills that they can use out of the bat. We wrap everything. All of the settings are managed. So even if you're using any of the harnesses on your local or on DevPod or any of your DevPod, the settings are synced. So then essentially we can manage one set of settings that we can propagate across all the users and any user specific settings.
They are synced across all of their environments. And again, this makes it really easy because now we have one entry point for switching the harnesses, switching the tools. And then we also made it like there's a status line where we can give tips, where we can have tracking of your spend across harnesses within that harness in that session. So all of those additional things that we could add without any explicit setup from the engineers. And then speaking of tracking spend, how do you approach that right now?
As an engineer at Uber, if I just join as a senior engineer somewhere, do I need to be aware of spend of costs? What's the thinking there? So we want to make sure engineers have access to any of the tools that are available. And we have this notion of spend tiers. So by default, you get certain tier and then we have many levels of tiers.
Once you're close to that tier, then you can raise a request to go to the next tier and you just need a simple manager approval. So then you can discuss and manage the ROI for that project. How are you spending? And it is a conversation around responsible use of this. But we don't want to restrict engineers. If they're working on some, this is going to the right project use, they should be able to spend whatever they need.
Because ultimately we want to maximize the gain from this. But you also want to make sure there's a responsible use. So we try to do the minimal amount of people who need to cross the tiers and they will see across any of our tools, how much they're spending within that hardness and across all the hardness. And we also have different tiers for different managed regions. So then for all of the interactive tiers, interactive hardness, we have some spent here for some of our background coding agents.
We have a separate independent tier. So we make sure they can easily manage across all of these. Yeah, but I guess it makes sense even if my side projects, I will be aware of my own spend on my limit I have. I guess do I sense it correctly that the thinking is just don't use tokens on stupid stuff that makes no sense or accidentally, you might be just burning and you don't know. So just get that feedback. These things are not free.
Exactly. I think just having the feedback and we also have a plugin called COS check that will run across all of your sessions and give you personalized tips based on your usage. This is the kind of thing, this much was spending on this project and this session. These are the tips that you can use to further improve your cost profile. And I think all of this creates a good conversation for between management engineers but also engineers will also see good feedback into how they are efficiently spending across.
And then that helped us a lot with all of the real time coaching with context health model sizing. And so that engineers are also aware of working in this new age. We also don't want inefficient spend. And what are foundations that you built over the AI? Oh, MCP gateway.
Oh, yeah, I think the other back story was around like I think early 2025 we started like as cursor kind of picked up like we enabled cursor and MCP was was a stack that was a little bit around that time. And we quickly realized that the power of we can really increase the power of AI by exposing all of our internal tools in a easy way, a crossing. So then we could potentially leverage this beyond just coding. We could leverage it for all kinds of engineering tasks. We found April of 2025, which I did working on like MCP gateway, like similar to model gateway. This is one gateway for all of the tools.
So what we did was because we already had good ideal registry across all of our services whether they're using the threat or proto since we have the ideal specs, we auto generate the MCP specs for any of the services. And just so I guess we also don't know like server services either in a cliff or product with product buffers as a strong contract. Yeah. And like we initially adjusted and later we added support for a protocol as well. But all of the new services in the last few years, they're all proto buff the ones that were created like a few years back. They're all in thrift.
And as they go through the rights usually like team switch to proto, but whether they're in thrift or proto, like we would have we since we have all of the ideals in the in one single registry, we could use that registry to generate a default MCP spec for them. So they could anyone in the company that can go to this tool MCP gateway, they can see all of the MCP servers that we auto generated. And if you go to any of that, you could see all of the tools that were generated from that existing API. So these might be the APIs from those services that are projected as MCP tools and we auto generate the request back response back the descriptions later.
We also based on the API descriptions to generate LMM optimized descriptions for the API and fields so that we can like we don't like we saw some tools with like 3000 4000 tokens, so then we can optimize it for model consumption. And it is just one single config and security policy change and then they can enable it. They don't have to do any code changes. If they want any custom MCP, they can always lose. We have like a framework for creating a custom MCP and proxy their custom MCP also through MCP gateway. The other interesting thing we did was even all of our vendor tools, whether it's Google's lag, all of them are also exposed to MCP gateway.
This reduced a lot of burden on configuration management since we always spoke about the effects, right? Like so I could install any of the tools in a same manner, whether it's internal MCP tools or external MCP tools. In the last few months, we also projected all of these MCPs as CLIs. So you could execute any MCP as a CLI. So then if some agent cardness won't use it as CLI, they can use it as CLI.
If they want to use traditional MCP, they can use MCP. And do I understand that this all comes because the APIs to start with were already either generated or written in like a lot of them were generated that you already had a platform for the APIs. So adding MCP was somewhat trivial. I mean, trivial. I mean, of course, it's work.
But now generally CLIs is also somewhat trivial because you had a foundation before AI. Right? And then so when you have it, that's what I'm starting to see with Uber. You built a bunch of stuff before 2022 and you could just kind of add AI infra pretty easily on it. Yeah. And the same team that works on our API gateway also work on MCP gateway. So they're already in the business of building API gateway. So they know how to do any kind of protocol transformations, any kind of any kind of API gateways.
So it was like we're able to pretty quickly build this. So I think this was probably like, especially once we got our Google workspace and all of our Slack tools also into this, it kind of like created all kinds of like amazing agent workflows. So we can actually implement anything right at that point, like from Slack to Google, G real, like any tool vendor tool or any internal service is at CLI call away. And then the other set of foundations as we like started thinking about this space was, I think all of these go in this camp of like vendor neutral hardness neutral building blocks that we think like, you would have to do this irrespective of what happens because you would need agents need some way to access your tools.
And then the other thing was around skills like, you know, we jumped onto this earlier this year, since we already have this notion of Monoripos, we created a scale Monoripo in some sense that has all of the core skills that central platform teams build and all of the team specific skills individual teams can build. And are these skills these are just like the skills folders like the plugins that you can use for cloud code, etc. Exactly. Like so then it's plugins and skills that you can use across all the hardnesses, then we had like one single like quality gates that can run across all of them. And we made it portable across all of the hardnesses. So you install with the same AI effects tooling that I mentioned. And like if you do plugin add that that skill, it will update the configurations across all of the harnesses, whether you're at that point using that harness or not.
So that even if you switch across harnesses, you have these plugins auto installed. So you don't have to worry about like reinstalling them and reconfiguring them and so on. And since all of these skills are using the tools from the MCP gateway, we also have one standard mechanism for all these skills to access any of the tools. And now we're working on like, you know, some tools where engineers can go, select their skill, it will tell them all kinds of tips to improve their skills. The next thing that in flight that you're working is how do we then collect the traces from the harnesses and generate improvement patches for the skills so that we can continuously improve the skills based on learnings, because there's a lot of discussion around the scale quality scale and how do we improve that continuously? Like when you first build a skill, they might not be perfect and you need some mechanism to continuously improve that.
I think both the MCP and skills, this gave us like a lot of like benefits. And like if I look at the last few weeks, there's around probably 30,000 skill executions per day. This is kind of interesting for me to see because if you told someone like, oh, we're building a skills repo, like what most people would think inside a startup, right? I'm not talking about Uber, but like, oh, you just do a get just a repo and you have a bunch of scales there, just a bunch of scale folders and that's kind of it. But it's pretty clear that it's more complex, right? Is it more complex because of how many people, engineers, you need to support this because you're also running e-vals because you keep cleansing these scales or like tracking if they're used or not use those kind of things?
Yeah, absolutely. I think it's like now with any of these latest models, it's very easy to create like a V0 version of the scale. It's very hard to make it really good across all kinds of use cases. And that's why you want to really make sure like, you know, we have one place, we can like update all of these skills. In fact, when we change exposed the CLI projection for all of our MCPs, just a couple of engineers using AI, they updated all of the skills in this repository to use the CLI pattern because it's more too inefficient because if every skill says I want MCP, ABC, MCP, and DEF, then if I install these two plugins, I'm going to have like six MCPs across these two always in my context and it is so much context load, right?
And then we replace all the skills with the CLI pattern so that had a lot of impact on our electro-conefficiency as well. And the other thing is because we auto-install this scale marketplace for everyone, it reduces one more step of configuration. And so then like the discoverability is easy, the setup and configuration and management is easy and we could build whole bunch of like eval pipelines around that, discoverability pipelines around that. We still have teams that have like their own repositories, but majority of the skills go through this. My favorite is like context graph.
What is context graph? The back story is back in December, like one of the engineers built AI assistant that you can go to like we call it Cortana, like you can go to web or you can go to Slack and ask any question from any code base. So it would do it, it would like search across all of our repositories and answer questions. And then we saw people asking all kinds of questions, like it could be research, it could be like what is how to run this query, like what is the data source for this, who owns this, like can you do RCA for this whole bunch of software engineering tasks. And when we were looking at some of these traces, like it was clearly obvious that you know we could optimize the number of terms it takes for the models to get grounding.
Because we have so many systems, like historically all of these are like siloed systems, like engineers to go into like the task management platform and just to go to our like on call dashboard as to go to our own dashboard that we talked about. Then we're like, how do we plug all of that into one mental map for the agents in just in the last few months, hence, like is a cool visualization. Wow. Like they call it a context graph like we have 100 plus node types and like 130 plus edge types and this is live data as of like three days ago. You know what assets they manage, what design talks they wrote, what features they're working on, what on call events they like worked on, what are the conferencing changes, what incidents they managed, what GRI events.
And if you take any note, it has a relationship to all of the notes and what this allows us is now the same assistant I talked about, it has the context graph as a default grounding. So if you ask any question, it will first use this to like navigate like what is this person asking about once you get grounded into like this is about this domain, this set of services, then it can go deep and like read other documents and other things. So it reduces your exit your agent races and the amount of terms it needs to give you a good answer. And we already see like in a whole bunch of categories of questions, the quality goes up, the cost goes down, the latency goes down, and we have just in we're still in early in harnessing the full potential of this and like we're super excited about like all of the things that we can do build on top of this going forward.
And then the nodes are the people, are their tools. This is the schema visualization. So every person in the company will have like no, like there's a note for me, not for like every employee. And then it would have relationships to all of the instances like every PR that I generate, there will be a note for that. And there's a link saying, okay, who they created this PR, who they manages this asset.
I work on this product feature, I contributed to this design doc. So then the nodes are both people, but they're also assets. Yeah, exactly. Like one simple example is let's say if you ask any question, like how many mobility trips around the world are with cash payment type. What tables exist, what columns exist.
Are there other people who wrote these queries? Are they from science team? Are they from mobility science? Like now all of this data is interconnected. Like you can go and check, oh, are there other queries that were done in the last 30 days around this and what kind of tables exist?
Go and explore those columns because again, all of this is interlinked. Then you can quickly get to like the blessed queries that we have and answer these kinds of complex questions pretty quickly. Otherwise you would have to like go through many, many dogs, many, many like tool calls. This makes it really efficient. It's much harder for us to manually write all of these cipher queries, but agents are really good at navigating the graph.
Like how they're really good at navigating file system with match. This seems very futuristic to me, but it's pretty cool. I assume it's a ton of data distorted just because Uber has like 10,000 plus people working there easily. Yeah, the good part is similar to how our API edge gateway team worked on MCP gateway effort, our graph platform team that manages graph for our production graph with billions of nodes. They also helped build this graph.
So this is in compared to our production graph. This is much smaller. So this is like a scale challenge for them anymore. I would have talked about like the AI system Cortana, which kind of plugs some of all of the context graph tools, skills, and it's omnipresent and slack web CLI. So anyone in the company, like even someone in Ops in some country, they can ask any question about, oh, how is this built?
Where is this located? Who works on this? What was the history behind this? And like it is able to take all of this data, all of our Google documents and then give them like a really good answer. And it breaks down kind of the information silos across all of these, like they're able to like self serve, ask anything, execute any skill anyone has built.
And I guess it must have like access to data sources, at least for the right people. So it can go into like things like logs and monitoring those kind of things. Yeah, it has logs monitoring. You can ask, okay, what is the health of this service? It can go look at all of its dependencies, what kind of storage systems it uses, run all the queries and give you like a 360 degree health report for that asset.
And we carry forward all of the existing user permissions. So like, so then if I'm only able to access the stuff that I had access to, otherwise that data is not accessible. Yeah, yeah, because inside of you, where I remember it used to be called break glass when you added a permission for a system. Access to you go through approval flow, which goes to either manager or director or whatnot. But I know Uber was really big at that my time. They were really big on this already.
Yeah, absolutely. So I think those are like some of the foundations that we have some more in the workings, like we're thinking about some more even more future use cases. But you know, some of these building blocks really helped us in our like, like, agent journey and helping it take it from just pure using it for just coding to all kinds of engineering tasks. We just mentioned how Uber wrapped up AI foundations work. Fun already more foundations work is to come.
Our presenting sponsor turbo buffer knows this all too well. They are rebuilding your storage architecture from first principles. They're doing this to make more types of search faster, cheaper and more reliable at scale. The new system culture of a buffer V3 is not yet in prod, but it already passes CI. Still, it's not nearly as performant as the current production version V2.
And so the teapup team is now perf maxing query plans until they are as fast or faster than V2. They're doing this in public document to how they increase performance all the way out to the V3 production launch. For example, we can see how the team increased full text search performance 9x by batching reads. A lot of this is basic foundation work right now, but they will be sharing some very cool systems work over the next few weeks. But hang on, why is the team doing a full rewrite?
It's because search is changing and so is turbo buffer. Teapf started as a vector database, but it is no longer a vector DV. It has built into a high-performance database for search. The V3 disc cars the vector primary index and all indexes will share the same columnar storage system. Every query will run on vectorized query engines, which is something you don't usually see in search databases, but which will result in both very fast search and just generally a very fast database.
The turbo for team is keeping a work log of their journey and you can follow along at www.trivalfer.com.3. It's a blast to see how it's being built. That was the one to mention our season sponsor, Lanier, the place according to work between humans as well as agents. One of the biggest changes for us software engineers is the sheer amount of code that we need to review. Uber has built custom tools to deal with this, but so has Lanier.
It's called Lanier Diffs, and it lets engineers review PRs right inside of Lanier. One thing I really like about Lanier Diffs is how a diff sits next to an issue inside a project and so it's super simple to see all of the context in one place and know why the changes happen without needing to jump through different tools. For large PRs, guided reviews walk you through the core change with an explanation of what has changed. Guided reviews also group the glue code and the supporting edits separately. These small but important changes make a large PR readable in one sitting.
And Lanier also supports stack PRs. If you stack PRs, you'll know that they're a great way to break up complex work, and if you've not yet used them, you'll probably love them when you try them out. How we do code reviews keeps changing as AI agents take on more of the work. These need changes coming from Lanier help us engineers understand code reviews more and expect Lanier to evolve dips to keep up with how we work more with AI agents. To learn more and to get six months off of Lanier, head to Lanier.app.pragmatic.
With this, let's get back to Uber and how building a feature looks like today in terms of tools used by Devs at the company. DRD and ERD, I guess for those who don't know product requirements documents, and ERD was engineering requirements documents, right? Like the products back in engineering plan for those not familiar inside Uber. Yeah, so we went to some of the AI foundations and now if you think about the life cycle of a feature, then how can we truly apply each of those life cycle with the right set of AI foundations and also rethinking those tools for the AI era? And some we are more far ahead. Some we are early in the discussion.
I think even the notion of a combined plan that agents and engineers can iteratively work together. There's a lot of cool ideas, but this is kind of like, we also have the all kinds of agent skills for working with any of your design documents. And as I was saying before, whether it's a product design doc, engineering design doc, launch reviews, experience reviews, production readiness reviews, all of those things are in one place. I'm filtering some really old projects so that we can look through them, but you know exactly who's working on them, track the status of that. And all of this data also goes into the graph as well, so that we know full history of what are the sorts of tools, design docs, approval status, who works on them.
And each of these also have the general link or the linear link. So then we can trace from this project how was execution translated to. This gives like a source of root system for both humans and agents to know the specs for every project. Yeah, I guess planning is still really important, especially for like something that is not just a trivial, you know, like one prompt or one shot project. Yeah, exactly. And because you need to like, there's so many with the kind of product heterogeneity
and country heterogeneity, like we need to like really think about all kinds of corner cases. More than like, you know, the happy path, you think about all kinds of corner cases and like how they should exist. And since we also operate in physical world, the number of corner cases are like even more, right? I really think about what happens if this goes on, what happens if this goes on, how do we handle the support case for this? How do we handle?
Yeah, I guess just need the start, but I'll just add it because it might not be as obvious, but we were operating in so many countries and cities and even between two cities, the reality might be different from maybe different expectations or people are used to different things and so on. Yeah, absolutely. I think that's why it really becomes important to think about the right plan upfront. And this will also make it easy for both the engineers or agents to take that plan and decompose and execute on that. Like once we have the plan, then the next thing is how do you convert that into decomposed that and execute.
Now we're going to do what we call minion internally. So this is a background coding agent. So around 15% of all of the production peers go through minion right now. Essentially, you know, this whole bunch of PRs that some peers engineers want to do interactively, but we also want to make it really easy. Once you have for the task that I have really good spec or I want to do minimal steering, I can hand off that to a minion and we had like we did multiple iterations is the latest iteration, we call it minion B2, but like you can use it from web, you can use it from Slack, you can do a plan mode and then let it execute behind the scenes or you give one, you can give the prompt once and let it execute behind the scenes.
If it's like a simple prompt and it has access to this is using the mega dev pod. So then it has access to all of the repositories, all of the code is that we have, we can work across repositories and generate one PR or multiple PRs across repositories based on the plan and spec that you have. When we initially started mostly maintenance kind of tasks used to be offloaded to minion as we progress on this journey as we are adding more and more tools into the minion environment where minion can self-validate its work in web or mobile or back-end APIs. Our goal is we can increase the kind of task people can do with minion over time.
Increase the percentage of task over time. I think we can also see how it's how it's integrated in Slack. You can just mention a minion or what you say. You can do at minion and then it will show you the status and you can also, you don't need to go to the web, you can steer it on Slack itself. Maybe you have a Slack thread with the EM, with the PM, you can iterate on the design.
With a simple thing, we are just iterating and get alignment there and then say hey, add minion, follow this thread and can you create a PR and then it will take that Slack thread context and create a PR for you. It's been useful even as support channels, someone reports a bug, they want to ask minion, hey, can you see what is the issue and then minion will come back with, oh, this is a root cause, oh, this looks simple enough, let's fix it right there. Then we will fix it. There's no loop of adding it to backlog doing in the next thing, you are able to fix it right there. We see more and more cases of that as minion gets powerful as well.
I think we went through the build step. We also talked about DevPort. It's improved since hasn't it? Yeah, yeah, so this is showing all of my DevPods in some context graph, you see that. But if you want to create a new DevPort, you will see which flavor you want for minion, there is a DevPort flavor that has all of the repositories and optimized for minion usage, but for interactive, it will create a DevPort and within a matter of seconds, you will have that running and you can go through.
That's impressive in seconds, I'm sure you do some clever stuff like having things warm or pre-built so you can copy those kinds of things. It's running on all of this because this is developers have a separate multiple clouds that we are using for this and it's like Kubernetes cluster and everything is warmed up. So then when you ask it, we are able to just clone from the pre-built image and it has built caches, everything, repositories, everything already cloned, like it's ready for you to build. So we use Bazel across all of our repositories for build system. So I was able to go into a repository, like run Bazel for that.
And then we went through this in the order of this seconds, where any engineer, if I want to make a code change here, within order of seconds, I can do a DevPort. It's one single way to build any module and then anyone knows this command. And now, agents also knows the same way, right, in the Cloud MD agent, they know how to build a test any module in any repository and they're able to use the exact same commands. Yeah, so I think that covers kind of what the kind of stuff that you have to do in code generation, so you can do interactive hardness, you can do like through minion. The next thing is, okay, you have the PR, what do you do after that?
Then we go through self-healing CI first. One thing that we realized is because our PR volume has gone up year over year. It must have explored. Yeah, our P50 cycle time, P90 cycle time, both for inner loop, where you have the PR and you want to get it with green state and create the remote PR. Or once you have your PR created, getting the human review, getting all the CI things to pass, I think reviewers become a big bottleneck, same as any other company.
And we see over here the data and we want to really focus on breaking down every aspect of this and how can we go really deep and optimize and get for the AI era. So first thing that we did was we took a whole bunch of simple CI jobs that used to run once you create the PR and we moved it to inner loop and we kept all of this behind one single command, like AI effects validate. So then when agent creates a PR, it can run the linker, the coverage rules, the build rules, the template rules, all of these things, so that the probability of this PR in a good condition goes up. Then we hooked on ability to visual validation, where I can spin up emulator and test it. I can spin up like a web and test it.
I can spin up like a staging environment where I can deploy this change, run the APIs and test it. And now minion or even my interactive harnesses, they know these agents know how to have the skills for this. So then they can go through this verification loop. And let's say you create the PR and still something fails. Then we have like a self-healing CI, you can apply to all the PRs or per PR.
So this is like a uber specific line that we add to all GitHub PRs that you can do. The issue that you're working on, you can see which checks are failing. You can have a bunch of automations auto-requested if you want to merge auto-fix. Essentially everything that we can do to reduce the P50 P90 cycle times. And once you do all of this, then we have this thing called coding box.
This is showing a mock version of that where any engineer can go. They can see all the PRs that are waiting for them, all the PRs that they created, that they're waiting for reviews. So if engineer send this before review, I go to this page. I can see all the things that we did so far. So it makes it really easy for me to get, oh, the AI code review pass.
These are the things I checked. This is a sanity test screenshot. So I know, okay, I know. You can just go take a look. Do you have a video as well?
Yeah, I can see the build checks and all of that. And we're also adding risk core, blast radius of this PR and so on. So all of this will give engineers really good signals to figure out, okay, like, is it good to learn and which parts of the PR I should focus on? And yeah, I think we're still like, we're aggressively working on this whole bunch of ideas that we have, but we want to make sure like, as we are ready for the influx of PRs, we in fact had to like, had internal code read for our CI system because zero a year, the number of CI jobs also doubled or more than doubled. So we had to like also like beef up whole bunch of foundations in this space so that we can, we can, we can be ready for the influx of new PRs.
Yeah. And I guess like you're also seeing that there's no way engineers can review all PRs with the same rigor as we did in the past. So I guess you're building tools to signal when which ones to pay more attention to, which ones might be lower risk in so many ways, maybe an impact, maybe in blast radius. What is your take on where, what will happen with code review over time? Do you think there will always be human code review or for some things that might go away?
Yeah, absolutely. So I think one is for us, like, we want to add always on the safer side because the cost of an incident always like really high. So even with all of this tooling, we like right now, we still require an engineer to review every PR that goes in. Once the more confidence we get in our risk scoring, and we can also back test it with years of data, right? We have all of this data and the more confidence we have in our Eico reviews, then maybe for some class of low risk PRs, we could enable, we call it green lane, like auto landing, but we want to be really, really thorough about the dimensions that we want before we go there.
But right now, the main priority is how do we make it really easy for engineers to get all the signals they need to review faster. And if we do a good job there, then I'm sure like, you know, we can increase the percentage of like auto land PRs over time, but that's kind of P1, P0 is like first getting all the signals in like this. Nice. Yeah, but the code inbox is nice. I like it.
This is like thing that we should touch upon is like maybe how I can do sanity testing. And sanity testing just for those who don't know the internal lingo, that's the manual testing, right? Yeah, manual testing. Yeah, I want to do, let's say I'm working on some new features, it touches two or three services. How do I know if this feature is working into end?
So then typical workflow for engineers is like pre-identical, we call it slate. Essentially, you can, you can, you can create your own instance that deploys the branch that you're working on. And you can route your test account, UID to the instance that you created. So when you log in, you are executing that branch? Exactly, that branch and rest of the upstream and downstream goes to the other staging setup.
So that way you can test end to end without worrying about other parts of the infrastructure. And this will carry forward across the service graph. So you can, you can say from your mobile app, or this is the test account I want to test. It will go through other services. And when it touches the service under test, then it will go to your slate instance.
If you're testing two or three, then it'll go to the service under test across all two or three. So you can do even multi-service tests with this. Now that we had this, we had to just teach agents how to deploy slate. And we also give it all of the past APIs that you can use. Oh, nice.
Any of these services. Basically, this was a thing where I as an engineer wanted to send a test, meaning I want to manual test that by changes. I had a way to do this in a pretty cool way. And now we can just give it to agents and they can actually test their own changes end to end in a safe way. Yeah. So here we are showing a web version of that.
And you can see, in fact, like the, this is like the CLI pattern we went through. It's using slate MCP create new slate environment and it's saying, oh, this is the environment name. And then once it creates the environment, it's saying deploy service to this environment and giving the service name. This is a test service. And now it had, like it has its own environment.
This is like the slate UI. And it has like, you know, and if you see here, you can pin test account UIDs to that particular instance. And you will see all the services that are in that particular environment. You can see the guitar. And now, like the agent internally can like use all of these skills and tools.
So if you see like what it did was it did a testing of that web thing. It ran agent browser in that slate environment with what is on main and what is on my branch. And it created like a report for me to review the full set of changes that happened. And so then like, you know, after this, we can go to the, like a report that is generated a report that shows before and after. And showing me like all that, there's no regressions and it's very easy for like, you know, engineers to validate and we can attach some of the screenshots and videos to the PR.
And the same thing we have for iOS, Android, web, and if you want to do backend APIs, then you can also test like backend APIs. I just want to add like, you know, like one of the things that again, you might not appreciate it for not as a server, but slate is so important because Uber literally still has thousands of micro services or maybe not, not micro. But so to run a change on just one service when you want to end to end, that's just difficult, right? Like this is why it's like years to build to start with. Yeah. And you also have to think about like the routing of the pinned accounts, right?
And when the pinned accounts, like it says, this is a second that I want you to route to my branch that is just deployed in a staging environment. That's not trivial at all. So like in fact, how this works is one of the things that we invest that we built like back in 2017, 18, like it's called Jaeger, which is a distributed tracing infrastructure. It's open source now. So and all of our services have Jaeger spans essentially like whenever the call originates, there's a parent span and at every hop, there's a child span.
And there is a, you can add any baggage on that trace, which can be propagated across the call stack. So when you pin from this late web, we are essentially adding saying that like for these are the services under test and this is the account that I want to route. So as it is going through our service mesh service mesh knows this baggage and then it can say, Oh, I want to route this request, not to this environment, but to this late environment. So because we had tracing built out and because it's like propagated across the stack, now you could actually test and we can reliably route this kind of test request to the right environments so that it makes it really easy to test. This thing looks like years to add all to make sure that all existing services were retrofitted with this and all new services were built with this in mind.
So like I'm sorry to sense a trend where like uber build stuff over years and pre AI just infrastructure that is easy easy to test for like humans or easy to automate. And now with AI, it seems like, Oh, you just built this like the last like year, but actually you built on top of foundation that was built for years, right? I'm sure I think if we did not have like system like slate, it would have been really hard for agents to self-validate. Like you cannot automate this thing and like, yeah, this kind of stuff really helps. And I also like to go like one more like pretty interesting thing, which is so specific and it's very, very hard to get right.
And like we had like even many versions of build like this in the past, but I think this is probably our best version and we can really scale it to all the teams. But essentially the idea is like because we have even if you look at our core rider app, right? Like we have hundreds of screens. We have another rider is what multiple think is uber app, right? Yeah, like we have different business, different product lines, different cities, different like whole bunch of dimensions.
Like if I want to test any new thing, how do I know every combination of these has no regression? And if you were to like create all permutations across this, you would have to maintain thousands and thousands of tests across the stack. And that alone is like again, really hard problem in itself. So for some of our most complex platforms, like we call it capture replay, like essentially you can capture real production traffic with just one middleware because now we have standardized language frameworks across all the services is very easy to hook this into. And it will capture not just the inbound and outbound at that service layer, but also any of the downstream API's that service calls, those requests and those responses are also captured.
So in some sense, you have like full request response and all of your outbound request responses captured. Now with all of these captured requests, they go through some pipeline and then you can build simple rules that says, oh, if you see this kind of field in the request, this is the value for that dimension. So then you can capture all kinds of dimensions that that platform team cares about. So in some of the requests and all the dimensions, you can in some sense generate the full set of live dimensions and live combinations that that platform is currently supporting, which we call it match guard that I can run pre deploy in our CICD that shows for all of the peers that are going in this deploy, let me validate against the full combinatorial set of like combinations this platform supports and show the delta before and after.
So then you get really high confidence if am I breaking maybe cash drips only in Brazil with this configuration, which would have been really hard for engineers to manually test or agents also to manually test. So step one is you capture what you want to capture and then you have a system that will rerun it, check that there's a rations. Yeah, so like then I'm going to one of the domains that has this enabled so you can see all the sessions that it captures. I can go to any of the sessions. Then you can see all of the metadata and tags.
So essentially it's saying, oh, this request is tagged as marketplace type eats, it's tagged as line of business eats. It isn't this kind of terminal state. It knows captured all the requests. You can also see all of the outbounds that it used if we click on that, it will also show you the the request and response for the outbounds. If you see at the top, there is late workflow, you ID or search environment name.
So then let's say if someone if I'm working on a bug that's only affecting for some reason, San Francisco, every trips. I fix that bug, then I can create a slate environment for that bug for my co changes. I can go here and then say replay just this request on my slate environment and show me the delta here. So the difference that you're expecting a fix or some change? Yeah, I'm expecting to fix it because I know the before request after request, what is what I'm next and then I can do it for a specific dimension or I can use it like then the.
And then we also generate what we mentioned like match guard, which is the full set of dimensions possible for that. So then you can create like a in some sense a testing automated testing suite for the team and also like more easy way to manually test one specific combination that you are focused on. Well, I was there. We didn't have this, but we have something called deputy and Cerberus, but those were I guess very early versions. Yeah, so in fact, what deputy and Cerberus allowed was ability to route any like what deputy allowed was ability to route any request from production to your testing instance and that was allowed from your local testing instance back to the staging servers.
But now that we have a slate, you don't we don't necessarily have to use deputy and Cerberus because like it's already like you can deploy a slate environment and we don't need to use any of them. I just want to stress because I think it's hard to see something outside, but that's really hard to build this because every single again, you have thousands of services, all of them have to support these things from routing, for example, to capturing production to replaying right like this was a lot of work. Yeah, now I think the same like similar to how we exposed like slate to agents, we can expose all of the capri functionality to agents. So agents can check. Oh, I'm trying to fix this. Let me get all of the sessions of this type and then see what request looks like. Can I compose a request of that type on my slate instance and see did it fix? So it did not fix.
Let me go in a loop until I fix this. Yeah, and now the agent can even though cannot see, but you can see the delta and it can tell that nothing has changed, for example. So it can get feedback loops. Exactly. Exactly. That helps a lot. Now, like the same agent can sort of capture replay on slate with any of these. We already talked about like the edge gateway.
That's just the kind of Uber's internal API, right? Like we just we used to be RT API real time API, but now it's called edge. It's a it's a go versus a little reversion and go. Right. Yeah, I didn't go and now it supports whole bunch of endpoint types. So there's a sectional API where there's gipc web hooks graph.
So like again, all API's go through one single entry point where we can build a whole bunch of tooling around that on monitoring on alerting. And like even there is like a like with all the reliability features, the edge also has its own capture replace similar to the capri using capri behind the scenes. And like if you want to look at reliability of anything, it can like we look at the entire service graph for that service and tell you what is the potential unhealthy node that we need to look at the with the egg. Tracing we know exactly the service dependencies. We've also automatically tagged, which is a required dependency, which is an optional dependency. So that metadata is also there.
So as we are even looking at alerts and diagnosing alerts, all of this rich context really helps both engineers to debug faster and also agents to debug faster. Yeah, we already talked about experiments. The last thing we will cover is like what we call shepherd and fox after we move to mono Republic. Then we move to more people because upgrading libraries was very hard. Yeah, all the different repos. Yeah. Exactly. Then you move to mono Republic. Then now we need to some nice to let go and upgrade this library usage across all of the modules in that repository.
So how do we automate that? So we first look at starboard like using open rewrite policies saying, if it's a simple, like, you know, just a signature change, you can write that in open right policy and then shepherd knows what are the unique modules owned by different teams. And then it automatically creates PR for each of those modules. When AI came into picture, then we could add like a AI base shepherd where, okay, if I want to do fixed context propagation across all the services. So that tracing works better. I can create set of prompts and skills that then agent can run across every module and fix all the issues in every service faster.
So this is kind of a large scale changes, whether you want deterministic changes or whether you want to like, agent changes across the modules that gave us like we were able to do a lot of migrations over the years through this. So we call it a code maintenance. So we call it a fox essentially. They want to create self improving code bases since we already have a whole bunch of agent skills.
Essentially any service at over they can go here and roll their service into different skills. They can say, I want to get clean up or performance analysis or noisy logs. There's like whole bunch of these skills that you can onboard to a smart and what Fox does is every Monday or essentially every Sunday it will treat it will when we don't have that much AI load. It will generate a new PR for this service using that code clean up like sex or can I clean up any code? Can I improve the performance of this? Can I fix any noisy logs?
So it's kind of automated then code base improvement. Then like this showing you how you can like I like it because I heard people do this thing where they would like set a AI loop like saying cloud code or code saying, you know, like look for ways to improve my code base and they would execute it every night or once a week. But sounds like this is just a lot more like optimize and I love that you can enroll your code base because everyone knows like a code base is owned by an engineer team in that do right. Yeah, exactly. And like you can see like because you're rapidly scaling we have we have still in the opt in phase. Once we improve some of the skills, we'll move to some of them to opt out phase.
But I mean, anytime you obtain a scale for a service, then every week in some sense you're getting a PR created like a managed agent loop. So then you don't have to like you are continuously improving this. In some sense, the more toil we reduce the more amount of time engineers can spend on the true feature work. So we're like constantly thinking of, okay, how do I eliminate more toil from engineers and like automate all of these things. And so we constantly look at all kinds of PR's with maintenance category PR's do we need to get a new scale do we need to improve that scale so that that class of PR's can be on boarded to this this automated managed loop.
This is nice. I like it. And then finally I heard about wisdom. What is wisdom? Oh yeah. So the we use wisdom for because we all of our employees dog food products. So if you're using a rider app or owner app.
And if you see any bug, then you can from the app report that bug. We now have all kinds of AI stuff where like it will automatically route it to the right team based on this stuff. And then when you report a bug because it's from the employee from the employee like beta apps, we can capture whole bunch of logs and telemetry around that. That makes it really easy for the team owning that feature to fix it. So like in this case, it's like an internal feature.
It's essentially like if you want to test any feature in a different country, you can mock the location on the device. So if someone reported that that that issue, the first thing is, okay, now how do you reproduce that before it is huge problem to reproduce. So now we know that the set of screens the user has gone through because we have that in the logs and then we can give the engineers like this is the reproduction steps. And this is the expected behavior and this is the observed behavior and so that we can boil down to the issue quickly. And all of the telemetry that we collected from the app, you can see all the logs in one place, like whether it's analytics, network, request, all kinds of feature flags.
So that also gives a lot of context. And now that we have all of this context, we're able to manage agent called debug assist that looks all of this looks at the code base and it will try to pinpoint what is the root cause. And like what is the impact evidence timeline around that. Now, once I think, okay, this is the right root cause, I can hand off this to minion that we talked about. Yeah, coding agent looks good. Like, why don't you create a PR for this minion will take all of that context that we have.
It creates a PR, it will attach that PR to the G-R task. The G-R task also has the root cause analysis. So anyone who's working, they know the root cause analysis, if someone updated the root cause on the comments or like in UPR, again, all of that is data that we can then figure out. Okay, how do we improve the debug assist? How do we improve minion? We didn't get the right RC or we didn't get the right PR from the RC.
Like both will be able to continuously improve. And then so do I understand correctly that you can capture and reproduce bugs so much easier, right? Yeah, and we also add ability to because we brought the employee, reported bugs. We have all the logs. I can take my test device and I ask I can ask it to simulate what that employee has experienced.
So then I once I give the bug you ID, we can essentially serve the same network responses that we served to the person who filed so that I can experience the same issue in my test device app to. So that way, okay, then once you fix it, then I can see if this actually got fixed and then it makes it really easy to reproduce. I love the recording of the thing because that's so important, right? It's hard enough to do even on the web you need to build custom tools for yourself if you want to do a website. But that's also that you did it.
Yeah, I think this helps a lot like then in reproducibility and like getting to the right root cause. So you built all of these systems and especially the last year, it seems so many brand new systems that are just doing things like maintaining the cold quality agents are validating themselves. How do you think the job of software engineers inside of UPR is changing? And what are you learning from all of these new tools? It's in fact, you're learning yourself.
You know, in some sense, if you're in the agent AI world, you're constantly trying to find the next bottleneck and trying to remove that and figuring out how you can both using AI and both using both systems engineering and reduce that bottleneck because ultimately our goal is to maximize the number of features that we can ship across all of our products and that will require us to look at the entire lifecycle. How do we rewire that for the new world and what kind of tools that we need to build? And I think there's going to be an ongoing journey, right? And there's a lot of discussion of, you know, this concept called capability overhang, where we like even right now, like there's so many things that we could leverage the latest models for, but we don't have the sufficient orchestrating capabilities or the harnesses or the tools around that to be to leverage those models in the right places in the right way.
Feel like the more we work on this, the more we can unlock the more features we can ship, the more productivity that we can unlock. And like we're trying to measure whole bunch of this and like constantly think about like what is the next set of foundations that we need to build to make it easy for engineers to work and to make it easy for agents to work. You mentioned productivity. How do you think about engineering productivity? Because when I was at Uber, this was again, like 12 to 20, us managers did look at things. It wasn't the main thing, but we did look at things like diffs per engineer, just to show if someone didn't contribute for like two weeks, it was like, what are you doing here?
Or someone did a lot of code reviews that's actually we wanted to notice, but it sounds like a lot of those things. The code output, the code artifacts are less relevant potentially. What is the productive engineer in your mind right now inside of Uber or inside of your team? Yeah, so I think before the AI, we were measuring the standard stuff like code throughput and stuff like that. Those are the easy ones. And then we would we also have like every few months, we do develop experience service. We look at in peers, you know, like sentiment across all kinds of dimensions.
We look at our code quality dimensions, what's our incidence, what's our code coverage and all of these metrics. I think now once we go to like, yeah, I feel like we can leverage like the new set of capabilities to get more into this discussion. Like because now we're talking about not necessarily just diff velocity, but feature velocity. Like how much of all of this additional throughput is going towards unlocking new features. And how can we even change our organizational processes so that we can reduce the P50 feature time because like you can create 100 days, but if they're not all featured, then like maybe it's not necessarily increasing the value that we can provide to the user side.
So like one, for example, one of the things we did is tagging all of our PR's to different categories, like on complexity level and is it a feature PR bug fix maintenance testing documentation on different categories and we could see here over here. How is that mixed changing? Luckily, like right now, you can see our percentage of feature PR is going up our percentage of maintenance PR is going down. So that gives us good indication that we're given the right direction. Okay, we see the code volume go up and the percentage of years that for features going up.
Then we are investing a lot because before even though we had the U plan tool, sometimes you might not have the right tracing from this product design dog to this particular task. So it becomes a bit harder to measure what is the cycle time and to end reliably across all the features. So now we're using AI to like automatically cluster these things and like tag any missing things so that we can reliably get what is the P50 feature velocity for different complexity of features for every half over the last two years, three years. And then we can go into what is the bottleneck in the P ID phase is the bottleneck in the launch phase is the bottleneck in the rollout phase. What is going on there and what kind of things we need to invest to accelerate the number of features that we can ship or have.
And how is your mental model changing of software engineering compared to pre AI and the pre T tools? Is it still the same job? Have things changed? I mean, at least in my total tenure as engineering, there's never been this much change to how I work. Like, for example, like, we say like all the engineers had to go hands on like even distribution, we went to work like hands on, they like create PR's.
I used to think I was hands on engineer, but my hands on definition, you know, we are completely changed. And like even personally, I'm doing like way more PR's than what I was doing last year. Like it's more easy to do all of these things, all of these things. Right. And I'm able to like explore more number of ideas than what I could possibly do in the past.
But the job of engineering is, you know, in some sense, how do you build the right context for the agents to produce reliable output? Like, in some sense, like, you need to get really good at context engineering before I was operating with some context to do some tasks. I'm always thinking about, okay, if I want to offload some of these work with an agent, what kind of context it would need and how do I set up the environment with that right context? So that it can produce that work. Then you have to become really good at like, you know, how do you give the right specs, right constraints for the agents apart from building the right context.
Then multitasking has become really like a thing before if you're like, it would take so much time to create a PR's. So like at least laser focused on that. But now you're constantly switching between so many things. Like you so you need to become really good at multitasking across all the sessions. How do you scope the how do you scope the work? How do you track the work?
How do you verify the work really quickly? Because if you're not able to verify the work and like pick any code smells from the agent, then that's hard than you're shipping like some like some decorations into production. So like the context engineering ability to multitask ability to like review and like verify the outputs. These things have become like much more important now because you can because you're able to paralyze a lot more than before. One thing I'm picking up is maybe a new primitive is we used to like build software thinking, how do I build a software and how do I verify it?
Whereas now the question that you said is often how do I set up an agent to be able to build this and to be able to verify it? So it's kind of like almost a meta like sounds out of there's more of that, right? I'll give an interesting example. I was working on like the with some of the engineers that work on our customer support team. Like we are going through the journey of having AI agents handle some of our customer support policies.
That process would go from, oh, you have some run book that human agents would follow. So then from that run book, you are going through whole bunch of steps to create a policy that AI agent can follow. Then you have to think about, okay, there is some dynamic elements here then which APIs I need to call to get that data, which attributes I need to use. Then I need to configure my system, change bunch of configurations. Then I need to do manual evals before launching.
Then I need to do like continuous evals post launch. And then like in the last few months, we were able to like take down all of the stuff. Okay, like how do I now take all of the context and all of the principles that I want to use for the policy conversion and teach agents to be able to do that. So that I have a really good V zero policy that that an agent can create. Then you automate the all of the configuration set up manual testing, finding the right APIs, finding the right properties so that we can hook the right dynamic elements into this.
Again, like that used to take weeks now, it's like out of days for any polls. Then instead of doing like manual evals, then how can you like use all of the past context to create synthetic evals on top of that that you can like accelerate, you can deploy this and then verify this quickly. Like essentially what you're discussing, right? Now you're not doing that work. Okay, how can you build the right tools and harnesses on top of this so that you can automate the workflow?
Obviously you need the right guard rails and human-based creation steps in between, but you're designing a system that can do these things instead of like lying on so much manual work across all of these steps. And it sounds like you're learning a lot by because they're all new concepts which you're now using. You're learning about it. You're doing the limitations. I see what you mean by you know, like more learning more PRs.
And as closing, what is a tool that you really like using? This can be a digital tool. This can be a non-digital tool. Something about helpful. Yeah, I know the last few days I've been hooked to like some of the personal agents like engineering, meows, growth, what's up with all of them.
It's helping automate whole bunch of manual work that I do in my personal life. And I can in some sense, this all of the same process give it all of the context it needs to do that task for me and give me all of the inputs I need. Then I can have human-in-the-loop application step and do that task. But it's helping a lot to do all of the manual to automate all of the manual personal work. Awesome. Ooh, thank you so much for walking through all of the internals that are being used at Uber.
I found it super interesting, especially that I haven't seen this for quite a while. Yeah, thank you so much for giving us the opportunity. I feel like we're still pretty early in this so much to work on, so much to build. And we're super excited to be on this journey, to build the right stuff and to see how the software engineering changes and how at the end of the day unlock the value for the company, value for our business. I hope you enjoyed this look into Uber's tooling as much as I did.
It's now been 60 years since I left Uber, so a lot of the tooling that I showed me was also new to me. Uber was known for having about 5,000 services with about 2,000 engineers 10 years ago. But since then the company starts to console these services into well-sized services, and today it's half fewer micro-services than they did a decade ago. Today it's in the ball of FARC or 4,500 to 5,000. Even though these services are not as micro and they're much more well-sized instead.
One piece of software that I really like is Capri, the event capture and replay software. Back in my time at Uber, between 2016 and 2020, we had two tools called Deputy and Sarah Bros. that could do some level of production data replay, but it wasn't all that easy to use and it was just really hard to capture a real base to start with. With Capri, it's four more trivial to capture sessions than replay them, and this works really well to reproduce bugs. And also to test that affix work for a certain bug fix.
Building a system of Capri is especially complex when you have closer to 4,500 or 5,000 services running like Uber has. Another thing that was interesting is how we're seeing where code review is headed. It's slowly dying everywhere. But looking at a tooling Uber builds around code review with code inbox, every PR still gets merged after a human engineer decides that it's ready to do so. But Uber is building a lot of automated checks. Many of them are with AI to give more signal about the riskiness of the change and the quality that AI agents make of it.
And so in the end, it's a lot easier for engineers to decide which PR's they should spend time looking at it in-depth versus ones that are safe to approve with a simple LGTM, aka. You might decide you're not going to read the code. Finally, I have a sense that Uber investing templates here in developer productivity is really, really paying off with their AI integrations. For example, they built cloud development environments called DevPods back in 2017. Uber got to reuse almost all of its infra and building out their cloud agents called minions.
The same is true for existing systems of Ali Software to safely roll them out, and now agents can use these as tools or as feedback loops. So it feels like companies are getting some of the most benefit from AI or the ones that have had developer platform teams pre-AI as well, at least in the case of Uber. Do check out the show notes for more at the PR