读见

走进 Uber 的 AI 工程基础设施

原题Uber’s AI infra, from the inside

约 76 分钟

视频由 YouTube 提供

推荐理由Uber 这场访谈值得连起来看:模型接入只是开头,工具网关提供操作能力,上下文图谱连接代码与团队知识,云端工作区承接执行,测试和生产流量回放再帮助检查结果。Minion 受益于多年积累的开发平台,最终合并仍由工程师决定。对正在推进 AI 编程的组织,这是一份检查平台缺口的参考,而非某个工具的成功宣传。约 15% 的生产 PR 经过 Minion 是受访者报告的采用率,不应被解读为同等幅度的效率提升。

看前速览

Uber 把既有开发平台接入编程智能体,用上下文、云工作区和验证反馈支持工程交付。

文字稿

Brief Description

Uber’s AI infra, from the inside

Table of Contents

  • Intro
  • Uday’s early days at Uber
  • Uber’s move to microservices
  • Uber’s engineering team, then and now
  • Developer tooling before AI
  • DevPods
  • Building for AI agents
  • MCP gateway
  • Agent Skills repo
  • The context graph and Cortana
  • PRD and ERD tool
  • Minion
  • Testing and code review with Bazel, Slate, and Capri
  • Edge Gateway, Shepherd, and Wisdom
  • The changing role of engineer and measuring productivity
  • Uday’s favorite new products

Intro

What does development look like today? What kind of tools do you use?

Host: We expose one OpenAI compatible API or anthropic compatible API and all of the models across all the vendors open weight or closed weight. They're all behind this gateway.

Host: What is AI guard?

Guest: You know, we wanted to make sure we are not sending any sensitive content back to the user. Around April of 2025, we started working on MCP gateway. Similar to model gateway, this is one gateway for all of the tools. We have 100 plus node types, 130 plus edge types and this is live data as of say like 3 days ago. We call it slate. Essentially you can create your own instance that deploys the branch that you're working on. For some of our most complex platforms we call it capture replay like essentially you can capture real production traffic with just one middleware.

Host: How is your mental model changing of software engineering compared to preAI?

Guest: In my total tenure in engineering there's never been this much change to how I work. For example,

Host: what kind of internal tools do software engineers at Uber use to build software? Today, we get an exclusive insider and visuals heavy look from one of Uber's longest tenure engineers, Udai Kira Mendesi. Today, Udai leads much of the work on Agentic AI at Uber. In this conversation, we get into internal developer systems. Uber has built and used PreAI like you own, M3DB, Michelangelo, Cadence, Morpheus, and others. AI foundational systems a company built like its MCP gateway, AI guard and AIX. Recent systems used by nearly all engineers like Minion, Code Inbox, Slate, Shepard, 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 tested developer infra, this episode is for you.

This episode is presented by Turbopuffer, Vector, and Fulltech 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 engineers 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 I need to mention our season sponsor, Work OS. 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 just stop reading the prompts? Worker was 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 coding agents like Cloud Code and Codeex. Works airlock is how agents do real work without over permissioning. Check it out at work.com/airlock.

Uday’s early days at Uber

Udai, welcome to the podcast.

Guest: 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 uh all of the great content you publish uh for all of the engineers. So, I'm super honored to be here and talk to you today about what we doing.

Host: Well, we we worked together well before the pragmatic engineer was born back at at Uber. Not not together, but I knew of your work as well. When did you join Uber? Exactly.

Guest: Yeah. So I joined Uber in uh May 2015. In fact like the the two engineers who referred me, they are still here. Um so I I joined in um our real time API team. Uh we it was during the period where we were trying to break out break our 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, Uber for business on our earner onboarding, marketplace pricing and the last one year has been all agentic AI both for our users, customer support, end users and so on. So yeah, it's been like a roller coaster last one year on working on this.

Host: Yeah. And for for those people who didn't work there with us, can can we recall a little bit what real time API or RT API as we 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 I like um we had just two services at Uber. It was called dispatch written in uh NodeJS 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 4se secondond ping protocol we used to call that would give you the entire state of the world and when the trip is completed we would hand off to API. It would handle all of the post trip processing payments receipts 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 4C protocol to back like where we have both uh rest APIs and we also have server to client communication.

We used to call it push protocol. So we would uh because so much of our app is very dynamic everything keeps changing uh 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. Um so it used to be at that point like one of the highest QPS uh services and over the years we kind of uh because all of our stack was just NodeJS and Python. So that was the natural choice at that point. But in the subsequent years we have converted that into go and it's still one of our highest VPS services at Uber. And I think for people listening, they're going to be surprised when they hear like, "Oh, there was only two services in 2015 or around that time at at Uber because of course Uber was known for the microservices boom."

And Tuan was on this podcast. He talked a little bit about this, but would you mind just

Uber’s move to microservices

recalling how those microservices came to be and from your perspective, you know, like what it meant to suddenly have so many services?

Guest: Yeah, I mean, I think uh there's like so many uh blogs and like so many people talk about that. So I think like when I joined right like we were um as I said like we had just two services and uh 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 our product portfolio across mobility and later we started Uber Eats and that also was expanding. We needed a mechanism for teams to really build all kinds of functionality very quickly um 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 metrics tracing monitoring observability deployment the whole bunch of stuff around that and there's not much off-the-shelf software um for these things at that point at the scale and 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 uh we went from like two services to order of thousands of services um Then um around 2018 2019 was when we standardized on our languages.

We picked Go and Java as our primary languages. We modernized a lot of our text 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 one of our fulfillment platform we actually reduced some of the services to 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 uh this whole bunch of platformization and uh years of investment that has gone into it like we still running one single uh global tech stack across all the countries we operate in. There's many many platforms that serve all of the mobility verticles and all of the delivery verticles using one shared building block. And I think that kind of allows us to build more mobility verticles, more delivery verticles because we have platformized a lot over the years.

Host: Would you mind telling us when you

Uber’s engineering team, then and now

joined, how big was Uber engineering team and how did it grow over time cuz I don't think people from the outside appreciate just how big that growth was. So when I when I joined uh I was around the first 600 engineer um and in fact the whole of marketplace team at that point used to be like maybe 50 60 engineers and over the next few years as we've scaled uh our business as we scaled our traffic like the we we grew to some few 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 uh we operate in um in fact and that helps us build like products for those hyperlocal markets and some of those products are then rolled out globally across all the markets where we could roll out that that kind of functionality.

So I think that gives us a lot of ability to like you know tap into talent globally and also build uh nuanced local products um and that also helps us build like one global tech stack. And speaking of building products, tech sacks, you you worked you still work on on the platform

Developer tooling before AI

team, right?

Guest: Yeah. So, um at least like until my first 10 years, I worked on business uh different business platform teams. Um and in the last one year, I'm more spending my time on uh on a developer platform on a agentic AI for engineers, agentic AI for rest of the company and in in the process I've also worked on some userfacing AI initiatives as well. C can you take us back 2015 on how Uber's internal tooling changed because again from I I 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. Would you mind 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 you know the the main that the main ones that most engineers back under mobile engineers touched at Uber.

