Hey everyone, welcome to the latest space podcast. This is Alessio, partner and CTO at Desible, and I'm joined by my co-host Swixs, 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 HuggingFace working primarily on advising like CTOs and AI leaders at HuggingFace'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 LLM 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 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 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 that 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 the 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 sites 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. 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 beat 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 2 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, yeah. And also the Factory method, I think 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. Would you like, 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 bottom, 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 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 at 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 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 hyperoptimizing 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 boarded 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 is 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 mono repo. 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 is complimentary 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 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 there 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 there. 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?
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 data set 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.