transcribe

How to Build an AI Software Factory That Ships Faster

Boundary · 52m · transcribed 29d ago
More from Boundary Business
𝕏 Share ▶ YouTube 📥 PDF 🤖 .md

Section Insights

# 0:00

Introduction to Software Factories

What is a software factory and why is yield important?

The discussion introduces the concept of software factories, emphasizing the importance of yield in measuring their effectiveness. It highlights the need for a clear definition of yield and outlines the differences between software factories and traditional software development life cycles (SDLC).

  • Software factories aim for high yield and throughput.
  • Defining yield is crucial for understanding software factory effectiveness.
  • The conversation will explore metrics and cultural changes necessary for improving yield.
# 10:29

Measuring Success in Software Factories

How can we measure the success of a software factory?

Success can be measured at various levels, from project management metrics like shipping costs to user value and business impact. The discussion suggests moving beyond code output to focus on user and business value, emphasizing the importance of measurable outcomes.

  • Success metrics should include user value and business impact.
  • Measuring features shipped and user satisfaction is essential.
  • Higher abstraction levels in measurement can complicate evaluation.
# 20:59

Challenges in Defining Yield

What challenges do organizations face in defining yield?

Organizations struggle to define yield when they lack clarity on their goals and what they are building. Without a clear metric for success, optimizing for yield becomes difficult, especially in environments with limited user feedback.

  • A clear definition of yield is necessary for effective software development.
  • Organizations with few users may find it challenging to gather meaningful metrics.
  • Understanding customer outcomes is crucial for defining yield.
# 31:28

Evaluating Software Factory Performance

How can we evaluate the performance of a software factory?

Performance can be evaluated through online evaluations that identify failure modes and skill gaps. Implementing systems to track and analyze these metrics allows for continuous improvement and optimization of the software factory.

  • Online evaluations can identify areas for improvement in software factories.
  • Tracking failure modes helps in skill enhancement and process optimization.
  • Establishing a reliable measurement system is key to performance evaluation.
# 41:58

Streamlining Code Review Processes

How can code review processes be optimized in software factories?

Optimizing code review involves implementing policies that allow for faster merging of pull requests (PRs) based on their risk level. By categorizing PRs and allowing low-risk changes to be merged without extensive review, teams can increase efficiency and reduce bottlenecks.

  • Implementing risk-based PR policies can streamline code reviews.
  • Reducing the burden of code review can improve developer satisfaction.
  • Incentivizing smaller, low-risk changes can increase the percentage of PRs merged.

Transcript

0:00 We have this loop concept. It makes sense. What's a good factory? It's one that has massive yield. It's going to produce the most throughput out of this loop as much as possible, as fast as possible. Why don't we have these yet? Like, why doesn't it work? We all know the definition. Like, where is it breaking? You first need to define yield. And that's where I get stuck on software factories. I don't have a good definition of yield cuz I think it's different for business. All right, everyone. Today's conversation about software factories is going to be a fun one. We're going to go deep into exactly what is a software factory, the exact loop of what it looks like, how it differs from traditional SDLC. We're going to talk about one implementation of a software factory about what the Warp Company is doing with Zack over here. If you're familiar with them from the terminal, they now help you build software factories. And we're going to go back into defining these metrics in terms of how do you actually build the yield of your software factory up and what are the engineering cultures you might change and also what are the process changes you might have such as all the way ranging from like actual measurements and slack metrics and quality metrics you might have all the way down to like the process changes you might have to bring as well. Let's get started. We are going to get into a super fun software factory argument, debate, violent agreement. probably all of the above.

1:11 >> I suspect it's going to be more agreement than you think. I I >> this always happens. >> I know it feels like the world is kind of converging in the direction of most things. But before we get into that, let's do really brief intros. Today's conversation is on AI that works is going to be about software factories and what they are, how they work and how they don't work. I think my name is VBOV. I'm the co-founder of Boundary.

1:36 I'm joined by my co-host Dexter who's the co-founder over at Human Layer. And we have a guest today, Zach. You want to give a brief little introduction? >> I'm Zach. I am the founder and CEO of Warp. Warp is folks not familiar, we're in the agenic development space. We trying to help developers ship better software more quickly. Our focus these days is is on a what we call warp factories which is a platform for companies to build their own internal software factories. But we're also pretty well known for warp terminal which is a open- source agentic terminal that's you know we have almost a million active developers who use it to build software with agents. So psyched to be here and chat about factories. I remember when Warp came out, it was like there was that that hyper terminal and then Warp was the first terminal that was like, "Okay, we're going to use like browser tech, like web tech to build a a terminal, right?" Is it still written using like Oh, okay. That was just the Hyper thing.

2:33 >> So, we we explicitly didn't do what Hyper did. So, Warp's 100% native Rust. So, Warp is like a Rust based GPU accelerated. like Hyper was cool. Hyper was from like the I want to say the Versel folks but very very slow. >> the things that Warp does have maybe that are more similar with Hyper is like >> you know we we focus on really like updating the user experience of the terminal. So like the the big kind of features that we're known for is like the terminal input in warp is like a real text editor for instance. So you can like click and put the mouse some place. You can double click and delete text. We provide all this structure on the output of like your terminal so we like know when a terminal command starts what output it's associated with and so those are like the big things when you guys first started doing the AI stuff to to be completely honest it was kind of nice that I could just like write five words and it just like go into a model like small >> back to bash commands and then you could switch back to typing and it was >> right yeah so the the way that agents work in warp is like you can basically you can >> it's like English or commands and you kind of command your computer and >> so it's it's a lot of people love that for >> doing any kind of agentic work.

