Brandon: Hey folks, Brandon Villarolo here with another episode of The Register Kettle and with me this week is senior reporter Tom Claiborne and systems editor Tobias Mann, the chat about, hey, what else? AI. Specifically, we're gonna be talking about, or taking a look at Tom's piece from this past week about the seeming failure of persona-based prompting for the one thing AI seems to be reasonably good at right now, and that's coding. Gentlemen, welcome. Yeah, looking, yeah, looks as if.
Thomas Claburn: Well, thank you. Yeah.
Tobias Mann: Hey, hey.
Brandon: I think this is one of those topics we could probably go on about for quite a while. Hopefully we can keep this on scope.
Thomas Claburn: Yeah, yeah. mean, the, ⁓ yeah, that, that, that paper I thought was, was, was very interesting, ⁓ in the sense that there has been, there's so much, ⁓ sort of folklore out there about how to sort of prompt your model and everyone has their own, you know, set of, of, you know, recommendations and configurations. But, one of the strong themes you get for. you know, over the past couple of years is that telling a model to behave in a certain way, giving it a persona or a role is very effective. And ⁓ yeah, exactly. You're an expert web developer, that kind of thing. you know, what these sort of past research on that has been, you know, sort of back and forth. In some ways, it's been helpful. In some ways, it hasn't. And so these researchers set out to, ⁓ you know, just take a closer look at that. And what they found is that the
Brandon: Yeah, you're a developer, you're a philosopher, you're a whatever kind of thing, right? Mm-hmm.
Thomas Claburn: The aspect of roles is helpful in the context of safety. So if you give it a role, an expert, whatever, or teacher, it will ⁓ skew the model toward a little bit safer behavior, which because of the sort of text associations it has with those roles, those tend to be.
Brandon: Mm-hmm.
Thomas Claburn: you know, safer. I if you're telling something, you're an expert web developer, you're not, you know, sort of a ⁓ crazy anarchist or whatever the opposing role would be. ⁓ You're going to get out.
Brandon: Right, right. But if you say you're, you know, yeah, you're a safety expert or whatever, like these, like you said in the article, alignment dependent tasks, those tend to be worked.
Thomas Claburn: Right, right. anything that sort of supports the, the sort of notion of it behaving properly, ⁓ is, is can be helped by that. But where it turns out not to be helpful is for things that are fact-based and, know, really rely on the training data. And if you have a model that has been trained well and is, you know, knows a certain kind of coding style, just asking it for that. is your best result because if you tell it to behave in a certain way and give it a role, it may be, you know, whatever pathways it takes to arrive at that output are less likely to happen. So you end up degrading the quality of the sort of fact-based output. mean, can tell?
Brandon: So why is that? Because I mean, I think in the article you touched on it, it's something about the expertise that if you kind of tell them you're an expert in this thing, it constrains the way the model will access training data in some way. do you know how or why that is?
Thomas Claburn: Well, I it's I mean, think part of the part of the problem is the misconception that when you tell something it's an expert, it makes it better at something. But, you know, you don't actually add any training data to the model. It's, know, it's all there to begin with. And by giving it a persona, you're just kind of, you know, biasing.
Brandon: Right.
Thomas Claburn: it's output paths and you're doing so in a way that makes it less likely to find the sort of factually correct thing that you've asked for. If it's mathematically based thing, if it's a safety based thing, a lot of that stuff gets associated in the same sort of N dimensional space in the model and it's more likely to come out and behave in a way that's, ⁓ that's safe.
Tobias Mann: Right.
Brandon: Right.
Tobias Mann: So I think it's important to understand a little bit about how these models go about generating their outputs. It's a probabilistic system.
Brandon: Right, right, math in, math out, tokenization and yeah.
Tobias Mann: Right. And so when, when it, for each token generated, it recalculates this attention where it figures out what is the most probable next token in that, in that sequence. And so, and that, and that, ⁓ you know, how that probability is skewed is influenced heavily by the input. So if you start, you you start by telling it, it's a expert, you are going to change how the probabilities ⁓ work in determining what the next token is and so on and so forth.
Brandon: Right. And I'm assuming in some way that may not be as predictable as you would think. Clearly. Right?
Tobias Mann: It's a probabilistic system. Non-determinism is a fact of life.
Thomas Claburn: Yeah.
Brandon: Right. Yeah, I mean, how many times can you give an AI the same question and it gives you a different response, right? That's pretty common, I feel like.
Tobias Mann: Well, so not to go too deep in the weeds here, but like that there is some misconception there so like you can seed these models so that Every time you give it the same input you will get the same output ⁓ Because you can fix the probabilities to some extent ⁓ However, that is not necessarily desirable behavior. And so we use mechanisms like temperature rather than using fixed seeds
Brandon: Okay.
Tobias Mann: so that ⁓ you can control the kind of how deterministic, how fuzzy that determinism is. ⁓ However, in the context of coding, we also have this other kind of back-end component of this, which is the code either runs or it doesn't or it compiles or it doesn't. So you can form a loop where... ⁓ you know, in an agentic sense, you have the model generate code, it checks that the code actually runs, and then, you know, ⁓ it tries again.
Brandon: Mm-hmm. Yeah, yeah. ⁓
Thomas Claburn: which can get very expensive if you, know, or, you know, having it, you know, bang its head against the wall a lot.
Brandon: Right. Yeah, yeah. So I guess, guess, you know, in that, in that story of yours, Tom, it seemed like the solution was those granular kind of expertises or not even, or just sort of like giving it granular instructions. Like just build this thing in Python or build this thing in Rust or whatever it happens to have knowledge in and not trying to bias its responses in one way or the other toward a certain expertise.
Thomas Claburn: I mean, there are lot of best practices you can do in terms of giving the model access to documentation and things that will ⁓ help it find its way toward the kind of output that you want. people do that a lot in terms of like, with Claude, for example, you write a skill, which is essentially just access to files that it has ⁓ when it's doing its inference. ⁓
Brandon: Mm-hmm. And there's no need to, once it's in that LLM's, know, knowledge bank, there's no need to bias it toward that, I guess, at that point.
Thomas Claburn: Right. Yeah, exactly. And hopefully your model will be good enough to define that. ⁓ it's a hard challenge to deal with because a lot of times these models, you want them, they'll do really remarkable things. And then sometimes they do really stupid things. it's just the probabilities are, you're rolling the dice every time. ⁓ sometimes it's the way you've phrased the prompt and sometimes it's just. You know, the model just is off on the wrong foot and you know, have to, you have to correct it or start again. Um, you know, a lot of times it comes with a lot of context built in. it's like, if this is a continuing conversation, it's different from doing it as a fresh prompt. It's, you know, there just a lot of things you can't see. So it's easy to build up kind of a mysticism about how to interact with these things.
Tobias Mann: Yeah, the, the, ⁓ big emphasis that kind of started at the end of last year was this idea of spec based, ⁓ code assistance, ⁓ where you, your initial step is to provide basically just a markdown file that's fed into the, to the model that describes what you want to build. And you try to think out through all of the features that you're trying to incorporate all of the design decisions that you're making, just like you would.
Brandon: Right, yeah.
Tobias Mann: If you were trying to do like clean room engineering on a product, you'd have somebody look at the product, write up a perfect spec for it, and then have somebody else implement it, which is a whole other nightmare around code, vibe coding by the way. ⁓ But not one for today. ⁓ But this is an idea that Amazon embraced with its Kero ⁓ code assistant where you root it in this. kind of spec document that you've written up ⁓ so that when the model has to make decisions where it doesn't have enough information in terms of what to do, it doesn't necessarily have to come back for clarification and hope that your answer actually tells it what it needs. It has that kind of root of trust or source of truth document that I can go back to as kind of like a decision. tree is like, ⁓ OK, so we're going to do all of these other things too. So that's going to influence what it does in order to address that problem. Rather than coming back, hey, here are some options, ⁓ none of which might be appropriate.
Brandon: Right, right. So I guess, know, ⁓ looking at these kind of limitations, know, or just kind of things, considerations to make when you're considering trying to build something with AI or use it for coding. mean, what, you know, when we look at the limitations like Tom explained in the story and Tobias, like you're mentioning right now, what does this mean for broader AI software development? Right? Is this, you know, are we still not at the point where, because the right cloud code has become really good, right? ⁓ It's improved immensely in the past few iterations. know I've heard a lot of people say that it is doing phenomenal jobs now with a lot of things. So AI is getting there, right? It's better than it has been. ⁓ Are we looking at a limitation here? How limited are these things right now? Are they going to be... Is there any possibility that these can look like a thorough, comprehensive, skilled developer, or are they better for writing scripts? Where are we at, kind of?
Thomas Claburn: Yeah, mean, it's very use case dependent. mean, I think it was around November, people started noticing that these models were getting a lot better and past couple of months, everyone has gone from looking at them as to being sort of hapless and error prone to. you know, competent a lot of the time and people have been, I mean, a ton more code has been generated. mean, just, I think there was, I was looking at the other day, something like 30 billion lines of code have been added in you know, in the past couple of months to GitHub from, just from Claude. And you know what, you know, because these things are pretty good a lot of the time, it shifts the work from, you know, sort of. to spending a lot of time on like how I do this to what do I want to ask it and did it produce what I asked for and am I asking the right questions? It kind of, it shifts a lot of the work. mean, I've been experimenting with building a web-based RSS. sort of app to replace a desktop one that I'd written in an electron. And I thought, well, maybe I can do it as a web app. And I actually don't really know web development so well that I spend a lot of time with Redis and databases. But I know a little bit about that. So I have been using Claw to spin that up. it's been able to help me do things that I wouldn't otherwise, I have to spend a lot of time doing. But at the same time, it makes a lot of just, you know, amateurish mistakes. you know, at one point I did ask like, okay, let's, let's, you know, do a security audit of this app. And it's like, ⁓ yeah, I should put some, you know, cores, you know, controls in here because all of the API routes were not protected. It's like, well, you wouldn't do that in the outset. It's like, but, you know, so there's, it'll do a lot of things and then it'll just forget about stuff or it'll, ⁓ you know,
Brandon: Right. Right?
Thomas Claburn: it'll just change something and you won't know why it failed. It's like, ⁓ yes, I overwrote that or whatever. And so you spend a lot, you spend maybe the same amount of time, but it's focusing on different things. It's a lot of catching mistakes.
Brandon: Right. Yeah, that's what I was going say. What you were saying earlier, that basically it creates a lot of code fast, but it requires a lot more maintenance and oversight, which kind of, I think, brings us to ⁓ one of the big problems that Tobias, you've pointed out before about, about five coding, right? Is that you're going to run into a wall at some point, right? Like no matter, if you're not a developer, if you're using this to do stuff for you, instead of learning to code, then you're going to hit a wall where you're not going to be able to get past the problems that it's going to leave in its wake.
Thomas Claburn: Yeah. Yeah.
Tobias Mann: Right. Right. mean, programming is kind of a language for software engineering. ⁓ And, you know, while this, these kinds of tools can help automate a lot of that work and help you get to where you're trying to go. If you are trying to address a novel problem that hasn't been, you know, that isn't in the training corpus already, you're going to reach a point where you have to solve a real engineering problem. And you don't.
Brandon: Mm-hmm.
Tobias Mann: you're going to run and I'm sure Tom, you've run into this too, where you just, you reach a point where it just keeps looping back through the same set of solutions that don't work. And unless you know what you're, what you're doing and have some sense and you can read the code, debug it and, and, and kind of write a novel solution to that engineering problem, you're going to hit a wall. ⁓ and so I can see this as being a really powerful tool for helping developers spend more time on those kind hard engineering problems. But you still need software engineers to actually solve those problems.
Brandon: Right. But do you think this is gonna, you know, ⁓ excuse me, are we good enough at the point now where a team of five software engineers could be whittled down to two or three guys who were just there to handle the advanced stuff? Or are we not there yet?
Thomas Claburn: I mean, I think you end up producing more code and you have to maintain it. And I don't know that you're going to get a labor savings ultimately because you spend your time doing other stuff. ⁓
Brandon: Mm-hmm.
Thomas Claburn: you know, it, the, the least for me, you know, what I found with this is when I spend my time doing, you know, sort of trying to code this app, I'm doing a ton of just iteration on it and it'll, you know, it's like, do it and then correct it and then test it. And like, ⁓ that's not doing what I want. And then correct it again. And it's like, well, I mean, is it any better than if I had just done everything by hand? It's just, it's a different process. I mean, it is really helpful for things like looking up obscure command line. It's like, ⁓ yeah, what's the flag for that? if you're thinking of a long Docker command, it'll help you pull that out faster than you could find it if you were Googling or checking the documentation for it. So, I mean, there's definitely utility. just, it changes the way you work. I don't know that it really accelerates it that much. It just kind of forces you to focus on different things.
Brandon: Mm-hmm. What about entry-level coders though? Because I feel like as we're discussing this, we're just talking about a lot of automation of entry-level development work. And I know that's been a concern in the past with AI. You're going to have this kind of period where you have a dearth of entry-level developers who've kind of been chased away by the fact that their jobs are being automated. And then you're left with no experienced devs a few years down the road who can actually do the hard engineering that needs to be done on the back of these tools.
Thomas Claburn: Yeah, and I think there is a risk that because these tools require a lot of babysitting, you're not going to be spending as much time learning the underlying concepts. ⁓ mean, there's certainly an opportunity to use these to discover stuff and, that's how you do this in Linux or that's how you write this algorithm. But if you're not actively sort of then reinforcing that with just sound learning practices, you're always going to remain dependent upon this tool. And any time that tool is not available, ⁓ you're going to be pretty helpless.
Tobias Mann: As a counterpoint, I would point out, there's an opportunity here that when you start learning these concepts, you get and you start building something outside of a toy designed to illustrate those ⁓ concepts, you run into a situation where you have to do a lot of work in order to get to the real interesting ⁓ engineering problems that will help you stand out. ⁓ I can see a scenario in which these kinds of tools help folks spend more time on the hard problems, learn how to solve the hard problems, and spend less time on the cruft that has to be built, all the frame working and all of that. The counterpoint to that is that it is incredibly helpful to have a mental picture of the framework that you're building around these functions and sometimes, at least in my experience playing with these things, I have to go back, stop and go and examine what the heck it's built and why it's doing things the way that it's doing because I've lost sight of the mental map of what it's doing.
Brandon: Yeah
Thomas Claburn: Yeah. And so in that way, like there's only so much acceleration you can do. a lot of people just seem to want to put these things on open claw and let them run and, you know, come back and, you know, profit. And, you know, that's, I think kind of overselling it. I think that there are ways to use these tools that are effective, but they don't necessarily, you know, really change the, you know, rate at which humans can process information and can, you know, participate in the process.
Brandon: Yeah, no, totally. I see what you guys are saying. So what's the kind of, I mean, guess, you know, not to boil it down to a simple kind of conclusion, but I mean, what's the, what's the verdict here on, on, you know, the current state of AI coding tools, if we had to say based on this discussion, you know, are we looking at a place where we're, you know, don't get too dependent on them? Don't rely on them? Like, what's the, I don't know, what's the take? Like, how should developers proceed to interact with these tools?
Thomas Claburn: I mean, legally, it seems like they're going to be around for a while. there hasn't been any. None of the lawsuits have really shaken this, made this stuff illegal. So it's clear that this is going to remain here for a while, even if the US companies fold. There are Chinese companies who are doing it, who are going to keep this stuff around. So it looks like this is going to be a reality for a while. And I think that people will just have to adapt how they work with them to do it efficiently if they want to use them. I there will still be a place for,
Brandon: Yeah.
Thomas Claburn: you know, human custom computer science and algorithm discovery. But, you know, there's a lot of stuff you can do in terms of like automated vulnerability scanning and things like that, where these things are really useful and they will find a place. It's just the workflows for the people and how you arrange your people around these models and how they interface with them are still being developed. And that's going to tell you sort of ultimately what the productivity picture is like. ⁓ You know, if you can really get away with, you know, a tenth of the engineering staff. I suspect you can't.
Tobias Mann: Yeah, I would agree with Tom.
Brandon: Yeah, so so far we've seen good things but nothing has been proven absolutely. Tobias, what were gonna say?
Tobias Mann: I would agree with Tom. You're still gonna need engineers and I don't know that you're gonna need fewer of them. I think going back to the Microsoft Office example, it changed what people did, but it didn't necessarily reduce the number of people. It just increased the amount of work as a whole that you could do. you know...
Brandon: Mm-hmm.
Tobias Mann: It's hard to say. I know that a lot of folks want these things to be create a situation where they can reduce payroll and make savings that way. ⁓ I don't think we're at a point where that's true yet anyway. ⁓ And maybe that will change. But, you know, I think right now trying to predict the future and given what we've seen over the last four years is ⁓ a dubious idea.
Brandon: Yeah, this stuff moves so quickly, right? And so unpredictably, feel like. know, one minute you're like, this can't do that. And then a week later, someone proves, yeah, yeah, we actually can do that. And we can do it pretty darn well. So we will have to just wait and see what happens. But for now, I guess just a good way to squeeze more productivity out of underpaid and overworked developers. All right, guys, well, thanks for coming in talking about this, ⁓ we will see you next week for another episode of The Kettle.