Yeah, absolutely. I think um like in those days given the way in which we were scaling there's not many off-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 you own that will that will enable anyone in the company to identify who owns a specific asset

Host: like like it was like a like services right and and you could look at the during on call if there's outage you could figure out which team owns it who's on off for that kind of stuff, right?

Guest: Yeah, absolutely. And uh as the engineering size grew, we also had to build like end to end uh uh like our engineering design docs, product design docs, getting all of those into one single place. We had to work on getting all of our incident uh manager into one single place. We are like really obsessed about how we handle our our incidents, the learnings from that. So we we built a lot of really good tooling around that. I think the some of the more complex ones was our metrics like even back in 2015 2016 we used to probably have around like 500 million metrics emitted per second with with the cardality and there's not there's no offtheshelf uh metric system that we could use and that gave uh rise to M3DB which was open sourced later and like there's even companies formed around that um and um that enabled us to build like the kind of uh so like handle kind of metrics volume that we We also had to build our own end to 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

Host: this this is Michelangelo right

Guest: Michelangelo and like we recently just few couple of months ago we open sourced our deep learning and like part of the Michelangelo infrastructure so I think there's a lot of like really good solid foundational building blocks there. Um the other interesting one is also cadence which is um if you think about some of the uh workflows right like they had they span across multiple days whether it's a driver onboarding whether it could be some CRM campaign you could see a lot of engineers doing their own resiliency stuff their own like state management and that gave rise to cadence which is a durable workflow engine and later even that got open sourced

Host: I think not many people will know cadence but a lot of people will know 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.

Guest: Yeah. And I think those folks like they saw like you know there there's a real need for something like this and they were able to go and like you know build uh like scale it even further beyond Uber. uh but I think that the pattern that I was I'm trying to say is 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 are like now as the industry also mature like now we have few few products that we build so some where we we think there's some unique need we buy and if we build anything if we think it's interesting for rest of the industry then we try to open source wherever possible

Host: yeah I think two more tools that I think is worth mentioning cuz I just remember them is one is Morpheus or it's basically launched directly for Uber but it was way more integrated into everywhere right like you could 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 inside Uber like all of these integration it was just integrated into a bunch of tools all of them right

Guest: yeah and and since I also since we were also expanding to so many countries like you need a really good configuration platform platform whether it's for like configuring our backend services or also having feature flag system and also experimentation and Uber is a very datadriven um company and like everything goes through a feature flag everything goes through an XP

Host: experiment

Guest: um so then and and since we have also it's not and since we are two-sided marketplace and three-sided marketplace some of the experiments are also not like really complex it's not just simple AB we also have switchbacks and like we have to build like really deep experimentation that's baked into are 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 uh working a lot on our metrics foundations data foundations so that whatever analysis that we generate from these metrics are trustworthy and we can make business decisions based on that.

Host: Yeah. I remember I was always wondering why do we have our own feature flag system. But then I was thinking like hm like show me a feature flagging solution from a vendor that supports cities. In fact, cities are first class citizens because inside Uber like I I think cities were so important and like a lot of our tools had cities as for example for cardality like every city had its own metrics and and then you start to realize like oh very few things treat like Uber had a bunch of interesting constraints right like that no one else had at this scale.

Guest: Yeah absolutely. Yeah. Yeah. I think the 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 by city because then we can also like observe um across different tiers of cities um because like we we need to make sure like even now like um across all of the regions where we serve our traffic we shard a city to a specific region we can also at any point in time fail over that city to across regions and even and we also have like a you know logical deployment groups where a 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 uh that level of sharding and uh that level of reliability

Host: one other system I wanted to ask you about that I remember using and and it was being developed in 2017 I believe which is death pods and it felt really ahead of the industry at the time. How did that come along and what did it turn into?

DevPods

Guest: Yeah. Um, so I think the backstory for dev pod is uh u because we already talked about the growth of microservices. Initially we had micro repos where every service was its 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 even for a central team when we wanted to do library upgrades go across all the services and do upgrades. So around 2017 18 um we we we then changed a strategy to getting to monor repos even though they're microservices but all of the services were deployed from the monor repos. We had one lang one monor repo per language. So we had a monor repo for go mono for Java, one for mobile iOS, one for Android and so on. Then once the scale of that repository was pretty big enough then like it was pretty hard to run the build and like getting all of those systems set up on your local laptop also then you have to like go through all kinds of setup issues.

Um so we took on this thing of like dev pod which is like cloud uh developer boxes and you can have any number of them. uh we had one dev pod per monor repo. So if I'm working primarily in Java monor repo, I create the Java version of the flavor of the dev pod and it has all the build system cache. Um I can have faster builds. It's working on cloud machines as a beefier than even the laptops. So then you could have like we could have really good SLAs on your build time on your test time. Um and we don't have to worry about the setup issues because we can uh up we can install the right tools in place. And now the interesting part is as we got to the AI era like even the agents need the similar workspaces and cloud boxes and we are able to kind of latch on to that and we also created like now a mega dev 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 helped us to create the agents MD cloud MD at the top repo at the top folder because we have standardized build standardized testing. Once we set up the top level files, most teams will get like really good value out of the bat. They don't have to like really go into per module setup. Um and uh like on the dev pod all of the AI tools are installed by default. So you can get a new dev pod. You don't have to go through even installing like cloud code, codex, open code, they're all there in the dev pod. So this made it really easy even for non-engineers uh in the company to create a dev board and start playing with cloud code, start playing with codecs out of the bat.

Host: Yeah. So I I guess like having cloud development environments just like really early helped a lot.

Guest: Yeah. Yeah. Like I think uh all of those years of platformization bets also helped a lot uh as we expanded on our agentic 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.

Host: Yeah. And I wanted to talk a little bit about be before we we we got into what's on today cuz I think a lot of things are connected right. So like there was so many things being built for platforms for for tools of often custom for Uber but h having talked enough about that what does it look like today? What does development look like today? What kind of tools do you use and may maybe you could give us a little bit of like a

Building for AI agents

primer of like the foundations that you put in place specifically for AI and you know what you built and why. First thing is especially in the AI world, one thing we realized um 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 few things that we invested like so we started working on our model gateway from the initial introduction of charge GBT like late 2013 early 2014. So we had a model gateway back then which would expose you know OpenAI compatible API or anthropic compatible.

Guest: So sorry so like this is 2023 24 right? Yeah. Sorry. 2023 2020 20 early 2024 when chat GBD was first launched and GBD models were first launched and we quickly noticed you know we we wanted to make it easy for any teams in the company who want to like uh 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 our uh security and policy guards in place. We had all of the observability in place. So you could switch across different models or different vendors for these models and you could just have your the the ID for the organization or the project and then you can you can use any of the models exposed.

