From the event: Mindstone London November AI MeetupFrom a Product Factory to the Everything Factory
View event

From a Product Factory to the Everything Factory

The Product Factory

It's been a while since I did a talk myself here. So I'm Josh, I'm co -founder and CEO at MindStone. And today I want to talk to you about a concept that we call the product factory.

How many of you are familiar with a concept that used to be called the software factory? Okay, a decent amount already, right?

From Software Factory to Product Decisions

So the underlying concept here is that we're starting to have all these AIs And basically, when you give the AI a structure, how can you build a system where 2, 3, 10, 20, 100 AIs work in collaboration in order to take a feature from a starting point to an end point? And how can you use them in a way that produces both more, but more importantly, better quality code that comes out at the end?

And this is important because I've always found over the last, actually over the last four or five years or so, that what happens in software engineering is making its way into every single other industry very quickly. And so what we call, what we used to call the software factory, what now we call the product factory is already step one of that, which is that it used to be just code. And now we're starting to get to product decisions. For those of you that are in the product management sphere, there's a very big difference between making a product call and making the software, the coding call.

And so I want to first show you, normally I would do live demo. The problem is with the software factory if I live demo a thing the whole idea of the software The product factory is that it kind of takes whatever idea you want and then it might take 24 hours or so to go and build the entire thing so unless you're willing to wait for 24 hours It's hard to do a proper live demo, but I'm gonna try and get as close as possible

How the Product Factory Works

So here is an outline of what the software the product factory looks like so this is me Josh I mean anyone that knows me knows I'm a little bit of an idea factory. I basically just throw out ideas

And then I expect some that's why AI is so amazing for me because it just starts to execute on it whenever I whenever I have an idea I have these I I send these ideas to slack I now communicate To the product factory through slack and I'll show you in a second how that works

Then I have a machine that's set up in the cloud Which runs all of my coding sessions the coding sessions can be Claude they can be codex They can be Kimi they can be deep seek whatever the model list that ends up executing on them But it's in the cloud why in the cloud because it means I can hook it up to slack and it means that I don't Have to have my laptop running whilst it continues to build

Now it has a dashboard so that I can see at any point. What is happening across the product factory So there's 50 sessions I can actually see what is the latest update for each of them? And I'll show you in a second where that's at.

And the way that we've built this within MindStone is that I have my product factory, but Greg, our CTO, has his product factory, and then Melisandre, our designer, has her product factory. And they all talk to each other through the operators. So I talk to my operator, but that operator will talk to the other operators, the other product factories that we have in the company.

And I'll show you, we have a Slack channel where there is no human, and there is only operators talking to each other from the different product factories that are building product.

The Operator as an AI Chief of Staff

So the operator is basically a representation of me. You can think about this for anyone that's familiar with the concept of chief of staff. That's kind of what it is. The role of the operator is to basically remove as many decisions from me as possible.

How many of you are using cloud code or codex to basically build apps? How many of you are running say 10 sessions in parallel If you're running 10 sessions or so in parallel you very quickly get to the point that the limiting factor Is that they all stop at some point and they need your attention for something

That was before we have the product factory Basically what happens is the session grinds to a halt if I went to sleep and then like five of them had a question overnight That meant that whilst they were waiting on getting the question answered they would not actually advance which When you're a productivity geek like me that becomes a problem because I feel like if it's waiting for five hours I lost five hours of productivity

So that's where the operator came from it's basically another session that runs again on Codex or Claude Whose entire purpose is to answer the questions of the other sessions that are running? So that and you give it a few principles So I tell it like you're able to make a decision when it's a no -brainer basically when there's no downside and there's only upside Yes, always go and make the decision When there is a trade -off wait bring that to me.

So the operator is the only Session that I have on the on the box that is allowed to escalate a question back to me And so that means that my role becomes educating the operator to give it a framework work that is as solid as possible to remove any decisions I don't want to be involved in and instead focus my attention on the ones where I do.

An AI-Driven Product Development Workflow

