Software Factories with Tushar Mathur

About this episode
We chat with Tushar Mathur, founder & CEO of ForgeCode, about software factories: systems of agents aimed at an organization's goals rather than one developer's productivity. We get into dark vs. lights-on factories, the primitives a factory needs, self-improvement loops, accountability, selfware, and moving factories off of Git. We also talk more than usual, because we're excited about this stuff.
Resources & links
- Tushar Mathur
- ForgeCode
- ForgeCode, "Anatomy of a software factory"
- Winter Tech Forum (March 1-5 in Crested Butte, Colorado)
- Alex Komoroske, "Coordination Headwind: How Organizations Are Like Slime Molds"
- Bruce's Thinking in Python
- Zed, "Software Is Made Between Commits" (DeltaDB)
- Entire, Thomas Dohmke's Git forge for agents
- Anthropic, "Redesigning source control at Anthropic"
- OpenAI, "Scaling Git at OpenAI"
- MCP Apps
- AG-UI
Transcript
Generated automatically by Spotify, so expect the odd misheard word. Select a timestamp to play from there. Download (.srt)
Read the transcript
0:01 Welcome to Happy Path Programming. I'm Bruce Eckel. I'm James Ward. All right. Well, welcome to Happy Path Programming. It is a cold day in Crested Butte, Colorado, and but you know it, we've got the winter tech forum coming up. And if you like cold and skiing and other winter activities or just hanging out with nerds in the mountains, when is what's the dates for that? March 1st through 5th and you go to wintertechforum.com. I'm in the process of of rebuilding the site just oh, it's, it's just taken me maybe an hour so far. Can you believe it? You've seen all the HTML and CSS you have to write by hand, huh? Yeah.
0:49 Yeah. So yeah, it's it's looking good. I think I'll be switching over to it fairly quickly. So yeah, yeah. So when the new website and we're hoping to post some, figure out how to post some of the talks from last year so people get a sense of what it's like. Yeah, yeah, great conversations, but plan for it. Yeah, you. Plan for it. It's. In my calendar now it is. So yeah, I will be there this year. Yeah, this. It would be nice to have. You, I know at the conference, Yeah, Yeah, Yeah. OK, cool. Well, let's dive in. So we have Tushar Mather. I get that right. Yeah. Yeah, and T-shirt, you and I go way back, you know, and and you know, been in the same realms. But we don't have to dwell on the past because I think the most exciting thing right now is the topic we're going to get into, which is software factories. And so maybe introduce yourself and then and then we'll dive in and and talk about software factories. Sure.
1:53 My name is Tushar. I'm the founder CEO of a company called Forge Code. We're building a software factory ourselves and I've been in the industry for about 16 odd years worked. There was a time like you guys, we used to code with hand and that was a fun time. And I worked in various organizations from startups to large enterprises and like also did a lot of leadership roles. And very surprisingly though, I was very passionate about, you know, I see kind of work where you can, where you're doing real technical work. Surprisingly, when it comes to AI, having that leadership experience kind of turns in very handy, you know, So that's, that's a lot of fun for me because I'm kind of thinking about how would I do it if I had a real team and then orchestrate my agents that way.
2:53 And somehow it just works. Yeah, yeah. One of the interesting observations that I had recently, just in the last month or so, was that most of the very senior engineers that I know have have moved in the last few months from actually building things to building software to software factories to build the things. And so, so I think exactly what you're saying is right, is that the people who have this depth of experience around SDLC and you know, the complexities of, of going from idea to, to maintenance, all those things, they can take all of that and encode it in a way that then the AI can, can start participating more effectively into that process.
3:44 Well, because as as more of a manager, you have learned how to ask for things rather than just go, oh, I'll just go in and code it myself. And that's basically what we're doing now is we're learning how to ask for things. But before we get ahead of ourselves, yeah, let us define what is a software factory. OK, so so here's my take. So there's so many, you know, versions of it. So if you look at tools like cloud and codecs, they work like personal assistants. So you give it a task and does it for you and, but, and it works. It makes you productive as an individual. And the hope is if everybody in my team is more productive, my organization should be more productive.
4:34 But what we actually observe is that's not true. Just giving everyone an assistant and especially in a large organization, if you have a say 500 member engineering team and everybody's got an assistant, suddenly it's not going to start shipping higher quality software or better quality software and a software. Before you go on, how much of that is just because of what we just talked about, because people who are aren't, they're not used to using this tool, They're not used to asking somebody else to do things for them. And maybe it's just a learning curve issue. It could be that it's also the you're right, like so leaders in general have a better articulation so they do a better job, but generally ICS would not. And then even with, even if you're prompting continuously, I feel you don't get, you don't put an equal amount of effort every single day.
5:35 Or if you do put an equal amount of effort in prompting, sometimes you need to do more. So the the output is not very reliable. That's number one. That's from #1 the problem #2 is in a typical large team, you have developers, you have QA, you have DevOps, SRE, you know, so, so many roles. If a developer is writing code, maybe through cloud, the QA's, basically they have no context, neither do they agents. And when the artifact is moved from dev to QA, the QA has no context essentially of what all was done, what were the design decisions that were made, trade-offs that were made. And then everybody feel that it's a context problem. Let's put a let's create a context layer and everything should be on gate or some document and stuff. But then that also quite very quickly starts becoming stale because it's essentially, you know, documents that are more optimized for humans and doesn't scale if you have a 500 people team, right?
6:44 So you lose our own context and coordination is still happening at a human layer. And the last thing I feel is, OK, you can have some sort of automations, but most of the work is still done when the developers or the engineering team is in office. So they're actually prompting and work is getting done when they're home. Yes, a couple of, you know, automations are happening, but majority of the work is not happening, right. So you're not really getting that level of productivity because that automation pipeline doesn't exist, That quality guarantee doesn't exist in your pipelines. So that's why I think you need something at a organization level and not at an individual level.
7:29 And part of the the way that I'm looking at this is that we've always had bottlenecks in our development process. And it used to be that one of the biggest bottlenecks was actually writing the code. And now that is clearly gone, but some of the other bottlenecks are still there and some of them became actually larger bottlenecks. So there's an old thing, I think it was somebody at Google that wrote about coordination headwinds. And the, the, the thing that they observed was that that as teams and systems grew in size and complexity hit the pace of development slowed down dramatically. And now this has even gotten worse because now me as an individual developer on a team, I'm not just an individual anymore. I'm actually an individual with an army of agents building things.
8:24 And then, you know, the person next to me on the team, they also have their army of agents. And so the coordination headwinds just grew massively because our team, the bottleneck now it's, it's the, the coordination. You know, if you're working in a silo, you know, and it's just you, then you don't you, you likely don't have many coordination headwinds. But you know, most large systems are built by teams and we've just dramatically increased the coordination headwinds across the team. So I think we've defined the problem. How do software what? What is it about a software factory or how does it work to solve this problem? So a software factory is focused on a business outcome for an organization and less of individual productivity gains.
9:15 So you would set up a goal like I want to have 90% coverage with my competition, right? So now how do we get to that? Basically, I want to implement all the features up until 90% of, you know, coverage of whatever the market is. Then you set up this goal and now the factory has to figure out how to get to that goal, right? And you could set up some automation, but you have to really think about scale. The ambition of scale is very, very different. You want to ship every feature with that level of quality. Sometimes a feature might be required to refactor the underlying architecture from and perhaps just rebuild it from scratch.
10:01 The factory should have the ability to do that and should not take shortcuts and do it the right way. So, so, so our factory is allowing us to define higher level goals, whereas many developers today are just in this, like, I'm working on this one little thing and I'm going to do a bunch of prompts and, you know, and, and get that feature done or that bug fix done, whatever. And so generally with the factory, we're, we're defining, we're telling the factory that its job is to do something higher level than an individual feature. And it could be that that thing we've told it to do is when a new issue gets gets created, triage it and see if you can fix it. But the but it's not it's it's generalized across across all kind of issue response dealing with issues instead of just like like a developer, like, you know, OK, go look at this issue and and handle it AI.
10:58 OK, but I'm using like. OK, so one of my projects is I'm using, I'm, I'm creating a proof of concept version of Python that has built in effect tracking and effect management. All right. But I just went into Claude's plan mode and I gave it this high level thing and I said, OK, you know, figure it out. And I haven't really. I've just been going do the next steps. And how is so? How is so that that's different from a software factory in that I'm solving a particular problem? Or because it seems kind of factory like? I think it's similar to what you would do with a factory. I think the the one of the.
11:44 To enable a software factory to actually work, you have to encode a lot of things into it so that it doesn't just like run in circles or create slop. You have to give it what are your standards? What what is the, what is the task success actually look like and how do we measure it? Like you have to give the factory this all of the knowledge that you have in your head around what you want or an organization and what they want. You know, in terms of like coding standards and, you know, production standards. Like we don't break APIs, whatever it is, those have to be encoded into the factory so that the factory actually is efficient and moves forward. OK. And I think in my case it's taking all that information from the work that I've done on thinking in Python And saying, oh, well, OK, we want, you know, we want to make sure everything is tested and then, you know, test pass at every stage and all that kind of stuff. Yeah.
12:45 And the code follows, you know, types everywhere, etcetera, etcetera. Exactly. So you've given it that foundation you like. In some ways you've already created the the factory by instituting the constraints of the factory. OK, OK. But, but what we're talking about with software factories, is there a framework that you're starting from or do you just have this concept that you're saying this is what I want and you're, I mean, what's, how are you generalizing? This is that I feel there's the main difference. Like the example that he gave right is a very good example, but the ambition of scale is very different with a software factory.
13:33 So OK, I want to build an effect system in Python. Next step, I want to add durability to it. I want to make it run in a distributed environment. I want to support, you know, other 300 things so that it just is a very resilient, robust application that a company like AWS to use. And you build this like distributed it and now you find a bug. Three months later you find a bug, the ability to reproduce the bug and to solve the bug as you and and based on the trade-offs you made while designing 3 months back, a factory would be able to do it. If you do, if you give it to Claude or some agent, it's starting a new conversation every single time. So it it's lost all that context in that. Retaining context.
14:21 Yeah. Yeah, so that it doesn't have to rebuild the whole. OK, I think retaining. Context maybe like different right? Like you're really thinking about a very large application which with it's own runtime and everything. And then when you fix. Which exists over over a long period of time. And maybe that's what's different is that if you can do something with, you know, spending three hours in your code assistant, like you don't need a factory for that. Like what you need the factory for is the longevity of like, OK, now we now we've got to add new features over time. We've got to maintain this thing, we've got to respond on the security incidents, you know, all those like the the long scope of things. And this is where the factory metaphor like kind of works, but kind of doesn't is that a factory generally like produces the same widget, you know, every time.
15:13 And that's what it's, you know for and what we what isn't a software factory is a one off widget. But we do want to take all the things that we want to do with our project over the next many years and add as much automation into that creation and delivery as possible. And then when a bug comes in, it goes. It just goes, oh, I'll, I'll take care of that for you and rely on the human rebooting their knowledge of this project to remove figure out where that bug is. But an important part of software factories is that the factory should know when it needs to escalate to a human. And so there is definitely the opportunity for the factory be like, hey, you know, I, I couldn't, I need some guidance on this. And then and then the expert can jump in and give it the guidance it needs to move forward.
16:08 And in this specific case, I think a factory should be able to identify such a bug before the user actually reports it. So once the application is built, the factory should have the primitives to build complex applications using the library that you just built and try to reproduce different kind of scenarios where it could potentially fail, right? So the factory does the whole thing. It should do the testing also and to a degree that really truly distributed systems with some chaos testing running throughout 24/7, you know, 365 days ago. Yeah. Then you have some. So the ambition of scale is so different here, right? So I'm not just building a small library anymore.
16:54 I'm thinking about a really robust battle tested system. And, and moving away from you having to think of all the things that need to be done and instead like give the factory some autonomy to like, like, OK, here's the, here's the goal that I want a reliable library. And then it should be able to design and do come up with the chaos testing, come up with, you know, whatever it needs to to get to that goal. OK. Sounds like an improvement. It's. Yeah. I mean it's it really is for scale. I like that you pointed that out because because you know well. Scale and longevity. Scale and longevity. Yeah, yeah. And if you don't, if you're working on a problem that doesn't need those things, then then maybe you don't. Yeah.
17:43 A factory is overkill. Yeah. Yeah. So maybe too sharp. Talk a little bit about the difference between like a dark factory and a lights on factory and everything in between, because I think that's a interesting area. Yeah. So I mean simple things, lights on factories, basically in the engineer there work is getting done. Dock factories work is also getting done when engineers are not there. So you set up the factory in a way where things are shipping continuously and humans are essentially supervisors and not orchestrators. With Cloud, you are essentially orchestrating AQ agent and a dev agent and a review agent and you're all working in that way. But in with the factory, you are a supervisor and the supervisor comes in in the morning, you know gets a set of things that they need to sort of sign off on. Once it's sign off sign off the the factory knows what are the next steps and starts working on it. So if you reach a stage, the.
18:45 Supervisor can then go do fun things and rejuvenate themselves and not yeah, trust. Themselves, That's the hope. That's the hope. But I don't think any of these agents are making life easier for any software developed. I think everybody's working harder, yeah. Well, that's, that's the capitalism problem that that we hope that the AI, that's what we need a factory for, is to solve the capitalism problem. Sure. Yeah, So what I what I've noticed is that in the places where I've set up software factories, like all the menial work is now gone. Like I don't have to do any of the menial mindless stuff. Web Jars is a software factory. Web Jars has a software factory. Yep, our website for the podcast Happy Path Programming is a software factory driven by a software factory. So yeah, I've set up a ton of.
19:38 I have one factory that then has about 50 projects that it maintains. And some of those are production sites and some are libraries and some are SPT plug insurance and some are websites. So I've got a lot of different things in the factory, but but now I've got, you know, almost everything automated that can be automated. And So what I've noticed is that the work that now I'm doing is the places where decisions need to be made around what should. Be done what should be built. And so, you know, the the factory will escalate an issue to me, it can actually like create an issue in GitHub and put A tag on that says needs human. And so my cue now is just a bunch of things that the factory has decided needs human. And often times those are things where the requirements were ambiguous enough that or the factory, you know, didn't know what to do. And so now it's a product decision. What should this library do?
20:32 How should it handle this thing? And so so these come up all the time because the factory is, you know, always running, creating things. And then it's identifying the ambiguities that need a a product engineer is the new terminology around this to intervene and give it the instructions for for what to do. So is this, I mean, what is the, the essence of what's in a factory? Is it, is it, oh, here are all these a way to handle events that happen that come in? And I mean, like, is there a framework? Are are we, will the AI companies come up with a way to say, oh, slash factory and that allows you to, you know, it walks you through building a software factory. How is this going to work?
21:28 I feel you have to build the right set of primitives. It's essentially infrastructure to scale your agents to work on software development tasks, right? So infrastructure includes automations, yes, foreign jobs, but it also includes a messaging system, which is robust because if you have large enough scale, nothing is running in process. Everything is on different machines. And these, there's so many agents, they're not reliable. So your assistant message exists. There's a lot of coordination there. You need some form of, you know, capturing data. You need some capability to capture data, which could be in the form of some tables that you can kind of aggregate and sort of create reports which the agent can then eventually optimize for. So basically some place where you can, you know, push a lot of data, introspect and generate data and look at what's happening in the factory.
22:30 So that's another primitive that you want to kind of add to your factory. You want to have some sort of project management system which is highly optimized for the agents where things can run in battle. You need a sandboxing environment and then that sandboxing environment has to be smart enough and fast enough and you want to scale that also. So they essentially want to build all get all these primitives together and then give a seamless experience for the for the human to kind of just, OK, look at it at a 10,000 feet and just walk the street or just supervise what's happening in the. Didn't you just describe a computer program? It's got to have a database, it's got to have deal with events. It's got to have way to manage it. If we just moved ourselves up to this new level of abstraction, that kind of looks like the one that we were working on before. Yep, Yeah, there's powerful primitives. So I think we're we're still generally as an industry uncovering what the right primitives are. But yeah, I think there's a lot of similarity in those primitives to what we've already had. It's just that they're the needs are slightly different because the automation is happening at generally at such a scale that some of our old techniques that were human oriented don't work very well in the factory.
23:55 So as an example, some, some folks have moved their factories off of Git because Git was too constrained and, you know, created for humans to collaborate. And so there's alternatives to to Git that are better oriented to the factory. The like Delta DB from the Z folks, I think is in that realm. The the guy that was a GitHub CEO went off and created some new foundation for factories. I think that one's still based on loosely on git or something, but that's just one piece where we've, we've, we've had these human oriented primitives and the factory. You can generally build it around the human oriented primitives, but they do a bunch. Of extra work. And yeah, yeah, I think it's what like what we've talked about with languages, some, so many language features are human affordances and the AI doesn't need those.
24:52 And so it kind of clutters things up. Yeah, Yep. And the, the kind of primitives are different also because like what's going to happen is if I'm reducing, say 1 pull request a day and reviewing 3 or 4 pull requests, it's manageable. But if I'm myself producing 100 full requests a day and my team is producing 100 full requests a day, there's no way I can review them. Now I have to make a trade off where I actually understand what's going in my code or I have a much higher level view of how much code are we pushing? What's the entropy? What's, what's the bug density? What's the children of code? How many, what components are we just, can you see rewriting that kind of stuff? So the, the, the, the, the abstraction that you're working with is very different.
25:43 Even as an engineer, you need those primitives available that the that the agent can kind of feed in and you can kind of look at from a 50,000 feet and just see, OK, is my factory working optimally or do we need to make some fundamental changes in its architecture design? Is there more guidance or context that the factory itself needs so that it, you know, it went off the rails here. OK, let's add in a thing. And this was a lot of when I first started building the software factory, it was a lot of my work was just around the the maintenance of the factory itself because the factory would not do the right thing and said, OK, let me add some information to the factory so that it doesn't do that again, you know, it improves and. This is similar to what you were saying earlier about management. It's like in the end, the only thing that matters is does it meet the specifications or the the system test or whatever. And it's like that's kind of the only thing that we should have to do is say, describe what it is that this thing is supposed to do in a way that it can set up tests and it can do everything else.
27:01 And it just as long as it meets the tests, we're good. Yeah. Are users happy? Are they paying money? Like, yeah, that's a test. Yeah, yeah, that's one of many criteria. Yeah. So the other piece to the factory, how the factory operates and one of the, I believe primitives to a software factory is a self improvement loop. And so the factory itself should be able to look at what it's done and then see if there's adjustments that need to be made to the factory itself. And so one of the, the first things that I got into the factory was the self improvement loop. So the way that I did it was after each time the factory did something, I would tell it, Hey, look at the full transcript of everything thing that just happened.
27:48 And then if there's something that needs to be improved in the factory, go send me a poll request and or, or send a poll request. And if you need me, you know, tagging the needs human on that issue and I can review it. But a lot of the factory self improvement. Now at this point, my factory just happens automatically. Like, I don't even, I don't even like who knows where what the factory is doing now, which is a little scary. Need to. You can throw in a rubric and LLM as a judge and then make it a little more scientific. Yep. Yeah. So you use an agent itself to then analyze the transcript of something it did and then use and then tell it to come up with ways to improve the factory. So, yeah, sorry, don't know why you're coming. That's rude.
28:37 Yeah. So, OK, so self improvement, that's one, one piece of the factory. One of the other areas that that is I think under explored at this point with factories is around collaboration because you can get stuff working in the factory and it can be producing things. But in a large system, you have team, many teams of many developers that need to have some form of collaboration. And what I I don't know if we've fully uncovered the right primitive for that collaboration yet in in the non factory sense, This has been called like multiplayer, the idea that multiple developers can go into like a shared AI session and work together, but it still is not the like factory orientation of that.
29:25 So I don't know too sharp. Tell us what you, what you've seen or what you're, what you're working on around. I don't multiplayer collaboration in the in the context of a factory. That's something I'm struggling with myself because most of the tools that exist either are multiplayer in the sense like multi human but not agent supported. For example if you did GitHub and if most of my work and we are working in the team, most of my work is done by a factory. There's no pull request that either one of us are creating. So every pull request that is created is created by 1 user, the factory user, right? And it's reviewed by a factory. So all the commits are by one account, and all the reviews, review comments are by one account. So it stops making any sense who's accountable for that software?
30:23 So who's accountable for that batch or change? And I think I do. Things can possibly happen, like we could potentially have more collaboration and like every change and path is assigned to a human. Or we could go in the complete extreme opposite direction where each collaboration is happening at a very different layer. It's not happening at Git and there's all softwares where it's actually built, but it's happening during creation of specs, creation of goals and not that clear right So. Defining defining the the business requirements and, and the product that you're delivering and the ability is that you care about and all those things.
31:10 It's like do we multiplayer on those or or are is are we going to get to the place where we can essentially assign a single human to to those things and not have to multiplayer and collaborate? I don't know. Yeah, it depends on the system and how complex and it is. Well. Exactly, people. Bring different ideas. So it seems like that will be the value of a of a team. And the system is fairly complex, you wouldn't interact with it directly either. So once your factory becomes very complex, you would have assistants who would manage the factory on your behalf. And then how do you do people who are in different teams using the same factory to ship software collaborate?
31:59 Is it do they collaborate directly or do they collaborate while their personal agents were managing the factory? So it becomes very interesting very quickly because what's happening in the last six months, we're just moving up the stack, right? Like we're just going one after the other abstraction and just going up and we're thinking, I mean, stack, it's becoming very difficult to build products because every few months you want a new layer of attraction and you want to talk from that abstract. Yeah, right. One of the interesting ideas I heard recently around this was that that often times as a especially like a lead developer on a team, people come to you with questions and you know, they're asking you something about, about, you know, what you've built, how to integrate with it, whatever it may be. And instead of asking me as the team lead, why don't you go ask my factory that question.
32:57 And so I think there's going to be this like, like level of collaboration where if I have done a good job of encoding everything that's needed into the factory, nobody should have to come to me to ask a question about how this thing works or how to use it. They should be able to actually just ask my factory those questions. That's right. And the factory well, in my, in the experience that I'm having with the Thinking in Python book, I got it to the point where if I ask a question about a sentence or something, I'm going this isn't clear to me. It will then say, oh, because you didn't get that maybe I need to go someplace else or I need to, you know, I need to improve this somehow. And so anytime a question comes in from a human, that should be another kind of trigger to your factory to go, oh, something about this isn't clear.
33:57 So I need to, you know, make it better that way. Yeah. Yeah. That becomes part of the self improvement of the factory itself is any questions that you come across should have answers by the factory. And if they don't, we've got an improvement that's needed in the factory itself. Yeah, yeah, right, right. Yeah, I mean, there's some existential questions around what do I, what do I do like once I build my my factory and get it just humming along, you know, am I just this, I don't know, I don't know, decision maker on on product decisions or do I determine what good is?
34:44 Is that is that all that I'm good for? You're, you're an ideator and A, and a decider of value AI guess. Well, in nonviolent communication, probably the most important thing that you get out of it is understanding what your needs are and which are hard to figure out. It's, it's hard to come to we, we mask them. And so these systems should meet our needs, help us find our needs and meet them. And so that's, that's our job is to figure out what those are and express them. And traditionally that was the job of a product manager and so.
35:32 Well, and traditionally, originally that's what marketing was supposed to do. They were supposed to figure out what the customer wanted, not push whatever we built onto the customer. But I also feel accountability is not going to change. So you can use any kind of. So software engineering team is still accountable for the software they ship. That's now going to change. You will not. No matter how many software factories you end up building or using, accountability will be with the human. Eventually. There has to be a human snake on the line. You will never move that to a agent.
36:18 So if there's. So I, I can't just be like, I'm sorry that I broke that it was my software factory and I, you know, yes, you can, but but I like. The argument is that you're still accountable. Businesses I I don't think are going to be OK with with trying to place blame on the factory. Oh, sure. I mean, until we change that, this is, I mean, my grand hope for AI is that it will help us change as humans because every time we come up with humans, come up with a new technology, people are going, oh, it's the technology that's caused this kind of thing. And it's like, no, it's the humans behind it. But you don't want to face that, I guess, because then you're also culpable.
37:03 Yeah. So that's interesting that that and maybe a area that we haven't fully figured out on the factories yet is how do we hold on to that accountability without reviewing every line of code And and like what it had, like, I don't, I don't have a good picture of at least in the large scale, how that would potentially work, like what the interaction between the the factory and the humans that are responsible for it. Like what is that? Because I don't take I, I don't take responsibility for the machine code that my compiler generates. That's deterministic, right? Yeah. Yeah, it is. Is that really the difference is that that generally compilers are mostly deterministic.
37:50 And so so we, we, we can, we can, we don't have to be responsible for the machine code generated by a compiler, but because we're in the realm of nondeterministic systems with factories that we still have to, to be involved in some way. Oh, but that actually reminds me of one of the other core primitives of a factory is actually setting up as much deterministic validation as we possibly can. And that's maybe how we can get to the almost compiler level in some cases. Like maybe the the factory is deciding, you know, how to solve a particular bug or whatever, how to fix a bug. But the there's so many deterministic layers to get it get that bug actually, you know, fixed and committed whatever that that then we can be pretty confident in in what it's create, what it's done for that bug fix. Yeah, because otherwise, if you're saying that, Oh well, ultimately we're responsible, then our job is to solve the effing trolley problem back to we all have to become philosophers because that's the part that the machine can't solve.
39:04 Yeah, yeah, yeah. I so in in my factory now I've given it, I think generally sufficient enough deterministic ways to to write and validate code that I'm at the point where generally I don't look at the code anymore. But it was because I put in a lot of constraints. So I'm using, you know, good type systems, I'm using the fax. I've got good. I don't know other ways to validate that the thing works as expected that are deterministic. But because I've, I've set up a lot of those validation steps in the factory, I feel, I feel, and I've, and I went through a phase of kind of trust, getting to trust with the factory because after, you know, seeing thousands of lines of code that it created and being OK with everything it created and I can then let them let my hands off the wheel a bit.
40:04 But what do you mean by determinism? Because if I say I want the system to do this and I clearly specify it and it can come up with all the tests to do that, and then we say as long as you meet the tests, the particular implementation is not important to me. Is that deterministic or is it non deterministic? But I think when you're writing code and in a high level language and compiling it to machine code, that is clear determinism. My expectation from the compiler is it should work in the way I have programmed. When I'm working with an agent, I'm not exactly specifying what I wanted to do, I'm specifying very vaguely what I need.
41:00 I needed to do certain things, very vague statement typically, so it will not necessarily translate to what I actually end up what I actually need, right? Yeah. There, that's where the the challenge is in a lot of this is that I have intent and the AI is going to do its best job as well as it knows to implement my intention. But how do you validate that that the code that was generated, the thing that the system does, is consistent with my intent? And I would argue that I mean, because we said, Oh well, a compiler is deterministic. Well, what if you turn on the optimizer? Now you have two different ways of generating code.
41:48 There's been some interesting debates around compilers being essentially non deterministic, but they're like deterministic enough. OK. And if I give you a set of tests that you need that the system needs to meet, and you meet them deterministic enough. Yeah, it's hard. Like it wasn't. It was only four or five months ago that the AI wrote a test for me which was assert true. Like it was just like like, you know, a nothing burger test. Oh yeah. And maybe a review agent would have caught that. But but still, agents do sometimes take shortcuts and and they're what they create doesn't match my intent.
42:35 And can you deterministically validate that? I don't think so. And that's where there's been some debate online around formal verification. So some people are like, oh, if you just formally verify it, then then we're good, you're covered. And it's actually generally not. It's not going to, no, it will not help you. Formal verification will not help you determine if your intent was correctly specified. But that gap still exists no matter what. Like like there has to be a human that validates that. However, I want to express a system and what it should do. I have to match that with the intent and validate that and human validate that. Not like a program count. Like if you tell the if you tell AAI to write a formal verification of something and then you don't actually review it, if you just tell another AI to review it, you've done nothing to actually validate that your intent was was withheld or upheld. So do you suppose we're going to get to the point which small talk was supposed to give us where you're just, you're just going along and you go, oh, my, here my sister, I'm doing something with my system.
43:45 Oh, I need a new feature. I'll just, well, in that case, inherit and add the feature. And now my system is extended. And so it'll just become an interaction with the person who is trying to solve the problem. And each time they hit a frontier, they go, oh, I can't do this thing that I want to do in the, I guess software factory or whatever kicks in and it adds the feature and then the person goes on and tries to solve whatever problem they're trying to solve. One of the first instances I saw of a real world software factory before as even call the software factory was Versal had talked about how they wired their support agent up to of course their knowledge bases. The support agent could answer questions, but if, if the agent uncovered that the user actually had encountered a bug to the best the agent understands or was making a feature request, then the agent underneath the support bot would actually go and just like create APR and try to actually, you add the feature, fix the bug, whatever.
44:53 And so I, I think that's what you're saying is like, like, what are your, what are your signals? How do they come in? And then how, how do I get my factory to, to respond to those signals? And then where is the human needed to make those? Decisions. When I was getting started, there was this idea of what was it structured develop, design and development. You know, they were still flailing around, but they had this idea of the system specification, which was all is all you figured out everything that the system was going to do upfront. And what we're talking about is now realizing that, which we realized then, oh, you never know what that is until you start using the system and you go, oh, this isn't working the way I imagined in this, you know, single shot system where you're supposed to know everything it was going to do right up front. That never happens because we learn and we go, oh, actually I need this or I wanted it to work this way. So maybe that's where we're headed. I don't know.
46:09 There's, there's another concept that's been emerging, which is has been called software. And I don't love the the name, but it actually it, it describes, it's a descriptive name that is this idea that let's say that I'm using some software system and I want it to work differently. I can just go in and tell the system change to accommodate my needs here. And so I think this is already happening. Many of us now as developers are software in our own things instead of going and getting something off the shelf or whatever. And so when when this concept reaches the masses of software users and we have the way for them to actually adapt the software to exactly what they need without having to even file a feature request or talk to support, you know, they should be able to just customize it for their needs.
47:03 And I think what's yet to be figured out is, but how does somebody customize something for them? And then when do those changes then propagate to like a product manager says, oh, that is actually a really, really good idea that everyone needs. How do we roll that into the system for everyone? Bayes theorem. Tell me more. Bayes theorem just says with the more data we get that supports this hypothesis, the more likely the hypothesis is. So as more and more people ask for this feature or incorporate this feature, then it kind of slowly morphs into the system itself without the product manager needing to be there. Yep, just directly serves the. User and the difference is that it's not users asking for something, it's users actually be adapting the software in the way that they want it and then some way to then then up level those things to to a more general.
48:04 OK, I want to observe that's that we're not making enough use of of. Sorry I've been rambling. Yes, I'm very excited about that for fact. I really like this idea of I think Deep Sea came up with this self improving harness, but it only works if the software is actually with the user. If the software is running on cloud, how do you make it work and how do you scale? And that becomes a challenge. Yeah, I don't think we've discovered the right systems for this yet, because you're right. Like like, let's just take as an example, Salesforce.com, ifsalesforce.com enabled their users to do software, you know, beyond anything that is available with their API, but like radically customize what Salesforce can do.
48:56 Are they going to take their 25 gig war and spin up a version of that, you know, with customized databases and, you know, entire duplication of their system just, you know, as a fork for one customer and then do that across there like millions of customers. Like, like, no, like, like. We're not at the place where we have the foundations to enable that. It needs to be extensible in the way that small talk was supposed to be, but not that way. You know, it's just like somebody goes, oh, I'd like to extend it this way, or I'd like to modify it this way and it goes, oh, here's the piece that does that modification. And if that, you know, appears enough times or that can be sent back, whatever to the cloud. So it almost requires a different programming paradigm maybe, I don't know.
49:43 I think it will, because I don't. I think our current programming paradigms are too static to support this. Intentionally static, intentionally deterministic, and we're going to need. People have talked about actually, oh this is weird, but imagine that your software is not code and being executed. What if your software is a model itself? Yeah, yeah. I mean, that's all. That's all we do in science is create models, and the implementation is typically in math of some form. But the goal is a model is something that fits the data and is predictive, and how the model is implemented is not as important as fitting the data and being predictive.
50:33 Yeah, but. So there is the hypothesis that you build everything from scratch. Like every software that you do, you build it from scratch. No, I don't. I don't maybe that. No, the idea would more be like like back to Salesforce. Imagine that Salesforce wasn't a bunch of code executed on the JVM. What if all of Salesforce Day as it operates the the, the and the execution plan of it. Obviously the data plan is different, but the execution plan of it. What if all of that could actually be in a model instead of being in deterministic JVM executing code? Right. And I don't think that we have the technology to actually achieve this today. But if you did have it in a model instead of in code, then just like we do with our agents, our AIS today, users could actually then instruct their agent to operate differently, instruct this model, you know, add some instructions on top of the model, maybe even do like their own fine tuning of their, you know, instance of their, their model, whatever it would would be.
51:37 So all that is I think further out closer to us is what I what I actually want today, which is anything that is in a settings like anything that I could go in and search around in settings and find the right setting. All of that at this point should just be natural language like. Like I should be able to control the settings of my software through natural language instead of having to tweak knobs in the in this and. Search through the settings file and go. Is this even possible? So that that should be 100% possible and easy today, and I I'm sure that'll be the first place where users experience mild software, not radical software. Well, I mean, already I do, because if I want to adjust my editor somehow, I'm going, well, I guess I could spend a lot of time hunting to even find out if the editor is capable of this, or I'll ask the AI.
52:34 Absolutely. Yeah. I mean, if there's a config file that can be edited, then the AI absolutely should be doing that at this point. Right, yeah, I, I also feel like most of the products will eventually become headless, right. So you would just they become data stores and you run programs on them and connect with them by API and basically it's your personal assistant which is doing all the work. I've been using Grokbot for the last few weeks and I I stopped going to my Gmail and basically every single other app. My Grokbot is doing everything for me. Yeah. I mean, do you need an interface beyond a personal assistant? And and I, I think especially with things like MCP apps and MCP events we were talking about earlier, we're getting a lot of foundations.
53:23 So that can actually be fully real. There's and then there's all the integrations that Rockbot and some of these other personal assistants are doing to existing legacy services to the point where, yeah, my, maybe in the future, I don't need 100 apps on my phone. I need just my personal assistant, my well. There was that phone that tried to jump the gun on that, remember? That's right. Rabbit or. Something. Oh yeah, the, the wearable one, Yeah. And I think it was. And it was just too far ahead. But I think we'll end up seeing that our interface to the world and to software likely will just be an assistant and an assistant. Yeah, because why do I want to learn a whole bunch of different, you know, user interfaces? I I use the GitHub UI very little these days because I just tell my AI like hey go do this thing for me. But when it comes to consumption of information, actually like visual stuff is more it's high bandwidth right? Like, imagine if everything is.
54:29 So if I'm talking to my bot, I can use voice, which is very high bandwidth for sending information. But imagine if you're driving and there are no signals, there's no signs, and there are only audio signals for left or right or red or green. That's going to be noise. So you still need this. There's the case to be made for a UI which is highly, highly optimized for a problem that you're solving, and not use a assistant for that kind of use case, right? But with like what is it a 2A and then a GUI, it's we're getting to the place where we can, we can dynamically generate UIS and then pull those into our assistant when needed. And so if you want to see a chart rendering some telemetry, it can go off and generate the UI and pull it into your assistant and or you.
55:24 Say I, I don't understand this. Can you show it to me in a way that will be easier for me to understand? And it goes Well, Tushar, I know how you think. So I know how to present it to you in a way that's going to be easier for you to understand. Yeah, yeah, yeah. And so for a lot of these existing systems, their value is being reduced in some ways to be in the like system of record and the the processes and security and integrations around them and and the web UI and the mobile app have almost 0 value in this new world. I started writing long, long ago. I started writing a science fiction story where the the I don't know, the robots, how they would interact with each other was initially I don't trust you.
56:19 So they have to, well, like the way humans do initially, Maybe I don't know who you are. I don't necessarily trust what you're saying. And they slowly, by interacting with each other, develop a level of trust. So. Yeah, How do we? How do we? Which is what you need. Yeah, how do we know? Well, you know, the game theory stuff is involved here, Prisoner's dilemma stuff where you go, oh, you said something, maybe it was a mistake, maybe you were trying to hack me. I don't know. So I'm going to be more suspicious for a while until I can start trusting you more. Yeah, Tushar, so you've been building, have you been building a factory or you've been building a like product for other people to build their factories on with forge code? Yeah, so we're building a product that people can use as factories for their software development. Specific kinds of factories?
57:18 Or is this a general? You're trying to come up with a general framework. The idea is to build a platform and build the right set of primitives with no hard coded workflows so that the agent can figure out how to get work done and just use those primitives as their data plane and a sandbox environment where you can just paralyze and execute things. Nice. And is this available, have you talked about this publicly? Is this product is launched and? Yes, it's called Forge code. You can check it out and it's it can get little difficult in the beginning because there's just too many confidence. But once you get get a hang of it, it can be very large projects very easy.
58:06 You, it sounded like you said that one of the big challenges you're running into is figuring out what the primitives are. Yeah, I mean effectively designing the language. Exactly. And one thing we didn't discuss was perhaps self-sufficiency of a factory. The factory which has to go outside to get information will always be confused because it might not make the right decisions about where to get that information from and. How do you give access to your internal wiki? Yeah, and that's why. And then maybe it has contradictions or stale information which is far away from growth, a factory. For us to scale the factory, we very quickly realized that the factory has to be self-sufficient and it has to have the same world view as the human who's driving that factory.
58:58 So we can't have different perspectives of what reality is that should be able to bring that. Information in Yeah, yeah. So well, that's cool that you're you're building that and it seems like you're you're on the frontier of of what's happening and and uncovering, you know how we how we enable teams to to build software in the future. So I'm glad you're you're you're the right mind to be tackling this. Yeah. Yeah. And I, I, we, we usually don't talk this much. We usually ask more questions and I know we kind of, I think it's because we're so enthusiastic about the possibilities for this. And even if I don't, I don't think AI is going to kill us all. Humans have been trying to kill us all for a long time. And so I think, I mean, fingers crossed, it's I I my hope is that it has more of a chance of saving us than killing us because we've been fighting with humans trying to kill us and, and, and doing it.
1:00:12 Oh my God, yeah. So Forge code. So Forge Code is online and people can go check it out and start building their software factories. And you've got the primitives for, you know, you need source code, you need issue management, you need. What else do we talk about for primitives? Yeah, there's. Well, in a new. Kind of knowledge base. System. Yeah. If you could build one, yeah. Yeah, but I think a lot of where we're at with this is that people need to be able to build their factories on the infrastructure that they already have. So if they're using Git, then, you know, SCM, it probably needs to be get for now. Maybe there's a future you migrate off of that. But but it's like, how do we, how do we take what would already exists and get it into the factory and then and then, you know, optimize the factory later? Yeah, Yes, that's right.
1:01:10 Yeah. So that we can. Yeah, that. Don't reinvent from ground up. Work with what we have and then slowly evolve the pieces that aren't. Anthropic talked about this with Git. They initially their factory was based on Git and then they replaced git at some point with something they opening AI. What's that? Open AI. Open AI also did it. Yeah, yeah, yeah. Well, I mean, git is old and clunky and designed for something a problem, and I've never for humans. I've never really understood it completely. Tushar, are you building forge code with forge code? Yeah, of course. Of course, of course, I think. That's funny as we speak.
1:01:55 Yeah, that's, it's, it's like right now in the hour that we've been talking, like what is your factory done? Probably all sorts of stuff. Lot of work. Yeah, I was just looking at the number of agents that are running right now. Well, and what a perfect proof of concept is to build it using itself. Yep, Yep. And this speed has accelerated. Yeah, the correlation with compilers is like usually you know, you know, you had a good compiler in language when you could self host. And so the same thing is now true for factories. It's like at the point when you can self host the factory development on the factory, that's like. If you can't, it seems like something's wrong. Yeah, there's. A. Problem in your design? Yeah, you can't do that. Yeah, awesome.
1:02:43 Well, yeah, thanks for chatting with us, Tushar. Super interesting. I appreciate all your your wisdom on this. And yeah, sorry we we were more chatty than usual. That's. Right. Everyone's building a factory today. So there's there's a lot of point of views. Yeah, well, and instead of building your own, you can just go use Forge code. Right, right. Well, yeah, good luck with that. I hope that hope that works out and moves everything forward, which it sounds like it is already. Yeah, Awesome, awesome. Thank you. Bye. It's James Bruce.