3:45 >> I was going to say you guys factories now, >> correct? This happens all the time, Zach. we like to bring guests on because otherwise it's just me and Vib shouting at each other and talking over each other. So now you get to just sit here and get talked over by both of us. >> I would love to hear kind of in your words you know we can talk through we can do a little bit of drawing. I have the whiteboard here. I can share my screen or we can just talk. But like software factory is a term that has been around for a very long time. I think my research came up that it was and by my research I of course mean Claw's research came up that it was the term was coined in 1968 at a NATO conference. so it's been around for a while. So software factories super invogue. People say, "Oh, AI means you need a software factory." And it's like, "Well, we kind of already had this and like it's been around for a while, but it definitely means something new." And it's it's one of those terms that's right on the brink of becoming meaningless because it means 10 different things to 10 different people.

4:42 >> So, I'm very curious in your own words, like what does software factory mean to you and like what is what is a software like conceptually? What are the concepts that make up a factory? >> Yeah. So it's it's probably different than the the NATO conference definition from 1978 or whatever. for for for me like the idea behind software factory is basically companies are going to set up sort of agentic loop that looks a lot like the traditional software life cycle. So you know ideas come in at the top of this loop and then you have agents that do the various jobs that that humans have traditionally done to take something all the way from like an issue to a launch feature. So that's like triaging an issue. It's optionally like writing a spec. It's implementing.

5:31 It's code reviewing. It's QAing. It's pushing things through CI/CD and then it's like monitoring. so it's like a aentic loop and everyone knows like the loop concept. The key thing about the software factory to me is like this is a loop that lives in the cloud and that is something that is like highly measurable. So you can actually see how work is flowing through it and something that you can improve over time and have confidence that you're improving it with the you know the kind of the way that we talk about this is like as a developer your job is not just going to be building products anymore. It's going to be building maintaining and tuning this loop to make software production as good as possible.

6:22 Okay, let's take this loop for example really fast because I think if I were to go ahead and describe this right now, most of Twitter will probably agree with this broad definition of what a software factory is. I think Dexter, do you agree? >> Is this your definition as well? >> Mostly. What's really funny is we did implementing and then code review and then QA and then I changed it to do code review and then QA and then you changed it back. So, it's actually a very interesting tangent of like should you test it before someone reviews it or should you test it after? And it I think it depends on which which part is more expensive and we can get into all of that. But yes, in general, I think for most of this shape, I think this this is pretty pretty established as an idea.

7:04 And that's actually my favorite part about this conversation is like AI doesn't actually change too much of this. But, sorry, V. I think the most interesting part to this that I really want to have both of you guys really think about is like, okay, we have this loop concept. It makes sense. Like, and the idea is like, what's a good factory? It's one that has massive yield. It's going to produce the most throughput out of this loop as much as possible, as fast as possible.

7:26 Why don't we have these yet? >> Like, why doesn't it work? We all know the definition. Like, where is it breaking? >> Yeah. So, so I would go this is like I think the general concept. There's a couple other pieces of it for from my perspective at warp that are really important. The first is like this this thing needs to be like real. And to make it real, it's like we actually have this concept of you define your factory in code. So think of like Terraform where it's like at any given time you should be able to say okay like what is what is the shape of this workflow? What are the agents involved? What are the skills? What are the MCPS they have access to? Where do they run? what models do they use? And so as much as possible, I'm a big proponent of like a declarative approach to saying this is a software factory because otherwise it's just an abstract thing. And so Warp are trying to say like, okay, there actually is a file and a and a folder structure that defines what one of these things is and then there's like a way of taking that file and folders and like feeding it to like a an orchestration runtime that that implements that one factory at any given time. So that's like how we get out of the realm of like wishy-washy to an actual thing is through this concept of having factories be code. Does that make sense?

8:42 >> This is the this is Yeah. I just dropped in a screenshot of the like >> the the structure of the chain. >> Yeah. So once you have this you have like a a concrete thing. Okay. Like this is your factory says work comes in here agents take it through. Then you get the ability to like actually test different versions of this by branching the factory code. You get the ability for coding agents to suggest changes to your factory by making diffs against the factory code. Yep. And so you start to actually get to a closed loop system which again whether or not this is through warps factory platform or some other one I think this is >> how do you a good approach? How do we measure? I think the the here's the part where I get stuck on on this is like this factory concept is awesome >> but I think so I mean if a good factory has great yield you first need to define yield.

9:35 >> Mhm. >> And that's where I get stuck on software factories. I don't have a good definition of yield because I think it's different per business. It's probably different per change that you're making. >> Yeah. So this I think by the way this problem is more general than software factories. This is just like how do you measure engineering productivity and that's like been a problem. >> Absolutely. >> This keeps coming up. >> We keep doing episodes and we keep getting I'm not going to do it this time, but we last I think a couple weeks ago we did a long tangent on like Dora metrics and why they're interesting and well you can measure revenue but it's a super lagging metric. So can you find leading metrics but like counting lines of code is is So what can we do?

10:14 >> Yeah. >> Yeah. I don't this this question is too big for for for me to solve just to be honest. But like to the extent that like the the way that we the thumb way is kind of like how many PRs are you shipping? I think >> you can kind of go up and up a level of abstraction and be like >> bring it into the realm of like project management is where I think this will kind of go which is like hey we want to ship this whole new feature >> you know and did the factory ship it?

10:45 What did it cost to ship it? If you want to bring it up one level further, you could bring it up into the realm of like business impact. Again, I think the further up you go, the harder it is to truly measure. But those are the >> number of PRs. what was the other thing like feature shipped? So PR is then I would go up one level to like features like like what's a user >> what's a thing that's valuable to the user >> like instead of measuring it in terms of code output measure it in terms of user value in some way and then measure it in terms of like business value if you can >> so like this is often measurable like directly measurable >> that's measurable I think so >> this becomes like a probably some LLM stuff >> I'm going to say LM stuff because I don't know how you some LM has to look at this and be like did you ship this feature yes or no >> I mean you count the number of Jira tickets, right?