Now the rest of the factory works like a normal software team really would. So we have a linear board. Every ticket, basically every idea, every bug, everything that goes through goes to linear.

We have the product factory looks at Sentry and PostHog, Sentry for all the bugs and PostHog for kind of the product metrics on how the product is evolving. Based on those two, the product factory creates its own tickets, so once an hour it looks at all the sentry logs figuring out what is happening in production, figures out if there is a bug that made its way through that shouldn't have, if so, puts it on the linear board.

The linear board, well, every ticket has its sizing like you would have with a normal product team so the AI decides is this a small ticket to medium ticket to big ticket how urgent is it how many users are affected all of that comes from century anyways the product manager would that's the job that they would do I would you would go into the data and figure out how many users are affected by this thing and they put it higher priority lower priority and so on then the lanes

are where we do the software engineering so basically when I say software engineering the product building so linear prioritizes it and I'll show you the linear board in a second, then the top of the linear board is constantly the product teams, the lanes, take the top of the linear board all the time and they just kind of crank through those one by one.

We call it the chief engineer but really it's more of a product team because the way we built it is kind of a loop that has for every ticket, it has a designer perspective, it has a security perspective, it has an architecture perspective, it goes through that problem for all of those different angles comes up with a plan comes up with a design goes through the full loop and then basically brings it to production then

Testing Through Automated and Visual QA

we have a whole bunch of testing and on top of that so testing comes into two flavors for those of you that haven't gone so everyone does the automated testing piece right which is just very easy now with AI actually the breakthrough on the product factory is to add a whole bunch of other things so

So browser stack and dedicated machines that do manual QA testing. So we have multiple Macs and multiple Windows machines. Every time that there is a new build, something new that makes it to the dev build, it just repackages it, downloads it on an actual machine, and you have another AI that now goes through the UI of a Windows machine or a Mac machine and starts clicking around. Just like a human would.

So we have a whole bunch of scenarios that have been set up by another AI, the product manager, which is another, actually it's not on this diagram here, but basically once a day there's a product manager that kind of looks at everything, reprioritizes what has been badly prioritized and figures out if there are scenarios that we should be taking into account into testing that we haven't yet and so on. So the product manager writes the scenario and then an AI basically spins up a machine downloads in this case rebel, which is Well for those of you that on the rebel, it's a co -work alternative try it out Much better and multi -model so you can use whatever model you want and local and so

What it does is it downloads it then basically starts to act like a user clicks around and does everything that needs to be in order to figure out is the feet first of all is the feature delivering on on what it was supposed to. And it does this through a visual lens. So it's actually looking. It's taking screenshots at every step that it's going through and then interpreting the screenshots.

And there's something weird going on with the models, where an automated test doesn't capture the same thing as when you give basically the same feedback through an image. And it's like, OK, now it actually is able to understand what's going on. And then it takes both of those sources, and your bug fixing becomes dramatically better, as well as the feedback loop on, did it actually deliver on the thing that it was going to deliver? So it does that bit.

Does the same thing on browser stack. You can get iPhones and Android, so it does its Android and iPhone testing. You can even get, like, Apple Watch -type environments, so it basically creates the feedback loop where you build it, and it goes through. So that hopefully all makes sense. Let me go back to the note.

A Product Factory in Action

This is the start of a thread. So this is me. You can see Josh Product Factory. It's a Slack channel.

Turning Slack Feedback Into a Shipped Feature

All I do here is we have a real problem with our setup on providers, so this was me getting annoyed with, so the benefit of Rebel is that you can use any model that you want. But when you start to set up quite a few models, it's actually pretty hard, so we support you

authenticating with your subscription, you can use open router, you can use trusted router, you can have your own API keys, and it became a little bit of a mess of the screens that you ended up with. So I actually sent these screens to the product factory and I said this is not good

Let's see here so you could see here where the API keys And it was such a long screen that I had to send four different screenshots to just get it in to understand what was going on and then you had subscriptions, but you also had a proxy because some companies are using it in a way where there's a