Host: So so this was you just exposed it into like a model selector and it piped into the model gateway and it would it routed to the right uh you know may that be chatgpt at the time or opus at the time that kind of those models.

Guest: Yeah. Like um and and it was built on Michelangelo itself. So we create a Michelangelo genai.

Host: Oh, Michelangelo. But that that's that's ML uh platform, right?

Guest: Yeah. And then now there's a Gen AI set of foundations on Michelangelo platform like so then you go to create a Gen AI project or ai project on Michelangelo. Then you can set up the project. You can select uh the model that you want. You can you can uh then you'll get a unique project UID that then you can use for your agents. So then you have all of the same like we're able to use the same Michelangelo infrastructure then to start building on AI specific evals and like stuff on the same pro on the same foundations. Looking back I think that was pretty uh like um like pretty early investment that like paved that that paid that gave a lot of ROI later.

Host: What is model gateway? I can show like a quick primer into like you know uh what we had built and this was uh late 2023 when uh the first set of uh uh LLMs were launched and we quickly realized that we had whole bunch of internal teams uh 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 20 2015 2016. So it it was built a long time before before LMS.

Guest: Exactly. And now we have like a genai or aentic AI set of components also inside Michelangelo. And we're also building a lot more uh right now that uh that we have that those are not in the open source version yet. Uh but we're actively building a lot of stuff for agent AI world. uh but my model gateway was the first such uh one and the initial version we didn't have all of these middlewarees and components and we had built some of these over the last one two years but what the experience for any team in the company is you know they they create a client they give their project ID which they initialized in Michelangelo and uh then the caller token and that's all and we expose one open compatible API or anthropic compatible API so and all of the models and across all the vendors uh open weight or closed weight.

They're all behind uh behind this gateway and over the and we the first thing we added there was uh what we call AI guard.

Host: What is AI guard?

Guest: Essentially like you know we wanted to make sure we are not um any sending any sensitive content back to the user. So this was one way where one uh one entry point where we could add this middleware that we can enforce consistently across all the projects. um and security team had ability to like you know then they could iterate on all of the AI guard specific models whether it's on content whether it's on safety policy whether it's on like whole bunch of coms policy where like five different set of fine-tuned models that they built uh there which would which runs on every request and every response uh with strict latency guardrails this helped a lot to make sure that all of our projects have same uh standard baselines and then because every project is tracked here we could have like per user, per caller attribution, we could have like then as as we progressed later this year, we were able to add spend tiers for projects, spend tiers for users.

Um, and since all the requests go through one place, we could also add like audit logging, session traces and a whole bunch of infrastructure around this. Every model request at Uber goes through this. Um, 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'm assuming like you can just try billing as well like costs and all of those things.

Host: Exactly like you can track billing cash it rate and all kinds of things. And now you know as we progress into like there's a lot of discussion of like you know model routing and all of that. I think 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 hardnesses?

like if I'm using cloud code then if I switch to codeex then I need to like carry forward all of my settings all the skills all the tools uh all the plugins um so we internally wrap all of the harnesses with a wrapper called AIX AI foundations and this is pre-installed on dev ports or you can install on your local machine and uh we have a concept of personas so then that personas comes with whole bunch of default plugins begins and skills so that you don't even have to install like any engineer they get whole bunch of default skills that they can use out of the bat since uh we wrap everything all of the settings are managed so even if you're using uh any of the hardnesses on your local or on dev pod and or any of your dev pod the settings are synced so then centrally we can manage uh 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 we could add without any explicit setup from the engineers.

Guest: Nice. And then speaking of of tracking spend, how do you approach that right now? like as an engineer at Uber, if I just join as a you know like a senior engineer somewhere like do I need to be aware of spend of cost what's the thinking there

Host: see we want to make sure engineers have access to all like any of the uh tools that are available and we have this notion of spend tiers. So by default you get certain uh certain tier and then then we have many levels of tiers. Once you once you're close to that tier then um then you can raise a request to go to the to the next tier and uh you you just need a simple manager approval. So then you can discuss with manager the ROI for that project like how are you spending and it is just a conversation around responsible use of of this right? But we don't want to restrict engineers like even if they like if if they're working on like some uh if this is going to the right project use they should be able to spend uh whatever they need because ultimately we want to maxim we want to maximize the gain from this but you also want to make sure there's responsible use.

Uh so we try to do the minim minimal amount of like you know paperwork needed to like cross the tiers and they will see like the the the across any of our tools how much they're spending within that hardness and across all the hardnesses and we also have different tiers for different managed agents. Um so like like then for all of the interactive tiers interactive harnesses we have some spent tier for some of our background coding agents we have a separate independent tier. So we make sure like they can easily manage across all of these.

Guest: Yeah. But but I guess it just makes sense even if I do my side projects. I will be aware of my own spend on my whatever limit I I have. And I guess I guess do I sense it correctly that the thinking is just don't use tokens on stupid stuff that is that makes no sense or or accidentally you know you might be just burning and you don't know. So like just just give that feedback like the these things are not free.

Host: Exactly. like I think just having that feedback and we also have like uh uh a plug-in called cost check that will run across all of your sessions and give you personalized tips based on your usage to say hey like this is the kind of thing this much you're spending on this project and this session um this is these are the tips that you can use to further uh improve your cost profile and I think all of this creates um a good conversation like for between man managers and engineers but also engineers will also see like good feedback into like how they are efficiently spending across I think and then that helped us a lot with like you know like all of the real-time coaching with context health model sizing um and uh like so that engineers are also aware of working in this new age like we also don't want like you know like inefficient spend

Guest: and what other foundations did you build

MCP gateway

related to AI MCP gave way

Host: oh yeah I think the the other um u backstory was around like I think early 25. Um we started like as cursor kind of picked up like we enabled cursor and MCP was um was an was a spec that was like created around that time and we quickly realized that hey the power of we can really increase the uh power of AI by exposing all of our internal tools in an easy way acrossing. So then then we could potentially leverage this beyond just coding. we could leverage it for all kinds of software engineering tasks. So around April of 2025, we started working on like MCP gateway like you know similar to model gateway this is one gateway for all of the tools. Um so what we did was because we already had good ideal registry across all of our services uh whether they're using thrift or proto since we have the ideal specs we autogenerate the MCP specs for any of these services

Guest: and just to add I guess for those who don't know like Uber services either emit thrift or product buffers as strong contracts right

Host: yeah and like we initially we are just thrift and later we added support for protobuff as well uh But all of the new services uh in the last few years they're all protobuff. Um the ones that were created like few years back they're all in thrift. Um and as they go through rewrites usually like team switch to proto but whether they're in thrift or proto like we 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 they can go to this tool MCP gateway they can see all of the um MCP servers that we autogenerated 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 autogenerate