11:36 >> Not really because that goes into PRs again. >> Yeah, >> you can like kind of like there's some intelligence >> apply some intelligence to know if you apply a user feature and then business outcome is again very measurable actually surprisingly >> is like I so yeah I think about this in terms of less business outcome but more like customer outcome between those which is like hey we enabled this user to do this workflow that used to take 20 minutes and now they can do it in 10 minutes. It's not actually like you didn't put money in the bank, but there's like an outcome that you can prove. What's what's interesting to me about all of this is like most businesses end up drawing a line somewhere around here where it's like everything above the line is owned by engineering and everything below the line is owned by product. And it's like product's job to decide what is worth shipping and engineering's job to ship it. And that's a thing that people have to do at big companies, I guess. But I think there's also like the best companies, right? The post hog product engineering thing is like no make the engineers own the customer outcomes.

12:35 Make the engineer not make encourage the engineers to talk to users, see what's broken, understand how we're solving their pain point because then you remove the middleman basically. >> Yeah. So what's missing I guess I mean like what would make factories go burr? So the the state of the world that that I see a lot today I'm curious what what you all see is like we go into companies and for the most part they're in the world of like every engineer has like cloud code or codeex or some like local harness. They're running it either in the terminal or through like the codeex app. everyone has their own like skills and MCPs and basically is treating these coding agents as like dev tools. And then and what I mean by that is like they all work independently.

13:21 Then you put something up into PR and then there's like a code review bot that looks at it and that's kind of where most companies are. >> a lot you're just kind of swapping out this implementing step with a new a new tool, a new it's not an IDE, but you're replacing the IDE with a different thing, but everything else kind of stays the same. >> That's most of what I see. And then with some agents at different points in this like view, >> right? Yeah. and so the and then the other thing I see a lot is like companies are trying to build their own like bespoke internal cloud software factory and they tend to start doing this by sort of stitching together more automations. that's kind of how is kind of how they do it. So they might like put cloud code into a Docker container and then have a web portal where you can like launch cloud code or they might have a Slackbot where you can do it. and so people are starting to sort of be like how do we how do we get more things happening off of triggers because >> it's faster.

14:25 >> It's faster and like otherwise you're just kind of fundamentally limited by like your human prompters. and so companies want more automation and they also want they want some amount of more standardization and centralization primarily so that you can control the costs of these coding agents. I see that a lot >> so that you can >> Yeah. And also there's like a got like a security and like auditing and like things can go very wrong when every individual person is setting up their own local tool with something so powerful as these agents. So that's where everyone's at. And then to answer your question about like where do you folks want to go go to, I think like you you got before you can really get like factories like humming, you have to get some amount of this like factory infrastructure in place where you truly have like a measurable loop and stuff is happening in the cloud. and so just like getting to that is kind of the the the first step.

15:30 Yeah. >> What do you What do you guys see? Like when you talk to people, >> I think when I think about Oh, go ahead, Dex. Tell me. >> No, go ahead. >> Give me your take because mine's going to take longer. >> I mean, my my take is like I agree that it's very important to put all these together and some like building blocks that are like somewhat automated fundamentally. But I think most companies don't have enough automation processes set up to actually do this.

15:54 Like they don't have enough definitions built in place. Most companies are not set up to measure customer outcomes. Most companies are used to like PM says to build a thing and we count the engineering metrics and we count the product metrics and it's a very top down hierarchical like silo thing. >> Yeah. So I think the best thing to actually do if someone's trying to build a software factory is just to decide how can you remove humans out of your existing loop as much as possible.

16:19 and then once you've removed humans out of your loop enough and once you've gone to a point where like people are merging PRs in a more automated way then you say okay now let me take the workflow of my best engineers and then build that into a pipeline. But until you've done like the removing humans bits or you until you can define where you need humans involved explicitly or where you explicitly want humans it's really hard to build that like gating system up front.

16:45 >> We we approach this actually the other way. So >> yeah, >> our our our approach is like it's really really hard to get to full automation because you just need a ton of like trust and verification and like and like the the actual complexity of things that can be automated in my opinion at this point is pretty low. And so actually what we try and do when we onboard people to war factories is actually just get them all working even if it's interactive agents through this loop. meaning like can you contribute to this loop through Slack?

17:19 Can you contribute through Jericho? you contribute through an MCP and when you get contributions into this cloud loop happening even if they're happening with a direct prompt all of a sudden you get all these benefits around like okay now everything is tracked everything is measurable you have the ability to do a learning loop and then over time you basically can take some percentage of those things that are going in as direct prompt today and turn them into full automation but I think starting trying to do full automation is is it's too hard.

17:54 >> You start kind of hill climb. You you you just I think this is the the the mistake that a lot of people make when designing their software factory is you have like a company that is doing things in an old way or they're still in this kind of like okay we have AI but we're still doing the same work with better tools. It's still IDEshaped. It's still like cool we use this to implement. And I've talked to EM's engineering managers who are like, "Yeah, when it's when I would come in in the morning, I have Claude pull down all the PRs that are open for my review and walk me through them." But it's still like all of these things are kind of siloed and and once you start like measuring it, it's great.

18:29 But what people decide they have to do is they have to throw out everything we had and redesign our entire process of building software in this new way, this factory way. And I've given the advice a bunch of times is like that's a that's a great way to like it's the same thing as like you go build a product in in a in a hole for 6 months, you're going to come out you don't know if you're going to come out with something that anybody actually wants.

18:49 We've got a really interesting we've got a really interesting question in the chat which is how how how big size of a company are we talking >> like where does this app what what of what rules apply to let's say a 5% startup 50% startup and a thousand person company is there a difference >> yeah Zach where are you where are you spending most of your time like what are you >> so so really really giant giant companies that are tech companies. So take like Uber or Stripe.

