Hey everyone, welcome to the latest Space Podcast. This is Alessio, partner and CTO at Decibel, and I'm joined by my co-host Swyx, founder of Small AI. Hey, and today we're very blessed to have both founders of Factory AI. Welcome.
Thank you for having us. Thank you.
Matan and Eno, my favorite story about the founding of Factory is that you met at the LangChain hackathon, and I'm very annoyed because I was at that hackathon and I didn't start a company. I didn't meet my co-founder. You know, maybe one of you want to quickly sort of retell that little anecdote because I think it's always very fun.
Yeah. Yeah. Both Eno and myself went to Princeton for undergrad. And what's really funny is retrospectively we had like 150 mutual friends but somehow never had a one-on-one conversation. If you pulled us aside and asked us about the other, we probably knew like vaguely like what they did, what they were up to, but never had a one-on-one conversation. And then at this LangChain hackathon, you know, we're walking around and catch a glimpse of each other out of the corner of our eye, you know, go up, have a conversation, and very quickly just gets into code generation. And this was like back in 2023 when code generation was all about BabyAGI and AutoGPT, like that was like the big focus point there. And both were speaking about it, both were very obsessed with it. And I like to say it was intellectual love at first sight because basically every day since then we've been obsessively talking to each other about AI for software development.
If I recall, that LangChain hackathon wasn't about code generation. How do you sort of find the idea maze to Factory?
Yeah, basically I think that we both came at it from slightly different angles. I was at Hugging Face working primarily on advising like CTOs and AI leaders at Hugging Face's customers, guiding them towards how to think about research strategy, how to think about what models might pop up. And in particular, we had a lot of people asking about code and code models in the context of we all want to build like a fine-tuned version on our codebase. In parallel, I had started to explore building — at the time the concept of agent wasn't really like clearly fleshed out, but imagine basically a while loop that wrote Python code and executed on it for a different domain, for finance. On my mind was how not very helpful it felt for finance and how incredibly interesting it felt for software. And then when I met Matan, I believe that he was exploring as well.
Yeah, that's right. So I was at the time — I was still doing a PhD at Berkeley, technically in theoretical physics, although for a year at that point I had really switched over into AI research. And I think the thing that pulled me away from string theory, which I had been doing for like 10 years, into AI was really the string theory. And you know, physics and mathematics really makes you appreciate, you know, fundamentalness or things that are very general. And the fact that capability in code is really core to performance on any LLM, and like loosely, the better any LLM is at code, the better it is at any downstream task, even that's like writing poetry. And I think that fundamental beauty of like how code is just core to the way that machines, you know, develop intelligence really kind of nerd-sniped me and got me to leave what I was, you know, pursuing for 10 years. And that, you know, mixed also with the fact that code is one of the very few things, especially at the time, that you could actually validate. And so you have that agentic loop where the LM is generating the output and you're actually, you know, verifying in ground truth the quality of that output. It just made it extremely exciting to pursue.
How did you guys decide that it was time to do it? Because I think maybe if you go back, the technology is like it's cool at a hackathon, but then as you start to build a company, it's maybe like there's a lot of limitations. How did you maybe phase out the start of the company of like, okay, the models are not great today, so let's maybe build a harness around it, to then now the models are getting a lot better, so it's time to like go GA as you're doing now and all of that.
There's kind of a more quantitative answer and then a more qualitative answer. So the qualitative answer, kind of building off of what I said before of, you know, it was intellectual love at first sight. I think it was also one of those things that was kind of just like if you know, you know. We met and we got along so well, and basically like the next 72 hours we didn't sleep. We were just like building together on initial versions of what would become Factory. And when something like that happens, I think it's good to just like lean in and not really question it and overanalyze. Yet at the same time, if you, you know, do actually go and analyze, I think there are exactly, you know, the considerations that you're talking about, which is yeah, the models at the time — which I think at the time it was just 3.5 which was out — certainly that's not enough to have a fully autonomous engineering agent, but very clearly if you build that harness or you build that scaffolding around it and bring in the relevant integrations or the sources of information that a human engineer would have, it's very clear how that trajectory would get to the point where more and more of the tasks that a developer would do actually come under that line where you can automate it.
Yeah. And I think that at the time, as you mentioned, there was like BabyAGI and a couple of these other concepts that had come out, which involved putting a while loop around the LLM, feeding back some context. And on the other hand, there were papers coming out — the chain of thought, self-reflection. Of course, the scaling law papers at this point had been somewhat established, and so there was kind of this clear direction where models were going to get better at reasoning, they were going to get better at having larger context windows, they were going to get cheaper — or at least the Pareto frontier of the model capabilities was going to be expanding so that good models would get cheap, the best models might stay the same price, but they start to get really smart. And this was, I wouldn't say super obvious, but if you spent a lot of time just reading through these papers and working through, there was definitely a rumbling amongst most of the people in the community that that was going to continue to extend. And so you blend all these together with kind of meeting somebody who has this kind of energy that clearly they want to build. And I think that it became really obvious that the opportunity was available. I also think that we made a lot of very solid progress on the initial demo, enough to convince ourselves this was actually going to be possible. To be clear though, it was 8 days from us first meeting to me dropping out of my PhD and Eno quitting his job. So there was analysis, but it was also just like, yeah, let's do it.
Yeah, pretty crazy. Like eight days for sure. Yeah, my first company was a hackathon project, and I dropped out of school to actually found the company with one of my best friends. So the story resonates. I think I'm doing hackathons wrong. Like maybe like I've had — I met one girlfriend out of it. That was about it. That's, you know, some people might say that's how you... Is it still ongoing? No. Oh, yeah. I mean, it's a part of the funnel.
Yeah. So yeah, maybe codegen was not the topic of the hackathon back then, but I would say today every other event that I go to, codegen is part of it. There's a lot of codegen products. Do you guys want to just talk about what Factory is and maybe just give a quick comparison on the different products that people might have heard about, and then we can kind of dive deeper?
Our focus is on building autonomous systems for the full end-to-end software development life cycle, and in particular for enterprises. I think especially given the like — so okay, obviously code generation is very exciting. A lot of, you know, the best engineers coming out of any of those, you know, the popular schools, it's like they want to work on like RL, they want to do cool things with like GPUs, you know, training models. Code is one of the like most obvious things because it's very easy to resonate with if you're an engineer, and so that's led to a lot of the players in the space really focusing on coding in particular and on like solo developers or building a quick like zero-to-one project and really like that use case that appeals to that profile. And I think something that we're focused on is the relatively underserved enterprise perspective, which is there are hundreds of thousands of developers who work on code bases that are 30-plus years old. It's really ugly. It's really hairy. It's really messy. And if you made a demo video like doing some like COBOL migration, that's not very sexy. You wouldn't go viral. You wouldn't get a lot of views because it's like it's just not that visually appealing. But the value that you can provide and how much you can improve those developers' lives is very, very dramatic. And so seeing that underserved group is kind of why we've, you know, focused our sights there.
Yeah. And I would add that there are a lot of really interesting constraints that people take for granted in the broader market as being like fundamental to the coding assistant, the SDLC assistant kind of market. In particular, a lot of the players look at a platform that has been the dominant tool for software developers, the IDE, right? And you think this is a tool that was designed 20-plus years ago or has been iterated on for 20-plus years primarily for a human being to write every line of code. When you take a tool like that and you start to introduce AI, you start to introduce additional constraints that exist just out of the nature of where you're interacting with these systems and where those systems live. So, for example, latency matters a lot when you're inside of an IDE. The cost when you are local-first and your typical consumer is on a free plan or a like $20-a-month paid plan limits the amount of high-quality inference you can do and the scale or volume of inference you can do per like outcome. When you are freed of a lot of these constraints, you can start to more fundamentally reimagine what a platform needs to look like in order to shift from a very collaborative workflow, which is what I think we see with most tools today, and a more delegative workflow where you are actually managing and delegating your tasks to AI systems. So I think that the product experience of delegation is really, really immature right now, and most enterprises though see that as the holy grail, not like going 15% or 20% faster.
And you call them droids. Droids. Is there a just story behind the naming of either Factory or Droids?
Yeah. So we were initially incorporated as the San Francisco Droid Company.
Really? We were just before that out in the live podcast. Sorry. Oh, you had to bleep that out. No, no, no, no.
But our legal team advised us that Lucasfilm is particularly litigious and that we should change our name. And at the time — so at the time while we were thinking of renaming, I was still in my PhD because we incorporated like two days after we met, which was also ridiculous. But we're thinking of renaming, and I was still in some ML class at Berkeley, and I was reading a paper on actor-critic. In there, there was some equation that was like, you know, some function of the actor, we're just calling that y. And so it was like f of a equals y, a is actor, put the actor in there, and then it's, you know, factory.
Factory. Yeah, and so that's how it originally came about. It actually works quite well also, you know, automation, that sort of thing. But yeah, yeah, yeah.
And also the factory method, I think, was — we at some point we had that written up, and then I think that inspired this line of thinking. And Droids kind of remained because we felt that there was a lot of hype at the time around the concept of agent, but it referred to such a specific thing that everybody saw, which was this like endless while loop, unreliable system that just kind of went on and on and took a bunch of actions without guidance. And our thought process was, well, that's not really what our system looks like at all. So even though underneath it is an agentic system, do we need to say that we're an agent company? Doesn't really make sense.
I kind of like that. Like, yeah, actually last year we pushed — even though I put you guys, you spoke last year at the World's Fair, I put you on the agents track, but I almost didn't have an agents track because I was like, this is so ill-defined. And I think that instinct is good, but now the agents wave has kind of come back the other way, and now everyone's an agent. I think like defining your own term for it and just getting out of that debate, I think, is a positive. Is it closer to a workflow, which is like I guess the more commonly industry-accepted term now?
Yeah. No, that's a great question. I think that the original version of the Droids were a lot closer to what we called workflows. So they were asynchronous and like event-based. They would trigger, and each one had a specific kind of deterministic — like semi-deterministic. That was the original version. I think what we've grown to, as the models have evolved and as our ability to build out guardrails and the system has just improved, we've gotten to the point where when you interact with Droids inside the Factory platform, they are relatively unbounded in the path that they take. And they are in general guided mainly by the concept of planning, decision-making, and environmental grounding. So they can stay loosely goal-oriented over a long duration without needing very hard-coded guardrails, but they still tend to hit their goal according to their original plan. So I think now agent actually is probably like the proper way to describe them. Sure. But you know, I think Droids have a nice ring to it. It's also funny, our customers really, really love Droids as a name.
Just I cannot tell you how many times, like if you know, with an enterprise customer we'll do a POC, and like you know, a day later, you know, they're excited and like things go well, they'll share a screenshot and be like, 'These are the Droids we're looking for.' And honestly, every time it's just — it's so fun.
I know, and everyone thinks they're the first to make a joke, but no, it really is better than like agent or intern or like, you know, autonomous human name. The number of human-name AI products are — yeah, it's actually a pretty good insight.
100%. And actually I think we, to a certain extent, take a bit of an objection to the idea that these things are a replacement for a human being. I think that very much as we work through harder and harder problems with agents, it's become more clear that the outer loop of software development and what a software developer does — planning, talking with other human beings, interacting around what needs to get done — is something that's going to continue to be very human-driven. While the inner loop, the actual execution of writing lines of code or writing down the doc, is probably going to get fully delegated to agents very soon.
You just need to put 'Roger, Roger' once they ask a question. The task — we have that emoji in our Slack and use it very frequently. Roger, Roger. Do we want to do a quick demo?
Yeah, happy to jump in. When you land on the platform, you're presented with the opening dashboard. We try to make it really obvious that there are different Droids available for key use cases that people tend to have. Of course, you can always go and speak with a default Droid that can do a lot of things pretty well, but what we've learned is that there's three major use cases that people keep coming back to the platform for. The first is knowledge and technical writing. So that's going in and more of like a deep research style system that will go and do some research. It will use tools available to it, search, etc., and come back with either a high-quality document or answers, and then you can back and forth. The Code Droid is really the one that's the daily driver for a lot of folks, and this system allows you to actually delegate a task. I'll jump into that in a second. We can actually go through a full walkthrough. And then the Reliability Droid. This was pretty surprising to us, the degree to which people love doing incident response, the kind of like SRE-style work inside of the platform. I guess in retrospect, it's nice because no one loves to be on call at 3:00 a.m. waking up being like, 'What's happening?' And being able to just pass an incident description or say, 'Hey, something's going wrong,' and have a system really compile all the evidence, write up an RCA, provide that for you is super high leverage. And so that's actually one of the more popular Droids that people use. But I can start by just going into the Code Droid.
And when you start a session with a Droid, you're presented with this interface. It's a little different from typical, where we see a lot of tools really want to focus you in on the code. Our perspective is that code is important to review when it's completed, but as the agent is working, what matters most is seeing what the agent is doing and having a bit of like an X-ray into its brain. So we have an activity log on the left and a context panel on the right. So you'll notice as we go through this task, that context panel starts to get updated. And I'm going to start by just doing something that's a pretty common entry point. I'm going to paste a ticket into our platform. We have integrations with a bunch of different stuff: Linear, Jira, Slack, GitHub, Sentry, PagerDuty, you name it. We have a bunch of these integrations that our enterprise clients have wanted over time, such that you can easily pull this info in. And if I were to say something like, 'Hey, can you help me with this ticket?' And then I'm going to use my @ command, which lets me easily reference code or code bases. 'Hey, can you help me with this ticket in factory-mono? I like to be nice to them. I'd love for your help.' And so you'll note that right off the bat, the Droid starts working. It's doing a semantic search on part of my query in that codebase. And actually, the system has access to a bunch of different tools here: memory, project management tools, GitHub, web search. Right now, the Code Droid only has search enabled by default, but you'll note that as the system starts working, it may actually want those additional tools added so that it can do its job.
Maybe an important note there is, you know, as we deploy these Droids in the enterprise, I think something that we're pretty like ideological about is everyone expects these, you know, agentic systems to perform at the level of a human, right? Because that's what they're always going to compare them to. But in a lot of cases, they'll have these agents just in the IDE, and that's like the equivalent of onboarding a human engineer, just like throwing them into your codebase and being like, 'All right, like go.' But like the reality is, when you onboard a human engineer, what do you actually onboard them to? Slack, Notion, Linear, like Datadog, Sentry, PagerDuty — they have all of these other information sources that they need to actually be a productive engineer. And yes, in theory, if you're like really, really good and you don't need contextual information, you could just work based on code, but like that would be a lot harder, and it would probably take a lot more time.
100%. And having those connections ends up being super important as it works through harder problems. Like in particular, you can see that the first thing it did after that search was reference some of the information that it found in saying, 'Hey, this is what I found so far.' It gives an initial crack at a plan, right? Presents that really clearly to you, and then goes to ask clarifying questions. So a lot of users, we believe, should not need to prompt-engineer agents, right? If your time is being spent hyper-optimizing every line and question that you pass to one of these systems, you're going to have a bad time. And so a lot of what we do is to be able to format — if I say 'help me with this ticket,' right? There's clearly going to be some ambiguities. The system knows when you give a very detailed answer or request to follow your instructions. When you give more ambiguous requests, to ask for clarification. This is actually a really tricky thing to get right in the model, but we spend a lot of time thinking about it. And so I'm just going to answer some of these questions. Are there any UI mock-ups? No. Try to imitate the other examples. Two, only preview when the button is clicked. Three, no, it's actually not implemented. Four, just answering back which specific fields must be displayed — your choice. And five, your choice. So now I'm basically saying to it, you decide for some, giving my preferences on others.
And this is really the balance of like even, you know, delegation that will happen to non-AI is like, you know, as a good manager you give autonomy to people that work with you when needed, but also if you're like, 'Hey, I'm a little worried about this,' or 'I'm going to be really strict about what I expect here,' you want to extract that behavior as well. Because a lot of times, like Eno mentioned, if you give a really poor prompt and you just say, 'Hey, go do it,' it's going to go do it, but it'll probably make assumptions, and then at the end you might not be happy. But that's just because there were some constraints in your head that you didn't actually explicitly mention when you're communicating.
Do you guys have like a template that you've seen work? When I onboarded to Devin, for example, they have the fix prompt button, and then it prefills it in their template, which is like give the agent instruction on how to debug, give agent instruction on how to do this, and ask you to fill out these things. Do you guys have a similar thing where like you think for each project these are like the questions that matter, or is that more dynamic?
No, that's a great question, and it's something that we talk about a lot internally. It's surprising how many people are building products that have reactive like information requests, like, you know, 'please fill out this form to explain how to do this thing,' or 'you need to set up this dev environment yourself manually in order for this to work.' We think of trying to be proactive with a lot of this stuff. So you'll notice in the right-hand corner there's this project overview, right? And the system started to code after doing some search. So that's going to pop up while we do this. But when I click into this project overview, what you're going to see is basically a — and I'm hiding it because I'm realizing this is actually semi-sensitive. It's probably fine for the — hide that, no worries. It's totally fine for folks to see that it's a monorepo. If I scrolled down, that's when we'd get in a little bit of trouble. But inside that project overview, we're actually synthesizing a bunch of what we call synthetic insights on top of the codebase. And that is looking at things like how to set up your dev environment, what is the structure of the codebase, how do important modules connect to each other. And as we index code bases, we're actually generating these insights at a much more granular level across the entire codebase. We think that in general systems should be proactive in finding that information. However, with features like memory, and we have like a droid.yaml, you can set a bit of your guidelines. However, we also feel that it's like that XKCD about standards, right? Like everyone's got like a blank rules file, and so we ingest those automatically from all of the popular providers as well.
Wow. Okay. Does something like a Cursor rules file is complementary because people might take this and then work on it in Cursor separately?
Yeah. What we found is that there are sometimes extraneous advice in those because people need to give a lot more guidance to those types of tools than they do to ours. So our system parses through and only picks the things that we don't already know.
Another thing that kind of comes to mind related to your question, and this is something we've been thinking about a lot as well, is as we have more and more enterprise customers, and a lot of the developers in the enterprise are not going to be as up to date on every new model and how it changes its behavior. Something that's interesting that we're thinking about is these developers are getting familiar with Factory and how to get the most out of it. And then we, let's say, when we upgraded from Sonnet 3.5 to 3.7, we suddenly had a lot of developers being like, 'Hey, wait, it now does this less or it does this more, what's happening?' Or when they go to Gemini, let's say, and they want longer context. And so something that I think is interesting is how much of the like behavior difference from the models should we act as like a shock absorber for, so that they can basically as a user use it exactly how they've been using it before and get the same sort of output. But then also how much of that do we actually want to translate to the user? Because presumably over the next three years the way you interact with models will change, and it's not just going to be up to behavior, but it's rather like I guess it's alpha versus like beta in the model. Like some models have like different personalities, and it's just the way you prompt it to get the same out of it. And then there are others where it's like, I mean for example like the reasoning models, they just work in a fundamentally different way, and so you as the user should know how to interact differently. So that's something that's kind of fun to wrestle with.
How do you evaluate the new models?
We listen a lot to how the model providers actually think about building out their eval suites, and in particular trying to look at things like desired behavior versus actual behavior, and in a way that's sustainable for a small team. We don't have like, you know, $100 million to pay data providers. And so a lot of the evaluation ends up being a combination of point-like task-based evals. So like the Aider has an awesome benchmark that we built on top of internally for code editing and file generation, versus we also for the top-level agent loop have like our own behavioral spec where we set a bunch of high-level principles. We break those down into tasks. Those tasks then have grades and rubrics, and then we try to run those in order to determine is the behavior suite that we like — for example, asking questions when it's ambiguous versus not asking questions — does that match up? And we also use that to optimize the prompts as well.
Just a quick question on these types of things. I think every company should have their own internal evals, right? That is not in question. And obviously that is your IP, so we can't know too much about it. But like, what is the right amount to spend on something like this? Yeah, because let's say we talked about SWE-bench before recording. SWE-bench costs like 8,000 to run. I've heard varying numbers between 8 to 15,000 to run. Yeah, that's high. But you should be able to spend some amount to ensure that your system as a whole works and doesn't regress. So like, what's a rule of thumb for like what is the right amount to spend on this?
Yeah, I mean I think it's important to separate out the two purposes of benchmarks, which one is marketing. And like there are so many customers that we have that was purely because they saw the charts and they saw big bar versus little bar, and they were like, 'Okay, we want to go with big bar,' which is funny, but that's just — I mean that's just the way things go. And so I think that motivates — I think that's actually a good thing because that motivates more resources to be put on, you know, benchmarking and evaluation. On the other hand, you know, there definitely is a risk of going like too far in that direction, or like even getting to the point where you're fine-tuning just to, you know, satisfy some benchmark. And so like we were saying before the taping, like you guys don't bother competing on SWE-bench anymore because that's not that relevant for you.
Yeah, that and also like just in the enterprise the use cases are pretty different than those represented in something like SWE-bench. So we do have pretty rigorous internal benchmarks as well. But I think also there's a certain extent to which like the vibe-based or the sentiment-based internally actually matters a lot because who has like a more intimate understanding of the behaviors of these models than the people who work on it every single day, like working with them and building with them? Because I mean we use Factory internally every single day, and so when we switch a model we very quickly get a sense of how things are changing.
Definitely. And I think that those task-based evals tend to be the ones where it's most critical that we hill-climb continuously on, versus the top-level evals, they change so much with the new model providers that we try to make sure that they have some degree of consistent behavior, that the feel is smart. But the top-level agent is actually not that responsible for what most people call quality. That ends up being: is it fast, accurate, and high-quality code edits? Does it call tools with the right parameters? Is the tool design such that that model can easily fit into it? And we have noticed a lot of really interesting behaviors with as the new models that have a lot heavier RL and post-training related to their own internal like agentic tools. So for example, Sonnet 3.7 clearly has — it smells like Claude Code, right? Same with Codex. It very much impacted the way that those models want to write and edit code, such that they seem to have a personality that wants to be in a CLI-based tool. What's interesting is how do we combat the preferences that RL brings into the product? For example, search with CLI is like grep and glob. But what if you gave it a search tool that was way better than grep or glob at finding precisely what you wanted, but the model just really loves to use grep? They're going to fight each other. And so our evals have to figure out how do we make sure that as we build tools that are better than what maybe the model providers have in their slightly more toy examples, that the models use those with their full extent. And that's actually been a very interesting novel challenge to us that only started happening in the last three to six months as these new models have come out.
Does that make you want to do more reinforcement fine-tuning on these models? Like kind of take more of that matter into your own hands, or...
I definitely think that it's an interesting idea, but our take in general is that freezing the model at a specific quality level and freezing the model at a specific dataset just feels like it's lower leverage than continuing to iterate on all these external systems. And it also feels like this is a bit of a bug. Like we spoke with a bunch of the research labs, and I don't think that they actually want this type of behavior. What it is ultimately is it's a reduction in generalization.
Cool. Anything else to see on the demo side?
Oh, yeah. I mean, we can — it's still coding. Yeah. Yeah. So going ham. Yeah. So you can see here that we're running — oh, because you gave it like a whole bunch of things. Yeah. So I actually gave it like quite a large project to do to execute live in front of us.
Got to earn it. Let's keep — yeah. Yeah.
This is why this delegation-style flow we see is like really different, where in general we expect the answer or output of this to just be correct, right? It's running code. It's iterating on code. It's making edits to a bunch of different files. It's going to have to run pre-commit hooks and test all this stuff. And I think that this is a big difference in workflow, right? Where we've just had a podcast conversation, meanwhile the agent is working on my behalf. This is probably going to be mergeable at the end of this. It's ideally going to create a pull request, and we can check in on it at the end.
But I think that this difference is like, what would I be doing right now? I think today a lot of people just open up their phone maybe and start browsing, or they go context switch to a different task. But the real power is unlocked when you start to realize this is the main thing that I'm going to be doing is only delegating these types of tasks. And so you start jumping to, okay, while this is happening, let me go and kick off another task and another one and another one. And so being cloud-native, being able to parallelize these, like I'm only sharing one tab, but if I just open another one and started right now, we support that natively. I think that this feels a little bit more like how people are going to work, where you maybe start the day setting off a bunch of tasks in motion and then you spend the rest of it on maybe harder intellectual labor, like thinking about which of these is actually highest priority to execute on.
And this actually goes into something that Eno was mentioning a little bit before, but also like a question that I'm sure everyone when they see this is going to ask, which is why is this browser-based? Why is this not in the IDE? Like I'm used to coding in the IDE, and the kind of higher-level answer here is that, and Nina was alluding to this before, like the last 20 years the IDE was built for this world where developers are writing every single line of code. And something I think everyone can agree on is that over the next few years what it means to be a software developer is going to change dramatically. Now some people disagree, and some people say there will be no more software engineers, some people say everyone's going to be a software engineer, and everywhere in between. But the reality is very clearly in the next few years the amount of lines of code written by a human will go down. Like the percentage of code written by humans will go down.
And our take is that it is very unlikely that the optimal UI or the optimal interaction pattern for this new software development where humans spend much less time writing code — I think it's very unlikely that that optimal interaction pattern will be found by iterating from the optimal pattern when you wrote 100% of your code, which was the IDE. Internally we talk a lot about the Henry Ford quote, which is, you know, if you ask people what they want they would say faster horses. And for us the analogy here is like, can you iterate your way from a horse to a car? And there's like this very grotesque ship of Theseus you can imagine of like trying to turn a horse into a car — it doesn't really look pretty. And our take is, you know, even though the world was built for horses at a certain point in time, right, like there were stables everywhere throughout a city, you were used to feeding this thing and, you know, taking it with you everywhere, and it is kind of a higher barrier to entry to start introducing this new means of transportation in this analogy. We are taking that more ambitious angle of like everything is going to change about software development, and in order to find that optimal way of doing it, you do need to think from scratch, think from first principles about what does that new way to develop look like.
And to give some early answers that we are pretty clear about: the time developers spend writing code is going to go way down, but in turn the time that they spend understanding and planning is going to go way up. And then also the time that they spend testing so that they can verify that these agents that they delegated to did indeed do the task correctly — that's going to go way up. The promise of test-driven development is going to finally be delivered with this world of AI agents that are working on software development, because now if you do want to delegate something like this while you're doing a podcast and come back later, ideally you don't even need to check their work and you just merge the PR. But how do you do that with confidence? You need to be really sure that the tests that you put up and said, 'Hey, you know, Droid, you're not going to be done until you pass all of these tests.' If you wrote those tests, well, then you can, all right, great, pass the test, let's merge it. I don't even need to go in and see how it did everything.
I mean, sometimes you do have to break the tests because you're changing functionality. Yeah. Yeah. There's a whole bunch of hard problems, but I just wanted to cap off the sort of visual component of the thing.
There's one thing you haven't shown, which is like that there's a built-in browser. So like I have an XJS project here that I'm running, the conference website, it spun it up itself. When I tried it out in ChatGPT, it didn't work out of the box and they didn't have a browser built in. So it's nice that you have that kind of stuff.
No, for sure. Like being able to view like HTML, SVG, etc. on demand is super nice. And I think it's pretty much wrapped up. It actually finished these changes. I think it's like roughly 12 files that it edited, created, and so, you know, right after this because of the GitHub tool, I would just say go ahead and create a pull request. Okay. And then it'd be good.
Amazing. Yeah, good stuff. And you even show like a little 43% of context size used. That's actually not that much given that this is Factory's own codebase.
Yeah. And this is actually a large monorepo. I think the big thing that I'd love for people to try out is like look at how efficient it is. It's able to really execute on precisely what it needs to edit with relatively lower token usage than other agentic tools. Obviously, if you're just getting autocomplete, that's going to be a little bit more expensive, but compared to other agents where you get like five credits and it takes a while to execute on anything, I think they'll see a better experience with Factory.
Yeah. When you started saying things like, 'Oh, we can pull in from Notion, we can pull it from Slack,' like that sounded like a lot of context. You're going to have to do pretty efficient RAG to do this, right? Like I guess it's not even RAG, it's just retrieval.
Yeah. Yeah. I mean, but there is the temptation, and I remember maybe a year ago there was really a lot of hype on large context because, right, it's the dream of you can be super lazy and just throw in your whole codebase, throw in everything at it, which is what Claude Code does, right? Yeah, exactly. But I think the one downside of that is, okay, great, like if you do have a billion-token context window model, you throw it all in there, it's still going to be more expensive. The reason why retrieval is so important for us is because even if there is a model that's going to have these larger context windows, and certainly over time we're going to get larger context windows, you still want to be very cost-efficient. And this is something that our customers care a lot about. And they see a lot of the value in the effort that we put in on retrieval because they'll see like, wait, this was a huge monorepo and I gave it all this information, but then I see for each actual call, you're really good at figuring out what do I actually need as opposed to just like throw the whole repo in and pray that it works.