Hari Krishnan is back to talk about advancements in spec driven development, about advancements in open weights models, and about the book he's writing for Manning. You can get the book for 50% off (and possibly save even more this week?) with the Manning Early Access program here: https://www.manning.com/books/spec-driven-development You get access to the first three chapters, and the full book once its ready.
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
doesn't mean the assertions are clear, like what you mentioned, the mutation Right, right. testing is there. So then the next level of tightening needs to happen to say, hey, if I run mutations, how much percentage of mutants survive? That is the next level. Any test development skill you take like Matt Pocock or superpowers or anything or for that matter your own skill. So what I usually do is I use like a Claude dynamic workflow or some sort of a Ralph loop wherein I put in a rubric of this measurements. I put in the base problem statement, which is the substrate. And then I put in the skill and I put it through
like a few iterations to see where they are missing. And then I have of rules which I can use and pick one at a time, keep adding it, keep removing them and then I come out with a skill file which I then use for that project. So long story short, tuning the skill is necessary for your code base, Yeah. Yeah. Mm. your team and your models that you're using gives you a little bit more consistent results than Just generally saying follow TDD or generally taking a TDD skill Right, right.
off the market Hari Krishnan is the creator at intentdriven.dev. He's also been a guest on this podcast before, and his episode does really well He also has some really big news, so we wanted to have him on today to talk about that. Hari, thanks for being on the show today. I really appreciate your time. Thanks, Kyle. And I'm really glad to be back here. And ~ yeah, I'm glad to see that ~ your audience are able to resonate with what we spoke about last time. Yeah, glad to be back. Yeah, for sure. Well and I hear you've got some really big news right now, Hari Like you've been working on like do do you have a book deal?
Like come on, man, tell me the tell me the story. yeah, I just launched the MEAP, the Manning Early Access program ~ of my book called Spec Driven Development, Engineering with Intent. It went live on the 31st of August. So that's the big news. Again, thank you for your wishes. I've been working on it for about three to six months. I was writing the book even before I closed on the publisher, but thanks to the publisher now it's out there. looking forward to feedback and it's early access.
So obviously anyone who's reading it can give us the feedback and figure out how we shape the book and take it forward. And w early access program, I'm familiar with it. I I can almost see the the icon in my head. But I I forget, does this mean all the chapters are there and and it's a you're sort of getting a pre read before the the paper book or is this like a only some selected chapters? That's a great question. Thanks. I almost miss mentioning it because it's an MEAP. It's only the first three chapters that are live right now. It's running at a 50 % site wide sale,
which means people could get on it read the chapters now. And of course you get it at 50%. And eventually when the book goes into print, you will get your copy. Yeah. Okay, you get the whole thing. Nice, nice, nice. so much has changed and you weren't on all that long ago. what stands out to you as something that ~ is is one of the bigger changes. one of the things I noticed like I think your radar itself is brilliant. It was not there last time and now it's on. So thank you for doing that. I think the space needs it. I refer to it quite regularly just to see where people are at.
And of course, like other thought leaders who've been on your show, I get a sense of what their headspace is like in terms of concepts that are going on. So going by that, think a topic we discussed last time is intent articulation. And pretty Yeah. much like my website goes, it's called intent-driven development. on, I used to think I'm indexing or over-indexing on this term called intent because it naturally felt that that's what it means. Whether you're doing specification or you're doing loops, you're articulating intent to the agent so that then the agent
can build something rather than trying to interpret what your intent is. You make that intent explicit. Mm-hmm. Just say it. Yeah. That was the core idea of it. Yeah. And I think it's good to see that resonate and a lot more information coming out there, which is in support of that. Like for example, the recent playbook that Anthropic released called AI native SDLC playbook or something like that. And one of the primary things is it's called this thing called intent.md, which you capture your intent. Thereafter that drives the rest of the software development life cycle itself.
~ Well, of course, like the details are important and each of us needs to read it and see if it makes sense to us and whatnot. But what I take away is intent articulation is of utmost importance and paying attention to that is something that all of us need to do. How we go about doing it is all essentially building the harness is about. The Yeah. harness is about getting intent out and that's another concept which I've been toying with. which I've been calling the intent harness. So I'm glad to see
Mm. is taking shape right now. Yeah, yeah. You had your finger on the pulse. I do remember when that came out, like and I think it's like an intent MD file, like you say. and it's not like this was deep inside, you know, the article. It was like in the first few paragraphs, right? Because I only skimmed it and I saw it in a like r and as soon as I saw this file name, I'm like I'm thinking, okay, Hari would love this. This is definitely up your alley. So the audience, because of course I remember, actually I'm not sure I do. How wha how do we think about intent versus like specification,
right? Like i you know, I think of the story format as ~ I would like so that is that towards intent or or is that or am I missing some sort of nuance when I think about it that way? What what is meant by intent here? You you described it as the loop, you know, other kinds of things that that's what the intent is helping you ~ really nail down, but I'm not sure I've got the semantics right in my head yet. Got it. I think a simple one line explainer in my head is usually when
we are prompting or vibe coding our way to getting work done with agents, we are going from a vague idea we have directly to implementation, right? And then whatever's missing based on the implementation, we course correct and then we iterate on top of it to arrive at what we want to do. But the issue here is the interpretation gap between idea, implementation the agent has to interpret whatever has not been said by person who wants the implementation to be built. So in my head intent is the ability to reduce that
gap between your idea and the implementation by interpretation that agent is trying to do. So the thought process behind intent-driven development is that As agents get more capable and models become more powerful, they obviously are working towards a factory like setup, right? Long running complex features could be built and we cannot be the bottleneck and to keep clarifying what's going on and you know, we cannot have this ping pong relationship going on between us and the agent.
Agent needs to independently deliver, but also stay Mm-hmm. aligned with what we want. So which means we need a process. which will elicit intent from us, make that clear. Yeah. And where it becomes clear is an artifact such as specifications. So the authoring of specification, I see, I see. for example, is a conversation between the human and the agent, thereby Yeah. bringing out those details, reducing implicit understanding so that then the agent can go on to build the complex stuff.
So I'll stop there if that's making sense. Okay, no, that helps. That helps. so one thing I'm getting from this is don't worry, you don't have to like sit down and know your full intent perfectly ahead of time. it is still an iterative process and in in the the intent.md is is where we work on that together with with the agent that we're working with. okay, so that's one thing I'm getting from this. Another thing I'm getting from this is that it's it's sort of maybe a bigger picture than the user story, right? As You know, as a person who at Google.com, I would like to enter ~ the name of the product that I'm looking for so that
I can find out if my favorite shop carries it. That's a great user story, but it doesn't do much in terms of the intent of like, well, our intent is to be the best e-commerce, search in the world. it seems like there's more of the directional ~ and not just the specification. Or it's a nice combination of the two, but I just made that up on the spot. So am I getting closer now or am I still missing it? You are getting closer in the sense that intent ~ by its nature is implicit. I know what I want, but ~ I don't know whether,
let's say understands what I want. And there's that conversation between us. I think it's a throwback to behavior-driven development, if you wish. The whole idea of BDD, Hm. Yeah. if I'm not wrong, is about ~ pushing that conversation between people rather than... I think, okay, so taking one step back, right? I think the Okay. wipe coding or prompting approach to talking to an agent is very instructional to say, Yeah. Yeah. like, you know, I want you to do this versus ~ if you get into a conversation, then if the agent asks you, is this what you meant?
And then you clarify ~ that Yeah. Yeah. could be pretty much just the intent elicitation itself. You don't technically Got need user stories, but user stories give a format which makes it a lot more easier. But is that the only format? Yeah. No no, yeah. Sure. Maybe not. You have lot more going on there. Yeah, okay. Okay, so I'm I'm forgetting the important part. A user story is ~ a reason to have a conversation between a software developer and an analyst. ~ Exactly. and so that I'm forgetting the important part. So the intent MD is a representation of that elicitation of the intent wherein
we arrive on are we talking about the same thing? Okay, the best of what I understood from the Anthropic playbook yet, I don't think I would say I have fully grok what they have, you know, mentioned there, but they Right, right. clearly have an intent.md and they also have a spec.md. So I'm still trying ~ to discern what's the difference between how they are interpreting it. yeah. Right. So far, what I'm trying to say is intent as I understand it. and intent as like eventually we'll all converge I guess but the idea is
Yeah, yeah. Yeah. to make things explicit. So one other article that's been coming to mind while we've been talking is earlier this week, our former colleague Martin published something from Giles Edwards Alexander, ~ another former thought worker, Mm-hmm. ~ I think he's still with Thoughtworks, talking about this this concept of the accidental blackboard. he's talking about is like having a single document which becomes a shared repository for many agents, including people, right? ~ that might want to use it as a reference.
And the idea of like many scientists or engineers in one room around a single blackboard and we're all sort of using it to share ideas. And yeah, that's what's coming to mind when when you talk about this. The intent MD file becomes that blackboard, you know, that other agents can read from and the agent and I that are discussing the intent can use describe and so on. Yes, and I think I could hazard a guess as to how that makes sense. And this point is that agents, just like people, if you're anthropomorphizing them, need to communicate. And
Yeah. Mm-hmm. ~ essentially, the way I've been using tools like Linear, or Asana, Jira, not more like it's essentially the coordination between them. ~ So we need to communicate, we need to say, hey, Hari is done with this, so Kyle needs to pick up and run with the next task. So we need that kind of concept to, you know, play off of and maybe I myself want to put something out of there on the blackboard, which I might otherwise forget. I come back to it and pick it up. Right. Yep. So anything that humans have done as a way to think through,
I think that applies very much to agent. So far, my hypothesis at least, and it's been holding. Yeah, yeah, yeah, yeah. I I tried to use Notion that way for a little while and it worked somewhat pretty well. I I was trying to use Google Docs before and that didn't work very well at all. We ended up like creating new documents all the time. ~ at least with Notion we could sort of update document pieces a little bit at a time. I haven't tried linear that. That's a new neat idea there. Cool. Another thing that I'm reflecting on is that often the best conversations that I've had on the show, I will find out later someone was writing a book.
And I'm wondering if just that process of going and drafting is is you know, people talk about how writing is thinking, right? And so some of the most thoughtful conversations I've had with people, the one like you and I had before, I'll later find that there was a book coming and ~ and it's it Yeah, there's there's a bit of a premonition there for me now. Interesting. Hm. Yeah, glad you mentioned that. think the whole idea of writing the book I started six months ago ~ was more about like, you know, just thinking through the process myself,
like what are we really talking about? And essentially in this area of intent driven development, there's very fragmented knowledge out there. And I myself wanted something which I could refer back to to say, hey, this is what I mean. And this is what I want to index back on for every concept. ~ so that I am consistent about how I prompt my agents and whatnot. that's how it started. So I guess you're Yeah. absolutely right. know, thinking through happens with the writing. It's a very, Yeah. how do you say, a recursive
Yeah. process. Yeah. And I think there there's it's almost in defense of the book as well, you know, or or at least of of long form. ~ I think there there's something you know, I I could probably rip out a page about most things. but if you if you ask me to write two hundred pages about something, I'm really gonna have to push myself, right? And I'm gonna have to think deeply and I'm gonna check my research and I'm part my do research as well. So yeah, I think there's something to that that volume or that size that that that is also a forcing function. Cool. So other things have changed since we last spoke.
~ a lot of guests and and myself are thinking about like, hey, we we were living in the era of token maxing there for a while where we were all rewarded by how many tokens did we spend. ~ I don't remember actually getting a bonus based on that, but but you we remember those times. That seems to have changed. ~ how how is this impacting you in your practice? How is this impacting teams which you have a chance to observe? Like what are you seeing? I think it's quite a reckoning for all of us. ~ For the longest of time we had a little bit of a free ride I would say.
I at least would not really think about tokens as much. But I think the first conversation now that happens with most of my clients at least is that what is the perceived budget that we're looking for? ~ How does your ~ know harness everything comes down to that right? How does your harness and your SDLC the native SDLC ~ You know justify what is the amount of token and even to that matter the amount of unit work done per certain unit token is how we had to start looking at it because tokens are not made equal so to speak right because
some models tend to be token hungry but still they're very cheap so we have to sort of normalize those things so the economics of it is fairly involved actually and I wouldn't say I have a full handle on it but what I'm trying to do at this point is try and expend energy carefully, so to speak. So if there is specification process, for example, I think in my case, I do a lot of specification, I do a lot of grant work execution and then verification. So the execution part is what can afford to
be on lighter models or cheaper models. Mm-hmm. The specification and exploration has to be more on the frontier models. division of labor is how I've been able to get some amount of rationale in terms of keeping the costs under control. But honestly, do I have a control on how much I will be using? I don't yet know that because it's quite difficult because month on month the economics of it has been changing and how much work gets done keeps Yeah. Yep. varying. So I
think it will need another quarter at least for me to arrive at saying hey this this harness for this kind of work. you will be able to predictably say, know, a perceived cost of 100 to 200, maybe $300 at most. you could comfortably do it, right? the one thing that I'm guarding for is worst case scenario, should you run out of tokens and whatnot, you should not be so dependent on the model that I cannot do anything else, right? Like if I have to switch models and So which is why I am heavily investing in
the strategic context in terms of my specifications and other ways of indexing that code so that even if I don't have a full mental model, I can operate on it. Even if I switch vendor harness model, I'm not impacted by it. I'm trying to guard for that. That's the current Yeah. going on. Yeah. Yeah. It's interesting. And I'm I'm working with a team that that over the last little while has been working their way through not only the economics but also how they think about ~ sort of information security and PII and their own ~ competitive you know the nature of their their data,
you know, and those kinds of things. Anyway, so th they sort of started with anthropic Claude team and they're paying a certain amount per developer. So it it's not the enterprise account. As I understand it, once you hop to enterprise, like you're paying by the token. But if you're at the team level, you're not yet doing that. And so it's closer to like a pro max plan, which these these amounts sound expensive, you know, $200 a month and is not uncommon. that I think that's what I'm paying, for instance, personally. but when you start to look at how many tokens you actually used and what they normally cost on the API, you start to realize, my God, I've been getting away with murder.
That's cheap. compared to what the the per token pricing would be. But as you say, a token isn't a token. Like and I've I've also seen those same folks sort of say, like, I'm here on open router and I can see that, you know, prices for this, you know, tokens over here are better and tokens over there are cheap. But to your point, that's not necessarily the same thing. The models use them differently and do different amounts of work with them. And they may be flaster, they may be slower, they might do better work with those more tokens or not. So yeah, it's it's a very confusing time.
Another ~ experiment that I'm aware of, ~ well, it's it's it's one that I'm doing, is trying to rent, you know, very large machines, from EC2 at the moment that have, you know, sort of very large GPUs in them, you know, H one hundreds, call it four of those. And just running your own, you know, go download Mimo from Xiaomi, go download ~ you know, whichever one of the latest Qwen or something. And just see how far you can push the economics that way. Now, rack rate EC2 instances are probably not the cheapest way to get
a machine with four H100s, but it is something which with which you can do some experimentation. The part that I haven't gotten to yet, ~ and I'll I'll tell you how it goes once I do, is how many people can you throw at a machine like that? Right? Like if all it can do is answer one person very well, then this is not the right economics. But if it if it can answer 100 people, and then maybe, right? So But to me that's that's the part which I have not yet discovered. But yeah, to think that we all have to do this kind of economic work to figure that that's th this is such interesting times, you know. They're as you say, the economics are a big part of it.
Yeah. And eventually you might get down to the point where you have local models right on your laptop. ~ And there are experiments on those, right? I think the one got popular called Colibri. The Colibri project was essentially to take a GLM 5.2 instance and load it up on demand, like not load the entire thing into memory, but sort of stream the model into memory as needed. Of course it is much slower, but if you can plan your workloads efficiently, then you could very well like,
know, hand it off overnight. because it's going to be slow but it's not bad right you're getting JLM 5.2 and get that work done so I was experimenting with that a month ago or Yeah. so but it might be leading to something is what I'm thinking maybe you will have models which run locally or maybe on a small tower which is sitting right on your desktop maybe not even Right. on a cloud but might be slower but that's where again it's important for us to get our harness
right so that we don't really have to wait for the agent to finish let it take its time but it's free so that's okay. Yeah. I made the mistake of searching ~ eBay or Kiji or one of these the other day for like used Mac Studios and I went down this rabbit hole. There's all these ~ Mac Studios for a little while they were selling them with five hundred and twelve gigabytes of RAM, right? which is that that's usually the size of a small SSD, right? and that's unified memory. And those things are selling for like fifty thousand dollars. Second hand
Wahaha! That's brilliant. Apple doesn't sell that version anymore because memory has gotten expensive, but But I'm not sure that explains that kind of pricing. Yeah. So you can tell Bye. we're all sort of looking into this. I doubt anyone is doing that thinking like, ~ I I really want the fastest, you know, logic pro performance I can get. That's that's likely someone who's trying to do local models. Yeah. there is also this concept that a colleague or a friend of mine was talking about ~ called Rob Winkle. He is talking about RLMs,
which is recursive language models, Mm. Yeah. which you could take like smaller models. We could recursively keep asking the questions and you know, that reduces No. your need for very advanced model. You could just take the same question, you know, a reminiscence on top of it and get Interesting. the solution eventually. That's another area that I'm just trying to learn right now. So RLM is another area to look into. last time we spoke we spoke a test upon a topic which is essentially
a Spec Driven development and you could Define the spec but then once you define the spec like what happens thereafter like how do you know if the Application is built according to that spec or not So I've been experimenting a little just to see how far you could push that and just have like Yeah. a quick thing that I could Demonstrate or rather show you Yeah, yeah, yeah. like how it looks like Let me quickly share my screen and talk about it. That'd be great I brilliant. So, okay, I think just to cut to the chase and show you an example of what it looks like,
~ I'll quickly just expand this, reduce this out so that you can see my full screen. Alright, so Mm-hmm. my specification in OpenSpec format, again, OpenSpec by default doesn't really capture it in Gherkin format, close to it, but not really Gherkin, right? What I have done Yeah. here is a ~ customized schema of ~ OpenSpec, which I call Intent-Driven Schema. And that schema changes the specification format to contain gherkin within
the markdown. And this gherkin is what then gets translated into something that we are all familiar with, which is step definitions with CucumberJS or whichever tool you choose. Again, I'm using JavaScript here, so it's written the same use cases here in JavaScript. So that makes it equivalent. So what Uh-huh. happens is in this approach, I think in your radar, I also noticed you have ATDD, right? Which is acceptance test driven development. So this becomes the acceptance test for the, you know, the agent to build the application against.
And so thereby like, you know, it doesn't deviate from what's in the spec. So even though like, you know, if the spec itself is ~ like it's plain English, so to speak, I can still read this, right? But this becomes more, executed according to ~ an acceptance test. So that is keeping Yeah. the application alive. But that's only Mm-hmm. one part of the equation, right? Which is essentially, if you look at what's happening, I think what we spoke about last time was this guy,
is spec first or spec anchored. I think these are the two areas that we looked at. So spec driven development by itself, by default is spec first because you're using specification to think through the process and... ~ That itself is a good value, right? But worst case scenario, even if you are not really following strictly, you could be anchored. We're trying to keep spec and the implementation in close coordination. But what we really want is more around, you know, spec as source, which is I only start with the spec
for all implementations, right? That's where BDD comes in. So wherein I showed you how I take the spec, it into an acceptance test. Mm. and then Yeah. that drives the implementation. So thereby, you know, your code gets built. But the problem I faced with this is obviously the outer shell is constraining the code sufficiently well enough in terms of behavior. But what gets built internally is largely spaghetti. It doesn't really ~ Mm. make a lot of nice sense, right? Of course, you can introduce DDD concepts and whatnot.
But what I found most useful is putting DDD into that equation. really makes sense because BDD acts as the macro level check on the unit of work, keeping the overall behavior aligned with what you want to build. And right. TDD kind of makes sure that, you and I am a mockist school of TDD, so to speak. So when you're mocking and you're building out units, so sort of somewhere between these two ~ guidelines, so to speak, or how do I say envelope of light within which those
Yeah. the aircraft has to navigate. ~ These units essentially are built fairly reasonably well. Of course, there's more to this, but at least at a top level, the thought that evolved in my head is more like how do these concepts fit in? know, SDD, of course, gets you the thinking process to first spec first to spec anchored. BDD helps you reach a little bit of spec as source. And of course, if you want cleaner code and ~ Yeah. nice design,
That's where the testing, the test-driven development niceties that helps. So I'm still building on this concept. It's still very early stage, but you have to sort of live with this ugly little diagram that I have to kind of convey the concept that. No, no, I I totally get it. I I can ~ I have often given the advice to teams if you have some code which is a bit of a ball of spaghetti, that ~ going in and applying ~ unit test to it, ~ posthumously, this is now this isn't you know TDD in advance,
this is this is adding unit test after the fact, will force the spaghetti to detangle because each time you're adding a unit test, you're gonna have to sort of like clean up this area in order to make it test a bowl. instead of an object that news up another object that news up another object and you know inception all the way down, you're gonna end up putting in factories and you're gonna end up putting in parameters and and you know inversion of control and so on. And so that's Yeah. gonna it it's a way to do it. And and and test driven ~ on the other side sort of forces that that happens from the beginning. So you don't have to stop and go back and do it.
~ so yeah, to me that's I like that. The BDD kind of keeping the behavior and making sure that the intent is captured and executed correctly, but doesn't give you like good structure and then T D does. Yeah, I and I like yeah, that's that's I like that. I and and and it really sort of shows you where Spec Driven development fits. It sort of fits in, like you say, this sort of outer envelope, which is driving these existing processes that we already know and love. Ooh, that's interesting. Nice.
So taking off from what you mentioned, right? It makes sense even for in a pre-existing code, which does not have specifications or tests, which is the large majority of what we have to deal with on a day-to-day basis. I actually found using characterization tests, as you would say, like from Michael Feather's kind of legacy code refactoring, Yeah. Mm-hmm. that concept works like a charm because then you can isolate what area you're working on, characterize it and isolate it. in the process of isolation you also nicely modularize it and you know quality keeps
incrementally changing again none of what i mentioned has to be day one you could sort of eat your like you know have your medicine and eat your veggies and eventually get better Yeah, yeah, yeah. I like it. I like it. Okay, cool. The the other thing that's coming up for me, and this is this has kind of ~ come up a couple of times now as we've been talking, is that ~ recently in my practice with Claude, and I don't know if this is them improving Claude code or if this is one of the plugins like superpowers that I pulled in.
I think it's probably a little bit of both there. But Claude has started asking me, like, okay, we've got the spec now and you've approved the spec, ~ and I have a plan based on that spec. Are we ready to proceed? And then they'll say, do you want to go sub-agent driven? Or since this is small, we can sort of do it in this one context session. And my understanding is that part of what we're doing there is that making sure that each implementing ~ agent gets to start with a fresh context. It doesn't have to go through the entire conversation that we use to get to that intent, just the intent itself,
and not through the entire conversation that led to the spec, just the spec itself, and so on. ~ and so thereby it can have a cleaner context window. But I can still keep talking to this one that remembers the conversation, which is great. ~ and I've I've started to think, like for one thing, with your open weights conversation, talking about using frontier models for that sort of container conversation, I could imagine using a a very good open weights model that's more of a sonnet level thing, I think, and less of a fable or an opus for the actual execution, for the actual development, especially with these guardrails in place,
I think. But the other thing that that's this is all bringing to mind is that like this is starting to very much to feel like, yeah, we're capturing the intent in this outer container. And then, you know, when each one of these little subagents does pick up, like, yeah, superpowers is feeding in TDD. And so that is helping me build a larger test suite and helping me build confidence. ~ so yeah, it it's I but it seems like this this new concept Thank you. of intent on top of it could really speed up the process of understanding like where are we right now? Are we
Are we still building a spec up or are we shifted to building a plan or or are are we implementing ~ and really sort of better organizing all that? So that's exciting. Yeah. I think I mentioned this concept last time, which is I let agents fight it out sort of to figure out what's the right thing to do. So I call that skill something called the adversarial authoring skill. Adversario. Review okay, okay. yeah, so that was a real authoring. In my case, I'm using two ~ agents, which is the author.
In this case, it's 5.5 I was just experimenting and review is GPT 5.6 Tera. So this is reviewing what the other fellow wrote. And ~ if you look at my artifacts which get generated, ~ you will notice that, let me just pull that up. So this is the proposal. This is one of the artifacts that OpenSpec generates for each feature that I'm, or change that I'm proposing, right? So the other proposed poll voting, this is a voting application. So I'm trying to figure out what's going on.
Now what happens is these two agents, like one agent writes it, the other one reviews it. And then they have like, the document is, this is the proposal and this is the council notes. So the council notes are essentially the two agents argued as to what were the challenges raised by the reviewer and then Wow. Yeah. the resolutions that were accepted between them. And so basically what comes Wow. to me for review is already something that two agents have kind of like fought Yeah. it out a little bit. so that I Yeah. can do that. And ~ this is also a way for me to kind of ~ evaluate newer models,
right? For example, Yeah. if I'm onboarding a newer model, I usually keep my reviewer constant. I onboard a newer model. So then I see if my review notes is going bigger or smaller, what's going on there. So kind of gives me a vague sense. I can't say this is scientific and all that, but gives No, yeah. me a pulse on how these agents are behaving and where they are disagreeing or agreeing. So that's Yeah. one thing. And I also have like agents for like developer and QA. So they again, Yeah. like, you know, sort of keep the guy,
the QA is more responsible for the acceptance test. Quin three eight max. Yep. Totally. The developer is more unit test. Yep. So they kind of fight it out with each other. And yeah, this, this sort of helps like since you mentioned. Sort of a sonnet level model. That's brilliant. Yeah. So the sub Yeah. Yeah. agent is what makes sense, right? And I think I was testing out QN 3.8 Max and kind of made sense to verify it so similar to the adversarial authoring, we also have like the senior developer and senior QA. So these are like, Yeah. you know, opposing roles and the QA is responsible for acceptance,
the developer writes the tests, the unit tests in the code. And in this case, I was testing out QN3.8 max against the QA ~ and I could assign a different model to it. So. just like what you mentioned, which is we could use sub-agents to do the work and also structure the harness such that you have a little bit more control in terms of how much context window we use, right? It's really, really critical. So instead of Yeah. trying to use up the context window to its extent, ~ sub-agents are a great way. And I think since you are using superpowers,
it does a pretty decent job of like handing off and bringing back the important aspects and... and not have to overload your context into a dumb zone, so to speak. Yeah, for sure. For sure. a lot obviously of of the challenge is like how do you keep this so that we're in the smart mode. Yes. So a couple of things are coming to mind ~ with this. One, ~ your your technique of like looking at the outputs ~ is is is definitely so one of the thing when I started out on my project to rent large
EC two machines, I tried to cheap out and go with this ~ this This set of chips called the L40S. This is out of Lovelace. Mm-hmm. and I thought to myself, ~ those are just like two generations back. These should be fine. But I misunderstood. They they were two generations back, but they were also one of the chipsets that NVIDIA was aiming at like lighter weight work. ~ I think the memory bandwidth is less, I think is what's going on. Like they still have plenty of memory, but the the bandwidth is less, and maybe there's less processing power,
something. I'm I'm sure I'm getting the details wrong. But point being, Mm-hmm. the L40S were not really meant for what I was doing with them. And it worked. You know, I was able to get open code to talk to it. And I was able to, you know, get it to go through I had a sample code base that was an open source project I'd worked on a year and a half ago. And I fed that in there and said, like, go analyze this code and tell me what's wrong with it. And it I mean it did, but it wasn't good. ~ you know, the results. It I I did the same code base and the exact same prompt in Opus and it came back
in about four minutes and it had like really specific advice, you know, not just like, hey, you might have a SQL injection here, but it's in this line and it's also in these files, and here's how you might go about fixing it. ~ but then Quen36, which is a very well thought-of model, you know, but but running on this hardware that was not well thought of. And it took seven ish minutes. So okay, seven versus four. It's not terrible. But the output was not nearly as smart. It was like, yes, there's SQL injection and you need to fix it in that file.
And that's it. There was no like pointer to which line of code. There was no explanation of how it got it right or wrong. And, you know, and and and there was so it's it's just that the quality wasn't as good. Which ~ this mirrors something Birgit talked about ~ in one of her articles recently that you know, the exact same model, but on different hardware will produce better or worse results. So I think we're we're used to thinking about this as like, how many billion parameters? Well, that one's gonna be good. And sure, maybe, ~ but just like we talked about how tokens are not really fungible,
I'm not sure those parameters are fungible. But the other thing is just running that on different hardware, you're gonna get different results. Like bigger hardware for some models, it's not just gonna be faster, it's gonna be smarter. And what it says back, which is really kind of amazing. Again, it's the economics of all of this in a way, you know, ~ the is is becomes one of the interesting questions. But that reminds me of one more thing she said. When she was on the show, she cautioned me against T D for agents. She said she had done some research. She had done now, if I remember right,
it was about three runs of maybe four different scenarios. So, you know, our our our our size here is small But when she looked through the results of these like 12 different sessions in this three by four grid, she found that when she asked, I think it was it was an anthropic model, which one I don't remember, but when she asked it to use TDD in advance, it actually produced results that were on average worse, right? versus when she did not, the the results were on average better.
Now I asked her, are you using like is this part of like The superpowers version, or is this just like some other prompt that she wrote? And it wasn't. So she's talked about how she wants to go back and sort of like rerun this against like more battle-proven prompts, I guess, or or approaches at least, ~ to to how you might have an agent to TDD But yeah, her her early caution was we might be anthropomorphizing them a little bit too much when we ask them to TDD. It may not actually be better. ~ but like you, I'm finding that it at least gives me confidence to
see the test suite growing. ~ and especially when I have it go run like a mutation ~ check against those tests to tell me like how good were they and it goes and finds mutants and kills them and approves them, it gives me confidence, you know. ~ but I haven't done what she's done. I haven't actually gone in and like run the test to find out. So yeah, it's it's it's an interesting sort of is it a debate? Is it a finding? I I don't know. But it's an interesting little ~ nugget that I came across that I can't kind of can't let go of. Yeah. Got it. I think my experience with test development has been...
~ all over the place, right? ~ The same models have done a very good job when I just asked them to do TDD, the same model on a different day and probably based on it's, you know, how angry it is or how hard the processor is running, it gives Uh-huh. me a different result. But what I've noticed is TDD, it's tried to game through that, right? ~ It's trying to finish off as soon as possible and not really realizing that TDD is important to get the result right. ~ So that's Mm. where I kind of use like constant ways of asking it for evidence,
right? So for example, the simplest of hacks it does Yeah. is it does a vertical slice. It writes all the tests first and then it writes the code later. Obviously the code is going to be ~ not so great because the design is not being driven by the test. When you go, ~ sorry, it does a horizontal slice. I it does all the tests at once. Instead we want vertical slices of smaller units. But how do you get vertical slices? for it to be done without it cheating, right? So then I had to make it like, you you have to give me commits for each vertical slice.
And unless you give me commits, Hmm. another agent will reject that particular PR itself. So ~ that forced it into vertical slices. Then when we huh. got into writing tests, of course, it's not like ideally if it wrote the tests and only wrote enough code to get that test passing, this should be Yeah. 100 % branch coverage. There is no reason for it to have no branch coverage, Yeah. Yeah. right? But it still does. So obviously, I need to have like a branch coverage Mm. to verify what's going on and keep it at that. Now, even if branch coverage is right,
it doesn't mean the assertions are clear, like what you mentioned, the mutation Right, right. testing is there. So then the next level of tightening needs to happen to say, hey, if I run mutations, how much percentage of mutants survive? That is the next level. So what I did is I took Any test development skill you take like Matt Pocock or superpowers or anything or for that matter your own skill. There's a certain amount of tuning you need to do for your models and your code base for you to get a little bit of consistent results over time.
So what I usually do is I use like a Claude dynamic workflow or some sort of a Ralph loop wherein I put in a rubric of this measurements. I put in the base problem statement, which is the substrate. And then I put in the skill and I put it through like a few iterations to see where they are missing. And then I have of rules which I can use and pick one at a time, keep adding it, keep removing them and then I come out with a skill file which I then use for that project. So ~ long story short,
tuning the skill is necessary for your code base, Yeah. Yeah. Mm. your team and your models that you're using gives you a little bit more consistent results than Just generally saying follow TDD or generally taking a TDD skill Right, right. off the market and seeing what's going on. ~ That's my experience so far, that's interesting. Yeah. yeah. Yeah, yeah, yeah. It's so in gosh. Th this whole notion of skills and how it continues to be useful. When when I first saw them, I'm like, I mean, cool, I guess, but but that's that's not gonna work.
We're just gonna type English into a file and but but it honestly it's kept going. Like it's kept proving value. And and to your point, the the tuning of them is an important thing. I think some of that can be just sort of about about the code base itself, about the other expected practices. To your point, I s I just sort of let ~ superpowers push w in whatever it's doing, but sometimes that means it'll start suggesting, well, you haven't done a PR. Well, I don't do PRs. I'm a solo coder on and I j I always merge to main So I don't do I I merge to main frequently and and I don't so so stop telling me to do PRs.
But so yeah, I mean to your point these things all need adaptation. But I think you're saying something which is deeper and more nuanced than that, not just like, this isn't my process. But that literally tuning the skill can make it more effective on your code base. And it though the same skill might have run perfectly well on somebody else's. So that's interesting. Yeah. Yeah, and it's pretty much the same for us humans also, right? I could be a very good engineer as far as comes to extreme programming and test development, but it takes me a while Yeah. for me to tune myself into the code base when I start Yeah. a new project. And that tuning or rather that onboarding experience is what
I think may be missing for agents Yeah. and skills. So that's what I'm experimenting again. I don't want to say like I have a handle on it, but this has helped is what I would. say I love it. Hari, you're you're you're staying a step ahead of at least me, ~ and and possibly some of our other our our other audience members as well. So yeah, I I love I love how you're doing that. Nice work. So Hari, another thing that's coming to mind for me, ~ in one of my recent interviews, ~ this is with Ian Johnson. He is a software developer in Austin,
Texas, and he's currently working on a a book called Harness Engineering, ~ which I'm sure it is one of many with that title right now. But but I really liked him. He seems sharp. And and I think he's the first person to come on the show and ~ a at least explain explicitly to me that they have as part of their process, as part of their team in, you know, in a startup, they have built s something that would resemble a factory, right? And you and I talked about dark factories and we talked about like, Mm-hmm. Mm-hmm. are we ready? Is this coming later? And these kinds of questions. And I think that's still something of a question.
But let me explain what he's done as I understand it and and and bounce it off of you. ~ as I say other guests may have done it and I just They didn't call it out so explicitly, but he called it out explicitly as we are doing a factory. And and what they do, ~ they have a software developer assign the work to themselves. ~ so they're they're not like assigning it to Claude or to Agent Alpha or something. They're they're I'll I'll assign it to Kyle. From there, I'll then somehow, ~ and I don't remember exactly how,
but do some sort of process. I'll say, agent, go work on this. Do I mark it with a tag or something? And the next cron job finds it, who knows? But an agent is gonna pick that up and it's gonna do the work. It's gonna pull in the story from Jira, it's gonna pull in the code that it needs, it's gonna make the change that it needs and write a PR, or maybe it'll give me some sort of preliminary step before a PR, ~ where I get to do some review before we actually get to like, okay, let's put it into into into main by a PR. But the agent basically does the work. Now, I'm still assigned though.
And what I think what I like about the way he's describing this is it's like I get to look at this as a software developer and be like, Library upgrade for a library that, you know, I feel pretty confident is going to be an easy one. You know, throw that to the agent. You know, bug fix for like something that's probably going to be a fairly simple change, you know, throw that one to the agent. you know, a new user interface change, but it's one that we've really well thought through and this agent this area of the user interface is really clean, throw that to the agent. New feature.
Maybe I'll do this one interactively. You know, and and we we sort of get to leverage our own decision process around like what to throw to the agent and what to work on interactively, just like you would today. Like sit down with w your favorite agent of choice, whether that's, you know, Qwen three eight or or Mimo or GLT or whi whichever GLM or or whichever one, ~ you know, and work interactively on it. And I think I think I liked that. I think I liked that it's still assigned to a human. ~ But I can imagine greater parallelism this way, right? I can imagine greater work getting done,
but there's still sort of a who is the responsible developer to it. So this may be me naively describing something that like everyone's already doing, ~ or it may be me describing, you know, something that's that's unique or at least specific to this team. But that's how I see it. I I hadn't heard a description like that of other teams which have decided on how a factory should be. This doesn't particularly seem like a dark factory to me, but Maybe, kind of. Like it doesn't have the overnight quality, but I guess it is. But I wanted your take.
Like are have you seen others doing things like this? ~ what do you think of this as what does this fit your definition of factory? Like what do you think of what you've heard in the description so far? So. ~ I think the way I look at it is the factory is able to indenting what you want out of the factory and then you place an order and something gets manufactured and out of the other side. Something like Yeah. that. Everything internally is automated so to speak.
Of course Yeah. this QC and if you want to be at the end of the line as the last person stamping your seal of approval before it goes out, that's But everything in between obviously will be in various stages of automation. And of course when a new factory is being commissioned, we're not going to have everything run off by themselves. We're probably going to have humans and robots work side by side and then slowly wean off on the humans and eventually trust the process enough so that it of runs itself. I don't think it's very different from
our continuous delivery so to speak. Yeah. to think about it that way. ~ Almost every commit goes to production, right? Like, and the kind of rigor that requires is a lot more than what people would give credit for. ~ Same thing goes for the factories also. So the small microcosm of that is how I would say my website works. Like I don't actively look at the code that happens at all. I keep pushing tasks of what needs to happen. Let's say my book launched, right? So I need to put a section on the website saying the book is live and go
buy it and watch Yeah. So I just push a task into my linear and leave it there. Sometime whenever the agent comes on, it will go pick it up, will do the job, it will send me a PR with the design and I'll approve it and send it off. Then at some time around it will build it and it will host a temporary version of it and say is this okay? I'll say okay and then it does it, right? And I think it also does a periodic check of the SEO. Like I think we figured out a few issues around that. Yeah. Yeah, yeah. So it does
that. But it keeps coming back to me, it's running and essentially my primary interface to writing code at least for my pet projects has become my mobile, right? It just keeps pinging me and I keep responding to it. Wow. And that's pretty much all. And the coordination is happening through a task board or something like that. I don't know whether I can call it like my micro factory, so to speak, but ~ that's how I'm thinking about it. And in due Interesting. course, I hope what will happen is as teams,
like let's say we are a team and we are ideating and we are creating, pushing it out into the board and there are agents which go keep building it and like, you know, come back with. ~ reasonable amount of accuracy so that you don't have you're not burdened by review and ~ you can push it out with fair bit of confidence so that's that's the part the last part is the most important thing how confident I would push it out without looking at it right it's again Yeah. Yeah. very parallel to how CD is right in continuous delivery do you have the
How do you say? Do you believe your system enough to say every commit goes to production without ever looking at it? Yeah. Yeah. That's the similar question I would ask in terms of where is your confidence you're building This factory situation. Yeah. in this factory situation. Yeah, yeah, yeah, yeah. I like that. I like that. Something I didn't get to ask Ian, but I get to ask you now because you mentioned it. I like how you talked about like, give me a preview so that I can see it. And that reminded me of a project that I'm doing where it's essentially a static website with you know Cloudfare ~ pages,
workers, I forget which one. ~ and you know, it that automatically builds you a preview, so it's very easy to go and look at the preview. But then I thought, well, with this other project I'm doing, I don't know how easy it would be to see this preview. Like I had a second pre-production environment there for a little while. And I could have said, like, go ship it to that, you know, pre-prod, and I could have looked at it there maybe. But I don't have built out the tech to do an ephemeral, you know, ~ instance of my application. ~ and and unfortunately, you know,
there there are parts of it that have grown just complicated enough that that wouldn't be a simple automation to do. It would be possible. But it I'd guess it's a couple of days, maybe a week of sitting down with Claude to get to the point where I could have that in fem ephemeral, you know, preview, which maybe I oughta do. But again, it's just me, so I don't ~ but how do you think about getting this like let's say this were an enterprise environment and not just Kyle's little static website or Kyle's somewhat clunky larger application. What if this is enterprise, you know,
and you've got like multiple teams, multiple domains? You know, you've got this team over here and they're working on this back of house thing, which is critical to billing and critical to analytics and critical to like revenue recognition and you know, because they're publicly traded. And then you've got this other part over here, which is more focused on e-commerce and sales and it what are we even previewing, right? Like and we we sort of change when we change the architecture of the the e-commerce area, for instance, and in stop depending on this third party service and introduce this new first party version of the same thing.
I can only imagine that keeping that like give me a preview running could be pretty complicated. Now I don't think you're saying Kyle will have the factory will be aware of all of this at once. Or maybe you are. I d maybe eventually. But but at least on like on a team by team sort of subcomponent by subcomponent level, how do you how are we gonna keep it all straight, I guess? You know, like because each team is gonna have the same challenge of how do I make my thing deployable enough? But I have my dependencies. Are they deployable enough? to have this like safe preview environment,
it it that's really pushing a fair amount of like rigor, engineering discipline on teams in order to be able to maintain that. But it could be powerful. How how do you react to where I'm going? Am I overstating it, understating it, or or do you think I'm I'm right on? It's the most, What do you think? I think it's a very relevant question. That's the hardest question also to answer, right? ~ Some of the teams that I'm working with, ~ we're trying to push the ~ idea of like,
the way teams are organized now, right? Like, you know, each team owns certain things, maybe it's a result of Conway's law, or the way you put it, and, you know, they're organized in a certain way because they ship certain things, right? But when you're looking at a factory, I honestly don't know if it should continue to be organized that way, because Right. the modularity of what gets shipped versus like who's sitting in, okay, let's take this analogy, right? You're talking about a factory. If you have the shop floor, you also have the executive rooms, right?
Now obviously if agents are running the shop floor, humans are not there. Humans have to be in the executive room. The humans in the executive room, they should not ideally be in that same bounded boxes, right? They are operating at a certain level of abstraction, which could be both good and bad and I don't think we fully figured that out yet. Now what's Yeah. going to happen is in terms of reviews, at least what I can tell you, what does a preview look like for a enterprise situation is what are your domain driven boundaries? ~ feature going and you're going to do an analysis of that you probably will
get a C4 diagram of what's the change like. Are you approving of the C4 diagram? And then if you approve of the C4 diagram then the task list and what not that gets generated out of it. How closely does that resemble that C4? How can you keep those things aligned? Then that comes as Yeah. a preview and then it goes in. And nothing takes away from the fact that you still have your regression suite which is deterministic, which you cannot hand off to saying agent will verify this manually, right? Like it's as
Yeah. bad as saying, I'll just depend on manual testing to get a job done. Yeah. Possibly worse. Yep. That's not gonna happen. So you still have all your elements of software engineering and which is why I strongly believe that the more we get into this factory business, there's a lot more work to do in terms of software Yeah. engineering. We're just exposing every ugly part of our, you know, SDLC Yeah. that we have ignored and have been lazy about. Now you cannot be, right? So ~ it's painful process to say,
I want a factory. ~ And that means you automatically need top of the line software engineering. And... ~ That means Yeah. also reorganizing your team structure as more Yeah, yeah. around the entire product rather than saying I am billing, I am shipping, I am fulfillment. Yeah. Maybe you're an expert in that area. You probably will still encode those skills and the knowledge, the wikis for that. But ~ are you going to be isolated in that team
and responsible for shipping that unit? maybe yes, you still probably need like what you said, body and ~ you may be that seal of approval that HITL is still required because someone has to Yeah. be taking responsibility for that part of the harness. But the bigger Yeah. question here is again, sorry, if I'm rambling, bigger question here is when you're building the factory, the factory itself becomes a deliverable, right? And there has to be a. Yeah, right, set of engineers right. who work on that and that's the harder problem and I think that itself would
be a couple of hours of discussion as to what it is. Yeah. Yeah, you're right. Yeah, I'm realizing as you speak, ~ that right, when when we think about man manufacturing is not a product. Factories are not a product. You it is not an easy thing to go and well, you I mean you can buy a a building shell for a factory, but that does not give you an up and running assembly line that's functional, right? That or or or any other kind of manufacturing arrangement that is functional. It's just a shell. Yeah, and the creation of a factory itself is a lot of engineering to do it.
~ so right. So conversely this this idea that, don't worry, the robots are gonna do all the work is gonna require a whole lot of software engineering to get right in the first place. And Correct. maybe agents will help us with that. Certainly they will. But ~ yeah, almost certainly they will. But th it's still gonna require some some brains to get it done. Ooh, this is interesting. One final thought, and then I need to be respectful of your time. ~ and and ~ but I'm thinking back about a team That was suddenly gonna get helped out by ~ a team of contract engineers,
I think in Eastern Europe in this case, ~ and it was like, ~ look at what we're doing for you, we're giving you all this help. You know, you you said you didn't have enough people, we got you this team of four people suddenly, and but then as part of the the business arrangement, ~ somebody in the engineering leadership ~ on the the customer side who I was working for at the time decided, like, yeah, we better make sure that we check all the PRs. This new team in Eastern Europe. We've got to check all their code. It's got to be an FTE. But what that team Mm-hmm. found out pretty quickly is that suddenly all they were doing
was code review because the four people in Poland or whatever it was were creating way more code than they could possibly keep up with on the PR side and write their own. And suddenly they didn't like their jobs very much. They they started to feel like, you know, somebody else is getting to write all this code. I'm just doing PRs all day. You know, and and so that's obviously an analogy to sort of where we are now. You know, it's a different flavored analogy, but ~ I hope we can find ways to like our jobs better than that team did. But I think I think we will. I don't think it's a perfect analogy.
I don't know. Yeah. Yeah, I think it's always going to be that joy of coding versus joy of building. I don't Yeah. know if that's even the right way to put it. But ~ coding, as I Yeah. saw, while I enjoyed the craft of putting things together by hand, it also was limiting in terms of how much you can get done, right? And Yeah. ~ especially for smaller teams and individuals who are building stuff out, the more it was always that I don't have enough money to...
build stuff, but I have so many of these ideas and I would like to build it. And now Yeah. if you honestly take back, step back a little and look at it, the joy of coding is also joy of building, right? ~ It's solving Yeah. your problem. So I don't know, but yes, certainly it's not fun to be Yeah, you're right. You're right. reviewing code. So I don't. Well, and that's the difference in my analogy. The team in Poland had gotten to take on both the building and the coding. And the team, I think it was Ohio at that point, were only doing review. And that's why they didn't like it.
But to your point, that's not what's happening here. We are working with the agents ~ but it we're not just PRing and they're doing all the building. Like it is true it is a harness, right? Like we still have the reins. So ~ we are still getting that to I personally feel like I'm experiencing that process of building. Even if I'm not experiencing the coding anymore. Yeah, cool. That gives me hope. Awesome. That definitely gives us all hope I suppose. Yeah, yeah, yeah. So Hari, tell us one more time before we go ~ where they can find
the book and congratulations once again. I'm I'm really excited to go and read it. But but yeah, tell tell me in the audience where we can go find it one more time. So the book is called Spec Driven and Development and Engineering with Intent. of course, intent is what we've been speaking about. It's live on Yeah. MEP Manning. ~ And ~ right now three chapters are available to you. ~ soon enough we'll be putting out more chapters. You get to read it as I write it. And of course, if you have any comments to make,
do jump in on the live book forum and you get to shape the book as it evolves. And ~ Awesome. yeah, right now you have a 50 % discount going on because it's introductory. So that's where the book is at. Awesome, sir. Hari, thank you so much for talking with us today. Appreciate you having on. As always, it's a joy talking to you, Kyle. Again, glad to be back here. Thank you for the opportunity.
Kyle Hodgson talks with Svet Bajlekov, co-founder of AMMP, a monitoring platform for commercial and industrial solar and battery sites. They get into how a team of about 14 uses AI agents across engineering and...
Ian Johnson is Staff Software Engineer at Parento and author of Harness Engineering. And, he's the first guest that talked to me about how they are building a factory. Ian's book, Harness Engineering:...
In this episode, Pete Hodgson discusses the evolving landscape of AI-assisted engineering, the importance of governance in AI workflows, and how organizations can empower grassroots innovation while maintaining control....
Asoba’s CEO Shingai Samudzi is no stranger to ML, as a data scientist he’s put it to use throughout his career. Now, as Asoba looks to accelerate solar energy in South Africa, he’s assembling a new approach; combining a...
Rob is the CTO at Circle CI, and I was really interested to hear what all he can see from their vantage point - and it didn’t disappoint. He had lots of broad ranging insights in to what teams are doing all over the...