Guest: we autogenerate uh the request pack response pack the descriptions later we also based on the API descriptions we generate LLM optimized descriptions for the APIs and fields so that we can like we don't like there are we saw some tools with like 3,000 4,000 tokens so then we can optimize it for uh model consumption um and it it is just one single config uh and and security policy change uh 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 and proxy their custom MCP also through MCP gateway. The other uh interesting thing we did was even all of our vendor uh tools whether it's Google, Slack, all of them are also exposed through MCP gateway. This reduced a lot of you know burden on configuration management since we already spoke about AFX 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 CLI. So you could execute any MCP as a CLI. So then if some agentic hardness wants to use it as CLI they can use it as CLI. If they want to use traditional MCP, they can use MCP.

Host: And and do I understand that this all comes because the APIs to start with were already either generated or or written in like a lot of them were generated. The URI had a platform for the APIs. So adding MCP was somewhat I mean trivial. I of course it's worked but you know what I mean. And now generating CLI is also somewhat trivial because like you you had a foundation before AI, right?

Guest: Yeah. And and then so when you have it I that's what I'm starting to see with Uber that like you built a bunch of stuff before 2022 and you could just kind of add AIM infra pretty easily on it.

Host: Yeah. And and the same team that works on our API gateway also worked on MCP gateway like so they're already in the business of building API gateways. So like they they they know how to do pro any kind of protocol transformations any kind of uh any kind of API gateways. So it was like we were able to pretty quickly build this. Um, so I think this was probably like uh 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. People could automate anything right at that point like from Slack to Google, Jira, Linear like any any tool vendor tool or any internal service uh is we are at a CLI call away. And then the other set of foundations as we like um started thinking about the space was see I think all of these go in this camp of like vendor neutral harness neutral building blocks that we think like you know as like you would have to do this irrespective of what happens because you would need agents need some way to access your tools.

Then the other thing was around skills like you know we

Agent Skills repo

jumped onto this uh earlier this year since we already have this notion of monor repos we created a skill monor repo 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

Guest: and are these skills these are just like the the skills folders like the plugins that you can use for for cloud codecs etc. Exactly like so then is plugins and skills that you can use across all the harnesses. Then we had like one single uh 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 AIFX tooling that I mentioned and like if you do plug-in add that that skill it will update the configurations across all of the harnesses whether you are at that point using that harness or not. Mhm.

Host: 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 the 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. Now we are 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 in flight that you're working is how do we then collect the traces from the hardnesses and generate uh improvement patches for the skills so that we can continuously improve the skills based on learnings because there's a like there's lot of discussion around the skill quality skill evals and how do we improve that continuously like when 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 this gave us like lot of uh like um benefits and like if I look at like in the last few weeks there's around probably 30,000 skill executions per day.

Guest: This is kind of interesting for me to see cuz if 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 and that's kind of it. But it's pretty clear that it's it's more complex, right? Is is it more complex because of how many people engineers you need to support? Is it because you're also running evals because you you keep cleansing these skills or like tracking if they're used or not used? Those kind of things.

Host: Yeah, absolutely. I think um see it's like now in the now with any of these latest models, it's very easy to create like a vero version of the skill. 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 one uh place we can like update all of these skills in fact when we ch exposed the CLI projection for all of our MCPS just couple of engineers using AI they were they updated all of the skills in this repository to use the CLI pattern because it's more token efficient because if every skill says I MCP ABC MCP DEF then if I install these two plugins I'm going to have like six MCPS across these two always in my context and there's so much context load right and like then we replaced all the skills with the CLI pattern so that that had like lot of impact on our like token efficiency as well and the other thing is because uh we auto install this skill marketplace um for everyone done.

It reduces one more step of configuration and so then like this 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 uh like context graph. Um

Guest: what is context graph? The backstory is

The context graph and Cortana

back in December like one of the engineers built uh a 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 codebase. So it would do agent it would like search across all of our repositories and answer questions and then we 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 where 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're looking at some of these traces like it was clearly obvious that you know we could optimize the number of turns it takes for the models to get grounding because we have so many systems Like historically all of these are like siloed systems right like engineer has to go into like the the task management platform engineer has to go to our like uh on call dashboard has to go to like our own dashboard that we talked about

Host: then we're like okay how do we plug all of that into one mental map for the agents then just in the last few months and like this is a cool visualization has built like they call it uber context graph like we have uh 100 plus node types like 130 plus edge types and this This is live data as of like say like like 3 days ago. If you click on any person node like you know know what assets they managed, what design docs they wrote, what

Guest: features they're working on, what on call events they like worked on, what are the configuration changes, what incidents they managed, what Jira events and if you take any node, it has relationships to all other nodes. And what this allows us is um 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 okay like what is this person asking about. Once you get grounded into oh like this is about this domain this set of services then it can go deep and like read other documents, read other things. So it it reduces your execute your uh your agent traces and the amount of turns it needs to give you 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 still in early in harnessing the full potential of this and like we are super excited about like all all of the things that we can build on top of uh this going forward.

Host: And then the nodes are they people or are they tools?

Guest: This is the schema visualization. So every person in the company will have like know like there's a node for me node for like every employee and then it will have relationships to um all of the instances like every PR that I generate there will be a node for that and there's a link saying okay udai created this PR uh Udai manages this asset um um I work on this uh product feature I contributed to this design doc

Host: so so then the nodes are are both people but they're also assets Yeah, exactly. Like one simple example is uh let's say if you ask any question like how many um mobility trips around the world are with cash payment type like you first need to understand 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 uh interlin then you can quickly get to like the blessed queries that we have and um answer these kind of even complex questions pretty quickly. Um otherwise you would have to like go through many many dogs, many many like tool calls.

Um, this makes it really efficient. Like 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 bash.

Guest: This seems very futuristic to me, but it's pretty cool and I assume it's a ton of data to store just because Uber has like 10,000 plus people working there easily. So

Host: yeah, the good part is uh you know, similar to how our uh our API edge gateway team worked on MCP gateway effort, our graph platform team that manages graph or our production graph with billions of nodes, they also helped build uh this graph. So this is in compared to our production graph, this is much smaller. So this is like so uh it's not like a scale challenge uh for for them anymore. Yeah. Yeah. And we also tal I already talked about like the the AI assistant Cortana which um which kind of plugs uh uh some of all of the context craft tools skills uh and it's omniresent in 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 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 uh and then give them like a really good answer and it breaks down kind of the information silos across orgs right like they're able to like self-s serve ask anything execute any skill anyone has built

Guest: and I guess it must have like access to the data sources to for for at least for the right right people. So it can go into like things like logs and and yeah monitoring those kind of things.

Host: Yeah, it has logs monitoring. You can ask okay how what is the health of uh this service? It can go look at all of its dependencies, what kind of storage systems it uses, uh run all the queries and give you like a 360deree health report for that asset and we carry forward all of the existing user permissions. So like so then if I'll only able to I'm only able to access the stuff that I had access to. uh otherwise will that data is not accessible.

Guest: Yeah. Yeah. Because inside Uber I remember it used to be called break glass. When you added a permission for a system you didn't have access to you go through an approval flow which goes to either a manager or director or whatnot but I know Uber was was really big at at my time they were really big on this already.

