One principle that's very clear is everything needs to be written or recorded. Because if we want our agents, if we want our droids to make decisions as good as our decisions, they should have access to the same information. So if we're having an engineering sync, that needs to be recorded and the droids need to have access to it. If we're meeting with a customer, it needs to be recorded. Need to have a document about, you know, our thought process and our discussion there. Slack conversations, droids need to have access to all of this. There can be nothing that's like tribal knowledge or that only exists in people's heads because that now means you have a discrepancy between what your agents can access and what your humans are aware of.
Matan, I'm so excited to have you on here.
Thank you so much for having me. It's a pleasure to be here.
Of course. I think we first met at a factory happy hour. I don't even remember when. A few moons ago. We've seen each other many times since, but we've not had the chance to get into the meat of factory. So, I'm looking forward to doing it today.
You know, codegen is a very popular topic. That's probably an understatement in this LLM wave. Developer tooling has seen incredible success in generating revenue. I would say early on, you know, before a lot of general population was talking about LLMs, GitHub co-pilot was printing real money. And so factory was founded when foundation model companies were working on better codegen. Startups and large companies were working on dev tooling. I'm curious how you landed on your vision. There were a few things that you did that were different like an AI engineer in every tab, agent-driven development versus building an IDE, enterprise focused versus the vibe coder. What gave you conviction to build a company in this relatively crowded space and in those directions?
Yeah, great question. So, in terms of the history actually, so factory we were started in April of 2023. So, this was basically 5 months after ChatGPT came out, which kind of kicked off the whole craze in more of like the public eye. Obviously, you know, LLM had been worked on for a while before then, but at the time, I think there was an exercise that me and my co-founder Eno did that I think really got us hooked on this vision, which was, you know, this new when it was just ChatGPT that came out, there's this new paradigm of having ChatGPT like kind of on one panel and then your IDE in the other. And there's a fun game that we played which was basically how much of the code that you wanted to get written could you get ChatGPT to output and you're not allowed to write any code. So basically you have to play the orchestrator of like you can copy and paste stuff and you can say no don't do this do that how much of it you know could it actually write and it's pretty interesting that we found that even then with you know just base ChatGPT often times if you could cultivate the right context subdivide the task appropriately and then guide the agent or I guess at that point the LLM generally you could get most tasks done. And so it kind of came to us of like okay well given that LLMs are only getting better if we can do those things if we can do the context allocation if we can do the task subdividing and the kind of agentic orchestration or the framework around the LLMs themselves then you can automate a lot of tasks in software development and in particular the things that developers don't always like doing. And so even back in April of 2023, we set out on our mission, which has not changed to this day, which is to bring autonomy to software engineering. And it's been pretty interesting over the course of just over two years seeing how, you know, lots of things have changed. models have gotten more agentic. The space has gotten much more crowded than it was when we started. But that kind of core vision and value prop remains very unchanged, which is this broader trend of developers going from, you know, being involved in every line of code to a higher level of abstraction. Which is now kind of what brings us to something today, you know, the agent-driven development. which I'm sure we'll talk more about, but that's kind of the early days and how we got started on that front.
That's very helpful framing and I like the game, if you call it that, that you played, which is what can we get ChatGPT to do and we assume the models will get better and better over time. Out of curiosity, what was it not doing well?
Yeah, I mean the most common failure modes were it would fail because you didn't give it the right context or you didn't give it the right specification of like, hey, I actually want you to do this. or the task was too large. So it was like there's kind of too many reasoning steps. Like as an example, if you were at the time in 2023, you were asked like build me a full app. It would just be too much. It wouldn't be able to do all that. Whereas if you were to subdivide it, you know, chances are it actually would have the capability to do that. So those were some of the most common failure modes. you know dividing those out. So suppose you gave it the right context and sufficiently sized task and gave it the right framework it still would you know there still would be cases where it fails. And those cases where it would fail often times that would be like again in that time period in like early 2023 that would be because it didn't have the tools that we as humans have at our disposal to actually verify if the code that you're writing works. So you know at the time you couldn't really set it up to run tests whereas now the agents the droids that we were building at factory they have access to full environments so they can go and debug themselves.
You sort of answered one part of the direction which is why agents and why focus on orchestration versus you know building an IDE. Why did you decide to focus on enterprise? Because I'm sure a lot of folks can get leverage out of orchestrating agents. I could do that in my role as a VC. So why enterprises?
Yeah. So I think you know the reality is and this was something that was maybe not intuitive at first because you know I live in San Francisco most of my friends are working on really cool startups working on really like frontier engineering work or research and you all that but the reality is is that's a very nonrepresentative sample of engineers in the United States let alone the world and I think the promise of AI and AI agents is increasing the leverage of every engineer, every person, but you know in this category in particular, every engineer and I think focusing on just the engineers who are always going to look at the coolest, you know, frontier new tools, it's kind of doing a disservice because there are orgs that have 50,000 engineers where maybe 49,000 of them don't really care that much and aren't staying up to date on every new tool that releases and every you know, weekly like all these updates. like some of them are, you know, engineering is their job and they care about it, but they're not, you know, the most AI native. And I think for us, reaching them is key to unlocking this promise of leverage that AI and agents for software development, you know, will be able to do. I think it's also you know just from a business perspective I think it's a important focus area because if you look at the profiles of the people who generally are working in AI code generation generally it's like you know hot shot Ivy League or Stanford grads who want to like spin GPUs and do cool things like fine-tuning and RL and all that stuff and if you talk to them about you know behavior change or like you know driving adoption in a large enterprise it's like Oh, like that's not cool. Like I want to do the GPU stuff. Like I don't want to deal with, you know, teaching people who are less AI native how to use these tools. But I think that that kind of unsexiness of behavior change from our perspective that is like huge huge opportunity to actually bring this AI revolution not just within San Francisco but to the rest of the world where they aren't as AI native.
Okay. So let's talk about what it actually takes to get into the enterprise. You mentioned there's a little bit of this like unsexy behavior change problem. So yeah, there's that. I'm curious from an education perspective what the biggest challenge is, but also from a technical perspective. I mean, you're dealing with old repos, code migrations, and several challenges. So yeah, how do you think about the behavior challenge and then how do you think about the technical challenge?
Yeah, great question. So I guess some of the ugliness of their like engineering environment is actually good to a certain extent because the worse and the more hairy it is the more eager they'd be to have a solution to it. So on one hand that helps on the other hand for our engineering team that means there's a lot more work to actually you know make sure that factories can go in and deploy and actually understand comprehensively that engineering system. So there's like two sides of the coin there. So generally it helps like often times with the enterprise one of the use cases that we'll enter with will be really nasty migrations that they've been putting off for years or you know some large refactors that is planned to take 8 months and a ton of engineers and a lot of you know work required on the operational side to even communicate about it. Those are cases where at least the promise of agents is sufficiently positive that even people who might be skeptics are like you know what fine if this can make it so I don't need to do a migration I'll buckle up and learn how to use these AI tools.
Anyone who's dealt with a migration would agree.
Yeah. I mean it's a pain. No engineers enjoy doing it. It's also something that's very much welcomed. It's like I don't think there's any engineer who would be like oh no we're now going to have AI doing all our migrations like generally I think that's a better world for everyone. So that's one place that we start but then there's also you know the behavior change and adoption across the org for things that aren't just these migrations. And that's why for us we typically start with those particularly painful deliverables to then kind of build up a reputation in the org and a trust in the org so that even if that engineering org is not the most AI forward they can point to this and be like oh my god did you hear about that crazy migration that we did with factory and it only took us one week instead of four months and it's like wait okay let me actually try and go and do that elsewhere. Because at the end of the day, developers are they're very clear and astute at figuring out what tools will make them more productive. And their trust is very hard fought. You know, if you but if you can earn that trust and if they can see this is actually moving the needle, then they'll be very quick to adopt. And so I think you know navigating that in these orgs that might be tens of thousands of people it ends up being a pretty interesting challenge that requires almost as table stakes the best product on the market when it comes to software development agents.
It's an interesting thinking about migration as a wedge because when I think about migrations I think of them as these one-off enormous projects that I've dealt with migrations before. They're not fun, but then you do them. How do you make that transition between some of it is awareness, but it's very different to use a tool in your day-to-day or weekly and get that embedded as part of your workflow versus to handle a project like a migration with AI. So what does that transition look like and then what do you need to build so that this becomes a habit for developers in the enterprise to use?
Yeah, that's a great question. I mean I think an important principle for us in how we're building this is this concept of ubiquity where basically we are asking a big thing of developers which is over time to change their behavior to this agent-driven development paradigm. And maybe I can take a step back and actually explain a little bit about that. So that agent-driven development paradigm is basically, you know, we're going from a world where developers write 100% of their code to a world where developers will write 0% of their code. And so what used to be kind of the go-to interaction is like how do I write this line of code to make this function work how I want it to to make this system work in the way that I'm intending. Like those are kind of the primitives to a new set of primitives which is how can I scope out a task and define the validation criteria to know that the task was done well and then delegate that to an agent as quickly as possible and then how do I get multiple agents working in parallel. So you're going from this world of like single-threadedness to multi-threaded or parallelization. And you know on the way we're kind of slowly working our way on that journey. like one thing there is you know introducing AI into the IDE.
And that's your belief in the limit that software engineers will be writing 0% of code or maybe the abstractions look different as verification.
And I think there are certain subsectors where this will happen slower and certain areas where it'll happen faster but like asymptotically the amount of code that is written by humans as a percentage is going to be way way lower now the human engineer or whatever the term ends up being called will still be essential in this process but instead of as an implementer as an orchestrator. They will be orchestrating these agents and saying hey here's our broader first of all what actually broader features or product decisions do we actually want to make in a world where we have a million agents that we can call at any time and a key decision is which ones do we choose to actually do. You can do all of them but generally as you know many products can attest having all the features isn't always the best. Sometimes you want that simplicity and so decision-making criteria there is going to be extremely important and will be human-owned. Scoping out how to actually implement certain things will be important. So you can define goals and success for these agents. And you also need to give them the ability to empirically validate it. So give them the ability to run tests or to spin up a UI and verify functionally certain things are working. So the better that you as a human engineer aren't making those decisions and then kind of scoping it out and delegating it to agents, instead of this world in the IDE where like the AI is making you 10, 20, 30% faster, you'll have 10 agents, 20 agents, 30 agents working in parallel, so you are 10x, 20x, 30x faster. And I think it's a fundamentally kind of different interaction pattern. And so with that in mind, we need to meet developers where they are today. And where are developers today? Sometimes they're in their terminal, sometimes they're in the IDE, sometimes they're in Slack, sometimes they're in Jira or Linear. And we need to make it such that they can engage these agents. And we call our agents droids. They can engage these droids wherever it is that they're working. Because, you know, lightning might strike in their head of like, 'Oh, wait. This is a perfect task. I want to delegate.' And just like a human, you might ping someone on Slack being like, 'Hey, can you go do this?' Or you might see a ticket on Linear and tag someone be like, 'Hey, wait, can you go do a first pass implementation here?' So it's important to be ubiquitous such that as developers are learning this new interaction pattern it's easy for them to just like okay great let me go do a delegation.
So they see the proof in this like really difficult thorny thing like the migration but then whether they're in Jira whether they're in their IDE like they have some way to connect to and use factory easily so it doesn't feel like I need to adopt an entirely new workflow.
Yeah, it's like, 'Oh, wait. I want to do that. I have to go all the way over here to go, you know, like imagine if there was a new hire on your team and the only way you could interact with them was on like some separate messaging platform or something.' That would be very inconvenient. Yeah. Yeah. You want like wherever a human engineer might be, you want to make sure that you can delegate to a droid. Like if you wanted, you could set it up such that you could literally email a droid to do a task. Now, I don't think any engineer would actually do that, but you know, the principle is that like these should be ubiquitous.
I mean, I'd imagine there are quite a few pieces to that. So, some of it is the playing nice with existing tools and workflows, which we talked about. Some of it is understanding what's going on in the codebase, indexing the codebase, being able to retrieve appropriately. Some of it is, to your point, you could have a bunch of different agents, but there's value in simplicity. So, I'd love to go piece by piece and understand what you all are doing to help the agents better understand the codebase. and then maybe we can get into some of the different droids and the challenges around building them.
Yeah, absolutely. So, table stakes here and actually something that we come back to a lot in terms of so we talked about principles. So, one of those principles is ubiquity. It needs to be everywhere. A principle that's very related to this is that we really need to think of these systems and their success and failures similar to human colleagues that we work with. And if you onboard a human colleague and just gave them access to GitHub, let's say, they would not be set up for success because they'd be missing all of your communications on Slack, they would have no context about what sprint you're on or the tickets that are existing or the outages you're seeing in Datadog or whatever logging and monitoring and all these sources of information. Any good engineer needs access to that. And so it would be unfair to assume that a droid could do as good as a human if they don't have access to the same information. So for us we integrate with the entire engineering system and loosely you know if you loosely the more information you provide the better the performance will be assuming it is relevant information. So a failure mode could be you know if you integrated GitHub and Slack and then there was an outage and your droid didn't provide a good RCA could be well hey are you integrated to Sentry? Well then how could you expect it to have had a good RCA because it wasn't able to look at the logs. So giving access is kind of a really important thing to that end that you mentioned of really needing to have that full context of the engineering.
Does surfacing context for agents look different than surfacing context for humans? So you feed all this context into the system?
It's eerily similar in that we also have systems like memory that allow the droids over time to learn the best practices of the organization understand at a hierarchical level. So at the org level, but also you know this team versus that team or like this pod versus that pod, this repo versus that repo, there might be certain best practices. And as these droids work more and more, they get closer attuned to how does this organization in particular build in this repo? How does this team like to do these things? It's also configurable. So like similarly to a human engineer, if a human's like, 'Oh, hey, you know, I think we build software this way on this repo, you know, at this new team I joined.' But if they're wrong, the manager is like, 'Hey, by the way, we don't want to do that.' Or, 'We used to do that.' Or like, 'Or we used to do that, but we don't want to do that anymore.' Right? So there's kind of a balance there of like learning from the existing codebase, but then also forward looking of, you know, maybe the existing codebase had really poor test coverage. You want to make sure your droid is not gonna be like, 'Okay, great. We don't do test coverage here, right?' like you want to, you know, maybe raise the bar.
I mean, memory is a challenge in and of itself. How do you all balance memory and learning with what you said this configurable piece? Is that something that's prompted by a manager, engineers, etc.
On one hand, there is all of our memory is hierarchical because we want to make sure that we can kind of accommodate like different subsections of the org it even goes down to the individual level. Because you want to make sure that these are really tailored like I program differently than you do.
And just you know if I'm helping or if someone on my team is helping me out versus helping someone else out, they might have different priors in terms of how Matan thinks about certain things versus how someone else does. And so you definitely want agents to have that as well. You also want to have certain things that are configurable and certain things that are not. So for example there are some parts of memory where you want to make sure that you know the admin can go and say hey by the way like you know let's adjust this because we want to shift our org in that direction but then there are other things which is like understanding the ground truth of your code and understanding hey this piece of code was written because of this customer support ticket and we had this document outlining our like design plan to address that like these are things that you don't want to edit because those are kind of ground truth if that makes sense. Yeah, like this was the intent of the code and so it should do this.
Yes. And this is like almost like historical trajectories of like these are the facts of what got us to where we are today. And then there's also here's like the discussion that we're having in the opinions and how we want to move forward which maybe that part you want to be more configurable.
How do you think about storage in this context?
So I guess storage in the sense of like where does this memory sit? Yeah. So, the configurable memory we want to have kind of up in the face of the user. So, that also makes developers more familiar with how LLMs and agents work because that's actually another thing that I think is maybe under discussed is that the more developers understand about LLMs and agents, the better they engage with them and the more they get out of them. So, it's really in our interest to not hide anything from developers, but in fact show them as much as we can that's under the hood so they get a sense of, oh, I see like this is how context is managed. these are how tokens are used more efficiently in this way. And so similarly having them see some of these things like memory and how memory adapts. So like we'll inform a user if the droid was like hey I just added this new piece of information to my memory and then that gives them the insight of like wait actually like don't Yeah. Yeah. Yeah. No. Or or like wait oh my god that's so true and there's these two other things that I've forgot but I should add into memory as well.
Yeah. I mean that makes a lot of sense. One of the very first things you said was when you were playing the orchestration game, one of the pieces that can be missing is just if you don't have the right context. And so this is an element of making sure the developers are in the loop of like the droids have the right context at all times.
100% 100%. And then when you think about agent-driven orchestration and having these droids that do different things, how do you you know I think when you were started in 2023, there was definitely a camp that said there's going to be one model to rule them all that will do all of the tasks in the software development life cycle. I don't know what was the most popular camp, but I'm curious how you think about dividing which droid how many droids should you have? You know, like what is the granularity of a droid? And then I'm also curious what the most challenging droid to build is of the ones that you've decided to build.
Totally. Yeah, that's a great question. I think the segmentation like kind of droid by droid is mostly for better user experience. Because in general some of these tasks have different workflows like reviewing code is generally a different workflow than writing code which is a different workflow from doing a root cause analysis of an outage. Now a very AI native developer would be able to do any of these with kind of a general purpose agent and could kind of guide it the right way. But we also want to optimize for ease of workflow and for automation like if you want an RCA to automatically be generated for every Sentry issue like you actually want to have kind of a predetermined workflow that the agent will go through. And so I guess yeah, I would say it's more of a UX consideration as opposed to a capability consideration because for the most part, the performance, if you guide an agent in the right way, if you guide a droid in the right way, you can get, you know, strong performance either way. If you're going to set up an automation where you want, you know, this droid to always be engaged whenever, you know, this thing happens, you do want to have some guidance on like, hey, here's how we do RCA. like here are the things that we want to give you access to because even though LLMs are getting better and better, if you can do something deterministically as opposed to, you know, probabilistically with an LLM, you kind of always want to do the deterministic side. And so if you can add some deterministic guardrails, it ends up helping on the reliability side of things.
Well, I'm you know, one of the things that you mentioned is that when you go into enterprises, there is an element of handholding and working with the codebase. So I'm curious when you talk about it at the droid level, how much of that is bespoke per organization versus how much of that you know are there roughly the same workflows and you see the same things across different orgs. Obviously software development is very different org by org but the general processes are very similar like in general doing an RCA like you need to look at the logs you need to understand which code which like where in the codebase was the relevant lines that led to this issue when was this change implemented into production? What was the reason that we put that in? These are things that whatever tools you use, you're generally going to have these loose steps. Now, there might be an org that we work with where we haven't built an integration for their monitoring tool yet, in which case, you know, we'll go and help tool that up for them. And generally kind of going through the motion with some of their like kind of engineering leaders is helpful so that they get the right mental model of like how to think through these things. But generally it's pretty once we show the first few people within an org, it's generally pretty self-starting and that they're like, 'Oh, okay. I got it.' And they can kind of take it and run with it. And yeah, and so some of the larger enterprises that we work with will kind of jointly work together on some custom workflows or like custom droids for some specific use case that they have just to get even more optimization or automation in there. But yeah, does that answer that?
And you know, you have these different models and you have different droids. Is there one that is you would consider to be the most challenging workflow?
I think the one that's probably the gets the most attention for natural reason is also the most general is the code droid because the purpose there is just the coding part itself which you know obviously it's extremely open-ended. You know, that's the one where we'll have people on our
self-service plan who have never been developers before go in and use it. And then we'll have people who are doing like kernel optimization use the code. And these are, you know, on one hand they're, you know, build me a website or build me a UI to do something. And then on the other hand, it's like, you know, optimizing something for like high performance compute, which are very, very different considerations. And so, you know, making an agentic framework such that it can kind of cater to both is interesting. But I think part of this kind of comes back to that first principle of like at the end of the day if you give an engineer, really good engineer, access to all of your engineering system they'll be good at mostly any task. It just is the question of like how immediate they get down to it or maybe it takes them like two hours because they didn't know this certain detail that you didn't explicitly mention.
That makes sense. Is there a part of the SDLC that you think is like will eventually be agentic but just is not there yet today? So like we talked about existing challenge being the generalizability of code but I'd imagine, you know, I'm not with enterprises every day but integration testing is probably more challenging than unit tests etc.
Yeah. So that's definitely true. I think one thing that's kind of an, this is slightly going around your question, but I think is going to be super relevant is in this world where you have a 100 droids working on tasks in parallel for you, eventually you're going to go from unit tests to integration tests and end-to-end tests. And these systems are better the more feedback loops they can do. And generally feedback loops for like unit tests aren't that expensive. Feedback loops for, you know, building out whatever it is that, you know, build, like running a build on whatever software you're working on, that can get really expensive very quickly. And if you have a hundred agents that are running build all the time to go and do some end-to-end test, your LLM bill might be, you know, comparable to like your CI bill. And so I think that kind of re-emphasizes that it might put a new pressure on having really cost-effective ways of like deploying changes and running some of these tests because otherwise yeah it might be a new bottleneck on the cost side.
Yeah, that makes sense to me. I think there are a lot of things where as the world changed the points of pain change and the commensurate costs can change too.
Yeah. And it will also put a new emphasis or new ROI really on having good monitoring and observability because asymptotically you want to get to a world where if you give an agent a task and it has some set of tests, you want to make sure if that set of tests is comprehensive enough such that you don't even need to review the code and you could ship it to production. Now any engineer would be like oh my god I would never do that. But if we got to a world where you could actually trust like what this suite of tests and if all of them pass then I am ready to like we can ship this into production that would mean that you can really like your parallelization of these agents is just truly complete like blasting open the pipeline of that SDLC.
Yeah. I mean it would set to your earlier point like a level of determinism that does not exist today in LLM coding.
Yes. But it gives you kind of this, it gives you this huge ROI of having better instrumentation set up on your monitoring and testing and observability because the more you can trust those tests, the less you have to do in the way of review, which means you can have more of these agents in parallel and your life is not just going to be reviewing code all day.
Yeah. Well, I guess it's good news. The last guest was Olivier from Data Dog and it's also good news for you because you're set up with all the observability systems.
That's right. Yeah. Yeah. And so you get that feedback directly to the agentic system. Is there anything that, you know, we talked about some of the challenges in enterprise, is there anything that really surprised you or I'll phrase it differently. What was the wildest use case that you've come across with real customers who are using the droids in production?
Um I think the one, so a couple things that were surprising. So, one PMs love Factory. I think the idea there is just they don't have a software development workflow. So, they're kind of like fully green field and so they're actually very willing to go and adopt this agent-driven development because they're not replacing anything. It's kind of net new. So that's been a surprise is like PMs just jump in all the time. Most of the orgs that we work with, they've now kind of raised the bar on PM deliverables where you no longer can just have like a product spec. It's like you need a working demo and if they don't, it's like just go use Factory and go do it. Like are you too lazy to do that? Like that's kind of the new bar that's been set which was interesting.
I've been for what it's worth Matan even more upstream of PM. So like when I worked in product I'd often talk to solutions architects, of course I talk to customers too but like solutions architects who are in the field with customers and now I've seen a subset of folks where someone talks to a customer and converts their call notes to like a PRD directly too and so yeah I think AI is cutting out a lot of this kind of conversation transfer information.
And it's also kind of smearing some roles where before it was like I'm in my silo and now I give it to you cuz you're in a silo and it's instead of like wait you can kind of like PMs can do some of the engineering stuff or like people on ops can actually instrument some of these like automations that might before have been like oh you need an engineer to go to build that. I think another thing that's been a surprise and this is way more in like the large enterprise side of things but there have been people who have been using Factory to basically audit their codebase to verify that they're like GDPR compliant which is very unexpected, very unexpected but it makes a ton of sense because if you have a super complicated system doing some of that auditing takes a very very long time. And having the scale of like hundreds of the effective like manpower of hundreds of engineers going in checking things is pretty cool.
That's a very interesting use case that I would not have thought of as someone who's both worked in product and had to deal with GDPR.
I think the second one, I think they both would have been saviors at different moments in time.