proxy, their own company proxy in front of it, and they wanted to be able to funnel it, so a whole bunch of different things. Now, okay, it agreed. Good. It is a mess. I filed it as a high -priority ticket with all your words and the seven screenshots.

Step one is a deep look, not building. Okay. The fix is designed. When was this? So it took two hours And 30 minutes and it came up with a solution.

So this is good. This takes a little bit longer. This is the box This is actually the the product factory So the product factory created a prototype for me

See in here you can see it gave me this idea of like you have your AI accounts over here and Then you can switch things the models that you have over here. You can customize them This was not the last one.

And then you can switch here, we have this concept of the council, so if you have multiple models in Rebel, you can decide sometimes you want to kick off a task on three models in parallel and get different opinions, for example. So that's, and you go through here, all of these are clickable for what it's worth. So let's see, where do I go here? So these are proper prototypes, like you would imagine that a human would kind of create them as they go through.

We went through a few iterations, so you can actually see here, where do I go? Designs a screenshot in viewing the phone images or mockups, oh, wait, actually, this is it telling me, so it actually gave me some of the screenshots. shots. Please fix the clickable preview. It should work nicely.

These settings should not exist on mobile. That was the other thing. It came back with me on a mobile view. Whilst the way that we have set up Rebel is that you have one main client, and then all the others are thin clients.

So basically, you didn't need to be able to set which models you had available on your phone. That was a thing that you would do on the desktop. So I said, it's like, you don't have to worry about that. I don't want you to go and build that.

We came up with the final example. example, actually, first, I want to show you this one. This is the linear ticket, so rethink AI provider subscriptions and smart pickles, simple and powerful.

Pretty big ticket because we went through multiple iterations. Let's see where I fed back. So most of this is the product factory going through different pieces.

Let's see where I am feeding back. So here Here it had a question, the choice, whether the agent builds the screens it drew. OK, so this was about improving the design or not.

And then where did I come back? This is really good, I think, so long as we make sure that there is an easy way to go from no mindset subscription to a mindset subscription, so Dash and Rogue, which are the two subscriptions that we offer where we basically take the token usage of the user. So we have our own kind of $200 and $500 tiers that you can use where we take the tokens. tokens, which I think you've already covered.

It's just a scenario that is not in the current prototype. So I asked it, please include this in the prototype so that I can get my head around what this feature really is. Ended up with the final prototype.

From Prototype to Production

And then it goes all the way through to the actual pull request, which passes all the tests. In the pull request, you have everything that is included. So you've got the brief, which comes from AI going through multiple reviews, the security review, review, the architecture review, and everything else. It stores that so that it has it for reference.

You have the design, so all of the different design, so the pictures, the images that it has created of how it's actually going to look like. And then, of course, the small part of actually writing the code going through. Then it decided to put that live.

So if I go into Settings now, go into Agents and Voice, I told it one of the things in the turns was I told that I wanted voice to be The kind of upfront because one of the things that we end up Looking at is that when you use voice with AI it is a big unlock for most people And so we wanted it to feature more highly so started with voice and then you can see

Here you now have a I am one of the more advanced setups so you can imagine I've got my chat to be t set up with all the models But I also have a whole bunch of other models underneath under the hood so you can see here All of the other models that I'm using and now it's much easier to switch it on switch it off based on what is part Of the cancel what's not part of cancel if I wanted to add another model. I can just select it here.

I'm going through so that is From a slack thread me going back and forth it creating a linear ticket in the linear ticket giving me designs and a prototype me giving feedback on the prototype and and it's carrying it all the way to production there's actually a new thing

Automatically Communicating Product Updates

now when it ships to production it automatically starts creating a video of what the feature looks like so to give you an idea here this morning there was there was one oh this is already a later one so there's one thing at the moment

and for a word document in plain language it can create the file with document tools built in without a separate setup step. Describe the file you want, a short Friday lunch agenda with the location and three items. The finished Word document is ready in the conversation.