Host: Yeah absolutely. So I think those were like some of the foundations like we have some more in in uh in in the workings like we think about some like more even more futuristic use cases but you know some of these building blocks really helped us in our like agentic journey and helping it take it from just pure um using it for just coding to all kinds of engineering tasks.

Guest: Would I just mention how Uber wrapped up AI foundations work but already more foundations work is to come. Our presenting sponsor Turboper knows this all too well. They are rebuilding their storage architecture from first principles. They're doing this to make more types of storage faster, cheaper, and more reliable at scale. The new system called Turboper 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 TUF team is now perf maxing query plans until they are as fast or faster than v2. They're doing this in public documenting how they increased performance all the way up to the V3 production launch. For example, we can see how the team increased full text search performance 9x 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 Turbuffer. TF started as a vector database, but it is no longer vector DB. It has evolved into a high performance database for search. The V3 discards vector primary index and all indexes will share the same colummer 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 Turboper team is keeping a worklog of their journey and you can follow along at turboper.com/v3. It's a blast to see how it's being built. I also want to mention our season sponsor linear, the place to coordinate 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 linear. It's called linear diffs, and it lets engineers review PRs right inside of linear. One thing I really like about linear 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 change has happened 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 linear also supports stack PRs. If you use 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 neat changes coming from Linear help us engineers understand code reviews more and expect Linear to evolve diffs to keep up with how we work more with AI agents. To learn more and to get 6 months off of Linear, head to linear.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. PRD and erd I guess for those

PRD and ERD tool

who don't know product requirements documents and erd was engineering requirements documents right like it's like the product spec and engineering plan for those not familiar inside Uber yeah so um I think we went through some of the AI foundations and like now if you think about the life cycle of a feature then how can we truly uplevel 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 farther ahead, some we are early in the discussion. Like I think even the notion of a combined plan that agents and engineers can iteratively work to work together we like um there's like lot of cool ideas but this is kind of like you know um we also have like all kinds of agentic skills for working with any of your design documents and as I saying before like whether it's a product design doc engineering design doc launch reviews XP reviews production readiness reviews all of those things are in one place.

I'm like filtering some really old projects uh so that we can like uh look through them but uh like you'll know exactly like um who is working on them uh track the status of that um and all of this data also goes into the graph as well so that we know like full history of what are the source of truth design docs uh approval status who works on them and each of these also have like the Jira link or the linear link so then we can trace from from this project how was the execution translated to this gives like a source of truth system for both humans and agents to know the specs for every project.

Host: Yeah. And I I guess I guess planning is still really important especially for like something that is not just a trivial you know like one prompt or oneshot project.

Guest: Yeah. Exactly. And because we need to like there's so many with with the kind of product heterogenity and like country hetrogenity like we need to like really think about all kinds of corner cases more than like you know the the happy path. You have to think about all kind 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 you to really think about oh what happens if this goes on what happens if this goes on how do we handle a support case for this how do we handle

Host: yeah and I I guess just need needless to add but I'll just add it cuz it might not be as obvious but Uber operates in so many countries and cities and even between two cities the reality might be different or might be different expectations or people are used to different things and so on. Yeah, absolutely. I think and that's why it really becomes important to think about the right plan up front and this will also uh 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 decompose that and execute. Now we kind

Minion

of going into uh what we call uh minion internally. Um so this is our background coding agent. Um so around 15% of all of the production PRs go through uh go through minion uh right now essentially um you know there's whole bunch of PRs that some PRs 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 uh to a minion and we had again we had we did multiple iterations this is the latest iteration we call it minion v2 but like you can use it from web you can use it from slack you can uh 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 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 codebase that we have it can work across repositories and uh and generate one PR or multiple PRs across repositories ries 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 in web or mobile or or backend APIs. Our goal is we can we can increase the kind of task people can do with minion over time. uh increase the percentage of task uh over time. I think we can also like see like uh how it's how it u

Guest: it's integrated in Slack. You can just mention do you mention min at minion or what do you say

Host: you can do at minion and then uh it will show you the status uh and you can also like you don't need need to go to the web you can steer it on slack itself um maybe you have like a slack thread with the with the em with the PM you can iterate on the design if it's a simple thing we are just iterating and get alignment there and then say hey at minion follow this thread and can you can you create a PR uh uh and then it will take the Slack thread context and then create a PR for you. So it's been really useful even in our support channels. I would see like someone reports a bug, the on call ask minion, hey like what can you see what is the issue and then minion will come back with oh this is the root cause oh this looks simple enough let's just fix it right there and then we would like fix it like there's no then loop of like adding it to backlog doing in the next next thing like you were able to fix it right there so we see like more and more cases of that as minion gets powerful as well so I think we like we we kind of uh went through like the build step we also before talked about devpot It's improved since, hasn't it?

Guest: Yeah. Yeah. So, uh, like this is showing all of my dev ports. Um, since I'm working on context graph, like you see you see that. Uh, but, uh, yeah, as you, if you if you want to create a new dev pod, you'll see like which flavor you want. Uh, for for minion, there is a dev pod flavor that has all of the repositories. Uh, but um, uh, and optimized for minion usage. But for interactive like it will create a dev board and within a matter of seconds um you will um you will you will have that running and you can

Host: that's impressive to seconds. I'm sure you do some clever stuff like having things warm or or or pre-built so you can copy those kind of things.

Guest: Yeah, it's like um it's it's running on all of this is because this is developer stuff like we have like a separate multiple clouds that we are using for this and it's like Kubernetes cluster and like everything is warmed uh warmed up. So then when you ask it like we are able to just clone from the pre-built image and it has build caches everything repositories everything already cloned like it's ready for you to build uh so I'm since we use basil across all of our repositories for build system so I'm I was able to go into a repository like

Testing and code review with Bazel, Slate, and Capri

run basil for that and then just like we went we went through this in the order of this like you know seconds where any engineer like if they if I want to make a code change here like within order of seconds I create dev pod 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 agents MD they know how to build test any module in any repository and they're able to use the exact same commands yeah so I think that covers kind of like you know 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 like you have the PR what do do you do after that? Then um um maybe we go through self-healing CI first. One thing that we realized is because our PR volume has gone up year over year.

Host: Oh yeah.

Guest: It must have exploded.

Host: Yeah. Yeah. our P50 cycle time, P90 cycle time both for inner loop where like you know you are get you you have the PR and you want to get it to a 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 reviews become a big bottleneck uh same as like any other company um and we see year over year the delta and we want to like really we're like really focused on like breaking down every aspect of is and like how can we go really deep and optimizing it for the AI era. So first thing that we did was we took a whole bunch of like 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 a FX validate. So then when agent creates a PR it can run the llinter the coverage rules the build rules the template rules like all of these things so that the probability of this PR in a is in a good condition like goes up.

Then we hooked on ability to do visual validation where I can spin up emulator and test it.