19:27 >> Yeah, we call these the the hipster enterprises where they have like large enterprise requirements but they also are tend to be quite modern in terms of their technology choices. >> They're going to build their own and they've like they're going to build their own internal software factories and have like >> RAM is doing this like >> RAM is doing it. >> Yeah, >> RAM's basically a dev tools company at this point as far as I can tell. it's like it's pretty it's pretty wild to see and an AI lab, right?

19:52 Didn't they publish some like archive paper about rag or something >> something? >> I'm going to screen share by the way so I can zoom in a little bit more. >> Yeah, sure. Go for it. >> yeah. >> So, like where we're finding that there's demand for building these software factories. So at the other end, if you're too small, like just a few engineers, so all this infrastructure around software factories is like overkill and like it's going to honestly you should just be using like multiple cloud subs, >> maybe five people.

20:27 >> I don't know. >> I think I think there's a level it's it's less about the size. It's more about like where are you in the like product market fit cycle, right? is like if you are if you are pre PMF then a lot of the constraints and rules and requirements probably don't exist for you and so you're you're living in a very different world and this is actually why I was at the AI engineer conference in New York last week at this where we met but like I think there is a lot of there's a lot of like you go to an AI conference in SF and you hear from all these founders that are living in the future and on the frontier and a lot of people at you know you work at a bank or you work at a large financial institution or even a small financial institution. I mean we have c customers with like you know three four or 500 engineers right not giant enterprise but like have real things and it's just like yeah we just we can't do any of that like yeah you are you are v like yeah we can't run without code review because we have auditors and compliance and if something is broken someone's getting fined millions of dollars and I think >> I think it's actually more about this definition is like if you're premiumf you can't define yield because you don't know what you're building towards so like you don't know if anything is worth building really fast cuz like your yield is effectively if you go down to like what we were talking about earlier when you're when you're prepf this is yield right like this is the only definition of yield everything else almost doesn't matter and this is a very far sparse outcome it's like probably in your text messages it's probably in the event that you went to you shield to like your one customer that you signed up at that event at that one time like >> it's like true >> it's like too far so even if you could automate your whole software factory Sure. But the problem is you have no metric to optimize for of like are you building the right thing because like you don't even like if you're going to look at customer outcomes and happiness and like metrics of let's say some telemetry system or something else that you build.

22:23 >> You only have like 10 users or 20 users or 100 users. You can watch every session. >> You can literally watch every session replay yourself every single day and digest it probably better than LM will. And it's probably more valuable to do that. I think it's like once you've broken past the certain point of like how many users you have, then you can actually make datadriven decisions and now you can start basically making these kinds of judgments. I think like Theo posted a really interesting thing where he's like one of his engineers is pushing like 350 PRs a day or something for a T3 code.

22:57 >> yeah, it's a lot. It's it's a it's a ton to be completely honest. It's and like I I'll see if I can find the tweet actually. I think I have it. Can you guys see this? >> Oh my god. >> Like check this thing out. Like >> I'm I'm looking at the training card actually, but >> this is PR's merge per day. >> Yep. >> And clearly something happened. Something happened on October 17th. I'm not sure what's going to happen, but I think the point here is like once you have metrics and you have users, you actually can do this to some degree because you can detect regressions really fast. A certain percentage of user base upgrades, you find a bug, boom, you can go back and revert the change. Now you can decide if your software factory is increasing or decreasing yield if you have numbers to measure it by in an automated way.

23:48 >> Yeah. I want to I want I want to come back to this measurement thing and like hill climbing because Yeah. Basically, my my my pitch is always like start with the thing you have and make it a little bit better every day and define what better looks like and then you can kind of hill climb against a goal a little bit. and that's how you get to this self-improving thing. But but Zach, I'm I'm curious like tactically what what else have you found people measuring cuz I know I talked to someone who works on a software factory for like 300 engineers and she's doing a lot of looking at like hey how >> how are the skills that we're giving people working out and like mapping skill used to and version of the skill used to like the sentiment of the session and then creating analytics dashboards based on that so they can like make the actual base prompts better. But like what are some tactical stuff you've seen that is working well for people who want to improve this?

24:37 >> can I screen share? Can I show you how how we do this? >> Absolutely. >> This is like I'll just show you the stuff that we provide out of the box because I I think it's like representative. Can you can see my screen? >> Can you hit X on the Riverside thing so it only shows your screen? Yeah, there you go. Easier to see. >> Yeah. Can you see this now? >> Yeah. >> Yeah. So the types of things that we that we look at in just like our default factory metrics are like they're kind of things we've been talking about. So we have some view of like how automated are you which is like how many human interactions per PR is a kind of proxy for like this and you kind of want to drive this down but the assumption isn't like that it's like a binary like automated or not.

25:21 >> We provide things like Dora Dora metrics. It's like how long does it take to go from starting something to getting it merged? What's your volume of work you're pushing through? We provide like I think people really want to look at costs. This is like a major one where you could have a product honestly that's just around this and this is like sort of showing >> there are yeah there are products that are just around >> I want to know how much engineers are spending on different platforms. Makes sense.

25:47 >> Exactly. We could do this by engineer, we could do this by like stage of the factory. And then the other thing that people get a bunch of value out of is like kind of an online eval concept within the factory. And so this is like you have like assuming you're you're run you're recording everything that's happening in your factory, which to me is the prerequisite for having any kind of real improvement. you can basically put online evals against some sample of those prior runs. meaning like you could be like here's a good one.