So this seems very simple and very small but like I had zero involvement in this. So this was This was a feature we shipped this morning, and it was a direct effect of we used to ship a way for rebel to be able to create any type of document like a PDF, a docx, an Excel file, and it was based on Python, and basically when the user asked for the first time, we would have to download the whole environment, and so the small feature here was we would ship a JavaScript equivalent, which is default in the environment that we're already shipping, and so now the first time you ask, it just comes out.

So a very small thing, really, that we're shipping, but the video, our problem is we're shipping so fast now that there's no way we can communicate to our users what is getting updated every single day. So the fact that now the AI is part of the process before it ships, creates a video, puts that video as part of the changelog, and now every single feature that ships, that is visual, has a video associated that I didn't have a hand in making at all.

The Impact of AI Product Teams

Now, in terms of the actual impact that we're looking at, so if I look, this is our current linear board, which looks normal until you start looking at the numbers. So, any product manager would be horrified by this. We have 500, or I have, because this is just my product factory, 569 items in my to -do list at the moment and 697 that are not sure we want to integrate them, but maybe one day we want to go and look at them. I haven't created any of these tickets.

The only thing I do sometimes is I look at the design review or anything that's waiting for me. me. This one's been exploding a little bit recently, so something is going wrong with the factory. It's asking me a bit too often. Normally there would be five or six in that line.

All I do is I go into ticket here. Okay. So this seems to be another thing that needs my review. Let's have a look. What are we building here? Let a person ask rebel to take an action. Yes. Okay.

So we have this. So this is a thing here where we have in the the actions menu, which is basically a thing, I'll go away from that for a second. It's basically a part that shows, it picks up from all your emails, your conversations during the day and everything, it picks up all the actions that you have to act on. And this was the idea of you want to have a conversation with your AI about all of those actions so that it can go and resolve as many of them as possible by asking you a few questions. That was what I wanted to add here.

So it comes back with a few designs on, OK, how could this work? So you're in your actions. You can let Rebel take this on. It looks at here, like, stuff that needs you, where you can add a little bit of context on through. I'm not very happy with this one, which is why I kept it there, and I still need to give a proper round of feedback. But you can see how this product factory is just moving things along without me being part of the entire equation.

Shipping More While Reducing Bugs

Now what that looks like, because I measured this this weekend, so the direct result this is how much we ship over the last two years. We are shipping about 157 times as much as we were two years ago per per individual. And we are correcting less than half of what we used to. So when I say that, there's no perfect measurement in how you kind of think about what's the quality of what you're putting out. I'm not saying it's perfect at all, but it's directionally correct where we end up with fewer bugs in production, even though we are shipping 157 times more than we were before.

Now, when you think about what that means from a software engineering perspective, it's absolutely crazy. You now have one -person product teams that just out -ship teams of 100, literally 100 to 157.

Beyond Software: Factories for Every Profession

But the equivalent of code for other professions is starting to become clearer. The equivalent of code for a finance professional is their Excel sheets, is their models.

The equivalent of code for a lawyer can be the contracts they write, the write -ups they make. The equivalent of code for a product person can be the specs and everything that can come through. That's already done.

The equivalent of code for HR could be policies. All of these, so what's happening over the next three to six months, is that you have the same concept of this product factory, which is getting higher and higher levels of abstraction and making its way to other levels of decision.

Because the output of what's coming in is just needs adapting, but the process is similar.

So, hopefully, that brought some of it to life, and here you go again, you have the kind of end result.

Key Lessons and Audience Questions

It's nothing but adding or having multiple AIs checking each other from different angles, and so the biggest thing, the unlock for us was when we added, there were a few unlocks, but one was the operator that oversees the others, that for some reason I hadn't thought about until like two and a half months ago or so and then adding the

additional lens so the QA machines we had a lot of automated testing before but we didn't actually have an AI just downloading the app and clicking around and then figuring out what would go wrong and that bit that was another very strong feedback loop to just make everything together any questions yes

Making Better Decisions With the Operator

