Transcript
0:02 All right, welcome everybody to CS 153 office hours. We are super lucky to have with us someone here today who is, I think it'd be an understatement to say like truly at the frontier. We thank you for joining us, Prithvi. Prithvi is at Anthropic and a few weeks ago when we started teaching the class and we were trying to figure out who would be some practitioners to bring in to talk to you guys as students about what literally the state of the art is in real time on systems design.
0:33 That morning a blog post came out from the Anthropic team on how to do harness design for long running agents, which is really big, meaty and unsolved problem. And Prithvi was the author on that post. So thanks for joining us Prithvi.
0:48 Thanks so much for having me. Excited to be here.
0:50 Tell us, could you just start with yourself what you do at Anthropic, how you got here. We'll start with intros and then we'll go into the. The questions that are starting to pile up from the kids.
1:00 Yeah, happy to. So I basically started my career in about 2018 and actually my first job out of college was at a research lab. I was working at MIT at the time. So I like to say that I kind of had the opportunity to do like maybe not agent harnesses but sort of the predecessor to that in the era before Genai, before agents. And so over the course of my career when models like ChatGPT and the Cloud models came out, it naturally parlayed into what's the infrastructure and everything that's directly around the model.
1:31 That's my background. I started Anthropic last April. I worked on the applied AI team for about a year. And that's a really cool and unique team. We get to work very closely with customers who are at the state of the art, who are building really sophisticated things with agents. That was a great learning opportunity for me to see what's at the frontier, see what's at the state of the art, how people are building Agentic products. Then more recently with some of the work that I've done, I've transitioned over to the Labs team, which is our internal team at Anthropic that's doing all of our state of the art products.
2:00 For example like cloud design which came out recently.
2:03 Sweet. Can you talk a little bit about what is the scope of the Labs team versus the previous team that you're working on?
2:12 Yeah, totally. The Labs team in particular is. You can think of it as maybe our in house incubator. But a lot of the cool 0 to 1 product ideas are coming out of Labs. So it's kind of like a dedicated space where people on the team have that purview to go to try new things to figure out what would resonate with our users and customers. And my previous team, Applied AI, like I mentioned, the mandate was really to go work directly in the field, work closely with folks that are building products around Claude and help them make those products as best as possible with our expertise.
2:45 And before we sort of jump into the Labs team, do you think this pattern from a org systems design standpoint is one that is going to repeat itself across the industry like applied versus Labs or do you think this is somewhat idiosyncratic to anthropic?
3:04 Yeah, it's a good question. I think one really interesting kind of like bifurcation that I've been noticing is one side of it in terms of building agentic products. Like the skill set is understanding agent harnesses, maybe understanding things like design ui, things that like directly implement, influence the customer. And then there's the other side which is more traditional software engineering which is like how do you take this thing, how do you scale it? Like even a big problem people have been asking a lot about lately with like for us it's cloud managed agents but you know, for other people in the field it's like how do you put an agent in a box, deploy it, let it run for a long period of time.
3:38 And so you see this interesting kind of split where there's some stuff that's like pure software engineering, there's some stuff that's like all the new stuff and there's like a big Venn diagram in the middle.
3:50 I think we should spend some time on definitions because you that right there, you know, as you were describing the differences between the two, you dropped a couple of things and that I still don't think have canonical definitions across the industry. So maybe we could start with in your, as you define it, what is an agentic system versus not and actually you know what, let's just start there.
4:20 Yeah, it's a good question. I think so the agentic system for me at the simplest level is sort of like when you think about a product, it's the core of your product, it's the agentic loop. How's the agent behaving? What are the tools, what's the system prompt, what can it and can it not do? All that good stuff is the Agentix system. And then I kind of think about the layer around that as like the product experience.
4:42 Which I'm more of a friend guy in my full stack career. So this is a bit of my bias. But okay, like what's, how do you take that, how do you build an application around it, what's the ui? And then there's sort of a layer around that which is like how do we deploy it, how do we serve it to millions of people? That's more like infra. That's my rough mental model. A little bit of my own bias in there, but that's how I think about it.
5:01 Cool. Awesome. That's helpful. Context setting. Why don't we just start running through the questions? The first one is your harness for long running coding. Agents uses a generator evaluator loop inspired by Gans. What made you reach for that analogy specifically?
5:18 Yeah, so it's an idea I'd had for quite a while. I first learned about Gans in my first job, this was in 2019. And I was just fascinated with the concept. So when agents came out, I had just been messing around and it was simple prompting. I had a GAN that was like a, like a startup idea generator. This was in like 2023 or something. And so at a certain point I was like, okay, this kind of maps very cleanly to like software development, life cycle, right?
5:44 There's like, you know, coder, there's a qa, all that good stuff. So I tried it out, saw signs of life and you know, got very excited about it and kind of just kept going deeper.
5:54 And like I know that Gans as it was a maybe a design metaphor, but has it become, is there a limitation to that metaphor you've discovered?
6:07 Yeah, actually that's a really good question. I think like, I mean obviously it's more like an inspired by. I'm like in the nuts and bolts, there's like many differences, but I think that you know, like that's, that's one easy way to think about it. I think like the metaphor breaks down a little bit because there's like actually a third agent, right. That I talk about which is like the Planner agent. So it's actually more like a three agent system as opposed to a two agent system.
6:31 But even that Planner agent, that one in particular has a very kind of clear scoped role in the whole kind of multi agent system. And so once you kind of get into it, then it's kind of the interplay between the coder and the qa.
6:45 Okay, I have a bunch of fractal questions about the Planner agent, but we'll keep moving on and come back to it if we have time. You've said context resets beat compaction for long running agents. What was the experiment or failure that convinced you of that?
7:02 Yeah, so actually this is a great question and I think it's an important point of clarification. So what I talked about in the post was basically a body of work that went on over, you know, a few months and there were a few models in between. And so what I was trying to clarify, I think there was a little bit of like a miscommunication there, which is that the first experiments we did, which was specifically with Sonnet 4.5, and there was a predecessor post that we put out, my colleague Justin Young had written that one was the one where context resets were the key unlock for the harness.
7:35 The reason being that model in particular had a lot of this context anxiety behavior that we talked about. To give a little bit more color behind the scenes, I had done a very early version of the Ralph Wiggum loop. We put that model just in a simple loop, asked it to just keep going. And it's funny, it would literally find ways to just get out of the loop. You could almost reading the transcript, sense that it didn't want to go on for too long or it was uncomfortable going on for too long.
8:06 I ended up even doing some other tricks on top of that, where I put a specific phrase of, hey, do not exit the loop until you've said this specific phrase. And then it would say, I cannot in good faith say the specific phrase. And then it was a Python loop and then it exits out. So that's how we observed that behavior with that particular model. But what's interesting is that as the models change, and I talk about this in the post, the characteristics of the model change, the capabilities change.
8:31 And so the harness around it evolved. With Opus 4.5, which is where I first described and discovered the pattern that I talked about in the post, that was one where like compaction worked just fine. We just let it rip. We follow the structure that I laid out and it was able to work coherently. And so we switched in that from model to model, from context recess to just using plain old compaction.
8:57 So that was a very dense answer. We're going to. Not all the students in the class are familiar with machine learning systems at the level of, let's say, implementation details. So let's break down a couple of things that you talked about there. The first is the Ralph Wiggum loop. Could you describe what that is.
9:16 And why, for sure. So the RALPH loop, it, you know, became like, very, very famous on, like, Twitter and stuff, especially, like, earlier this year. I believe Geoffrey Huntley was the creator. But as far as I understand it, it's. It's the concept of just, like, putting the model in, like, a naive loop and just kind of telling it to retry a task. And with certain models, you can see that just putting it in that loop leads it to continue making progress on your goal for a long period of time.
9:45 I'm going to try and connect the dots a little bit to past speakers. So last year we had Ben Mann show up, and he. One of the things Ben talked about in the lecture is up on YouTube for folks who want to see it from last year's class is this idea of elicitation overhang, right? Where the latent space of the model has lots and lots of capabilities that people don't really understand yet. And sometimes when someone says, oh, the model is dumb, or it's not good at this, it's really.
10:14 It's the way you elicit the model's capabilities that matter. And the idea of an overhang is that, you know, there's an overhang. There's a lot of capabilities in the model that people aren't eliciting properly. And so do you think the Ralph Wiggum loop is an example of how to elicit models, you know, to be more capable without actually needing fundamental. The new weights?
10:35 It's just.
10:36 It was there, or does it represent some other. Or am I. Am I not actually interpreting the notability of the. Of the Wigan loop?
10:45 Yeah, no, I think that's a great. That's a great example. And I definitely, like, agree with this concept of, like, the elicitation overhang we've seen, like, time and time again, it's kind of magical. You find the right prompt, like, the right incantation of words, and all of a sudden it kind of gets you. Some people say, like. Like a model generation ahead, even on particular capabilities.
11:04 Right.
11:05 So it is this, like, really magical thing that we have to experiment with in this era of technology.
11:10 Cool. The next question is applied AI or AI Engineering as a job title barely existed three years ago. How would you define the actual craft and what separates someone good at it from someone who just knows the API?
11:30 This is a really good question. I think, to me, in this particular point in time, the craft is like, can you build agents? And the word harnesses or scaffolds is the common term, which is, what do you put around the Base model. Really what it comes down to in practice, if we're talking about the core harness in and of itself is the system prompt, the tools that the agent is given. And then a lot of it is very much like looking at the trajectory.
12:02 That's the really fascinating thing about again this era of technology which is like in software engineering they're sort of like first principles because AI models are, we're still working on interpretability. A lot of it is about just observing the behavior and then having smart ideas and then iterating accordingly. I would say that's like, actually a lot of the craft is like the experimentation and the willingness to experiment. And I think that the folks that are really skilled at this a, they have a great understanding of like sort of the base principles.
12:33 And I think that that can come from like studying really good agentic products. Like I myself for example, had the opportunity to learn a lot from like just observing the cloud code team, which is like a really, really like fortunate thing. I joined at a great time where I could see kind of the, the experiments they were doing, what was working, what wasn't. And then the second layer above that is just like having a good intuition, which I know sounds kind of fuzzy but you know, with these models, like folks that really have been in them for a while and can see something and understand, oh, okay, I've observed this pattern.
13:02 What can I do to rectify that? That's like within my control and doesn't need me to go down to the layer of the weights. It is sort of a skill in and of itself.
13:17 You know, it's interesting. I, I'm gonna, I'm gonna, yeah, I'm gonna write a follow up question, we'll come back to it because I, my main question for you is, is that new, Is that fundamentally a new skill set? Right? Like having a good intuition for, you know, the shape of these systems and what they can and can't do. Isn't that, is that, isn't that sort of, that's just been a part of good software engineering, you know, for a long time.
13:47 Or am I missing something? Like isn't sort of. There are many ways to do software engineering correctly, right? But fundamentally like having a good intuition for what to delegate to what process in your architecture and then you know how to do a B testing in the wild essentially, right? Because you come up with a, often a thesis for how your software should work, then you deploy it and then you, you experiment. Like that's literally the process of a B testing.
14:15 Is, is that not Is there something fundamentally new about building applied machine learning systems versus not along those three axes?
14:26 Yeah, it's actually, that's a really good point. So my argument would be like, at the highest level, like, there are a lot of similarities, for sure. I think to me, what stands out is I would think that if I went into a very large complex code base, it's probably complex to the point that, yeah, I as a person couldn't understand the whole thing without spending a lot of time and effort in that code base. But there's almost an epistemic nature of it where it's like, okay, but I know that if I really wanted to, I could understand it.
14:58 I could find all the lines of code I could trace through the entire flow. Flow. But with AI systems, you don't necessarily have that fundamental underpinning. And so I think that's kind of like the difference.
15:11 Okay, let me try and push back a little bit. Which is maybe the one salient difference between working on traditional software and working on AI software or AI systems is that in the case of traditional software design, you often start off with sort of a user story, right, where you say, like, this is the user's goal and I want to accomplish it. And so let me break down the user journey in like 10 steps.
15:41 And then we build the software to accomplish those steps and then we write unit tests to make sure that the software is basically meeting the requirements, right, which is a somewhat deterministic way to, to design the system. In the case of ML, a salient difference is you don't start with a user journey or user goal. You start with an eval, right? And you say there's an eval required and that might just be a metric. And then you don't actually, you're not super prescriptive on how to get there.
16:12 You tell the agent, go figure it out. And that's a very different mindset, right, because then you're actually. What you're trying to do is give the agent a prompt, see how it performs, and then essentially re prompt it based on its current performance. Would you agree with roughly that delineation between applied AI and traditional software engineering, or am I conflating the two things?
16:36 No, I think that makes sense at a high level. So evals is like a huge topic and at risk of getting into a can of worms here. I think at the highest level, particularly with traditional machine learning systems, you have your classifier precision, your recall, so on and so forth. I think the thing that gets tough with agentic systems is because they're so much more capable. Measuring the capability is so much more fuzzy. Right. So a lot of times, again, it's a little bit of a tangent from your question, but I do see a lot of discourse around evals and I think they're very useful.
17:11 They're definitely part of my toolkit. But sometimes I think that folks can get. It's actually a similar thing as I think happened in certain areas of software engineering where junior engineers think that they have to have 20 unit tests to ship something versus a senior engineer would say, okay, what's the mechanism for me to get the signal that I need? I think evals can be the same way. And so sometimes people are like, oh, I can't ship this agentic product without an eval.
17:34 That's not necessarily the case. There's many great things that are shipped without having an eval undergirding it. But of course, if you construct the eval in a good way and it gives you the signal that you need for your dev loop, then it's super, super valuable. All that to say that. Yeah, I think it still is a lot fuzzier
17:54 if we had to concretize this a little bit in the class. We spent a lot of time on the production of models and we broke it down in the early lectures on how the pipeline often looks like pre training, mid training, post training and then you have sort of as part of post training, you have RL and SFT right in this sort of continuous deployment loop in on the lab side, since you guys are part of the mission there is to then take the capabilities that's the.
18:20 That is the output of that pipeline and then expose it in a way that's usable to users. What does that. Is there a canonical pipeline you guys have developed yet that happens once you have a capability and you want to expose that as a product. Is there any standard? Like when you guys approach a new product launch? Right. What would be the equivalent of a pre trained, mid train, post train but for. For the labs team?
18:46 Yeah, I actually don't think that there's a standard process. And in fact, like, I think one of the things that makes anthropic so great is that we have a lot of like bottoms up innovation here. So people just kind of like try things and you know, like to your point, like we obviously we have a pipeline for producing models, but oftentimes until someone goes and has an idea and puts in the elbow grease to try it, no one necessarily knows for sure that.
19:10 Okay, now you know for a fact that it can do this thing if it's in this particular harness. So even the stuff that I described in my blog post, I showed those results internally and I think it was a big kind of like weight update for a lot of folks in the organization. Like, oh, wow, okay, now we have proof that the models can do this thing. This is super cool. How does that influence some of the other initiatives and the other products that we're developing?
19:35 So it's actually a lot more organic than I think people realize.
19:39 And is that itself maybe a feature like an explicit design or principle of the Labs team, which is we don't do PRDs over here, we don't do product requirement docs, we don't do roadmaps. It's much more like go forth and pursue whatever experiment you want. Because that in itself is an opinionated systems principle.
19:59 Right? Yeah, I think like, for one, like anthropic as an organization overall is just like a very great environment for that, which is like, I think a great like. Org design choice. I don't know how much of that is just like a natural extension of just like our culture. We're like, you know, all pretty open with each other, which is amazing. And then, you know, like, obviously the lab scene, we do have like PRDs, we do have these processes.
20:22 I think it's the thing where they say if you're an expert in a rule, you know when to break it. I think everyone knows when to reach for writing a document. I've definitely written a lot of docs to convey my ideas, but we also have this awesome culture of just like, hey, if you can, we all have cloud code to show a demo first and get the idea across. And then from there we can figure out kind of like how to make it a little bit more process oriented and structured.
20:49 Like from a cultural traditions perspective. Do you guys have any regular demo days internally or show and tell? What are the traditions in the group every week where you guys come together and share ideas, insights and or prototypes?
21:02 Yeah, there's definitely a couple of meetings where it's very encouraged to just demo what you're working on. I think in the Labs team in particular, we very much have that culture where you can expect that everyone is tinkering on something on the side and there's regular forums where it's like, hey, okay, I'm working on this. Let me just show you guys and solicit your input. That can even be like Async over Slack and stuff. But yeah, overall we just have that culture where it's like, hey, tinkering is encouraged and if you make something cool, share it with the people on the team.
21:31 And it's cool too, because then you can get signal very fast of like, oh, okay. My teammates think this is cool. Maybe I should spend more time on this.
21:40 How big is the labs team?
21:44 I want to say it's around like 20 engineers or so, but actually got to check that.
21:49 But essentially small enough that you guys could all fit in like around, you know, a conference room with like 10 pizzas or whatever.
21:59 Yeah, for sure.
22:00 Which is the AI version of Jeff Bezos's two pizza. We scaled it up a little bit, but conceptually same idea. Cool, we should keep going. What does your day to day debugging loop look like when an agent fails on a long running task?
22:17 Yeah, this is a great question. Basically, when I was working on, for example, the harness I spoke on in the blog post, we had some infrastructure that I could use to just kick off runs overnight, for example. So oftentimes I actually became a little bit of a night owl working on this project. So oftentimes I would shift my development towards the evening, do some stuff, kick it off overnight, wake up, read the transcripts. And then the tricky thing about long running is that, yeah, these transcripts can go for a couple hours, so there's a lot of material to read.
22:53 I think over time I developed an intuition about which parts of the transcript I cared about. In the earlier parts of the dev loop, for example, I would just run it and then within a few minutes I could kind of see if it was going off the rails. But as the system became better, it would take like more time to actually see what was happening. And so then it's just, it sounds like very straightforward, but it's literally just like reading the transcript, seeing what happened, seeing if it's what you expected.
23:19 Like for example, like the QA agent, if I saw that, you know, it identified a bug, but the reasoning that you kind of, that is exposed in that trace looks a little bit off or doesn't match my own judgment. That's like, okay, that's a signal. So then I, you know, kind of take notes. I come up with like 10, 12 bullets of like, okay, these are all the things that I saw wrong in this particular trace.
23:41 And then you can use that in order to say, okay, how do I tune the harness? How do I tune the prompt accordingly?
23:48 What, what's the result you got that surprised you where the model did something better or worse than you expected for non obvious reasons?
24:00 Hmm, that's a good question, I think so for me, like, a lot of like, these web libraries are like, you know, for example, I put this example of like a digital audio workstation, like a music program. And so a lot of like the underlying web libraries are like, relatively involved and like, in some cases can be a little bit more esoteric. Even if I'm a great JavaScript or TypeScript programmer, it takes me a while to go learn the particularities and stuff.
24:35 I think for me, there were a couple of cases where I saw the model was just chomping through this. No problem getting it done, building the application around it. I think the other thing that really surprised me is that I was able to design a harness that made Claude good. At the Claude Agent SDK, which I talked about, that took some particular tuning because at that time the cloud Agent SDK, it's relatively new, so it's not necessarily a library that's been around for 10 years.
25:02 It's very much within the knowledge cutoff. And so the fact that, okay, we can design something where we give it the scaffolding and the principles and the documentation and it's able to go and make something very, very coherent even though this isn't fully within its knowledge cutoff, I think that was really surprising and really cool for me.
25:20 Go. Do you think by the end of the year more developers are going to be writing software on their phone or computer? We arrived for new software development form factors. That was a question, I guess. Are we. Is it. What do we expect to see more? Actually, let's start with the first one. Yeah. By the end of the year, do you think more people are gonna be writing software on their phone or, or laptops?
25:47 I think the proliferation of like, phone usage for coding is like, definitely going to go up. I think this is like my bias, but like, I actually, you know, use like, for example, like Clark Code remote and stuff a good amount at this point. So I'm definitely writing a lot of code on my phone. That being said, like, I find that I still need to like, sit down at the computer to like really like, see it and like look at the PR and review it more carefully.
26:11 So it's like there's this gradient of how much you can just trust the model and it's just going to do a great job how much you need to be fully in the loop. And there's this in between of how much attention do I need to give to this particular task to make sure it's done correctly as that gradient moves towards just the model can handle it. I think we're going to just see more and more lines of code coming out of the phone where it's like, hey, go do the thing.
26:37 And then it comes back. You monitor it lightly but at a certain point for like the really mission critical things, like I'm still like making sure that I'm like looking very carefully at what's happening, what's going in. And so like it's like the high value human work is I think going to stay on the computer, but more of a percentage of work is definitely going to move to the phone.
26:58 And is there like. Okay, so then there's the next question which is like, is it, are we ripe for new software development form factors?
27:11 I think the final software development form factor is almost like there's no form factor at all. You're not really in the loop. You just kick it off and you come back. I do think that there is an intermediary where it's just like I said, it's almost like your attention needs to be more focused. I'm definitely excited for form factors like that or just easier to review agentic outputs. But it's a little hard to say how long that paradigm is going to be the dominant paradigm before it's a paradigm where hey, anything that's relatively grokable, the agent is just going to do by itself.
27:53 What do you suggest how we balance between learning and iteration? Speed? Depth.
28:03 Sorry, was that debt or depth?
28:05 Depth.
28:06 Depth.
28:06 Like depth versus breadth.
28:12 It's a good question. So before I joined Anthropic, I spent a lot of time just like reading and like talking to folks. I ran a couple of events in New York where I got to like meet researchers. So I kind of did like a breath first search personally. And I think that like when you, especially when you start like it is good to like just get a lay of the land, understand what's going on. Even like I feel like AI is kind of like sports, right?
28:36 Where you can, it's a very active like news cycle. You can be kind of reading what's the latest. But I do think that at a certain point once, like if you're doing a good job, it's kind of easy to saturate breath. And at that point I would, I would start going aggressively towards depth. Like that's kind of how I felt when I joined Anthropic. I found a few things that I got a lot of state on.
28:56 I mean AI in and of itself is such a big problem that you know, you can apply AI to like Particular domains like for me like front end coding, long running agents and stuff became sort of focus areas for me and then I gained a lot more state there advice that I give to a lot of like the newer folks that join that I end up mentoring is sort of like optimize first for recall and then optimize for precision.
29:18 So you end up somewhere where your time is like high precision, high recall.
29:22 Cool. For students who want to build agents. What's the most overrated technique right now and what's underrated?
29:34 I think overrated is like I definitely see I'm not like super online, but I definitely like feel that when I go on Twitter there's always like a lot of like oh like this new shiny thing and it's so great because XYZ and it's like 30% better and stuff. Obviously there's a lot of value in those things. I think some of them do stick. I think there's others that are here today, gone tomorrow. One example for me is the arc of certain retrieval techniques is really interesting because I feel like show that memory can be just accessing the file system and writing files.
30:08 It's so simple but it's so powerful. And so I try to pay attention to the things that are. Yeah, just the things that seem like the simplest solution to the problem basically. It can be hard sometimes to tell like what's durable, what's not durable. But sometimes like I kind of see it. I have kind of a smell myself where it's like, oh, okay, this seems like very hard to understand and a lot of promises are being made.
30:36 But is it like, is it kind of like elegant? Does it have the elegance? It's the same thing as like software libraries. You know there's like certain libraries like not to hate on like Redux, but as a front end guy I always thought like Redux was like super over complicated and like these days it's like Zustand and like other libraries and it's like okay, like is the solution clean and elegant? If so okay, like double tap on that.
30:55 Bring that into my, into my arsenal or my toolkit if it feels like yeah, it's really hard to get into. And it's sort of like a buzzword that I try to pay like less attention to and I give it a little bit of time to see if it's actually going to stick.
31:09 Cool. Your background is Mechanical Engineering at UCLA, then C3AI, then Nerd Wallet, then Anthropic. That's not the typical PhD to Frontier Lab path. What did each step Actually teach you that ended up mattering?
31:27 Yeah, this is a great question. So a little bit of backstory is like I was doing mechanical engineering at ucla, um, and I wouldn't say I rate very highly for like hand eye coordination. Um, I was just one of those people that really enjoyed physics and so I was like oh yeah, like let me get into mechanical engineering. I went to college and then realized that like yeah, like the people who are doing really well there were like the folks that were like hands on tinkering with stuff which was never really me.
31:53 I just like wanted to do math and physics and then you know, hopefully someone pays me for that. So I took like a matlab programming class. It's like a language that only like I think like mechanical engineers and folks that don't actually program use. But I kind of fell in love with that. I thought programming was awesome which is really cool. So my, my senior year I just kind of went all in. I taught myself Python and that's kind of was like the origin story of my path into tech.
32:19 So from that experience I learned that you really can just teach yourself things which is like really, really powerful. And I think it's like it's not unique to tech but tech has a big advantage where you can just go self study and just learn something.
32:32 How much are you dictating versus typing inputs Lately
32:38 I like dictating a lot for sure. So I try to dictate wherever possible. I mean practically speaking sometimes I actually need. It helps me to type because I can formalize my thoughts a little bit more and then also I'm sitting in the office so it's not always polite to just be yapping at Claude. So I kind of switch between both where appropriate but. Huge fan of dictation.
33:02 If you had to redesign undergraduate computer science education, how would you do it to best prepare students for this new paradigm? Should it impact introductory courses or higher level courses?
33:15 Oh man. Unfortunately I actually don't have a CS undergrad so I'm flying blind on this one a little bit. But I do think that there are like CS fundamentals that ended up being like really valuable for me. Like for example just like understanding like big O notation and like time and space complexity. I think I didn't necessarily have to grind like 6 months of leetcode to understand that per se but like having that intuition ended up being really helpful in my career.
33:41 So I, I definitely am not like a oh throw out all fundamentals type of person. That being said, I think like yeah, because of the nature of computer science, it's really easy to get hands on. And so folks that are getting that hands on experience that are really staying at the state of the art and like I said, just building some of the intuitions and also like, just to be honest, it's a uniquely challenging time in that things are changing so fast.
34:05 And so I think that the folks that learn to be like nimble and to kind of just like stay on top of the curve, stay ahead of the curve, don't get attached to like the kind of like meta guidance of like one particular paradigm of you know, like Silicon Valley is pretty valuable. Like I joined the industry in like 2020 and that was like a very particular time, right. It's like okay, you know, Covid era everyone wanted to go to like you know, Google or Meta and those are still like amazing companies.
34:34 But it was very much like that era had its own rules. And just understanding like every era has its own rules and just how to adapt as those rules shift rapidly I think is probably the most important skill.
34:49 In the future. Which spec domain company would you like to see anthropic partner with and create value with? And why?
34:59 Spec domain company?
35:02 Yeah, which I guess specialized domain company.
35:06 Ah, that's a great question. I personally just being a little bit of like a physics nerd. I think a lot of people have said that when Claude can do hard science that's going to be a really, really big deal or just LLMs in general. So yeah, I would love to see his partner more on physics, space, things like that. Really pushing the frontier of how we understand our physical world.
35:37 I think when we get to that point that'll be super exciting.
35:41 Agreed. What kinds of research questions are basically only answerable inside a frontier lab right now? And what's still better done in academia?
35:56 That's a good question. I think I can't really speak for like the research research side of the house because I'm not there. I guess from my pov, like the cool thing about models is it's fairly egalitarian. In most cases everyone has access to the same models. I think maybe the advantage that we have is we're all in this environment where we're all playing with the models all the time versus if I'm thinking about some of my prior roles, I might have been doing this in my off time, for example, because I just had more day to day responsibilities.
36:31 I think part of the hard dynamic is just because it's so experimentally based. Time using the models, time experimenting and stuff is kind of like how you build the intuition and how you build alpha. And so wherever you can get an opportunity to just be spending the most time at the frontier, I think is super valuable. And being in a lab, that's kind of naturally part of the job. I don't think you necessarily need to be at a lab to do that, but it is a very unique kind of characteristic that I was looking for in my role and that's been really
37:01 helpful if you could. So how do you abstract between Trainium, TPU and NV GPUs? Like Nvidia GPUs?
37:14 Honestly, like, anything chip related is really on my area, so.
37:18 Because you're largely consuming tokens, right?
37:21 Yeah, I'm a token consumer. I build agents, I hit the API just like everyone else.
37:27 So how much did you spend on tokens this month?
37:31 Oh, man, I'm actually, I'm not sure, but if I looked it up, it'd probably be a pretty large number, like
37:38 order of, do you think? And from a token consumption perspective, the bulk, of course must be Claude. But what are the other tokens that you often use in your day, other than Claude tokens?
37:50 I think I'm like, pretty much exclusively using Claude tokens, to be honest.
37:54 Wow. Okay. What problem in agentic coding do you think is solved within 12 months and what do you think is still hard in five years?
38:08 I think, like, if I'm thinking about like the coding landscape, right There's, I think the crux of like, you know, machine learning and stuff is like, Python. So it's not that surprising that like, the models are like, very, very good at Python. That being said, there's like a long tail of like, different systems and the problems that arise from them, that I think models are just going to kind of. They're good at the core where most people are doing, for example, web dev.
38:33 I've noticed that the models are ridiculously good at react, but it also makes sense that that's the case. A lot of people do react. I think they're going to get better and better at just being highly competent across wider swaths of the coding landscape. So I think in 12 months, I would imagine, yeah, I would imagine just, I guess, long story short, that they're just generally going to continue to improve in five years. It's hard to say.
38:57 Five years is a very long time in AI time, and I find myself like, consistently surprised by kind of like how fast the models are improving. So I have kind of personally stopped thinking in like multiple years. I've started just thinking in multiple Months. And if I can even do something that is true, like stays true or stays relevant, like six to 12 months from now, I'm very, very happy. Five years is quite a long time.
39:21 So I think, again, all bets are off. And just stay nimble is kind of how I think about it.
39:27 If you could hand the CS153 student one project to work on this quarter, that would teach them the most about applied AI, what would it be?
39:41 Sort of a generic answer, but, like just. Just build an agent that solves a hard problem for you. I think when you start building agents, I recommend the cloud Agent SDK. I love it. That's what I always go to. When you use that, you get the base harness. From there, you might have to make custom tools. You learn a little bit more the plumbing of making an agent. But once you solve for all that, you really just get to the point of, hey, at the baseline, the model cannot do this.
40:07 Going back to the elicitation overhang that we spoke about, is it possible for me to encode some specific knowledge to make the model do this reliably? That in and of itself, it sounds so simple, but it's like a deceptively hard problem. And you can spend a lot of time on that dev loop. And I think whether it ends up working or not, spending time on that core dev loop really gives you the intuition and the insights that I was talking about earlier.
40:35 For Context, there's about 500 students taking CS153 on campus and a few thousand following along online. And the final project is the one person, Frontier Lab, and they now have three weeks to work on their project. So that's roughly why you're getting questions about the final project. Because the submission is coming up and yeah, you should try out the Agent SDK, the cloud SDK. So what is something that current AI coding agents are good at? That's surprising.
41:05 And one thing they still consistently fail at in a way that reveals they lack a good understanding of large code bases.
41:15 I think, you know, a lot of people talk about, like, verification in particular as like a big topic where agents could get better. Like, that was obviously a focus for me and like the work that I shared, I kind of mentioned the post. I had to do a lot of work to make agent the agent better at verification. And even there, there's still like, headroom to be achieved. But just like the way that, you know, like a model might go about verifying something naively, it also gets to the heart of what is even verification and what's the level of confidence someone needs to see because the canonical case is Claude will write something and then it'll say, oh, I wrote 65 unit tests and the unit tests all pass.
41:56 And it gets to the core of what folks say about taste and judgment. What's the minimal amount of tests or infrastructure that you need to feel confident in the final deliverable? Especially when you like the agent is writing all the code so you don't really have too much context in the code yourself. I think that is a very interesting open problem in terms of things that the model is very, very good at. I think I've still continued to be amazed at how well it can go into a code base and naively kind of just read through it, search it and build a strong understanding.
42:28 I'm continuing to find that I can just go into code bases or projects that I have no business being involved in and like, like I did a PR recently and go, I have zero knowledge and go. But the fact that I was able to like confidently like ship a PR and at least had like the, the meta understanding of like what a good PR looks like, what I should be prompting for and stuff, I think it's just amazing.
42:55 For long running agents. Do you think continue learning on the model weights slash alora on them would be better than context window stuffing slash routine compaction?
43:08 Yeah, I think, I mean continual learning obviously is just like a big topic in general. Laura in particular, like I'm not 100% sure. Like I just even like for practical reasons like you know, if that makes sense. I'd imagine to get that to work would just be very complicated unless you own the whole model stack and then that's a whole other topic. Context window is just elegant because it's so simple to interact with. I do think that there is a good point though, which is things like context degradation and stuff like that.
43:42 I'd written a post late last year about context engineering and the way that we described it is how do you create the most potent signal with the smallest amount of tokens. And that art in and of itself is very, very tricky. So again it's like one of those things that it's deceptively simple but you could spend a lot of time on. But for me like my bias is like that continues to be kind of like the right way to think about things, at least for right now.
44:08 How do you abstract between different industries and their needs? It feels like UX should become much more polymorph.
44:20 I think with it almost gets to the nature of what is Knowledge and what does it mean to learn? Right. Because there is so much stuff where structurally it can be surprisingly similar, even though it's very, very different. I still find myself. It's been a while since I've done mechanical engineering, but I still almost find myself making interesting connections between stuff that I learned in college versus stuff that I learned in software engineering. There's some things that are just very, very different just in terms of the nature of the information.
44:49 And so then when you think about like building AI systems across that, like in some cases I was able to again, like go into industries or speak to customers that I had very little knowledge, very little state on, and still be able to talk to them about something that was useful for them because I understand sort of like the broader picture. But there are cases where it's like, oh, like the domain knowledge is so important that unless I like, really, really pair with the subject matter expert, it's going to be hard to build the AI system for, for this particular thing.
45:20 So the unsatisfying answer, I guess is like, it depends.
45:23 Yep. Folks like Sakana have built AI scientists. Do you think current models are enough to achieve an AI scientist? And has the lab team, has, has the LABS team looked into building and testing?
45:39 I think like, to some extent, like, you know, AI models are kind of, if, you know, like, if the role of a scientist is to like kind of discover net new knowledge, call it, I think you could argue that like, models are like kind of somewhat there. Like for example, even like, you know, Mythos with like the cyber capabilities. Like I think you would argue that like, you know, it's developing kind of like new knowledge for the species in its own way.
46:04 But if you talk about like science and like other more particular domains, there might even just be like relatively straightforward things like, okay, like how do you, how do you give the agent access to the appropriate tools for it to actually like do the science and stuff like that that are like open questions. So I think, I definitely think it's getting there. Whether it is there concretely, I think just kind of depends on the domain.
46:32 Has the LABS team looked into building an AI scientist for X? Do you think that scaffolding around coding agents will suffice to make progress in AI scientists?
46:43 Yeah, we haven't necessarily thought about like an AI scientist, but I do think one of the cool things about coding is like, in a way it's like, it generalizes in the way that you can see how it reasoned about the system. I guess that's kind of what I was touching on before, like, connections. I mean, they're both engineering disciples, but like, mechanical engineering, which is more hardware versus, like, software. I was talking to my buddy recently.
47:08 He works on, like, you know, like, airplanes and stuff. And it just comes down to, like, that systems understanding. Understanding system, how all the things piece together. So you can see kind of, like, from someone who's good at coding, they have that systems thinking knowledge. And so maybe the model can reason in that fashion as well. Then it comes down to, like, I guess there's like, a few layers. One is like, the procedural knowledge. Like, does it know in the case of coding, the language?
47:29 Does it? Two is like, can it think in systems? And then three is like, can it kind of put all that together to come up with, like, novel insights? I think in a lot of, like, the. The software piece kind of validates that it can, to some extent, think in systems. Debatably. The procedural knowledge, I think, depends from domain to domain. And then we're starting to see evidence that hey, can pull these things together and, like, come up with, like, novel findings and stuff.
47:55 What were you doing in the year before Anthropic that made the difference? Were you building things publicly, contributing to OSS writing?
48:05 I. The year before Anthropic, I had started, like, a AI organization in New York. So I was actually doing a lot of, like, events and just trying to bring people together, like neat researchers and other folks that were building. Part of this is, like, you know, because at that time in New York, like, a lot of people thought that New York was basically just like, fintech, and that's about it. Like, nothing kind of interesting, technical was happening in New York.
48:30 And maybe you could say I'm originally from California, so I kind of had some. I was seeing what was happening in the ecosystem out in the Bay Area, and I kind of had this chip on my shoulder of like, oh, no, I know that some cool stuff is happening in New York. How do we bring that to the surface? So through that, I got the chance to meet a lot of really cool people. I got to meet the Sweebench team pretty early on, for example, in doing that, and other folks that were just building interesting things that gave me the grounding to just talk to people, talk to practitioners, see what was happening, I think importantly as well, because I was at Nerdwall at the time.
49:06 I'd been out of the direct line of sight on AI for a little bit. It was almost like a forcing function for me to get back in the game. Like I said, AI is kind of like sports, right? Like if you're kind of out of it for like say even like six months, you might miss like what's the latest happening. So it kind of forced me to really focus and just get back into it, read every day, be part of the conversation.
49:28 And I think from there, yeah, I did, honestly did a lot of tinkering in my own time. For example, like one thing I'm really proud of is like the, I published like the front end design skill which is like, you know, been widely used. That actually came because before joining Anthropic I got really interested in all the agent encoding tools, including the Vibe coding tools. And I was spending a lot of time with them, seeing that they were actually really good at these front end libraries and they were getting particular effects and stuff like that, then that led to the insight of okay, maybe this is promptable which led to that skill.
49:58 So it's hard to say, but sometimes just spending that time exploring, talking to people, learning can be lay the foundation for fruitful ground that you build on later.
50:09 Have you thought about Async agents example? I'm happy for a task to take longer with smarter models for cheaper.
50:17 Definitely have been thinking about Async agents. I think it's actually like a pretty tricky problem though because if you tell someone that hey, this agent is going to go cook for like 30 minutes and come back to you, it makes the expectation like very, very high, right? It's like, oh wow, I'm waiting for 30 minutes, what's going to happen when I come back. In a lot of cases you can do step async and that enables you to just naive example.
50:45 The model wrote ten times more tests. We feel more confident that the software is going to be good the first time you looked at it. But some people might prefer like no, but I just want to be in quant code and develop and I'm going to tell it, hey, do this, do that, don't write a bunch of tests when I'm not there. And so from a product pov, it's almost like creating the expectation correctly around ASIC agents I think is like a huge open problem.
51:08 That's really interesting because you can say that it's going to be the output is going to be like 50% better, but if it took more than 50% longer, the user might still be dissatisfied. Which is interesting to think about.
51:24 Can you name some of the people at Anthropic who you found really impressive and what makes them great to work with?
51:31 Oh, this is a great Question. I'm very inspired, obviously. One I'm very inspired by. Of course all the cloud code team goes without saying. Folks like Boris and stuff I've had the chance to talk to directly and even just I think like everyone else, like I follow these folks on Twitter and stuff like that. So that's been cool. Like directly and indirectly, more directly. Nate Parrot, who's also on the Labs team, he is kind of like the genius behind cloud design.
52:00 Extremely impressive prototyper and just has amazing product intuition. So I've seen like a few of his prototypes. So it just like when you know, Claude design took off, that was like no surprise to me. He just has like incredible design taste and taste in like eliciting models. Jeremy Hadfield, who I worked with closely and applied AI, now he's on the research PM side. Very, very intelligent. Like he, he actually it was a conversation with him that made me realize that like oh like long running agents are something like worth exploring more and I think are going to be a big thing.
52:35 So just, he is one of those folks that has just like incredible intuition about what's important, what's coming. Super impressive. My colleague Justin Young, who I worked it with pretty closely for like some of the earlier long running agent stuff, I was super impressed because basically I'd mentioned the story earlier of how I put Sonnet 4.5 in a loop and I just kept exiting the loop. I wasn't able to figure it out. The story is actually I went on PTO right after that and I just mentioned to a few of my teammates like, hey, I've been working on this thing, it's pretty cool if any of you guys want to check it out while I'm out.
53:13 And Justin actually I think the next day just forked my code base, looked at it, worked on it hard enough to figure out this insight of like the context resets which now like I'm, I'm telling you and it's pretty simple but like at the time it was like very non intuitive. Oh, let's just like divide up the work, reset the context window. It's like a very like like when he told me, I came back from PTO and we had that conversation and I was like, oh, that's like, that's so smart.
53:38 And so it's like, that's one of the beautiful things about AI engineering is you kind of get to see the, the ingenuity and like kind of like cleverness of people and the solutions that they come up with. I think that's been like super inspiring. And I think like Anthropic as a whole is like really awesome because, you know, you're around so many like great people and we kind of all get to talk and inspire each other.
53:58 So like wherever you can be in that sort of environment where it's just easy to bounce ideas around and everyone is kind of like on the same wavelength, super, super valuable.
54:07 The, the, I guess the, the corollary of this is can you name some of the people outside of Anthropic who you found really impressive? And what about their blogs or writing or tweeting or systems design do you find inspiring in the industry today?
54:26 That's a good question. I used to read a lot of Eugene Yan's work, but he actually joined Anthropic. Somewhat cheating, but I bought some of his work. Really, really good. There's a gentleman. I'm blanking on his name. It started with the H, but he did a lot of like great blogs on like evals. I think it might have been like hummus or something. I, I'll, I'll find it and link it. But I, I really enjoyed his work because he had like very detailed explainers on like how to do good evals and LLM as drive systems.
55:00 I found that really valuable to read. I also found Swix like the AI engineer. Yeah, he's super useful actually. One of the ways that I kind of got back into kind of like into the game like I was mentioning is like he had this newsletter where he would collate like all the AI news every day and just send you an email and I would just start reading that daily. And that's, that was like my one source of truth, my one source of information.
55:28 So I think like those folks I found really valuable.
55:31 Yeah, I love swix. He's been in this room, we've hung out many times and I was just on with him recently at Latent Space. He came by the office. He's, he's fantastic. For long running agent harnesses, people are building domain specific skills guidelines, etc. To keep the model on track. This seems counterintuitive to the bitter lesson, what's the right balance?
55:55 I think the right balance is like do the thing, but like stay very nimble about it. I think like many people have reported like when you're building harnesses and like, you know, agentic products and stuff, like in three to six months you might, you know, a new model might come out. You might realize that some of your scaffolding is completely irrelevant. Like I'd spoken about this a little bit in the blog too where like I had spent a lot of care in terms of like how I decompose the work to make it more tractable for the agent as it was working.
56:24 And then the new model came out and then it was just much more coherent on long horizon tasks and so I just had to remove that entirely. And so there's something to be said about just like not being super attached to the work you're doing. Even when you find these incredible insights. It's really, yeah, just about that nimbleness.
56:42 Cool. We'll take two more questions and then we'll wrap top three predictions for the next for the rest of this year in this space
56:54 I think for one like you know, I expect like models to just continue getting better. I'm not sure like how much better per se, but like I, I just try to keep my, my mental model is just like don't be surprised like if something comes out and it's just like wows you in a particular domain. Just adapt to that and just like make sure that again you're staying nimble and that you can like kind of ride that wave and it doesn't just break some foundational assumptions of yours.
57:20 Two is I think that you know, long running agents, agentic infra, stuff like that. Those are like big problems that people are talking about now. I definitely think by end of year like this, you know, kind of to the earlier question might be like the primary means with which we interface through agents. If not the primary at least it's going to become a significantly higher percentage. And the third, third one is I think that we're going to see a lot of people talk about the quad code moment and I'm hopeful that we'll see more quad code moments for more people in domains that aren't software engineering.
57:57 I recently started using Claude as a fitness coach and I haven't focused on my fitness in a little bit which I guess as a side note, focus on your health, take care of yourself, it's really important. But I, the last time I focused on fitness like this super intensely was like in 2024 and just like having Claude to kind of manage this with me. I was like oh wow, I kind of had that moment again. And so I'm hopeful and excited to see like more people having that moment in different aspects of their life and
58:28 how you know, the state of the art. Very few people use multi agents today. Right. And almost everything we talked about today was like an interaction with Claude as the singular what is the future of what is different. What is something surprising that people, you wish more people knew about how to use a team of agents or multi agent systems versus single agent systems?
58:55 Yeah, I think like a really simple one is just like really what it comes down to is like the interplay between different Personas. To give an example, I mentioned the planner agent which is part of my multi agent setup. What was cool about it is the entire role of it was just to write a spec like a PRD for what was to be built. If you gave the model a simple task like build X app, it would go build it, but maybe it wouldn't have the same level of depth as if you had a whole document.
59:26 The fact that we could automate that, create this really nice spec and then give that to the model again, it was sort of like an elicitation overhang trick. Right. Where we got a lot more performance just from doing that simple thing. And so I would encourage people when they think about multi agent systems, I'd be careful not to like over complicate it. And if your system requires like you know, 12 agents in a very specific sequence, like that can be a little risky, like does that stay persistent as an advantage over time.
59:51 But if you can come up with something that's like relatively lean and then you know, you kind of see this interplay of models kind of like playing off of each other in a positive feedback loop, I think that can be really valuable.
60:02 And what is a product that you think people should check out other than ones that anthropic to go see a glimpse of the future of multi agent systems?
60:17 Oh man, this is a good question. I'll be honest. I've been very in the anthropic bubble lately, so. So I haven't gotten a chance to check out products outside. But I know there's a lot of great people building a lot of great stuff out there.
60:29 Cool. We'll have you back next year and you can do an assessment of any products have cut through the noise or through the anthropic curtain.
60:38 Cool. Yeah, that sounds great.
60:40 Awesome. Well, thank you so much Prithvi and have a great weekend.
60:43 Thanks Anj. I appreciate it.
60:45 Okay, cheers and thanks.
60:52 Sa.
Summary
- Prithvi's background includes experience at MIT and roles in applied AI, leading to his current position at Anthropic.
- The Labs team at Anthropic functions as an incubator for innovative AI product ideas, contrasting with the Applied AI team's focus on direct customer engagement.
- Definitions of agentic systems include the core agentic loop, product experience, and deployment infrastructure.
- The concept of context resets is highlighted as crucial for managing long-running agents, as opposed to traditional compaction methods.
- Prithvi emphasizes the importance of experimentation and intuition in AI engineering, distinguishing it from traditional software engineering.
- He notes the potential for AI models to improve significantly in the coming months, especially in coding tasks.
- The balance between building domain-specific skills and adhering to the "bitter lesson" of AI is discussed, advocating for nimbleness in development.
- Prithvi encourages students to build agents that solve real problems, leveraging tools like the cloud Agent SDK for practical experience.