Guest: 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 like have the skills for this. So then they can go through this uh verification loop and let's say you create the PR and still something uh fails um then we we have like a self-healing CI you can apply to all the PRs or per PR. So we this is like a Uber specific line that we add to all GitHub PRs that you can link to the issue that you're working on. and you can see which checks are failing. You can have whole bunch of automations, auto request review, auto merge, auto fix. Essentially everything that we can we can do to reduce the P50 uh P90 cycle times. Um and once you do all of this then we have this thing called code inbox.

This is showing a mock version of that uh where um it will 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 uh engineer send this for review, I go to this page, I 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 passed. These are the things it checked. This is the sanity test screenshot. So I know, okay, I know.

Host: You can just quickly take a look. You have a video as well.

Guest: Yeah, I can see the the build checks and all of that. And uh we're also adding risk score, 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 land and which parts of the PR I should focus on and yeah I think we still uh like we are aggressively like working on this whole bunch of ideas that we have but we want to make sure like you know as we are ready for the influx of PRs we in fact had to like had internal code read for our CI system because year over year the number of CI jobs also doubled or more than doubled. So we have to like also like beef up whole bunch of foundations in this space so that we can inc we can be ready for the uh influx of new PRs.

Host: Yeah. And 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 you're building tools to signal when which ones to pay more attention to which ones might be low risk in so many ways maybe in 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 it might go away?

Guest: Yeah, absolutely. So see I think uh one is for us like we we want to air always on the safer side because the cost of an incident for Uber is like really high. Um so even with all of this tooling we like right now we still require an engineer to review every PR that that goes 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 uh we have all of this data and the more confidence we have in our AI code reviews then maybe for some class of lowrisk uh PRs we could enable uh we call it green lane like auto landing. Uh but we want to be really really sure about all of 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

Host: and if if we do a good job there then I'm sure like you know we can increase the percentage of like auto and PRs over time. Uh but that's kind of P1 P 0 is like first getting all the signals in right place.

Guest: Nice. Yeah. But code inbox is nice. I like it. This is like thing that we should touch upon is like maybe uh how I can do sanity testing

Host: and and sanity testing just for those who don't know the internal lingo that's the manual testing right

Guest: yeah manual testing yeah I want to do let's say I'm I'm working on some new feature it touches two two or three services how do I know if this feature is working end to end so then typical workflow for engineers is um like pre-agentic world is we call it slate uh essentially you And it can you can create your own uh uh instance that deploys the branch that you're working on

Host: and you can route your test account UID uh to the instance that you created.

Guest: So when you log in you are executing that branch.

Host: Exactly. Exit that branch and rest of the upstream and downstream goes to the other uh staging setups. So that way you you can test end to end without uh 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 will go to the service under test across all two or three. So you can do even multi-ervice tests uh with this. Now that we had this, we we had to just teach agents how to deploy Slate and we also give it all of the past APIs that um that you can use any of these services.

Guest: Basically this was a thing where I as an engineer well into sanity test meaning I want to manual test out my 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.

Host: Yeah. So here we are showing a web version of that and you can see in fact like um 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 this is the environment name and then u once it creates the environment it's saying deploy service to this environment and giving the service name. This is a test service. Um, and now it had like it 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 uh test account UIDs um to that particular instance. Uh and you'll see all the services that are in that particular environment. You can see the git sha and uh now like the the agent internally can like use all of these skills and tools. Um so it it if you see like what it did was it did AB 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. Um and so then like you know after this we can go to the like a report that it generates like see it generated a report that shows before and after uh and it's showing me like all the there's no regressions and this is very easy for like you know engineers to validate and we can attach some of the screenshots and videos to to the PR and the same thing we have for uh iOS Android web and if you want to do backend APIs then you can also test backend APIs.

Guest: I I just want to add like you know like one of the things that again uh you might not appreciate if you're not outside of Uber but Slate is so important because Uber literally it still today still has thousands of microservices or maybe not not micro but so to run a change on just one service when you want to do end to end that's just difficult right like this is why Slate took years to build to start with

Host: yeah and you also have to think about like the routing of the pinned accounts right like

Guest: and and when the pinned accounts like the this is the test account that I want you to route to my 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 in that we built um like back in maybe 2017 18 like uh it was it's called Jerger which is a distributed tracing infrastructure. It's open source now. Um so and all of our services have Jagger spans essentially like whenever wherever 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 uh trace which can be propagated across the call stack. Um so when you pin uh from this late web we are essentially adding saying that hey 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 the slate 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 these kind of test requests to the right environments so that it makes it really easy to test. This thing took 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 I'm starting to sense a trend where like Uber built stuff over years pre AI just infrastructure that is easy easy to test for like you know humans or 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 a foundation that was built for years right?

Yeah, 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 then like you cannot automate uh this thing and like yeah as you said like this kind of stuff um uh really helps um and um I I'll also like talk about like one more uh like pretty interesting thing which is so Uber specific and

Host: what is taper?

Guest: Yeah. And this is like very very hard to get right. And like we had like even many versions of uh build like this in the past but I think this is probably our best version and we can like really scale it to all the teams. Essentially the idea is um like context like because we have even if you look at our core rider app right like we have hundreds of screens we have

Host: and the rider app is what most people think as Uber app right the app

Guest: 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 is you would have to maintain thousands and thousands of tests across the stack and that alone is like again really hard problem in itself.

Host: So for some of our most complex platforms like we we call it capture replay like essentially you can capture real production traffic with just one middleware uh 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 APIs that service calls those requests and those responses are also captured. So in some sense you have like pull request response and all of your outbounds 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.

And once you have all 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 matchguard that I can run pre-eploy in our CI/CD that shows for all of the PRs that are going in this deploy let me validate against the full combinatorial set of like combinations this platform supports and show that delta before and after. So then you get really high confidence if am I breaking maybe cash trips only in Brazil with this configuration which would have been really hard for engineers to manually test or agents also to manually test.

Guest: So so step one is you capture what you want to capture and then you have the system that will rerun it check that there's regressions.

Host: Yeah. So like then I'm I'm going to one of the uh domains that has this enabled. So you can see all the sessions that it captures. I can go to any of the sessions. Um 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 uh line of business eats. It is in this kind of terminal state. It knows uh captured all the request. You can also see all of the outbounds that it used. If we click on that it will also show you the um the request and response for the outbounds. And if you see at the top there is slate workflow UID or search environment name. Um so then let's say if someone if I'm working on a bug that's only affecting for some reason San Francisco Uber Eats trips

Guest: um I I fix that bug then I can create a slate environment for that bug um for for my code changes. I can go here and then say replay just this request on my slate environment and show me the delta here.

Host: Show me the difference and you're expecting a fix or some change.

Guest: Yeah, I'm expecting the fix. So because I know the before request, after request what is what I'm and then I can do it for a specific dimension or I can use it like then the uh 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 that team and also like more easy way to uh manually test one specific combination that you that you are focused on.