26:20 It's like what percentage of your coding agent runs are generating redundant tests according to LLM as a judge. And so this is like >> cool >> you know track track something like this and then like I said the >> prerequisit that out by model and you could say like oh yes like it's no longer just vibes of people being like yeah I think opus 5 writes too many tests. you can actually show. Yeah, that's awesome. >> Exly. And so, so, so just to to to talk a little more about like what I meant by having the loop. So, this is like if you set if you set things up like you know we have visibility into what everyone on our team is doing with coding agents at all times and all of this is like stored in the cloud someplace. It could be stored on your own infrastructure, but it's stored someplace. And that's the raw material for then getting this type of, you know, the ability to then go and put online evalides on it. And you know the other thing I mentioned I'll bring it up again is that there's this other core concept I think is really important which is the if you store everything in code this is like a definition of like a factory with all the agents automations benchmarks all this stuff and again this could be doesn't have to be the warp factories approach but this is how we do it. Then you get the ability to add this other layer of agents that are looking >> just improving your factory.

27:52 >> They're just improving your factory. And the way that they do it, which is really cool, so they look for patterns of failed runs and then they're able to suggest changes against the factory definition itself. So this is like >> an actual diff >> against one of our MD files. It's in the factory definition. And so you get that capability and then I'll I'll show you one other thing just in in the interest of like what can you do once you have this closed loop system is the other thing you can do is you can create basically I could go over here I and for any thing that's been done I could say okay let's look at this this was an interesting task I want to say this should become a a benchmark and so you can build up these sets of like hey these are this is a set of like front-end tasks for example example that were real tasks that were done >> that you can then go and say, "Okay, I want to >> create my own version of like terminal bench or sweet bench or whatever, but off of my own real work."

28:53 >> And you can generate you know a sort of like >> your own paro curve for how models >> performance there. >> Yeah. Because if you ran if you ran if you ran the session and you knew the model and you knew the thing, you knew the environment, you knew the starting shaw and you knew the base, you know, Linux image or whatever you're using, you now have an RL environment and then you can replay other things on it.

29:15 That's sick. Okay. >> How do you prevent the model from >> the problem that I this is really cool. how do you prevent the model? What I'm curious about my first thought is like how do you prevent the model from like not being too smart and just looking in the future commit and be like got them. This is this is an awesome qu. So to actually make this work reliably like we should do a whole like ends blog on it. It's >> it's tricky to prevent cheating because it could just like fast forward.

29:43 >> it's tricky to prevent like there's you know a bunch of these tasks will have side effects. They'll create PRs and so you need some way of basically making it not be able to see the finished PR. And so you have to do, you know, you got to do a good job replicating the environment. So it's close to like a clean rerun to get something like this to work well. And so yeah, like making that work is has been has been fun, but is it really really powerful once you have u you know, once you have it all tied together like this?

30:13 Any I can stop sharing. I just wanted to show you like how to how to make it like how we try to make this real, not just like vibes. tactical tactical tips on on on on how to measure things. Okay, so we had V, do you have the whiteboard up? >> so the things things to measure I'm going to start writing these down. So you have basically like >> good slashbad runs become benchmarks. >> You have >> what else was it? It was >> yeah so we did like just to summarize we did like standard Dora metrics we did cost metrics >> we do some index of like how automated are you which is not binary it's more like >> you try so you can actually grow it right because if it's a number it's binary there's not much you can improve on >> yeah and then you how many user messages or like how much human steering needs to go into a task >> it's like it's like a steering It's like a >> measure steering in some way.

31:15 >> Yeah, exactly. >> And you can get moreated. >> Yeah, there's another one here I think that is interesting. I mean cost is is part of this, but there's almost like another thing that is like the the hill climbing index. When I say hill climb in this case, it's like when a model like tries to run the tests and then it like doesn't know the right command and it tries six different commands to run them. It's like time wasted trying to learn how to use the system, right?

31:38 That's an example of one where we would do an online eval. So we would have an online eval for like like deadends or verbosity or like relearning something that should be a skill. And so we would essentially be looking for these failure modes of agents with online evals and then feeding that into a like a skill improvement essentially. >> Yeah, relearning is a is a great way to put it is like hey having to start over and over again. I mean, we did an episode two weeks ago about the memory system that Aaron and Aaron and Vib basically took a bunch of their data out of human layer basically just session traces and then built this crazy like soul plus jev pipeline of like how do you detect when an agent is like when multiple agents are getting stuck on the same thing multiple traces have this pattern.

32:22 >> Yeah. >> Yeah. >> Yeah. cool. Yeah. And so like you can kind of see where this can go too. So it's like once you have this in place all of a sudden you could be like okay I want to run like a like an AB test in my factory or something. I want to like have some some factory test funnel to like one model some factor to another and measure like see if there's a statistical significance.

32:48 >> If you have numbers if you have numbers that you trust then you can optimize around that like basically anything that can be measured. Yeah. >> The first thing is just like you got to get this system in place and you got to get people to use it. And so all those challenges are are like >> well those are human challenges. >> Those are human there's it's also there's technical challenges in building this but like the biggest challenge is like developers are very used to working in this sort of private interloop. and >> when you move to this more like public factory approach it's a totally different developer.

33:23 >> Also the job is different to be completely honest. The job is like like yeah the job is just fundamentally different when you're accessing a remote machine and doing and interacting with it sparsely rather than it being on your machine like you control the execution system effectively. >> Totally. >> This is basically like I this has basically turned the job into a paging system. I get paged and I text back and I deal with that and then I go back to whatever I'm doing. I'm just texting all freaking day long.

33:50 Right. That's >> that's interesting. >> That is effectively the job. It's it's a fundamentally different job than like I'm sitting on my computer like actively. I'm literally just like I'm kind of just working a call center and just dealing with issues that this factory is sending me and I'm just freaking paging back and back and back and back and it's kind of the job in many senses. It's >> it's like a totally different >> there's like an intermediate phase which is how we use it a lot of the time where >> basically our work starts in Slack is like >> and it's still starting with a prompt. So it's still like some engineer on our team is like hey I want to fix this issue that's impacting users. Here are some screenshots. Here's a link to a Figma. Take a crack at it.

