Ankit Jain (00:00) Hello folks. welcome to Hangar DX Live. I feel like this is the first time we are doing a live event and we could not have asked for better people to do this with. We have Max and Brian here with us. For folks who are joining for the first time, we are a developer experience community. It's DX dot community where we bring in amazing thought leaders to talk about how the world of developers is changing as we go into this crazy era. And this is the best time I feel like to talk about all of these topics. I am Ankit your host, and I'm also founder of Aviator, where we build verification systems for coding agents. But with that, Max and Brian would love for you to introduce yourself. Max, maybe you can go first and then we'll have Brian introduce themselves. Max Kanat-Alexander (00:42) Sure, hi, I'm Max Kenneth Alexander. I am one of the technical leads for developer experience at Capital One, where I help lead AI assisted software development. And I've been working in developer experience for uh over twenty years. Brian. Brian Houck (00:56) Hi, everyone. My name is Brian Houck. I work at DX, which is a developer intelligence platform, and I am sort of their resident mad scientist. I study all things developer productivity. That includes certainly how AI is changing what it even means to be a software engineer, to like truly mad science-y type stuff, like what happens to your productivity when you're surrounded by plants in your office. So I'm a researcher who takes a wide lens. To what it means to be more productive. Ankit Jain (01:26) Amazing. And today we're gonna talk about CAFE(S) framework, which Brian, you and Max and a few other folks who could not make our time, did this work. So Brian, maybe it would be great for the conversation that you can at least share a little bit about what this framework is. We can go over like some high level details and then we can do some debates. Brian Houck (01:47) Yeah, absolutely. So to sort of set the stage, I have uh just some brief materials to to walk us through. Ankit Jain (01:57) Mm-hmm. Brian Houck (01:57) first off, I would just like to say um it is always a great privilege as a researcher to be able to work with other great peers across the industry. In this case, Max and I partnered together along with Erini Kalamavaku, who at the time was at GitHub but is now at DX, Margaret Ann Story, Peggy Story, who is a famed researcher from the University of Victoria, and Nicole Forsgren who is at Google and certainly also very famous in her own right. And ultimately, sort of the the genesis of this project was as I was looking across 500 different organizations' worth of data, I was seeing that. Token usage was going up 20x over the last four quarters. And at the same time, output was going up 2x, so an order of magnitude less. And outcomes were sort of flat, our ability to deliver high-quality innovation. And so we are using more and more tokens to produce more work, although substantially less growth, to not have the outcomes we wanted. So like clearly, we weren't getting the effectiveness out of our AI agents that we might like to get. And so we wanted to dive into this more. the thesis was we needed to investigate the context that we hand to agents. And what I mean by that is that if we look at this model here, where we think of human agent collaboration, it starts with an idea, something that a person wants to do, wants to achieve. And that idea has to get translated into context. And what we mean by context, it's a bit of an overloaded term. But what we mean by context is all of the information about the task, the prompts, the user prompts, the shared prompts, all of the data, all of the code, everything you hand to the agent, which then gets passed into a harness for orchestration retrieval before going to the model, which provides the underlying reasoning itself, the intelligence. And everything in this flow is important. But there are lots of efforts already in place. To try to improve other parts of this, there's harness engineering to improve our the sophistication of our harnesses. There's certainly AI engineering to build more capable models. Product planning is designed to help us solidify our ideas more effectively. But we didn't find that anyone was looking at the quality of the context holistically, bits and pieces. And in the real world, we see where low-quality context create. Actual failure. So in our paper, the Cafe's framework, what we did is we went and looked at published, excuse me, real world use cases, published research, not things that are theoretical, but things that can actually result in context failures. And just a few to set the stage a bit, and then I'll share the framework and we can get into the discussion. You know, we talk about hallucination a lot as a context failure, as an AI failure. But it goes a lot beyond that. You know, one example is what's called weekend runaway, where you might have experienced this in your own life. You set a bunch of agents out to solve a task on a Friday afternoon, and you come in Monday morning and you see that you've completely exploded your token quota. Why? Because those agents didn't have a good definition of where the finish line was, and so they just kept on going. Another example is specification ambiguity. Agents don't often stop to Clarify requirements. If they have to choose an interpretation, they will often do it silently and then proceed pretty confidently. And this can snowball into lots of interesting ways, where the earlier it happens in the task, the more that those uh sort of assumptions could compound if they are if they are wrong. Another example that I think is really interesting is what's called lost in the middle. And we have this, you know. Conversation in the industry about, oh, how do we get larger context windows? What if you had infinite context windows? And I would posit that if we had infinite size context windows, our results would in many cases be lower quality. Why? Because agents can get distracted. And so we actually see that if you embed really, you know, highly relevant context in much broader context windows, agents struggle to find it and they will get distracted by all the context around it. And then the last example of just like, How low quality context creates failures is securities, prompt injection. Like we've had SQL injection for years, and we actually now have pretty well publicized cases of executable commands being injected into context that then agents will go and act on. And that could leak customer data, it can uh introduce vulnerabilities, things of that nature. And so As we, me and my fellow researchers, as we stepped back, we looked at like, okay, something is clearly limiting agent effectiveness. There are all of these ways that not having high quality context can result in real world failures. How can we create sort of a shared language around what high quality context would even look like? And that's where the CAFE's framework came in. Five durable properties of high quality context. And so to just step through them very quickly, the first dimension is clarity. You know, can the agent interpret the request the way it was intended? And clarity is really challenging because to the author of sort of the task of the prompt of the context, we know what we mean. It's in our head, Ankit Jain (07:38) Mm-hmm. Brian Houck (07:39) but we don't always write it down in a way that the agent can interpret it. The next challenge is just actionability. Like does the agent actually know what it is trying to accomplish? Or are you sort of just throwing the spaghetti at the wall? Can the agent proceed and know when it is finished? The next property is fidelity. Is it is the context accurate? Is it up to date? Can the agent trust that the context is true? And this has been a challenge with documentation forever, where we may have lots of documentation, but it's very stale. And so as recently as February of this year, I found that 88% of engineers regularly waste time trying to find up-to-date documentation. And with the scale and the speed of agents, this gets compounded even more. The fourth dimension is efficiency. Is the context lean enough to be both usable but also affordable? And with efficiency, it's not necessarily about how do you have the smallest context, it's how do you have the highest signal to noise. And when I look at again that exponential growth curve of context or of token spend, when I go and try to investigate outliers of massive token usage. It is almost always a failure of efficiency. It's where someone is trying to reason about a single method in a single class. And so they pass in the entire repo every time. And so Ankit Jain (09:09) Mm-hmm. Brian Houck (09:10) the agent will read that. Or they're trying to diagnose a single like failure and they will pass in all of their build logs, which the agents will happily go and read. And you know. Context is where those token costs accumulate. And so efficiency is important, not just because if you have massive amounts of context, agents get distracted, but of course because of the cost. And then the last dimension, sort of stylized in that parenthetical, is S security. Is the context safe and compliant to use at all? Or is it compromised in some way? And so You know, you may you may look at this and you may think, you know, why, like, why these five dimensions? And and we can get into it, but we do believe that these are five discrete properties of high-quality context that all lead to actual realized real world failures if you get them wrong. And so my my last point before we hop into the discussion Ankit Jain (10:05) Yeah. Brian Houck (10:06) the the general synthesis or the general theme is like better context, we believe will result in better agents. which will lead to better outcomes. I'm sure we'll send out links to to the paper. But with that, I'll stop sharing and like let's let's dive into it. Ankit Jain (10:20) Awesome. Thanks for giving all of this background, and I'm sure folks can find this reference as well. So uh maybe the first question I will kind of like try to think about it this from you've shared these dimensions. How do we, as an organization, think about where do they rank? Are they doing well on these dimensions? Are they not doing well on their dimensions? Like, how do they even kind of like quantify it? And I think Max, you might be also a great person to answer this because you now work and lead some of these efforts at Capital One. So what does that mean? Like how do you apply this framework in an organization that big? Max Kanat-Alexander (10:54) Yeah. so one of the things that I talked about a lot in the paper is like what are the actionable things you can do to like improve this, right? And like there's some prerequisites. Like first, the context has to be accessible to your agents. And a a lot of companies are in the place where like they can't even get at the context. So like if you can't get at the context, you probably are not yet at the place where like you're worried about the quality of the context. Like your first step should just be like you're get your basic needs in place, right? But then once you've got it coming in, you know. You can there's lots of things you can think about, right? So, like, let's think about actionability. Let me give you an example. people see this if like, let's say you have 15 different MCP servers connected to your agent, right? And it's providing a hundred tools. And seven of those tools or 10 of those tools are all named search, something with search. Like the agent cannot figure out what to do. it will often just choose not to search anything. J just just as an ex and and and because like you know, like the MCP, like the like the tool instructions are prompts as an Ankit Jain (11:55) Mm-hmm. Max Kanat-Alexander (11:56) example, right? So like even even the context of how to get the context starts off like being a problem. and then I'm trying to try to remember what else what else we talked about uh in the paper. Cause I mean I had a whole I had a whole this like whole thesis that I wrote and then Brian like interpolated it into the paper. Um Because it's really like a series of steps that you go through. And first is Ankit Jain (12:18) interesting. Max Kanat-Alexander (12:19) first is accessibility. And then next Ankit Jain (12:21) Mm-hmm. Max Kanat-Alexander (12:21) is discoverability within the accessibility. So like like like you have to be able to pick out the right thing. first just make everything accessible, but then you have to be able to find the right thing in the giant pile of data that you have. Uh and then once you get it, then you're gonna care a lot about things like so. I think fidelity is a thing you're gonna care a lot about. And there's a lot of things you can do about fidelity. You can like You know, make sure things are kept up to date as an example. one of the principles that we talked about the most, I think, as the whole group was working on this together, was that so much of this is just like when we were doing knowledge management before AI, and Ankit Jain (12:58) Mm. Max Kanat-Alexander (12:58) we had to think about like how what makes for good documentation. And shockingly. Almost exactly the same things that you were doing for knowledge management for developers are exactly the same things you turn out need to be done for agents. Brian Houck (13:11) Yeah. And like an an example of that, you know, Max is talking about the prerequisites before you even care about you know what do you do about improving the quality? It's like, can the agent discover it? Can they access it? But also is it written down to begin with, right? Like, which has Ankit Jain (13:25) Yeah. Brian Houck (13:26) always been a problem with documentation where it's so much knowledge exists in hallway conversations and in people's heads and on physical whiteboards. And it's like, let's make sure that. It's actually written down somewhere to begin with before we worry about even the quality of what it is to be to uh to to be used by those agents. And it's, you know, as as Max has told me many times uh before, it's like AI is an amplifier. And this is another example where organizations that cared a lot about sort of their documentation quality and they rewarded keeping that up to date. It was sort of a cultural norm, are gonna have better outcomes as a result. Ankit Jain (14:03) Interesting. Given that now we are talking about documentation, one of the patterns that I have noticed even in our organization, which is very tiny by the way, is vast majority of documents are now authored by agents. So what does that mean for documentation? Is it like I mean, obviously when you're talking about like context in a way, you're we're talking as like kind of like creating slop. Is it that these documents themselves could be slop because they're written by agents? Or are they ways in which we can still think about creating better quality documents by agents or maybe you stand a position which is we should always write documents by hand. I don't know. any thoughts? Max Kanat-Alexander (14:43) Uh n did you want to join me in? Okay, on. Brian Houck (14:45) Yeah, like I mean, like it creates this this this flywheel effect, right? Where it, you know, a human may have a have an agentic session, which results in context, which like if that's high quality context, that will feed the next session. If it's low quality context, will you know also feed the next session. And I think it, you know, agents are writing documentation both for humans to read and for other agents to read. And in both cases, it can be. Quality and can be low quality. And a lot will be about the constraints and the guardrails and the requirements that those agents have been given in order to write that documentation to begin with. And that's where something like cafes, I think, is useful is it provides then the language as you are thinking about, like as we think about like, well, what can individuals do? What can teams do? What can organizations do? Well, like individuals can just think about those dimensions as they are creating their prompts, as they're creating their shared skills, as they are assigning work to agents to go and write future. you know, future context, it's make sure that anything they write is clear, it's unambiguous, terms are defined, make sure that sources are well cited, make sure that it's secure. Like, you know, all of these properties need to be requirements given to agents when they are writing documentation, just like it's requirements that humans should have when they are writing documentation. Max Kanat-Alexander (16:02) Yeah. And I'll say that there's a scale of quality. So my my talk that I did at AI Engineer was about durable versus disposable software. Ankit Jain (16:10) Mm-hmm. Max Kanat-Alexander (16:12) And uh, you know, if you're writing disposable software, the quality of your context matters less. And if you're writing so software that you intend to be very durable over a very long time, then you need to start treating your context just like you treated your code in terms of maintenance in the past. me, my experience, by the way, so far is and living on sort of the frontier on my side projects outside of work and interacting with a lot of other people who sort of live on the frontier. You want the agent to have access to primary sources and you want the data and the primary sources to be correct, ideally. And ideally you want to primarily direct the agent to the primary source and not a transformation of the primary source. Ankit Jain (16:49) Interesting. Max Kanat-Alexander (16:51) But that is hard and there are things that like I think perfectly fine to be generated by agents and the quality that they have to be at just really depends on the durability of them. Brian Houck (17:02) Max did say something there that I like want to like really highlight that I believe the future is we will treat context very similar to how we treat code today. And so like Ankit Jain (17:13) Hm. Brian Houck (17:13) that, like how we think about like even things like code review, where it's like I expect that we will be reviewing context, particularly things you know like shared skills. And the more consequential they are. The more thoroughly we will review them, right? Like Agents MD, we're gonna review pretty carefully. But I expect you know the future, much like with code, we'll have sort of like dependency graphs and nested structures of shared system prompts. And the way that we think about where our quality threshold is will be different, just like today with code, like less consequential code. Well, we we care a little less about it. Ankit Jain (17:56) Yeah. I think there's like one aspect to it which is different than code. With code, you can write tests, you can compile, you can kind of like, you know, verify things work. I guess maybe for context, you could possibly write evals. I know people write like evals for different kinds of things. I don't know if there is a lot of conversation going on around like evals for context itself. Max, do you have any thoughts? Sorry. Brian Houck (18:20) This is my next paper. Ankit Jain (18:23) Okay, Brian, maybe what Brian Houck (18:25) I'd love to hear like Max's thoughts and then I can talk about like the approach I'm taking for sure. Max Kanat-Alexander (18:29) My experience currently, and I would not consider myself to be a world leading expert on this subject, is that there's a cost-benefit trade-off as far as optimizing the quality of your context. If you want, you can tell, you can like you could take Cloud Code or Codex today, and you can be like, give a context-free sub agent this document and see how well it does at accomplishing this task. And then delete text. Until you can figure out what the minimum set of instructions are that are required in order to accomplish this result. The Ankit Jain (19:03) Mm. Max Kanat-Alexander (19:04) problem is that's very expensive. the cost of doing that eval might be greater than all the cost you will ever save by improving that context. So there's like you also have to think through like how important is it that the context is like slightly off. You know, I think just like we've talked about with the rest of these things. If you're writing long-term durable software with, you know, huge consequences and millions of users, you would probably care. If you're writing like a one-off tool that's going to be used by like 10 people, you probably wouldn't. Brian Houck (19:35) I like with code, I actually think there are layers of testing that's possible. I mean, if we take the security dimension as an example, like there's a bunch of deterministic sort of like static analysis that you could do over context to look at things like, hey, are there hard-coded credentials in there? and I I do think that just like with tests, you know, the amount of testing, the amount of effort and time you want to invest into it. Is going to be related to sort of how important something is. Now, exactly like what Max described, you also have a pretty significant cost angle. But one of the things I am I'm looking at right now is if you take all of your agentic sessions, and so your like the transcripts with the back and forth, can you effectively use an LLM as judge technique to evaluate them, to provide, like not only to evaluate Sort of those sessions, but provide coaching to the humans for future sessions. And so where LLMs are fairly good is be able to go and sit and look at those those sessions and run evals on things like, well, how clear were the terms? Like there have to be a lot of back and forth in order to clarify what you meant. Like, was there a definition of done, or was there ton of back and forth? It's like, well, that's not really what I wanted, is like I really wanted this thing. Uh certainly. Efficiency, you could go and look as like, hey, was there a lot of data dumped in that that agent never used? and why it matters is when looking at evaluating these sessions, these session transcripts, having a failure of just a single dimension of cafes on average doubles the number of tokens required to accomplish it and decreases its accuracy by 30%. So like you spend more to get Ankit Jain (21:25) Interesting. Brian Houck (21:25) worse results. And so getting it right does matter. Now s to Max's point, sometimes that's fine. That's a cost you're willing to spend. Um and then sometimes it's it's not. Ankit Jain (21:33) Interesting. So one of the things that we also, this is very timely in a way, yesterday, we had a working session talking about how do we improve our skills quality. And skills is also a very big part of the context itself. And we started wondering is there a way in which we can almost do like self improving skills? And it kind of like goes to the context as well. I think you kind of like skills and context we can we use more or less. Interchangeably in some ways, right? Right. Brian Houck (22:01) Yeah, skill skills is a kind of context for sure. Ankit Jain (22:04) So so for instance, what we did was we asked our agent to go review every time the skill was used and try to analyze where it was, working well or not from the past sessions in my own, history. And if everyone does a little bit of this, maybe you find interesting tidbits that can be improved. And I think the other thing which we also think about doing is every time a new model comes up, we kind of like try to see is there sort of like you know going to the efficiency part, which is like, is there parts which are less important now? Right. I think as models get better, like some of the guardrails that you need probably are needed lesser and lesser. So it's sort of like two questions I have in some ways. Like, do we see a world where self-improving context could be a thing? And I think sort of related to this is. How much of this can be solved by better models and better harnesses versus thinking about context itself? Max Kanat-Alexander (22:59) My experience, so I have done a little bit of experimenting with this over the last year. I have a few skills that I have told to fix themselves. Uh, like like the skill instruction contains the instruction to fix itself um Ankit Jain (23:10) Okay. Max Kanat-Alexander (23:11) for anything that the that the agent encounters. My experience here with all of these things with goal, and I'd I'd be interested in in you know, Brian's study and any kind of empirical or qualitative verification that we have of this, is the most important thing is your specificity and the clarity of the goal you have set out. Ankit Jain (23:27) Hm. Max Kanat-Alexander (23:28) I I'll give you an example. So uh I think last week I was having my agent, I have a skill to profile my code base. And because it's complicated, like doing performance analysis on my particular code base is complicated. and I was like, okay, I want you to like you know do this context-free subagent thing where you keep it evaluating and then I want you to build and I want you to build deterministic tools every time it fails. I want you to build a deterministic tool that it will run instead of like giving it instructions or trying to minimize the number of instructions. And I came back to it like three or four hours later because it span, it like just like spun for that whole time. And it had built this cathedral of tools. And I was like, okay, do you and then I was like, please re do you need this cathedral of tools? And was like, no. And and the and the basic conversation was, I had misinterpreted your goal. Like, Ankit Jain (24:13) Hm Max Kanat-Alexander (24:14) I was like, it's okay because because of something that I had said. Like I had said something that it had like gone way too pedantic about. And by the way, gone way too pedantic. Brian Houck (24:21) We can run away in action. Max Kanat-Alexander (24:24) Yeah. Like gone too pedantic is like my number one still existing problem with all LLMs. you were just like way too literal about the thing that I just said. Um like you there was no that you didn't exercise sufficient judgment. You're giving it to you. Like you are the target of this. it often like doesn't understand the capabilities of other LLMs. I've heard by the Fable 5.2 is the first model that's really good at this. So I haven't tried that yet. I'm excited to try that out. you can allow you can let the subagent reason. It's okay. The subagent is an LLM. It is allowed to reason about certain things. I'm just trying like I just need you to make determin like what is the minimum set of things you need to make deterministic so that they are repeatable? And then it was like, and then it got it, and then it sort of iterated a bit more and it like actually came up with something good. Ankit Jain (25:03) Interesting. Right? Brian Houck (25:03) Yeah, I just I love that example because as I as I chimed in there, like it is a great you know real world case of an actual you know fail like failure along a dimension of cafes. And I think as we talked about earlier, this notion of sort of self-improvement is like it is A potential flywheel that is in and of itself tied to are the ways that you are providing the context to the system in order to do that, the the prompts that you're giving it high quality, or is it gonna spin off? And I think you touched on something else there, Ankit around like, well, can the capabilities of models solve some of this? And like, yeah, as models get more capable as harnesses get more sophisticated, it can try to protect us from ourselves. And I think security is a good example of this, where more capable models, certainly more sophisticated harnesses, can just refuse to execute commands that look malicious. But that doesn't change the fact that the context itself may still be compromised, even if we have that guardrail. And I think that there will still, at least for the foreseeable future, be a lot of value in not putting that work onto the models because it probably will accrue a lot more cost. Ankit Jain (26:19) Interesting. Um so Brian Houck (26:21) And that's sorry, my last leg. That's why every s like every phase of that chain that I painted earlier, they're all important. Like you can't just like hope that one will solve the problems for everyone else. Ankit Jain (26:32) So uh one of the things which was interesting is I feel like this is also a little bit of Dora metric style, where if you try to improve one, you might impact the other. How do you how do you think about that? Like, I mean, obviously the clear ones are like, you know, maybe you can be too clear about everything, and then you know, clarity is there, but your efficiency goes down the drain. Brian Houck (26:55) it's hit both ways where it's certainly an improvement of one could inadvertently lead to like a failure in the other and like you do have to balance some of these efficiency is is the clear one. and we also see failures travel together, like you know, failures in clarity and failures in actionability are often like very highly tied together. I actually found that as I was trying Trying to come up with sort of semi-synthetic transcripts to run evals over. So I have like a known set. It's even like very doing it very intentionally and carefully and sort of scripting all of my human side uh interactions. It's like really hard to keep these things isolated, oftentimes. And so they might be conceptually different things, but they travel very much together and and Much like everywhere else with developer productivity, that's why you can't look at just one dimension or just still it down to a single metric. You have to look across lots of things and see those balances. And sometimes you have to make like intentional trade-offs. Max Kanat-Alexander (27:58) Yeah. And one of the things that I've experienced too, that's been a sort of more recent experience since we wrote the paper is that there's this trade-off, especially on clarity and actionability and efficiency, where you sometimes you want to let the model use its judgment and sometimes you don't. So, like sometimes like you really want to be like very specific, like please do this. And then sometimes you are wrong and the model would have been right. Like sometimes it knows something better than you do. And so some of Brian Houck (28:26) Really? Max Kanat-Alexander (28:26) that is like your like how much how you execute your confidence as a human being. And like how justified your confidence is as a human being. Cause I have definitely had many coding sessions where I got to the end of it and I was like, oh, I should have done the thing you told me to do at the start, and you were right, Ankit Jain (28:46) Ha ha. Max Kanat-Alexander (28:47) and I was wrong. Brian Houck (28:49) I mean that like for me happens when I'm trying to have my agents help me with analysis where it's like, I think you should take this approach. I'm like, no, that's that's silly. We're gonna do it my way. It's like, no, it turns out you knew you knew what And that's what like that's why it's collaboration, right? Like it's human agent Ankit Jain (29:00) Right. I think it also de Yeah. Yeah. Brian Houck (29:04) collaboration. Ankit Jain (29:05) Right. I think in some ways it also depends on the task at hand. Like sometimes I'm brainstorming. It's like, hey, come up with ideas. How do we simplify some of these things? Which is sort of like, you know, I want it to be more exploratory, versus sort of like Brian Houck (29:16) Yeah. Ankit Jain (29:16) being more constrained. Brian Houck (29:17) Yeah, you're intentionally dialing down the action ability. Ankit Jain (29:21) Right, right. Interesting. so another question I have is ownership. So I think there was like some mention, I mean this is probably from your previous conversation, around who should own context. And there was this concept that okay, teams maybe should own context. One of the things that Max and I have probably also talked about in the past is effectively a lot of DevEx work historically ends up being owned by one platform team in the company. How do we think about ownership in such a world where, you know, effectively there is one team which is now responsible for owning a lot of this? I guess like uh context is a part of factory, right? Max Kanat-Alexander (30:00) Yeah, that is tough one. And and look, it's the same sort of tragedy of the commons that DevX teams have experienced forever, where the you have a hundred stakeholders and they all want something from you, and they all don't understand the other 99 stakeholders, they don't understand why you can't deliver everything that you want right away. And then the business often doesn't understand like why you devx are so expensive. like the the people providing the funding are like, I I can't give you more people. Like, what what are you Ankit Jain (30:30) Yeah. Max Kanat-Alexander (30:30) doing with all these people? And then there's a hundred people at your gates who are like, why can't you give me the thing that I need right now? and this is just another one of those things. Another one of those things is if you provide the platform, you are going to need to start thinking of in your estimates, how do you make that platform agentically useful? And that's not just context. That's like everything. Like, how are you going to get the MCP in there? How is the MCP going to really work? How's it going to really work? Not just like, oh, I'm going to throw it over the wall and then somebody will hook it in there. Like, what's the actual developer experience of using your platform? That's work. It's real work. How and and how are you going to maintain that context? How are you, the owner of the platform, going to be sure that the agent continues to find the correct information and the correct instructions about your system? Like, are you going to just give it the code of your platform? I mean, maybe look. I don't know your system, but this is new work that you cannot like just hide as like, you know, I'll just be run the business kind of work. Like every time you build a new thing, you're gonna have to think about what's the work that I have to do to allow this to integrate into an agentic system. And a lot of the time, that is just what's the work that I should have done always to make this a really, really great developer platform for everybody. It's just that in the past, some of those things were honestly sometimes afterthoughts from teams, especially the documentation. You know, like that often came later. Like what like what happens when something goes wrong? What's the feedback mechanism? What's what's my telemetry that lets me know that things are going wrong? And when I see a thing in that telemetry, how do I investigate it? And I'll tell you, I I I just had somebody recently just tell me they they came from like a production organization where they like did a bunch of observability work and they were like, Man, I thought I knew everything about observability and then I tried to build observability for developer platforms. And boy boy, it is really hard and totally different and actually much harder than production observability. Ankit Jain (32:22) Interesting. I can imagine that. Brian Houck (32:23) I I just like I agree with with Max that it does it's gonna look a lot like developer platforms where it's there was sort of economic advantage to having centralized teams, solve it for lots of people. And I think organizations are going to like it'll probably still be the developer platform teams who own it, will create central infrastructure to manage sort of the ownership of individual pieces of context, handle revision. come up with shared standards and tooling for like evaluating the quality of that context. I think that will live centrally. And then teams will be like with code, will be responsible for adhering to those standards and evaluating their their their context and reviewing it and all those things. Ankit Jain (33:08) Right. Yeah, I think that's fair, right? Even with dev platforms, we always talk about how do you create a balance where you give certain control to the teams but maintain certain standards globally. Right. Brian Houck (33:18) Yeah. Yeah, I mean it's sort of hub and spoke like in in practice. Ankit Jain (33:23) Right. Yeah. So I suppose like you can potentially create certain guardrails where this is how you can use MCPs, this is how much context should be empty at at baseline, or or some sort of like those things which helps create better quality guardrails for these things. Brian Houck (33:39) Yeah, and like shares best practices, all these things. Now we'll say like I as a researcher, I have no idea what it's gonna like actually look like in practice. And you know, I like I may be totally wrong on this, although I think you know Max's lives experiences sort of aligned to what I would would have predicted. But it's like for for those of of of you listening in, like if you're like, oh no, we do something wildly different, it's incredibly successful, please tell me. Like as a researcher I wanna know those things and like I wanna incorporate that into to future revisions of the the work. Ankit Jain (34:11) OK, so one thing I would want to talk about, which I feel kinda had a moment and sort of died down, is uh spec-driven development. Like, do you think uh from this context-based framework we are talking about, shouldn't spec-driven development be the way how people build software now? Max Kanat-Alexander (34:32) you really dropped a hot question there. okay, so obviously you need to be able to specify intent to your agent. I think one of the problems with the term spec driven development is semantic diffusion. Like it has uh, you know, this this term semantic diffusion means a word starts to mean nothing over time as it becomes more popular. And spec driven development has started to mean all kinds of other things, other than I need to provide clear intent to my agent and I think the complexity of the system required to create and provide that intent is proportional to the complexity, novelty, and durability of the system you are building. So I will give you a few different examples that are on this spec driven. My side project is a compiler for a new type of programming language. It is by far the most complex thing I have ever built in my life. For that project, I handwrite proposals that say what the problem is, what the solution is, an example of the solution, why it is the right solution. I do like a full handwritten very detailed architectural decision record for every individual decision in the language. I then handwrite, well often I use claw to do it and then I edit it. spec language. So there is a single spec because it's a programming language. Like you want to have a you have to have a spec. A programming language has to have a spec. Like all programming languages Ankit Jain (35:53) Okay. Max Kanat-Alexander (35:53) that don't have specs are in a bad way. um And so there's like one document and it says this is the behavior of the language. So the proposals are historical decision records more or less. And the spec is purely normative statements that say this is how the language will be built. And then from those specs, I can spend days or weeks implementing one of the things in the spec. And I and I can keep using that and refer back to it and be like, hey, okay, you wrote tests. Do they do what the spec says? Like, are you doing what the spec says? So that's like, that's like, okay, I hand curated all the context. There was no framework. There's no like, I didn't use open spec or anything like that, right? and then on on the farther end of the scale, there's like, I need a tool for my code base. Like, I have a tool in my code base that checks for dead simlinks. All I did was I was like, I want a tool that checks for dead simlinks. please write it and put it in the pre-commit. I didn't review the code. I didn't do anything. I said, okay, I looked at it. I said, does it work? Okay, good. It works fine. And then I committed it. that's like the far, far end of like the I don't care about this piece of software. And then in the middle, I think, is. I am building a thing that I expect to be durable, but the complexity is not very high. And I need to share, and I have a bunch of different people working on this system. And we all need to agree on how we're going to provide information. And in that situation, what I do, rather than tell people you should all use this framework or whatever, like I let teams make that decision on their own. Because in my view, what kind what the way that you choose to do this is very much like what editor you choose. It's very much a thing about how do I think about software development. And the one thing you should never standardize is how people think about software development. Anything that would anything that would cause people to to force people to think differently is not something you should standardize. Or that would like conflict with how they think about the process of software. I'm sure Brian can tell you, if you've ever shoulder surfed software engineers, it is wild how differently they all work. Like you, it will blow your mind. They do not work like you. And and that is true. No two software engineers work the same way. And so forcing them Brian Houck (37:53) and never the way that tool creators think they'll work. Max Kanat-Alexander (37:57) Yeah, never. Never the way that tool created, absolutely never. Like it is shocking. Like you're like, my like as a if you're a tool creator, you're like, what are you doing to my baby? Like, my God, I I never would have imagined that. So super enlightening. and so instead I say, like, look, here's some guidelines. Here's the principles you need to follow. Like, one of the principles that I give people is the things that are in your repo should ideally reflect the current state of the world. If the agent needs to know about history, it can look at git logs. but it ideally should never search for text and find text that represents something that is not the current state, unless that's a document that is very clearly located in some place that says like these are the historical documents. But ideally, even then, I have seen the agent find those and get confused. So that's that's just an example. So rather than being like, Well, you should do this framework or you should do development, you should always do development this way. I'm like, okay, here's how think about how does a genetic software development work? How do you want to make that work? For your code base, depending on its durability, disposability, complexity, novelty, and then reason from there about how you want to provide that information to the agent. Ankit Jain (39:00) Interesting. Brian Houck (39:00) I I think I have all of the same sort of mental challenges with the term spec-driven development that that Max has. And my way around that is I prefer the term intent-driven development. Cause like I think that that defines the altitude will work out. Like I don't want to tie it to any sort of specific artifact and like what a spec even is, like, who knows what that means in in the future. But I do think conceptually that's the altitude we're gonna work at, right? Is like we will have a thing we want to accomplish. And we will pass information to the agents about what that is, what done means, and how to validate that that actually happened the way we intended, right? Like what's the checklist? And all Ankit Jain (39:37) Interesting. Brian Houck (39:38) of those things will ideally get specified sort of up front. you'll iterate, of course, but like you'll have this is the task, this is how you know you completed the task, and that will get formalized in a million different ways, I'm sure. But like ultimately, like I think it'll look a lot like TDD, but it'll be sort of intent-driven development. But it's like tying it to like a concept of a spec that doesn't make sense to me. Ankit Jain (40:03) Interesting. So maybe there is another way to think about it. I'm sure you folks are familiar and have opinions on software factories. my thought process, and I still feel like we are far from the place where things feel more stable, like this is how software engineering is gonna be for the next 10 years. Uh we're not there yet. I don't know whether software factories are gonna succeed or not. One of my thought process is a lot of context problems arguably could be solved if agents just stop every time to ask questions, to clarify the details. Like, should we not move more towards that versus the opposite direction of factories to solve the context problems? I don't know. This is just like food for thought. Max Kanat-Alexander (40:45) Yeah, the the so I'll tell you the cost of a gentic software development is attention. like the the resource that is scarce is human attention. Brian Houck (40:55) Yes. Max Kanat-Alexander (40:55) And so everything you're trying to do with your system is to optimize for how much human attention you need to give to the system. And so if you do something like that, what you want to like ideally. I think the ideal system is where there are no decisions to be made. And and and to anybody who works in the current world of software, that sounds insane because you use a bunch of tools that have given you choices that you don't need to make. Like you are allowed to write functions in Python in a million different ways. You probably don't actually need that flexibility. It's useful to you now because you learned Python in a particular way and are familiar with that way. But if it constrained you from the beginning to not be able to make some of those choices, you wouldn't have known the difference. so, like ideally, the decisions you need to make are the decisions about intent and the decisions about what you want to build and sort of the more creative parts of software development and not the fiddly bits. I think what I what I would like to have happen. Is that agents handle all the fiddly bits and because and I and we and we come to a world where there's only one way to do all the fiddly bits and it's the right way. Like, not like there's only one way and it's a bad way, because like that's been the the the penalty and danger of abstraction for most of the time that software has existed, is that like, yeah, you can use this framework, but it's gonna be terrible. Like, like you get to use this framework, but it has like a 10x performance penalty and Like, because it's kind of like do these abstractions that involve like 25 levels of function calls and like a bunch of reflection and nonsense that happens at runtime and like looks beautiful for you, but then it's like actually terrible in production. No, we have to come to a world where there is only one way to do it. It's the right way, it's a good way, and we've eliminated all the bad ways so that like the agent can't make bad decisions. And then, yeah, ask me about my intent where my intent isn't. Clear, where I didn't tell you to do the thing and and and you don't know like what I actually want. Yeah, please ask me questions. Brian Houck (43:00) Yeah, I I think like your Ankit Jain (43:01) Interesting. Brian Houck (43:01) your proposal there, your your thought experiment Ankit like definitely limits the blast radius. But I think it should only be necessary if you weren't able to specify exactly what you needed ahead of time. Now there is like I I released a paper recently that showed that there is like this two-way scaffolding that happens between humans and agents. And like Agents being able to stop and explain their thinking and what they're doing and why, like, still helps us as humans to understand the systems. Like in the future, that may no longer be necessary. But like there is some of that. But to stop is like, hey, but did you really mean this? Like, what did you mean here? Like I think in general those are largely failures. But I I I just want to pile on to to Max's statement there about human attention as sort of the scarce resource. And we see that like this is under assault with AI. The more someone uses AI, There's this massive spike in interruption frequency and our ability to do sort of sustained deep work. And this notion that's like, but we're just gonna like constantly be like working, like checking in on our agents and farming them out. Like, that's not how human creativity works. We still need large uninterrupted blocks of time to think about what we want to build. And we can actually see as you use agents more, like that goes down. And to this day, Amount of time available for deep work, like without interruption, remains by far the strongest predictor of innovation delivery of any variable I've tested. And so it is so important and we are getting it wrong. Ankit Jain (44:31) It reminds me of uh Max it was two years ago you wrote the Developer Productivity and Happiness Framework at LinkedIn, where context switching was one of the key aspects of developer experience. Max Kanat-Alexander (44:44) Yeah. Yeah. Ankit Jain (44:45) How are things looking about context switching these days? Max Kanat-Alexander (44:47) yeah, terrible. Absolutely terrible. I'm I'm pretty good at context switching. So I feel like I am personally less affected. So I don't like have a visceral, I don't have as much of a visceral experience of this. you know what, you what the hard part is actually? It's not even that you have to context switch, it's that you feel like you need to. If you've ever been a people leader, You know, one of your greatest fears is like, what if I don't give my people things to do? like, my gosh, what if I let them, what if I just leave people idle? Which is, by the way, bad. Like, people will quit your company if you leave them idle. Like, like, like you would you wouldn't think so. You wouldn't think you would think people complain about work, but no. If you leave people idle, like they will quit. Yeah, Brian Houck (45:21) Yeah, we want to be productive, yes. Max Kanat-Alexander (45:23) people want to be productive. And but what that translates to, at least for me, is like the AI vampire opportunity cost fear, where like you keep feeling like, If I don't give it an instruction, it won't go off and work for the next 20 minutes. So I need to keep switching so that I can keep giving it instructions so that it can work while I'm doing this other thing. And so it's Ankit Jain (45:41) Agent anxiety. Max Kanat-Alexander (45:43) yeah, it's it's it's more like a human Brian Houck (45:44) Totally. Max Kanat-Alexander (45:45) thing that you kind of have to get over. And I I I don't know, I haven't gotten over it. Like I keep being like, wait, what's up with the other agent? does it need me? it needs me. shit, I'm gonna go type over here. wait, now I'm caught up with this one. wait, I forgot about this one. I've got like five different things going on. And and and the The tough part is there's almost always in all my work, there's a priority. And it's not agents four through six. And I'm almost always focused on agents four through six because they keep needing my attention. And I'm not working on agents one and two that are the thing that are actually the most important. Brian Houck (46:17) It's like we know we can we can chuckle about it now, but like I genuinely believe that we are approaching a pretty massive burnout like crisis in the industry for exact like there's this mounting anxiety of like, but I have my agents, I gotta make sure they're not idle. And as a result, I'm like constantly switching, which is making it even tougher on me. Um, and it is like I think it has a lot of parallels to challenges of people management, which is a really, really hard job, particularly. Max Kanat-Alexander (46:41) Yeah, and I I I will just say to anybody, uh, it is important to sleep. You should sleep. Please sleep. Brian Houck (46:46) I can prove it, I can empirically prove that you are like more effective if you get more sleep. Ankit Jain (46:52) But make sure you're Max Kanat-Alexander (46:52) Yeah. Ankit Jain (46:52) running five agents before you go to bed. Max Kanat-Alexander (46:54) Ha ha ha ha. Brian Houck (46:55) But only only if you give them a clear definition of done. Max Kanat-Alexander (47:00) my god. Ankit Jain (47:02) Okay, I feel like we have gone a little bit off track here. Going back to context, uh so you know, context lives in many different places. I feel like code itself is context, right? Like we have these Brian Houck (47:13) Yep, code is absolutely. Ankit Jain (47:15) HNMD files, we have skill files. how do we think about like I feel like code is probably still, you know, Max, you are also the author of code simple. I'm not gonna go about importance of good quality code, When we think about rest of the things, uh, and this is a conversation about like maintaining all of this context, does it go through the same amount of rigor that code reviews do? Although I think there's a whole different conversation to happen about like the rigor that's going on in code reviews these days. Um but assuming it's happening, like are we kind of like thinking about building almost like CI systems for your context in a way, you know, there is almost like a pipeline that is like almost like a C I D C D workflow to make changes to your context the same way you do for code Max Kanat-Alexander (48:00) so w we we talked about Brian Houck (48:00) Yeah, I mean I I'll let Max answer as a practitioner. Yeah. Max Kanat-Alexander (48:04) Yeah, we we talked about this a bit in the paper actually. There's a balance here as far as like as far as reviews of context. I think that there's gonna be some critical context that you want reviewed and that you wanna force code review on. And there's other critical and there's other context that you actually don't want to force review on because it it too much of a barrier to keeping it up to date. I mean, I we saw this at Google with documentation, where there are some documents that are so important. So let me give you an example, right? Like I maintained Google's code review guidelines. You are not allowed to modify Google's code review guidelines without a review. Like you cannot change the text in that document without somebody having seen the change you want to make and having signed off on it. And a person who is the owner of that thing, not just any random person, but like a small number of people who were the owner of that thing. Like at the time, that was me. Like it had to be specifically me or the Tom Mantrek, who was the editor if it was like an editing issue. But like on the other hand, most of the documents, like we had these little documents for like command line tools and stuff like that, that we use as part of some of our frameworks. And for those, when they were wrong, it was easier to just let engineers, because we generally trusted engineers at the company, it was easier to just let them up do the updates. is there a typo? Just go fix the typo. Don't send a PR to anybody. Just fix it. and I've I've found in general that the this is why people liked wikis. So much because there was such a minimal barrier to keeping things up to date. And frankly You very rarely see document quality problems in wikis from people being allowed to edit them. Like I just almost never see that. I it only happens if it's something that's like very central and that would not be well known by the large number of people, or like the people who are editing it couldn't have had the empirical experience necessary to it. Ankit Jain (49:41) Yeah. Brian Houck (49:42) I think we're gonna treat shared context like code, and much like we're seeing with code, we're not going to enforce humans to review every change anymore. And I I think we'll see like the same thing where depending on how broadly it's shared and what the impact of it is, will determine the level of rigor, um, just like we do with code. Ankit Jain (50:01) Right. I mean I think documents also historically, at least like even I remember at specifically at Google as well, which was probably also one of the largest companies I worked at. the reason why it was also hard to maintain documents was many people will choose to start a new document instead of updating an existing one. Right? Right. and and think about like if you Exactly. Brian Houck (50:19) Which which is a huge context problem because you have conflicting Max Kanat-Alexander (50:22) Yeah. Brian Houck (50:22) sources of truth. Yep. Ankit Jain (50:24) So imagine now the same thing applies to context as well, right? Like if you do not have any kind of rigor in validating whether this context is, you know, up to a certain quality and standard, you can end up in the same situation. Like I mean, honestly, like even with Wiki, that was a very common problem, right? If you give more authority to people, it's like, you know, this document is too old. I'm gonna just start at new one. Brian Houck (50:47) And yeah. And like the the problem is exacerbated now because it's like it was always such a huge source of frustration as you're like, yeah, hold on. We have two different things to like it's wasted effort, it's a source of frustration for readers. agents are way better at finding all those conflicting sources of information. And so if like if I have a source of truth that I want the agent to use, but I have an old conflicting source that's buried in a downloads folder somewhere. Like the agent's gonna find both of them, it's gonna choose the one it wants to choose and it's gonna proceed. And like it oftentimes Ankit Jain (51:18) Mm. Brian Houck (51:18) won't be right. And I run into this like in the real world all the time. Ankit Jain (51:22) So I suppose maybe there should be a a system for verification of these things. Brian Houck (51:26) And it's like probably gonna be owned by a central dev plat like team. Ankit Jain (51:30) I know we are coming close to time. I definitely wanted to ask a question about S, which I completely forgot. tell us a little bit why all the brackets. Brian Houck (51:38) S is in in the parenthetical. Now I will say that uh amongst the the authors of the paper, I was the strongest advocate for putting it in the parenthetical. And Max uh certainly tested that concept the strongest on the other side. And conceptually, the reason that I put like we we landed with S in parenthetical is the first four dimensions of cafes. really talk about is this context any good? Versus the S for me is conceptually different because it answers a fundamentally different question. Should we be using this context at all? Is it safe and compliant to use? And so there's like conceptually that reason. And then on a more practical lens, I was not shockingly already thinking ahead to well, how am I going to test, like measure these things, right? Cafes is a definition framework. It's not a measurement framework. I'm thinking, well, how am I going measure these things? And I could imagine the way I was going to measure the first four dimensions, but S would be measured in a very different way because of just like the inherent trickiness of measuring security. And that's why it is like conceptually different. And then from an actual practical standpoint, it would be measured differently. It does make it a pain to write and it makes it a pain to search. And there's lots of like it is like a pain to explain, but that is why we we did it. Ankit Jain (52:59) So anything else, Maxi, wanna add here? I think we are at time. Max Kanat-Alexander (53:02) No, Brian covered it. Brian Houck (53:03) Ha ha ha ha ha ha we've we've had and settled this debate. Max Kanat-Alexander (53:08) Yeah. No, I I eventually agreed with Brian. I was like, okay. Ankit Jain (53:11) Okay, I guess this is a wrap then. This was such an entertaining conversation. I hope uh everyone who was listening also learned a few things I feel like we are living in an amazing time that we are rethinking a lot of these principles that we have believed in the last twenty years. And you know, there's a lot to think about, there's a lot to build, and we still are finding answers. But frameworks like these definitely help out. So thank you, Brian and Max. Brian Houck (53:37) Thank you so much for having me. Max Kanat-Alexander (53:38) And thank you. Yeah, thank you, Oke. It was great.