Host: When I was there we didn't have this but we have something called deputy and cberus but those were I guess very early versions.

Guest: Yeah. So uh in fact like what uh deputy and Cberus allowed was ability to route any what deputy allowed was ability to route any request from production to your testing instance and Cberus allowed from your local testing instance back to the staging uh servers. But now that we have uh slate you don't we don't necessarily have to use deputy and servers 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 from the outside but that's really hard to build this because every single again you have the thousands of services all of them have to support these things from routing for example to capturing production to replaying right like this one's a lot of work I assume

Host: yeah and now I think 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 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, did it not fix? Let me go in a loop until I fix this.

Guest: Yeah. Yeah. And and and and now the agent can even though it cannot see but it can see the delta and it can tell that nothing has changed for example. So it it can get feedback loops.

Host: Exactly. Exactly. I think that that that that helps a lot. Now like the same it can agent can also do capture replay on slate. uh with any of these we al we

Edge Gateway, Shepherd, and Wisdom

already talked about like the edge gateway

Guest: edge gateway that's just the kind of Uber's internal API right like we just we it used to be RT API real-time API but now it's called edge it's a it's a go version is it it was rewritten in go if I remember right

Host: yeah it's in go and now it supports whole bunch of endpoint types so there's external API whether it's gRPC web hooks graphql so like again all APIs go through one single entry point um where we can build whole bunch of tooling around that on monitoring on alerting um um and like even there is like a um uh like where there's all the reliability features the edge also has its own capture replay similar to the capri it's using capri behind the scenes and uh 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 Jagger 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 when we look 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. Uh the last thing uh maybe we'll cover is like um what we call sheepard and fox after we moved to monor repo like then we moved to monor repo because upgrading libraries was very hard right?

Guest: Yeah on on all of the different repos. Yeah

Host: exactly then you move to monor repo but then now you need to someone has to like go and upgrade this library usage across all of the modules in that repository.

Guest: So how do we automate that? So we first took a stab at like using open rewrite policies saying okay if it's a simple like you know just the signature change you can write that in open write policy and then shephard 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 based 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 our large scale uh changes whether you want deterministic changes or whether you want like agentic uh changes across the modules that gave us um like we were able to do a lot of migrations over the years uh through this and we call each one as a campaign and if you see JUnit 4 to JUnit 5 there will be a YAML file with the policy and you'll see whole bunch of PRs created for each module and you can a campaign owner can track it the status of that and and go through that.

So it makes it really easy to manage these migrations. Few months ago then we took the same platform and added like one more feature. We also want to make it easy. We want to continuously improve the code base notet one-time migrations. Let's say I want to

Host: so like code maintenance.

Guest: Yeah code maintenance. So we call it fox. Essentially we want to create self-improving code bases since we already have whole bunch of agent skills. essentially any service at Uber. They can go here, enroll their service into different skills, they can say, I want

Host: dead code cleanup.

Guest: I want dead code cleanup or performance analysis or noisy logs. There's like whole bunch of uh these skills that you can onboard to.

Host: Oh, smart.

Guest: And what Fox does is every Monday or essentially every Sunday it will create it will uh when we don't have that much CI load, it will generate a new PR for this service using dead code cleanup like sex. Oh, 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 codebase uh improvement then um like this showing you how you can um like

Host: I I like it cuz I heard people do this thing where they would like set a AI loop let's say in cloud code or codec saying you know like look for ways to improve my codebase and they would execute it every every night or once a week. But sounds like this is just a lot more I don't know like uh optimized and I I I love that you can enroll your code base because everyone know like a code base is owned by an engineer or team at Uber, right?

Guest: Yeah, exactly. And and uh like you can see like I mean because you're rapidly scaling we have we have still in the opt-in phase. Uh once we improve some of the skills we'll move some of them to opt out phase. uh but when anytime you obtain a skill for a service then every week in some sense you are getting a PR created um it's like a managed agentic loop uh so then you don't have to like uh 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 like constantly thinking of okay how do how do I eliminate more toil from engineers and like and automate all of these things And um so we constantly look at all kinds of PRs with maintenance category PRs. Do we need to create a new skill? Do we need to improve that skill?

So that that class of PRs can be uh onboarded to this this automated manage loop.

Host: This is nice. I like it. And then finally I I heard about wisdom. What is wisdom?

Guest: Oh yeah. So um the we use wisdom for um because we we all of our employees dog food our products. So if you're using our rider app or earner 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 the 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 like it's essentially like if you want to test uh any feature in a different uh country you can mock the location on the device. So if someone reported um that that that issue the first thing is okay now how do you reproduce that before it is it used to be a huge problem to reproduce.

So now we know the 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 uh in one place. So like whether it's analytics, network requests, uh all kinds of um uh feature flags. So that also gives a lot of context. And now now that we have all of this context, we built a managed agent called debug assist that looks all of this looks at the codebase and it will try to pinpoint what is the root cause and like what is the impact evidence timeline around that. Um now I once I think okay this is the right right root cause I can hand off this to minion that we talked about

Host: hey coding agent this root cause looks good now 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 Jira task the Jira 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 create a new PR again all of that is data that we can then figure out okay what how do we improve the de debug assist how do we improve minion we didn't get the right RCA or we didn't get the right PR from the RCA like both we'll be able to uh continuously improve

Guest: and then so do I understand correctly that you can capture and reproduce bugs so much easier right

Host: yeah and we also added ability to because we uh for the employee reported bugs we have all the logs I can taste take my test device and I ask I can ask it to simulate what that employee has experienced. So then um I once I give the uh bug UID we can essentially serve the same network uh responses that we served to the person who filed so that I can experience the same issue in my test device uh app 2. So that way I know okay did then once you fix it then I can see okay this actually got fixed and then it makes it really easy to reproduce. I I I I love the recording of of the thing because that's I mean so important, right? Like it's hard enough to do even on the web. You need to build like custom tools for yourself if you want to do a website. But that's awesome that you did it.

Guest: Yeah, I think this helps a lot like then in repro in uh reproducibility and like getting to the right root cause. So you you built all of these systems and especially last year it seems so many brand new systems that are just doing things like you know they're maintaining the the code quality agents are are validating themselves. How do you think

The changing role of engineer and measuring productivity

the job of software engineers inside of Uber is changing and what are you learning from all of these new tools? It seems like you're learning yourself. you know like in some sense like if you're in the agentic AI world like you're constantly trying to find the next bottleneck um and trying to like remove that and figuring out how can you can like both using AI and both using like both actual systems engineering like reduce that bottleneck because ultimately our goal is to maximize the number of features that we can ship uh across all of our products and that will require us to look at the entire life cycle how do we rewire prepare that for the new world and what kind of tools that we need to build and I think this is going to be like an ongoing journey right and there's a lot of discussion of you know this concept called capability overhang where feel like even right now like there's so many things that we could you leverage the latest models for but we don't have the sufficient orchestrating capabilities or like the harnesses or the tools around that to be to leverage those models in the right places in the right way.