34:38 but it's different because it's in public. It's interesting because it can be multiplayer like inherently even at the time you're building it. And so you can like tag in someone else on the team to like be like, "Hey, does this look right?" do you were you the one who was telling me about this like like psychology shift that happens when you go from single player to m multiplayer where basically like people people think differently and they're like creativity becomes sometimes like like scientifically proven that like you become less creative if you think you're being watched or if you think people are anyone's going to be able to see what you're doing versus if you're actually totally siloed.

35:18 >> I don't think I told you that but it's interesting. That makes sense. >> yeah, we we've hit this a lot is like I think the sometimes when we go into a team that doesn't have like high psychological safety or doesn't have a culture of working in the open, it's a lot slower for them to adopt these sort of like multiplayer first systems. they're much more used to like I have my own space, my own time. I go and work on my thing and then I come back and share the result with the team, not the process of how I got there.

35:47 >> Yeah, that makes sense. I've always even be before like long before agents, I've always been like a big work in public person because the it's just a big failure mode for engineers I've seen in my career where someone will take a thing off into the woods for a couple weeks. They'll come back with, you know, it used to be they'll come back with one huge PR and then you're like that's yeah, this wasn't actually you did something that different than what we thought we were doing or it's built in a way that we could never merge.

36:19 >> You look at the PR and it's like it's trash and it's like we have >> like why didn't you ask for help with this? >> Exactly. But then we have this like sunk costs issue to deal with where it's like, oh, do we like and often times you end up merging a thing that's not not what you want it to be. And so I'm I've always been just like a more you work in public, the more everyone gets alignment, the more you you you can demo as you're going, make sure we're actually building the right thing, the better. And so I like that this pushes the public aspect earlier in the cycle, but I totally that that that point you made around like does that stifle someone's creativity because all of a sudden you can't take risks in the same way if you're like doing in front of everyone is interesting >> psychological junior junior engineer is much less likely to take risks than a more established engineer. That's it's actually not about like risk. I think it's like like dextrous I guess was going towards like psychological safety is the hardest part like am I going to get told like why weren't you working on this other thing instead of this other like that's like everything is measur like my boss knows exactly what I worked on >> I didn't do the thing you told me to do I did the other thing it didn't pan out >> I think that's a feature as someone who's been an engineering manager a long time it's like oh this is awesome like I can just pull up what everyone's doing and it's like >> I mean I have the I have the opposite too >> I mean I've been compliant my whole career >> maliciously compliant.

37:42 >> I I will do the minimum I will do the work that is useful, but I'll try and if I identify a thing that I think is higher value, I'm going to go do that thing more important than anything else. >> >> opposite of malicious >> compliance one one cool thing >> depends on your >> is that you know people on the team naturally prompt these agents in different ways. >> Yeah. And it does give like everyone in the team a chance to see like how do our most senior engineers do their prompting when it happens.

38:12 >> I say this >> I all the time. >> I the the pair programming thing is so huge right now. Number one is this is like there is a million things to learn right now and everyone's learning different dimensions of the problem space and the more you can get people to watch each other work the faster everybody learns and picks up from everybody's random discoveries in this like entirely new space that we're all working in. But I also think the pairing is really good for this. Like I mean we can get into the parallelism thing, right? There was a thread on Twitter that Tariq from Anthropic posted this morning. He's like I think people who work with a lot of agents should probably slow down. and like basically doing 10 things in parallel actually reduces the quality and slows everything down and you should just do like one or two things. and I think if you're pairing with somebody, it's a lot easier to stay focused on the one thing or not go check Twitter but actually just like sit there like when I'm sitting side by side. Vib when we were pairing like over a year ago when the first time that I like tried to claude pill viob over the summer and it was like okay cool when you have downtime because the agent is working you go engage with the problem you look ahead you draw on the whiteboard you like start navigating ahead and you you can talk and riff instead of like great cla's working for 10 minutes what do I do now >> that's the best thing about public I think you know what's another problem though on this whole thought factory thing so we've been dealing with this problem internally which is Look, I don't I agree that coding agents can write a lot of the code, right? So like recently we just added atomics and synchronization permits to BAML. I literally wrote the spec myself.

39:47 >> I wrote everything. I put it out there. People are going to review the spec. But the other thing I did is I drafted the PR while it was being done. >> And it take a it did take steering for me to make it happen. Like once I did the steering and once I did the final affirmative test, I mostly trust the stack, but I don't trust the code at all times. And I feel like there's still a portion of the software factory which is like how do you guarantee that a human has looked at certain parts of the system.

40:11 Like for example, if you run any sort of SAS company, you don't want your agent randomly adding a new S3 dependency. >> Like you want that >> making new tables without a human looking at them. >> Yeah. Like and how do you like I don't know how you guys been thinking about this but like this is a problem we've been dealing with which is like like anything that is serialized or persisted needs to have a human review it because I don't trust these agents today and maybe not be true tomorrow but like today as of right now I don't trust agents to deal with like serialized state at all.

40:41 >> Yeah. So I think like the what you're saying I think generalizes into it's like code review is becoming an exercise in like risk management is is kind of how I think about it and >> >> you you want to see a weird thing we've been cooking up. >> Sure. >> Yeah. All right. I'll show you the thing. But I I love this conversation in general as like I really wanted to spend some time on like what is the role of review? How do you do review well? What does it mean these days? I >> you've seen code rabbit. Code rabbit's pretty good cuz but you sometimes need to go slow. It explicitly makes you go slow.

41:18 >> And the reason it makes you go slow. Go ahead. >> No, explain how this works. >> Basically, we have like an owner file and the owner file like tags like who owns what, but instead of the owner file like just being blatant, you actually can run code. >> You can run functions on every single file or whatever you want. And you just sort of like oh yeah if an envir happens in a file change if it added code that includes like literally this needle which is like we write rust code. So stood nvar >> anywhere in the source code. Boom.