thanks a lot it's quite a practical window I feel like the weakest link is going to be the operator. And I wanted to ask you to be a bit more specific about how it makes those no -brainer judgment calls, because as the example that you showed directly, there's immediately context judgment or matters of taste that you could spot in an instant that the operator somehow totally missed. And I feel like at the scale that you're operating at, maybe you just don't have the capacity to catch all the bad quality stuff that's going on in the background. ground?

Yeah, so very, very good question. And you're absolutely right. That is where the bottleneck ends up being.

Now, you would be surprised when you really try how much of your own decision making you can boil down to really good principles. So simple things that the that the AI won't respect unless you tell it, which is things like, you don't want too many things on a screen, you don't want multiple CTAs that are happening, like that are happening on the screen at the same time you if you give it some examples of what good looks like that goes a really really long way so you can build it up over time tell it to come back with three three options as different from each other as possible and then explain it's option number one and why is it option number one and then tell it use that as a reference example going forward the other thing is you can train it

it over time so every once a week I will get another run another AI that looks at all the decisions that have been made during the week and I ask it what are the principles that you could add to your own way of operating that would have allowed you to make the decisions in a way that I have made them in the last week now it comes back and I then decide do I agree with those or not so I'm not like automatically adding them there but over time you're kind of chipping away at them.

I'm not gone. You can see there are 21 items waiting for my call at the moment, but they are very quickly disappearing. Hopefully that answers part of the question. Yes?

Retaining Principles Over Time

How does the operator retain it over time, especially as you add more and more constraints, and you simplify it and try to crystallize it?

How do you ensure the resolution Solution stays over time. It's just in the system instructions of the operator and the sit and the operator reboots itself On a frequent basis. So basically it's Reloading it in so that it basically cleans the memory itself.

Okay, so you're basically you're always remembering It's every morning doing your constitutional reading. Yeah, but actually the moment it so it doesn't Basically because it's part of the system instructions It'll be part like it'll it'll retain it even during compacting

Thank you Maybe have time for one more. I would say one more. Yeah I'm gonna be around afterwards as well. So we'll have a I'll take a few questions after hi Josh

One of the best presentation I've seen in recent times. So really happy to be here I have thousand questions. So I'm given on you. I have one so

Scaling CI and Automated Merges

So, one is the second biggest blocking point is CI runners. So, it used to be. So, any secret sauce in that? Yeah, so you must be experimenting a bit yourself on this stuff, because that was a complete left -field one for me. I had not expected our CI to be the problem.

So, we ended up going down kind of Google CI runners, and basically just parallelize a whole bunch of them and so what we end up doing is we have all the automated testing and then it automatically merges when all the tests pass and the individual lane so here the the ones that are doing the actual coding independent they are responsible for resolving any errors that pop up any CI that goes red on their particular branch and they just iterate until they go but because it automatically merges when when those tests go green, you end up with a queue of pretty dramatic merges.

Actually, I forgot to show two different things. So hopefully that answers some, but I'm happy to kind of go a little bit deeper on that later.

How Product Factories Coordinate With Each Other

So I forgot to show, so here, this is our fleet operator Slack channel. So there is no human in this channel, unless I sometimes insert myself. And I'm literally going, like, no, Greg, Greg, like do this thing or whatever.

But you can see here, let's see if we have a thread, okay, wow, there's a 10 -person thread or 10 -reply thread. So you've got the first one, my product factory, for Greg's operator and Melisandre, Rebels hourly release health run on main has failed since this morning. Untrusted integration record. So three beta assessments requested are waiting. It clears as soon as Greg and Melisandre set their minds on GitHub organization memory to public.

Okay, interesting. I'm not sure that that would have been the right thing. Melisandria decided to keep hers private. Good. So please don't count on the flip. It goes through. Understood. We stop counting the membership flip.

One more question. So here, Melisandria goes through. OK is a fallback. And you can see back and forth you've got. So in this case, it was Melisandria and I. Or Melisandria and I. No. My factory with Melisandria's factory going back and forth, resolving an issue. In this case not even agreeing which is an interesting bit kind of going back and forth, but so the communication itself goes through slack

Yeah, okay, hopefully that shows a lot and I'll be here again for a few questions after thank you much

Finished reading?