I feel like the more we work on this, the more we can unlock um the more features we can ship, the more productivity that we can unlock and like we are trying to measure whole bunch of this and like constantly think about like what is the next set of uh foundations that we need to build to make it easy for engineers to work and to make it easy for agents to work.

Host: You mentioned productivity. How do you think about engineering productivity? Because when I was at Uber, this was again in like up to 2020, 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, you know, if someone didn't contribute for like 2 weeks, it was like, hm, what are you doing here? Or if someone did a lot of code reviews, that's actually what we wanted to notice. But it sounds like a lot of those things, the, you know, the code output, the code artifacts are less relevant potentially. You know, what what is a productive engineer in your mind right now inside of Uber or inside of your team?

Guest: Yeah. So, I think like before the AI world, like we were measuring, you know, like the standard stuff like code throughput and stuff like that, right? Those are the easy ones. And then we would we also have like every few months we do the developer experience surveys. We look at NPS you know like sentiment across all kinds of dimensions. We look at our code quality dimensions. What's our incident per def? What's our code coverage and all of these metrics right?

Um I think now once you got to like AI I feel like we can uh leverage like the new set of capabilities to get more nuance into this discussion like because now we are internally talking about not necessarily just diff velocity but feature velocity like how much of all of this additional throughput is going towards unlocking new 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 divs but if they're not all feature diffs then like maybe it's not necessarily increasing the value that we can provide to the users right so like one for for example one of the things we did is tagging all of our PRs 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 year-over-year how is that mix changing luckily like at least like right now I can our fe our percentage of feature uh PRs is going up.

Our percentage of maintenance PRs is going down. So that gives us good indication that okay we're in the right direction. Okay, we see the code volume go up and the percentage of PRs that for features going up then we are investing a lot because before even though we had the up plan tool sometimes you might not have the right tracing from this product design dog to this engine design dog to this particular task. So it becomes a bit harder to measure what is a cycle time end 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 um so that we can reliably get what is the P50 feature velocity for different complexity of features for every half over the last 2 years 3 years and then we can go into okay is the bottleneck in the PRD 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 uh the number of features that we can ship per half.

Host: And how is your mental model changing of software engineering compared to preAI and PDS tools? Is is it still the same job? Have things changed?

Guest: I mean, at least in my total tenure as in engineering, there's never been this much change to how I work. Um like for example like you know we say like all the engineers at Uber are hands-on. Like even distinguished engineers at Uber like are hands-on. and they like they create PRs and I used to think I was hands-on engineer but my hands-on definition year over year has completely changed. I'm like even personally I'm doing like way more PRs than what I was doing last year. Like it's more easy to do uh all of these things all of these things today right and I'm able to like explore more number of ideas than what I could possibly do in the past.

uh but the job of the engineering is you know in some sense how do you uh 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 task so I'm always thinking about okay if I want to offload some of this work to 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 um then you have to become really good at like you 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? Um before if you're like it would take so much time to create a PR so like at least laser focused on that.

But now you're constantly switching between so many things like so you need to become really good at uh multitasking across all the sessions figuring 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 course from the agent then um then that's hard then you're shipping like some un like some regressions into production right so um like the context engineering ability to multitask ability to like review and like verify the outputs. These things have become like much more important uh now because you can because you're able to paralyze a lot more than before.

Host: One thing I'm picking up is maybe a new primitive is we used to like build software thinking how do I build this 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

Guest: Exactly.

Host: sounds like there's more of that, right?

Guest: Yeah. I I'll give you an interesting example. I was working on like the with the with some of the engineers that work on our customer support uh team. Um like we are going through a journey of uh having AI agents handle some of our customer support policies. That process would go from oh you have some a runbook that human agents would follow. Um so then from that runbook you are going through a 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 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 are able to like take down all of the step.

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 really good vzero policy that that an agent can create. Then you automate the all of the configuration setup, 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 order of uh days for any policy. 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 so that you can like you can accelerate you can deploy this and then verify this quickly like essentially what we're discussing right which is now you're not instead of doing that work okay how how can you build the right tools and hardnesses on top of this so that you can automate the workflow obviously you need the right guardrails and human verification steps in between but you're designing a system that can do these things instead of like relying on so much manual work across all of these steps.

Host: Yeah. And it sounds like you're learning a lot by cuz these are all new concepts which you're now using. You're learning about it. You're doing limitations new. I I I see what you mean by you know like more learning more PRs and as closing what is a tool that you really

Uday’s favorite new products

like using? Um this this can be a digital tool this can be a non-digital tool something you find helpful. Yeah, I know the last few days I've been uh hooked to uh like some of the personal agents like instinct, Mio, Grocks of the world. I'm playing around with all of them. It's helping automate whole bunch of manual work that that I do in my personal life and I can in some sense this follow the same process. Give it all of the context it needs to do that task for me. Give me all of the inputs I need. Then I can have human in the loop verification step and do that do that task. But it's helping a lot to do all of the manual to automate all of the manual personal work.

Guest: Awesome. Well, Udai, thank you so much for walking through all of all of the internals that are being used at Uber. I I found this super interesting, especially I haven't seen this for quite a while.

Host: Yeah, you know, thank you so much for giving us the opportunity. You know, we are I feel like we're still pretty early in this uh there's so much to work on. And there's so much to uh so much to build and then we're super excited like to be on this journey to ex to build the right stuff and to see how you know the software engineering changes and how at the end of the day unlock the value for the company, value for our business by working on the right set of things.

Guest: I hope you enjoyed this look into Uber's tooling as much as I did. It's now been 6 years since I left Uber, so a lot of the tooling that Udai 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 started to consolidate services into well-sized services. And today, it has fewer microservices than they did a decade ago. Today, it's in the ballpark of 4,500 to 5,000. Even though these services are not as micro, and they're much more wellsized instead. One piece of software that I really liked 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 Cerrus 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 really base to start with.

With Capri, it's far more trivial to capture sessions than replay them. And this works really well to reproduce bugs and also to test that a fix worked for a certain bug fix. Building a system at 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 it's slowly dying everywhere. But looking at the tooling Uber built 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 PRs they should spend time looking at it in depth versus ones that are safe to approve with the symbol LGTM aka you might decide you're not going to read the code.

Finally, I had the sense that Uber investing 10 years in developer productivity is really really paying off with their AI integrations. For example, they built cloud development environments called dev pods back in 2017. Uber got to reuse almost all of its infra in building out their cloud agents called minions. The same is true for existing systems to validate software to safely roll them out. And now agents can use these as tools or as feedback loops. So it feels like companies that are getting some of the most benefit from AI are 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 of the pragmatic engineering deep dives on Uber's engineering culture. Uber is probably one of the companies I have covered in the most detail so far.

If you've enjoyed this podcast, please do give it a rating and tell your colleagues and friends about it.

← 回到本期 · 第 10 条