41:48 Literally. >> Okay. So you can do reax or you can do it looks like you can also do like jev of like do a prompt based detector. >> Yeah. >> Yeah. Does this code do this? And it basically just turns everything into a boolean. And once a boolean triggers, it basically just leaves you a PR in your stack that says, "Hey, this human has to explicitly review this file and it just waits for the human to explicitly go and review that specific file until they've approved it because otherwise like >> how do you guarantee that they've looked at that slice of code?"

42:18 >> No, this this seems smart. This is like in the the general principle to me is like we are going to get to a point where it's like whatever we consider to be low risk, we're not going to look at. >> there's going to be some stuff that's like medium risk where maybe it takes one one approver and then there's going to be stuff that's like changes to your database or user data or security roles or whatever >> which absolutely should be looked at.

42:42 And so you need some way of like annotating a whole PR parts of PR or something to to get to that. So this makes a ton of sense >> and I I have some interesting like ane anecdote like outcomes of doing this is I talked to a founder who had kind of like built his own software factory and then moved it to one of the you know lab lab based ones. but he basically they had too many PRs and he basically the piloted a policy where it's like okay I don't know the exact policy but it's like if the PR is under a certain number of lines and it doesn't touch any of these core like you know modules in the monor repo it can be merged without review. it can be merged with a human review. You're still going to get an AI review, whatever it was. And like that's great. Everyone loves that. We all hate code review. But the interesting shift that happens was that the number of the percentage of PRs that met that policy shot up from like 10% to like 80%. It actually incentivized engineers to make like smaller, tighter PRs and keep the parts >> keep the critical parts of their their changes separated out >> separate. Yeah. Because otherwise people are going to make massive PRs. Like CIC is freaking annoying and like the default thing is make the biggest freaking PR so I can just like merge >> and like no one's going to read the code anyway. If it's bigger they're less likely to read it. Even better for me, you know.

43:58 >> And this happened before AI too. I don't know if you guys like if you there's a meme, right? Very famous meme. You put a 20 line PR, you get 40 comments. You put a 5,000 line PR, you get 10 comments. >> No comments. >> You get to go LGDM. Exactly. >> Totally. >> right. >> The other the other things I think can help here are better better specking and then like aentic like checking for spec adherence. So if you like the more you spec >> the more and the more confidence you have in the actually adhering to the spec I think the lesser the code re burden. And then on the other side, I think the like a thing that we do a lot is for more UI oriented changes, we have like computer use videos and screenshots and like >> you can kind of verify the user behavior and if you don't sometimes that's good enough just like oh this thing works the way that we want it to work. I don't really care that much about how it was coded. So those are two I think two things that can help as well.

45:01 >> I can share Yeah, go ahead. I was going to say this podcast is really hard with three people. It's already it's already me and Vib is already too many people honestly. But go ahead and then I'm going to share I have some thoughts on specking and like not oversp specking. >> The hardest thing I've seen about spec alignment to be completely honest is that like you're going to spend a lot of engine work on here but usually what I find is >> the model discovers something else in here just like you as a human would too.

45:26 You wrote a design document and learned something new while implementing it. >> That's true. >> And you're like oh >> okay that's a perfect lead in. So let me let me let me share real quick. share screen. >> these are some slides. Actually this talk just went out last week. but >> basically like yeah you should plan before you build. because like even in this like preAI software factory where humans were implementing all the code we did this thing a long time ago because the build part takes hours or days and because the review part used to or used to take hours or days. The review part probably still takes hours or days if the changes are big. We built these processes like, hey, we're going to talk about the architecture together.

46:06 Hey, we're going to do a sprint planning. We're going to get aligned with all the other people on our team and like loop through on what are we kind of building? What's the idea behind it in the hopes that it would decrease the percent chance that that thing that came out the other end would need to be heavily reviewed or need to be reworked basically. but like on the other hand, you can over plan, right? And so like I I I basically draw out this curve of like, hey, I could yolo a two sentence prompt in Slack and there's like a 50% chance I'll have to rework it. Either send additional prompts or say, "Hey, go delete these tests or like no, this should live over there." or I could handw write a very detailed spec for 5 hours or either handwriter with a model and then maybe there's a 10% chance you have to rework it, right?

46:46 Like there's less likely that the agent's going to have mistakes or you could write all the code by hand in 20 hours and then there's a 0% chance. Well, you might still have to rework it, but not because of not because of something the agent did. Like we still have rework stuff all the time since before AI. And so like and I think about this in terms of expected pain, right? Like there's the chance you'll have to change something later >> times how painful that change is. I never discuss the color of a button in the UI with the agent. I don't care about planning that cuz I know that's really easy to change later. Just like change the button color. But if it's a database table or something like you want to find your like point on this curve based on the codebase, the hardness of your problem, how well suited it is to agents, how what how smart of a model you're using and decide like okay cool like how do I eliminate 80% of the expected pain in 20 or 30 minutes. But if you try to do everything it's actually like you get very diminishing returns on your time as you as you keep trying to plan. At a certain point it's like cool just go write it.

47:44 There's going to be surprises. what's the amount of planning that like maximizes the the or minimizes the expected pain basically. That's that's kind of how I like to think about this. >> I think the point is very valid. Like sometimes you just don't know what you want and like you discover it by trying to like iteratively build, >> you know. >> so I agree with all this. Yeah, >> I convinced one of my engineers the way that we should do merges is actually really easy. You actually whenever someone does a big PR, you just have an agent literally take your current code changes to English and describe everything in English again and you sync and you reapply all the changes once again effectively as if from spec. And I actually like when I do my like harder problems, the spec to implementation loop is actually spec to implementation to spec to implementation. I just do like two loops. Doesn't cost me anything.

