Factory’s Matan Grinberg and Eno Reyes Unleash the Droids on Software Development | Training Data

Matan Grinberg and Eno Reyes built Factory to create autonomous software-engineering agents called droids that automate code review, testing, and debugging. Their test droid saves about 40 minutes per engineer per day. Factory scored 19% on SWEbench, beating the prior 14% state-of-the-art.
Chapters
I would have thought this would be different 13 months later, but this is still very much the case where agent is synonymous with unreliable, stochastic demo ware, vaporware. And I think something very important for us is we want to build these systems that aren't just like cool examples of what is to come, but rather valuable today. And not just valuable for like a hacker on a side project, but valuable to enterprise engineers today.
Hi and welcome to training Data. We have with us today Matan Grimberg and Ino Race, founders of Factory. Factory is building autonomous software engineering agents, or droids that can automate everything from the drudgery of maintaining your documentation to to actually writing code for you. In doing so, they are building the ultimate compound lever. Last week, Factory also announced some impressive results on the key AI coding benchmark SweetBench, beating state of the art by a wide margin. Stay tuned at the end of the episode for more context on how they built it.
We're here with Batan Grinberg and Ino Reyes, founders of Factory. Gentlemen, thank you for joining us.
Thank you so much for having us.
Yeah, thanks for having us.
Let's start with a little bit of personal background. And Matan, maybe we'll start with you and then go to Eno. So, Matan, one thing that I believe you and I share in common is an affinity for a well executed cold call. I know at least two cold calls that have had some bearing on your life. Why don't we start with the one that you did as an undergrad at Princeton to somebody who my partner, Sean McGuire, tells me is quite a famous physicist. Can we start with that cold call?
Yeah, absolutely. So while I was at Princeton, I was studying string theory, and the most famous string theorist happened to be working at the Institute for Advanced Study, which is an academic institution right next to Princeton University, but not technically affiliated with it. Part of the allure of going to the IAS is that you don't have to take on graduate students, much less undergrads. That said, there's a professor there, Juan Maldacena, who is by far the kind of leader of the string theory movement. And being a young ambitious undergrad, I decided might as well see if I could snag him as an advisor. And so, with some advice from some graduate students, I sent him an email, asked if we could meet. And the thing about Juan is the way he works with people. You know, he'll take a meeting with anyone, basically, and we'll spend about two hours at the chalkboard with you. And in this two hour Chalkboard session. He'll subtly drop a problem that you basically have 24 hours to solve, get back to him with the solution, and then you'll officially, you know, be a student of his. Luckily, I was warned about this, about this rite of passage, so, you know, I was paying close attention to any hints he was dropping.
You had the Cheat coast problem?
Indeed, yes. Yes. So found the problem, ended up spending, you know, basically the entire night working on it, and, you know, luckily ended up having him as an advisor. We were able to then publish a paper together, which was very exciting. So.
Yeah, typical undergrad experience.
Yes, yes, exactly.
So there's a second cold call that I want to. That I want to ask you about. Before we get to that, why don't we go to Eno? So Eno, you similarly went to Princeton. You have a CS degree. From there, you spent some time as a machine learning engineer at Hugging Face, which is where we first intersected. Spent some time at Microsoft. But like a lot of great founders, your story before then started with some humble beginnings. Could you say a word about the stuff that doesn't appear on LinkedIn that has helped to shape who you are today?
Yeah, absolutely. And I think the, you know, my family on my dad's side came from Mexico in the late 60s to San Francisco, and my grandparents were both working for a bit. But when my dad was born, they started a Mexican restaurant in Los Altos. And that was in the 70s. They moved it to hate and coal in the 80s were very kind of like San Francisco immigrant story. They actually ended up leaving to Georgia where I grew up. But really, I think it's the, the drive that they had to give my dad a successful life in America. And it was my dad and my mom that drove that same kind of mentality into me growing up. And I think it's really cool because this story is one that I think a lot of Americans share and something that makes it really exciting to be back in San Francisco kind of building. Building something to potentially make the world a better place for everyone.
Very cool. That is the dream. Natan, I want to get back to that other cold call because I think it leads directly into the founding or the forming of Factory. So our partner, Sean McGuire, who I mentioned earlier, who I believe shares a similar academic background to your own, received an email from you a year or so ago that led to a walk and very shortly thereafter Factory was formed. So I'm curious what caused you to cold call Sean McGuire? And this is less of a Sean McGuire question because we know plenty about Sean McGuire. This is more of like a. You're doing, you're on a very good path, you're doing really good research, you're on track to get a PhD in physics, and something inspired you to go in a different direction. And I'm curious, what was it that inspired you that led to that cold call and maybe tell us a quick story about what happened shortly thereafter.
Yeah, absolutely. So, you know, I was, like you said, I was doing my PhD at Berkeley. About a year in though, I realized that I was only doing theoretical physics and string theory because it was hard and not because I actually loved it, which is obviously a bad reason, a bad reason to do anything. And, you know, I had such tunnel vision on this path that, you know, when I came to this realization, it was kind of earth shattering. And looked at the paths ahead of me and there were basically three options that seemed realistic. And so it was either going into quantitative finance, going into big tech, or going into startups. And by this time I had already kind of switched my research at Berkeley from being purely physics to then ML in physics and then slowly more ML and then mostly AI. So it was kind of quickly, quickly cascading there. At the time, I think I saw a video of Sean speaking, I think over zoom to some founders at Stanford or something, and I recognized his name from string theory research because I had read his papers way back in the day and it was particularly shocking to me because I'm not sure how much time you've spent with string theorists, but normally they're quite introverted. Not, you know, not, not, not the most social. Yeah. And so Sean is, you know, this very different example. And so to me, I kind of like, I looked at his background and it was just, it was just shocking to see someone who was like so deep and like a bona fide string theorist then go in and like, you know, start his own companies, invest in some of the best companies, join Sequoia and be, you know, a partner there. And to me it was just like, oh my God, this seems like someone who is of my kind of background, of my nurturing, I guess, and so sent him an email. And I was just like, hey, you know, we both were string theorists. I don't want to do string theory anymore. I'm thinking about AI. Would love to get your advice. Like you mentioned. That then turned into a walk. It actually was supposed to be a 30 minute walk. We ended up going from the Sequoia offices in Menlo park all the way to Stanford and then back and so it ended up in three hours. He missed a lot of his meetings that day. So it was, it was pretty amusing. And basically at the, at the conclusion of the walk he. So one thing was for sure, he was saying, you must drop out of your PhD. There's way too many exciting things to do. And he kind of left me with the advice of, you should either join Twitter right now, because this is just after Elon took over and he was saying it's, you know, only the most badass people are going to join Twitter right now. Two, you should join a company of mine as just like a general, you know, glue is what he said. This was Foundry, by the way.
Yep.
Or three, if there's some ideas that you've been thinking about, you should start a company. And I was like, you know, very grateful of all the time that he spent. And you know, we kind of left off there beautifully in parallel. Eno and I had just reconnected at a LangChain hackathon and he was in Atlanta the weekend prior and he basically got back the next day. So that next day Eno and I got coffee and, and I think we got coffee at noon. And then basically every hour since then until now, you know, and I have been working together, talking constantly about co generation and what became factory. I guess you guys know each other. In undergrad we had like the maximal overlap of mutual friends without ever having had a one on one conversation.
Yeah, it's pretty funny. We were in eating clubs at the time opposite from each other and we had just so many mutual friends. And it really wasn't until I moved to the Bay Area that we had a face to face combo. And it was a very fruitful conversation for sure.
It was intellectual love at first sight, you could say.
Absolutely.
I love that. And it's so serendipitous with the LangChain connection. Uh, how did you guys decide on, I'm curious. I mean you're both brilliant and I think for a lot of founders starting out in AI right now, a lot of them find it hard to resist the sirens call of kind of training a foundation model. So like how did you decide to, you know, build in the application layer? I'm curious. And then, and then why, why software engineering?
Yeah. So I think from my perspective, like going deep from academia, I think throughout all the years of spending time on math and physics, the thing of beauty that I was learned, that I learned to kind of be drawn to was things being fundamental and you know, spending, you know, time doing AI research, it was so clear that code is fundamental to machine intelligence. And so I was just naturally attracted to the role that it plays there. And I think that kind of joined quite well with Eno's, you know, attraction to the space.
You've referred to it a couple times as a compound lever. Can you unpack that for us and let us know what that means?
Yeah, I mean, so, so there's the, there's the famous Archimedes quote about, you know, software or. Well, his quote is rather, you know, if you have a large enough lever, you can move the world. And then I think that's been co opted for software engineering. Right. That software is a lever upon the world. And for us we see AI, and in particular AI code generation as a lever on software. The impacts of that being, you know, compounding exponential.
And sorry, Eno, I think I cut you off. I think you were maybe mentioning how you got to the founding inspiration for Factory.
Oh yeah, absolutely. I mean, I think Matan's story is really indicative of kind of the energy at the time I was at hugging face, working on training, optimizing, deploying LLMs for enterprise kind of use cases, was actually working with Harrison on early LangChain kind of integrations. And it was so clear that the work that was happening in open source was directionally moving towards modeling human cognition with LLMs where the LLM was just one piece of the system. The idea of chains, and I think Harrison calls them cognitive architectures or the LangChain folks call it that, and seeing that happening and seeing that within the code gen space, the most advanced players were basically looking at autocomplete. It felt like there was a huge opportunity to take that to the next step and take some of those lessons that were happening both in kind of the fringe research and open source communities and applying them towards kind of massive organization.
I realize we haven't said explicitly yet what is factory? So Matan, what is factory? And then maybe what are a couple of the key decisions that you've made about the way Factory is built? And you know, for example, one of them is to start by benefiting from all the ongoing improvements in the foundation model layer. You know, one of them might be the product itself, but can you just say what is factory? And what are some of the kind of key decisions you've made that have shaped Factory today?
Yeah, absolutely. So Factory is a cutting edge AI startup. Our mission is to bring autonomy to software engineering. What that means, more concretely, we are automating tasks in the software development life cycle and in Particular tasks like code review, documentation, testing, debugging, refactoring, and you know, as I list these off, you'll kind of hear quickly that these are the tasks that engineers don't particularly enjoy doing. And that's very much intentional. Right. Like obviously we are doing code generation and that's really important. But I think an equally important thing to, you know, generating some inspirational and like forward looking demos. It's also important to understand what engineers are actually spending their time on. And in most organizations it's not actually fund development work. In most organizations they're spending a lot of their time on things like review and testing and documentation. Normally they'll do these things way too late and then they're suffering because they're missing deadlines. Right. And so our approach is we want these tools to be useful in the enterprise. And so to do that we need to kind of meet engineers where they are with the tasks that they are very eager to automate away. We call these autonomous systems Droids. And like, you know, was alluding to earlier, these are kind of, there's a droid for each category of task. And in this kind of a paradigm where we want to frame these problems as games, it's very convenient that software development has a clearly defined software development lifecycle. And so for each kind of category of task or each step in the software development life cycle, we have a corresponding Droid. So that's kind of a, kind of a first pass there. I guess there were, I think there was a second part of your question that I missed.
We'll get into the rest of it. Where did the name droid come from? It's a pretty catchy name. It's like very memorable and distinct to Factory. Where'd that come from?
Yeah, yeah. So I mean, keep in mind, you know, when Factory started this was like you mentioned, about a year and a month ago. And you know, I actually, I would have thought this would be different 13 months later, but this is still very much the case where agent is synonymous with unreliable, stochastic demo ware, vaporware. And I think something very important for us is we want to build these systems that aren't just like cool examples of what is to come, but rather valuable today and not just valuable for like a hacker on a side project, but valuable to enterprise engineers today. We felt very strongly that agents just doesn't really capture what we're trying to deliver. And so fun fact, we were, we were originally incorporated as the San Francisco Droid Co. But upon legal advice and given, I guess the, the eagerness with which Lucasfilm pursues its trademarks.
We.
We changed our name to Factory.
Fair enough. So is it fair to say then that a droid is sort of like a job specific autonomous agent that actually works? Is that a reasonable way to think about it?
Yes.
Okay, exactly. You just said the words cognitive architecture. And I know my partner, Sonia Huang well enough to know that this is her love language. So I'm sure that Sonia's mind just lit up with a whole bunch of questions for you. So I don't want to get in the way. Sonia, have at it.
We just had Harrison on the podcast who talked about custom cognitive architectures as well. I guess. What are you doing on that front and how do your implementations dovetail with the multi droid strategy that you're taking?
Yeah, absolutely. I mean it's a great question. And I think the way that we think about reasoning and cognition within the standpoint of these systems, there are clearly huge innovations happening on both layers, the foundation model layer as well as on the kind of orchestration or kind of application layer. The way that you can kind of think of our technical approach on this is that traditionally labs like DeepMind and kind of some of these orgs that are really focused on solving problems that you can model like a game where you have rules and an environment and feedback loops, you can build out systems which model the reasoning of humans and even outperform them. They did this with the alpha series of models, protein folding, go code. And for us, most of the reasoning work we do is similarly focused on kind of inference, time, reasoning, search through kind of decisions and, and what we kind of think of as, you know, maybe it's something of intuition, maybe it's something of planning, but we aren't training foundation models yet. And I think a lot of the innovation that's going to happen at the foundation model layer will be things like latency and context window and kind of performance on some subset of tasks. But any time that you need action and environmental feedback and kind of long term planning, it's going to be really difficult to build a single foundation model that does that. And I think it's really the, the application layer where those types of innovations are going to happen.
Yeah, I thought the Princeton SWE Agent paper that came out last week or so was really interesting as an example of that of like you can get incredible agentic reasoning performance on code tasks from small open source models. I thought that was really nice. The proof point of what you're saying.
We love the whole team that put that Together. And the SWE bench work, I think, is a popular benchmark in the space. I think it's clear that a lot of the effort towards building these systems relies on not just any one benchmark.
Or eval or set of tasks, but.
Rather collaboration across a bunch of different areas, whether it's the model layer, whether it's the tasks themselves, it's how, what data are you using to evaluate and ultimately like, the overall architecture. And yeah, they're a really great team. We're super pumped to see their work.
Do you have a last question on this? And then, and then I will. I will pause myself. Any favorite cognitive architectures? Like, is it the tree of thought stuff, chain of thought stuff? Like, any favorite cognitive architectures that you think are especially promising or fruitful in your field?
Yeah, I think that's. That's a great question. I mean, I think kind of what I alluded to previously, when you have like, the, almost like the game, like, problem space where there are kind of simulatable, analyzable and optimizable boundaries, then that means that you can search through those decisions. And there's a bunch of techniques like Monte Carlo tree search, language agent tree search that people have talked about in research papers that I think are interesting approaches here. I think that the. In my mind, there isn't a singular cognitive architecture that makes sense for all tasks. And a lot of the benefit of breaking down the software development lifecycle into kind of semantically meaningful segments is that developers, when they have these workflows that move from one step to the next, they've kind of defined the boundaries of the game, so to speak. And so a lot of the work we do is figuring out which cognitive architecture or what design makes sense for a given task.
You reminded me of the Rich Sutton bitter lesson. Search and learning are the two techniques that scale.
Yeah, absolutely. And I think you definitely need both.
And then, you know, you were talking about this a bit, how the sort of the reasoning layer on top of the foundation model is really the focus for a lot of the fundamental research and a lot of the fundamental work that you guys are doing. Matan, you had a line a couple months ago when we were talking that was. And hopefully this doesn't come across as starkey, because it's not meant to, but it was something to the effect of, there are 800 engineers at OpenAI working on my margins for me. Can you say a word about that? Because I thought that was. First, that was incredibly well put, and then second, pretty good insight in terms of how you're building the business and really benefiting from the work of the foundation models. Can you just say a couple words about that?
Yeah, absolutely. So, you know, there are, there are a lot of companies, a lot of startups that are, you know, pursuing training foundational models or fine tuning models. Then there are a lot of huge research labs like OpenAI and Anthropic who are also putting a ton of resources behind making these foundational models better, cheaper, faster. And from our perspective, right, like we don't want to run a race that's, you know, not suited to our abilities. Right. Or we don't want to, we don't want to fight a battle that we know we won't win. Training foundational models, we are not going to win that battle. And similarly, I also don't think it's a particularly unique battle at this point. I think these companies were incredibly unique and innovative, clearly based on what they're delivering. But now I think the stage is set in terms of training foundational models. And I think similarly, with a lot of the, you know, infrastructure for fine tuning and that sort of thing, what has not really come to fruition yet is actually making products with AI that people are using. There's so much talk about all these foundational models, all this infrastructure, and there's still very few real products that use this AI. You know, in the analogy that, you know, VCs like to talk about a lot, we have a ton of picks and shovels and no one's actually going for gold. And so the thesis behind how we're building this company is let's first, you know, use these beautiful black boxes that OpenAI, Anthropic and Google are spending billions of dollars and, you know, hundreds of engineers to make. Let's use these black boxes and build a product that people are actually using. And once we do that, then we can earn the right to do the fancier things like fine tuning and training. If you're unable to build a product that people are actually using with these incredible models, then chances are fine tuning and training will not save you. And it's probably just not a good product. And so that's kind of the approach that we're taking there. And so we do get a lot of improvements when new models come out. But yeah, we are very much grateful for the work that's being done at these cutting edge research labs.
You've said a lot about how what you're doing is kind of like making AI immediately practical for engineers in an enterprise setting. And so I want to throw another. I think it's a Matan quote and I'm not sure if you were quoting somebody else, but you said you were talking to us last time. You said if Jeff Dean shows up at your office and he doesn't understand your code base, he won't be productive and unpack that for us. What does it take to kind of make a coding agent that's not just good for anybody that boots up a computer, but somebody that's a full time engineer at a real software company?
Yeah, totally. And yeah, so. So the analogy here is that you know, Jeff Dean is the analog of a really, really good foundational model, let's say like GPT6 with incredible reasoning. Right. But if it comes into your engineering organization with all your nuances and all your engineering best practices, just having that good inference and good reasoning is not enough to actually contribute and automate these tasks reliably. Some given isolated task, sure you can solve like give it some like leetcode problem and this give Jeff Dean a leetcode problem, I'm sure he will solve it. But if you have some, you know, 20 year old legacy code base, some part of it is dead code. The other part of it, the last person who was contributing to it just retired and so no one else knows what's going on there. You need deep understanding of the engineering system, not just the code base but like why you made certain decisions, how things are being communicated, what top of mind priorities are for the engineering organization. And it's kind of these like less sexy but incredibly important details that we're really focused on in order to deliver this to the enterprise.
What about the a lot of it? I think a lot of these AI code coding companies are kind of focused on the individual developers productivity. How do you think about like the individual level optimization versus maybe the system, the system wide optimization.
I think the important thing to think about with respect to the whole org is when a VP of engineering comes into the room, they're not really focused on whether or not an individual completed one task an hour faster. They're concerned about how many tasks are being completed and aggregate metrics of speed. But if that person completed that task an hour faster, but it's 40% worse code.
Right?
It's cherny code where people are going to rewrite on top of it. Or that person took that task and you know they did it an hour but it took them four hours to plan that and they were blocking five other engineers. And so when you start to actually add the nuance of what does it mean to be successful measuring an engineering org, you start to bump into a lot of challenges with, with understanding kind of what needs to be improved and what, what is a bottleneck and what is just kind of a, a secondary metric. I think a lot of the initial attempts at making AI coding tools are really focused on first order effects. How, how quickly is somebody tabbing to autocomplete statement or you know, how quickly is somebody completing an individual task. But I think that at factory a lot of what we're trying to do is understand from it, from an engineering leader's perspective how are you measuring performance and what are the metrics that you look at to understand, hey we're doing really well as an org or hey we need to make improvements and targeting those and I think metrics like Code churn, end to end, open to merge time, you know, time to first answer within the NJ org, all of these things are much more impactful to an, to an organization's speed of shipping code. And so that's kind of how we think about it.
I think this, this really ties into what you know, was just saying quite well, which is, you know, the clearly we were talking about products earlier as well. Like clearly the AI product that has penetrated the enterprise the most is copilot. Right. Unfortunately, with a tool like Copilot, the things that are kind of the metrics that are really held up as success are things like auto complete acceptance rate. And the problem is, exactly to your point, if you're a CTO or a VP of engineering, how do you then go to the executive team and say hey look, our autocomplete acceptance rate is this high. They don't know what that means. They don't understand how that translates into like business objectives. Right. And also, you know, Eno was alluding to this. There's kind of a hidden, you know, danger to some of these autocomplete tools, which is orgs that use tools like this end up increasing their code churn by anywhere from 20 to 40%. There, there's some studies that look into this, there's some problems with these studies. But you know, directionally what's clear is that as the percentage of AI generated code increases, Code churn, if, if, if you're not, you know, doing anything different in your review process, Code Churn is going to go up. And so our, our reason for focusing on org wide metrics is, is that it kind of divides out all of these concerns. If we look at things like how fast are you completing your cycles, what is your Code churn across the org or across these different repos that divides out these kind of like smaller, like intermediate metrics and gives you a sense of, hey, we are shipping faster and we're churning less code. So that's really how we, how we talk about this with these engineering leaders. At the end of the day, the three kind of main axes we look at is saving engineering time, increasing speed, and improving code quality. And ultimately. So these are three, and again, there's kind of different, you know, complexity of metrics for different parts of the org. These are the three that we discuss with engineering leaders, but we want to arm them with information when they're talking to, let's say, their cfo. And so really we kind of break that down into one main metric, which is engineering velocity. And that's really what all of these droids are targeted towards, is increasing engineering velocity.
Let me, let me try to recap a couple parts of the story thus far. So in some ways this is a compound lever, meaning AI is a lever on software, software is a lever on the world. And so building an autonomous software development system is one of the most impactful things you can possibly do with your lives, which is pretty cool. There are a few unique angles to the approach that you guys have taken, or maybe not unique, but distinctive. You know, one of which is the decision to ride on top of the foundation models, which means that you get to benefit from all their ongoing innovation. It also frees you up to really focus on the reasoning and the agentic behavior on top of those foundation models, which is part of the reason why you can deploy your product as a series of droids, which are basically job specific autonomous agents that do something like test or review end to end in a way that is practically useful to an engineering organization. And instead of focusing on just producing more code, you're actually focused on kind of the system wide output, which requires you to have really detailed context around not just the code base, but all of the systems and processes and kind of nuance around the entire environment. And having done so, you can increase velocity for an organization. I think that's a bunch of the story that we've talked about so far. Let's talk a bit about the results. Are there any good sort of customer examples you can share of factory in action and the results that you've been able to have for people?
Yeah, so I think some of the main things that we're seeing across the board, and we're not super public on case studies just yet, but something that we see across the board is, you know, I think our average cycle time increase is around 22% on average. We are lowering code churn by 13%. Tools like, and I guess we haven't even gotten into the specific droids, but tools like the test droid end up saving engineers like around 40 minutes a day, which is pretty exciting. And yeah, I think kind of going back to what we were talking about in terms of benchmarks. One of the most exciting things about having thousands of developers who are actually using these tools is that we get this live set of benchmarks and we get evals and feedback from these developers about how these droids are performing. And so, you know, like Eno mentioned, we are huge fans of Swebench and what that's done kind of for the general community and giving people like an open source benchmark to really compare these models. But you know, strategically for us, having this deployed in the real world has allowed us to dramatically increase our iteration speed in terms of quality for these droids.
What, what have you guys learned? A lot. Since you have a bunch of people using this in the real world, what have you learned along the way? And have there been any, any big surprises?
Engineers love ownership.
Yeah.
All right, say more.
Absolutely. I mean, I think it really is that, you know, when you're building an autonomous product and the goal is to take, you know, take over a task, you have to deal with developers who are fickle for good reason. They, they're constantly bombarded with developer tools and, and automations and anything that's kind of being enforced at, from a top down perspective needs to be very flexible. And so making sure that, you know, when we're building these products, we think about what are the different preferences or ideas that people have about how this task should be done and then building as much flexibility into that. I think a great example of this is the, the review process. Everybody has a different idea of what they want code review to look like. Some people want superhuman linters, some people want, you know, really deep kind of analysis of the code change. Some people don't even like code review. They get annoyed by it entirely. Matan has a great quote about what code review is like. I don't know if you want to share that.
Yeah, yeah. So I mean, in general, we've kind of internally realized that code, the code review process is very much like going to the DMV in that no matter how clean the DMV is, no matter how fast the line is, no one loves code review. Right. Because at the end of the day Someone's criticizing you, someone's going in and looking at, you know, what you did and saying better ways you could have done it. So in general, the review process, it's, it's the type of thing that as an engineering leader, it's great to see, like moving the needle on these organization wide metrics. As a developer, it's maybe not the most fun thing. Whereas something like the test droid, right, which is generating tests for you so you don't spend hours writing your unit test. That's incredible as a developer, but you know, for the engineering leader, it's slightly less obvious how that connects directly to business metrics. So I think this is part of why it's important for us to have this fleet of droids, because we're not just building this for the engineering leader, nor are we just building this for the developer, but rather for the engineering organization as a whole.
Part of what I heard there was that I don't have to go to the DMV anymore. You can just send me my driver's license in the mail.
Yeah, basically, yeah.
Love it.
It's a good way to sum it up.
Have you guys seen Pat drive? I don't think they should be sending him a driver's license.
We have Waymo for that.
Speaking of Waymo, how far out do you think we are from having fully autonomous software engineers? If you talk about Waymo, it felt like it was going to come really fast and then it felt like we went through a valley of despair and now it's future is coming at us super fast again. Like where? Which inning are we in for the kind of fully autonomous software engineer cycle? And when do you think we'll have fully autonomous?
Jeff Jeans, this is a great question and I think one that we get a lot. I think one thing that's worth is kind of like reframing what a fully autonomous software engineer will do. There have been many moments where techno technical progress has led to kind of, you know, labor dynamic changes and increases in the level of abstraction in which people work. And I think that historically enabling people to operate or impact the construction of software with, you know, at a higher level of abstraction with less domain knowledge has generally led to huge increases in demand for software. And I think that what we're seeing with the customers we're working with today is that when you free people up from these types of kind of secondary tasks like generating unit tests that map to a pull request, or writing and maintaining documentation on a code base that 95% of people know, but that Documentation comes into play for that 5% that doesn't, they start to shift their attention to higher level thinking. They think about orchestration, they think about architecture, they think about what is this PR actually trying to do and less about. Did they follow the style guide? I think that what we're seeing is that this is happening today already because of AI tools. And over time, as they get better and better, we'll see that shift towards software engineers becoming a little bit more like architects or designers of software. And so in the future, I think there's going to be 10 times more people involved in software creation where every individual has the impact of maybe 100 or a thousand people. It just may not look exactly like the individual steps of the development life cycle that we see today.
You know, that reminded me of a quote that you guys have on your website which said, and I'm going to read this, it says, we hope to be a beacon of the coming age of creativity and freedom that on demand intelligence will unlock. And that really resonated with me when I read it because it sort of implies a very positive and optimistic view of the world that we're heading into. I wonder if you guys want to say a couple more words on that or sort of what you think the sort of relationship between man and machine will be in the fullness of time.
This kind of goes back to our original approach, which is, you know, it's very tempting to go after the sexiest parts of software development, in particular, you know, like building an app from scratch, right? But that's also the sort of thing that will make a developer defensive because that's the part that they enjoy, right? And so in a world where you automate the development, then an engineer is just left reviewing, testing and documenting, which is like a depressing hellscape, if you were to ask any, any software engineer, right? So for us, it's very important that we position ourselves aligned with the developer. Instead of, you know, going into these organizations and being antagonistic with them, right? Like by going in and automating the things that we don't want to do, or rather by going in there and automating the things that developers don't want to do, we are positioning ourselves with them. Right? Five years from now, I don't think anyone really knows what software engineering will be or even if it'll be called that anymore. You know, to, you know, point, it might be, you know, you're like a software curator or cultivator or orchestrator. But by positioning ourselves this way with the developer wherever that role goes, we will be there side by side to allow them to have this higher leverage. And so, yeah, completely agree to your point. Like, this is one of the most incredible things that is going to happen to, you know, our ability as humans to create. And I think for us, it's just incredibly important that we are aligned with the users of this product and not, you know, antagonistic, trying to relate to replace them.
How far do you think we are from having these reliable kind of maybe call it intern level engineers? Is it a year out? Is it, is it really here today? Is it decade out?
I think, I mean, it depends on, on, on the, the, the task first. For things like code review and testing, I think we're here, we're already there where we're able to operate at a level that, you know, for many, like there's feedback from one organization that we got in particular that where we brought them the review droid. And, and this was pretty early on and they said, you know, the review droid is the best reviewer on our team. And I think that, that every once in a while you kind of hear something like that and it gives you a lot of kind of confidence that directionally we're definitely moving towards something that is valuable. And for tasks like, you know, hey, we've got to decompose our monorepo into a ton of microservices and you know, the type of thing that you might arm like a staff level engineer and with armed with a team of engineers under them, I think that we won't see like a binary moment of, oh, well, now this is done by an AI, I think that their responsibilities will slowly start to get decomposed into the tasks of planning and implementing the refactor going, you know, one file at a time. And when they start handing off those subtasks to AI, I think that role will, will kind of start to be called something different. Because when you're no longer as focused on what is the individual line of code that I'm writing tomorrow and more focused on what is our mission or what is our goal as an engineering team, you know, you really are more of an architect and less of an.
Implementer and a concrete example of, you know, us eating, eating the, the food that we're creating. Right? We were dreading for months creating a GitLab integration. Some of our customers use GitLab. We want to build cool AI stuff. We didn't want to spend time building a GitLab integration. We had our code droid fully spec out what the steps of building a GitLab integration would look like. And then it actually implemented every one of these sub tickets. We were of course monitoring it just to make sure it wasn't breaking anything. And we now have a GitLab integration. And so this is something that we genuinely were considering getting an intern to do because we just, we were just. We really didn't want to do a GitLab integration and you know, shout out GitLab. Yeah, but like, materially the droid saved us like hours of time. None of us had built a GitLab integration before. And also it's just like relatively complicated to like abstract away the like source code manager. And so that was. That was materially internal work that we did today. So to answer your question, it is now. It's just kind of slowly climbing up more and more. The level of complexity of these tasks.
Future is already here.
It is.
I have a question about competition, and not specifically the competition in your space, but I think how you more generally think about navigating competition. I think you guys are the type of founders that a lot of companies in the application layer really look up to because you're insanely ambitious building a real company of meaning you're doing a lot of smart decisions, like writing on other people's models. I think the obvious kind of like scary thing, the scary kind of other side of that is every other competitor in the space has access to the same models as you. And so I'm curious how maybe just mentally, and then I guess overall you think about approaching competition in this space. Do you think it's more elevated in kind of the application layer AI market than in other startup markets historically? And how do you think about navigating that?
Totally, yeah, I think that's a great question. And I think that's really, you know, our approach to that has defined how we've built out this team. And really I think there are a lot of ways you can respond to competition and like mentally kind of justify your existence versus competitors. I think for us on the team side, we are just a team of people who are more obsessed than anyone else out there. And I think that is like something that just has compounding benefit of. I am willing to bet everything that the people that we have assembled are just more obsessed than everyone else working in this space. I think a kind of a corollary to that is the only way you can win is by executing faster. There is. Everything else is all just like sprinkles on top. The only way you can really win is by executing faster. And being more obsessed. And that is what our team is. And I think, I guess one last thing is having a group of people who respond to kind of external pressures as like more motivating and you know, responding in that way. Also being very mission driven. Right. Like if you know, a competitor does something big and then suddenly you're deflated. Well, if you're truly obsessed with a mission, it's irrelevant. Right. If you're truly obsessed with our goal of bringing autonomy to software engineering, all of that is noise. What we need to do is execute as fast as possible in this direction that we've set and the rest will sort itself out.
Love it. Really well said. Maybe a few final questions to close us out. If you weren't solving the kind of autonomous software engineering problem, what problem would you be solving?
I guess I have to be banned from coding agents for this. Perhaps robotics. I find robotics very interesting. I think a lot of the time the team here, a lot of the team comes from backgrounds working on AUTONOMY and robotics. And we talk about how what we're building really kind of resembles that in many ways. I think multimodal function calling LLMs are here and the robotics companies, decreased hardware costs that are coming out are clearly making progress. So it feels like a fun area.
So you've been making physical droids.
Exactly.
It's on the roadmap without you, Matan. Yeah, I think this is, this is one of my blind spots where I just suffer from severe tunnel vision. I genuinely cannot fathom working on anything else. I'm just genuinely obsessed with our mission to bring autonomy to software engineering. I wasn't working on this. I'd figure out a way to work on this. I know that's a cop out answer, but I genuinely, I can't. It does not compute.
So that is in fact a cop out answer. But it is a fantastic cop out answer. So we will take it. One of the questions that I always like to ask is who do you admire most in the world of AI? And tell you what, Matan, because of your background, we'll let you look at the superset of AI and physics, if you like.
I would say so some a name that comes to mind when you say that is Jeff Dean. I think we mentioned him earlier already actually. But his impact in research is one huge side of that. I think TensorFlow and kind of the work that that whole team has done at DeepMind and related. But I've also heard he's a nice guy and I think that the thing is having responsible, I think like Leadership and in the AI community I think is a, is really important. And there's a lot of folks who are on Twitter all the time, you know, clashing. And I think that the seeing folks.
Who are outside of that side of.
It I think is pretty great.
Yeah. And I think not to give you guys a double cop out, but at Factory we very highly emphasize collaboration and I think like in AI in particular, everything has been done by groups of people and so it's hard to really think about one individual. I think physics, there are a lot of more like solo genius doing something crazy. But I think a team like recently that I think we really admire at Factory is Mistral and how kind of quickly they basically came into open source and brought those models to basically the cutting edge in a super short amount of time. And I think, you know, I speak not just for myself, but I think all of our team really admires both the mission that they have and the speed with which they executed on that. So yeah, I would say Mr.
Awesome. All right, last question. If you had to offer one piece of advice to founders, or would be founders hoping to build in AI, what piece of advice would you offer them?
We are in a land of picks and shovels and no one has struck gold yet, clearly. So I would say go for gold.
I would say try to build something that you think is going to get 10x better if OpenAI releases GPT 6 or 7. I think internally we think of our product as something that will multiply in value and uniqueness when new models are released. And I think for us it's always like we were listening to the OpenAI announcement yesterday and you know, everyone is excited, everyone's pumped when a new model comes out. When Open source does something great. If you're stressing about new product releases or demos, it might mean it's worth like adjusting your product strategy.
Congratulations on launching Factory and beating state of the art on Sweebench by such a wide margin last week. It's incredible. Just for our audience, can you maybe quickly recap what sweetbench is?
Yeah, absolutely.
And thank you.
All credit goes to the Factory team for making it happen. Sweebench is a benchmark designed to test an AI system's ability to solve real world software engineering tasks. So it's around 2,300 issues which were taken from contributions made to 12 popular open source Python projects. And typically these issues are bug reports or unexpected behavior that people reported on these open source projects. And the idea is all of these real world issues were addressed by other humans. And so you have a ground truth of what a human software engineer would do when faced with an issue. And the benchmark is trying to test can your AI system go through each of these issues and generate a code change that properly addresses it and comparing it to the human solution with tests that a human wrote. And so there's a lot of asterisks, but it is a somewhat useful approximation of your system's ability to take natural language and then turn that into code.
And I think the previous high watermark on Suitebench was 14% or so from cognition Devin, until last week. And you put up a really impressive new result at 19%, which is such a wide margin. This is such a competitive field right now, and such a competitive benchmark that everyone is trying to beat, which makes your results even more impressive. Could you maybe share a little bit about your approach and how did you get there?
Definitely. One of the main reasons we were interested in sweep bench is that there's a lot of companies and research labs that made submissions. You can see Microsoft Research, Amazon, IBM, ByteDance, and I think that's a testament to the Sweebench team's effort in making this benchmark a household name, which is great. I think one reason we were able to outcompete the kind of like well funded tech giants and other AI code gen startups is that we're honestly not building the code droid for a benchmark, but rather to support real world customers. And we've always said customers are the best benchmark. And I think this is some great evidence for the success of that approach. There's a few areas our technical report goes into around planning and task decomposition, environmental grounding, code based understanding. But overall I think that the thing that matters most when your team's working on these types of general software problems is kind of like what is the North Star? What are you iterating against? And so having kind of a real world dataset can make a huge difference.
And we just had Harrison on the podcast last week actually talking about cognitive architectures. To what extent did prompt engineering and cognitive architectures play a role here in your results?
I would characterize our research as continuously pushing the question of how can we model each droid's architecture to more closely resemble the human cognitive process that takes place during the task? It's funny, we actually have internally been referring to the flow of data and LLM calls as the Droid architecture basically since the first droid. And when Harrison first wrote about cognitive architectures, it really became Apparent that concept. Cognitive architecture is a great mental model for how to characterize the systems that have complex LLM interactions and data flow. And so for us, I think the meta problem of designing a good cognitive architecture is balancing flexibility with rigidity in the actual workflow. You want very rigid entry points, and certain common trajectories like error recovery need to be really consistent but then you want the flexibility and the dynamics during the majority of the problem solving process. And so it's a challenging balance, but I think it's one of the most interesting problems when building the droids is how do you know kind of when to add structure and when to let the droid, so to speak, handle it.
Really cool. So every droid has its own cognitive architecture that mirrors as closely as possible what the kind of human equivalent of that task would be doing.
Yeah, exactly.
19% is amazing compared to piracy of the art. It also still feels quite far away from reliable code droids that people will just trust to run wild in their code base. What do you think is the threshold at which engineers will actually start to use these code droids reliably and just let them run? Are we there yet or what is the threshold?
Yeah, for sure. I think that one thing to keep in mind is that the percentage on a benchmark like SU Bench is kind of like one of many possible measures. Because the answer, I think really is that they are already using it in production. But the use cases that might kind of highlight what the code droid is designed for may not necessarily have a ton of overlap with what is tested in a given benchmark. So if you take like human Eval or some of the other coding benchmarks, that maybe tests your ability to pass a coding interview, but it doesn't really test like your real world software engineering. Suitebench, I think, actually does test a lot of real world software engineering, but in the particular context of debugging or kind of unexpected behavior identification, there are some feature requests and there are a lot of kind of not explicitly debugging style problems, but tasks like a migration, a refactor, a modernization that take place over multiple changes, that oftentimes have humans very heavily collaborating are really a pretty different problem. And our internal evaluations are much more focused on those customer tasks. And so we have way higher reliability rates for like those style of tasks. And I also think that a huge part of the role of human AI interaction design is acknowledging where the systems are currently falling short and building into your interaction pattern accommodation for the weak points of the AI system. This isn't going to 100% of the time perfectly capture the intent of what you were doing. So how do you kind of have failure trajectory handling? How do you introduce the ability to kind of edit midway as the code droid is working to observe and have kind of some interpretability into why a code droid is making a decision so that when it does something, the human being actually can step in or at least understand what went wrong. And so I think that those allow you to say, well, we may not be at 100% on something like Sweep, but we can still use this and get kind of real productive gains in the meantime.
Totally makes sense. And I hear you that sweepench is not the be all, end all. But since you have a good crystal ball into this space, do you have a prediction at what point we'll get to 80 or 90% on sweet bench?
I think that the. The pace right now is really, really fast. There's a kind of, like, interesting question of will we get to 80 to 90% on sweep bench, or will there be a better benchmark that kind of comes out before we can really meaningfully start hill climbing past, like, the 50, 60%? There's honestly a lot of tasks in SW bench which are, I wouldn't say impossible, but it almost feels like getting them right would almost only indicate that you're cheating. It's like they test for really, really specific claims or a string match. And so I think that before we see 80 to 90% on sweebench, what we'll actually see is kind of like SW Bench 2 and Sweet Bench 3. That focuses on trying to think deeply about how can we evaluate when a piece of code is correct, but also kind of ideal or useful for a given code base. And the suitebench folks actually have a lot of really great thoughts about how to make these benchmarks better, but I think probably in the next two, three years, we'll see that.
Yeah, and they're Princeton guys as well, right?
Yeah, yeah, they are. We actually shared a thesis advisor.
Oh, no way. That's very cool. Well, you know, Matan, thank you so much for the conversation. Congratulations again on these results and on launching Factory. We are so excited.
Thank you. Thank you very much.
Sa.
More from Sonya

Building the GitHub for RL Environments: Prime Intellect's Will Brown & Johannes Hagemann

Building the GitHub for RL Environments: Prime Intellect's Will Brown & Johannes Hagemann

Context Engineering Our Way to Long-Horizon Agents: LangChain’s Harrison Chase

Context Engineering Our Way to Long-Horizon Agents: LangChain’s Harrison Chase

How Ricursive Intelligence’s Founders are Using AI to Shape The Future of Chip Design

How Ricursive Intelligence’s Founders are Using AI to Shape The Future of Chip Design

Training General Robots for Any Task: Physical Intelligence’s Karol Hausman and Tobi Springenberg

Why the Next AI Revolution Will Happen Off-Screen: Samsara CEO Sanjit Biswas

Why the Next AI Revolution Will Happen Off-Screen: Samsara CEO Sanjit Biswas