48:29 >> It I mean it does like in the form of tokens, but like I I don't give a cuz it's like >> what if this what if the second implementation is worse? It's unlikely because >> Oh, I see. Because you discovered stuff while you were building and you tweaked and the model probably cut corners and then you have the final design and then you go rebuild it from scratch and probably get rid of a bunch of noise that got left behind.

48:49 >> I have a little thing of the implementation says, "What did I learn from this? Rewrite the spec as if we're writing it from scratch. >> Delete all the code. >> I do this red. >> I do this for prototypes all the time. I will like vibe a thing and leave all this running overnight and then give it some feedback and then be like, "Cool, take the thing we just built and reverse engineer it into a PRD." And then I'm going to give it to my co-founder to actually like design the SQL tables and the architecture properly.

49:10 >> Yeah, I do this for like autonomous and everything. >> It's like the old process of building a prototype and then the real thing, but highly compressed, you know? >> Yeah. Now I just do it for all things. It's like why why not? It literally is just like I will literally just get better code if I do it twice. >> This was super fun, guys. I know we're almost at time. Zach, is there anything you want to leave the audience with? I I'm glad you got a chance to show off some of this cool stuff you're working on. but general I don't have a lightning round like Lenny. We should have a lightning round for guests, but no, >> anything you want any final thoughts?

49:39 >> We'd love people to check out WordPac factories, give us feedback. we're helping on board people in teams now. other than that, this was awesome. This is a great great conversation. >> I was expecting more of a more of a more of a debate. It wasn't so much of a debate. It was more of a like >> It turns out we're aligned pretty >> cool. yeah. No, I know the our style is probably a little a little disorganized, but we tend to find it it gives good results. I mean, this is my like I don't know, standup comedians talk about like going to tiny clubs and just like working out their and what they have to say. And for me, I think this is a really good like half the stuff we say on this show ends up going into somebody's conference talk whether >> the biggest takeaway that I got from here.

50:20 >> Yeah. >> The biggest takeaway I got from here was actually this. This is really fascinating in terms of like how you define measurements for the factory and the yield. It's like I found it really interesting specifically Dexter your comment about the fact like typically that this part is and this time is product and like fundamentally you cannot have a factory if you have two companies two separate orgs that have to own both of it. >> Yeah.

50:45 >> And you just can't build a fast factory there. And like how do you tie these two together? I think is perhaps the most interesting question here. and like this is probably why software factories aren't realized as much as they could be because structurally or companies aren't set up for them like people problem not even engineering I mean there's engineering problems too but people problem >> give up some yeah >> sorry yeah no Mitchell Ashimoto has this story about like when they were selling vault in the early days and they were going to enterprises and there was a customer that they talked to that really wanted to work with them really wanted to use vault and they had to say no they literally were like we will not sell you this, we don't want the deal. Like you need to go spend like here's your homework. I promise if you try to do this today, your organ, your culture is not set up for this to work. and then they came back 6 months later and they had fixed a bunch of the problems and they respected the team so much more for having >> you know said no said hey look like we don't want to just take your money if we don't think it's going to work and then they came back and they bought it and it worked great. and I think there's something similar there for factories. You need this I mean this thing talk about you need a culture of working in the open and you need this like like very much like alignment or even like stitching together of engineering and product to make something like this work otherwise it's going to be really really hard.

52:07 >> Will your VP of product give up power to the engine team or vice versa will your VP of edge give power to the product team to make to make that system be co-owned effectively? >> D Zach thanks so much for coming. if you ever if you ever want to come on again, you want to riff more, do more updates, I think I think it could be really fun. But yeah, I really appreciate you coming. Added a lot to the episode.

Summary

The discussion centers around the concept of software factories, exploring their definitions, implementations, and the challenges faced in optimizing yield within these systems. The participants emphasize the need for measurable processes and the importance of collaboration between engineering and product teams to enhance software development efficiency.

- A software factory is defined as a loop that automates the software development lifecycle, aiming for high yield and throughput.
- Yield is a complex metric that varies by business and is essential for measuring the effectiveness of a software factory.
- The Warp Company is highlighted for its approach to building internal software factories and enhancing developer productivity through automation.
- Key metrics for evaluating software factories include automation levels, Dora metrics, cost metrics, and user engagement.
- The conversation emphasizes the importance of psychological safety and collaboration in engineering teams to foster a productive environment.
- There is a focus on the need for clear definitions and processes to ensure that human oversight is maintained, especially for critical changes.
- The participants discuss the balance between planning and execution, advocating for iterative development to minimize expected pain in software changes.
- The integration of AI and coding agents is seen as a transformative element, but trust and verification remain crucial for managing risks in software development.

Questions Answered

What is a software factory and why is yield important?

The discussion introduces the concept of software factories, emphasizing the importance of yield in measuring their effectiveness. It highlights the need for a clear definition of yield and outlines the differences between software factories and traditional software development life cycles (SDLC).

How can we measure the success of a software factory?

Success can be measured at various levels, from project management metrics like shipping costs to user value and business impact. The discussion suggests moving beyond code output to focus on user and business value, emphasizing the importance of measurable outcomes.

What challenges do organizations face in defining yield?

Organizations struggle to define yield when they lack clarity on their goals and what they are building. Without a clear metric for success, optimizing for yield becomes difficult, especially in environments with limited user feedback.

How can we evaluate the performance of a software factory?

Performance can be evaluated through online evaluations that identify failure modes and skill gaps. Implementing systems to track and analyze these metrics allows for continuous improvement and optimization of the software factory.

How can code review processes be optimized in software factories?

Optimizing code review involves implementing policies that allow for faster merging of pull requests (PRs) based on their risk level. By categorizing PRs and allowing low-risk changes to be merged without extensive review, teams can increase efficiency and reduce bottlenecks.

© transcribe · For agents Built with care and craft by Gokul Rajaram