Why Agent Failures Start with Missing Context
Summary
In this episode of The Agentic Review podcast, Ashish Bagri, Co-founder and CTO of GlassFlow, joins Itamar Friedman and Nnenna Ndukwe to explain why many agent failures that look like hallucinations are really context failures. Ashish breaks down the three ways agents fail in production and how GlassFlow uses successful runs to catch the silent ones. He also walks through the open-source software factory his team uses to build its own product, from orchestrator and builders to an independent reviewer that keeps every role in check.
this episode’s guest
Ashish Bagri is the Co-founder and CTO of GlassFlow, the Berlin-based company behind Tares, an open-source data and context platform for agents, and Rius, an agent observability platform. Ashish has worked in machine learning for more than 16 years, building AI algorithms long before transformer models went mainstream. Under his technical leadership, GlassFlow moved from large-scale, real-time data processing, handling 80-90 terabytes a day, to an AI-first company focused on making agents reliable enough to run autonomously in production.
Key takeaways
- Why many “hallucinations” are really context failures
- How successful agent runs become evidence for flagging bad ones
- The three types of agent failures, and why silent ones are the hardest to catch
- How a factory turns repeated review feedback into standing rules
- What a modular software factory looks like
- How to choose your first software factory project
Chapters
- What Is a Software Factory?
- The Three Types of AI Agent Failures
- How the Tares Software Factory Works
- How a Software Factory Learns From Its Own Work
Transcript
[00:00:01] Ashish Bagri: If you have a small task which takes maybe 10 minutes, that’s not a good task for a factory. Where the factory actually shines is for a long hide and cost.
[00:00:10] Itamar Friedman: Welcome to The Agentic Review, the podcast where we explore what good code really means in the age of AI software development.
[00:00:19] Nnenna Ndukwe: I’m Nnenna Ndukwe, Developer Relations Lead.
[00:00:22] Itamar Friedman: And I’m Itamar Friedman, the co-founder and CEO of Qodo.
[00:00:25] Nnenna Ndukwe: So, let’s get into it.
[00:00:30] Itamar Friedman: Today, we’re joined by Ashish Bagri, co-founder and CTO of GlassFlow. GlassFlow develops Tares, which organizes data and context for agents, and Rius, its agent observability platform.
[00:00:42] Nnenna Ndukwe: His recent writing explores why agent failures can begin with stale or incomplete context. So, we’re going to talk about how that shapes the way teams build, review and operate software with agents. Ashish, welcome to the show.
[00:00:56] Ashish Bagri: Thanks, Itamar. Pleasure to be here.
[00:00:58] Nnenna Ndukwe: Really excited for you to be here. Is there anything that we might have left out about what’s been top of mind for you, what you’ve been working on, focusing on lately?
[00:01:06] Ashish Bagri: Yeah. So, as Itamar mentioned, Tares is a platform which organizes data for agents and we have been developing that further. So, that’s an open-source platform, and with the community, we’ve got exciting use cases built on top of that. And the most recent thing that we are exploring further is building a software factory using Tares as a backbone. So, yeah, happy to go further about that in today’s episode.
[00:01:33] Itamar Friedman: What’s a software factory?
[00:01:34] Ashish Bagri: Software factory. It’s a good question. So, there’s no defined definition. Software factory doesn’t have a clear definition yet. So, we kind of came up also internally, but I think the concept is pretty standard across when people talk about it. So, for us, a software factory is a system that takes in a spec and produces software. So, just like a factory which takes in a spec or a blueprint and produces a finished product. For a software factory, the finished product is software.
[00:02:02] Itamar Friedman: Amazing. And by the way, like, I think that’s what I did also 20 years ago, right, just humanly, like, I got a spec from product managers or so, and then I produced software, like, at the end of it. Right?
[00:02:16] Ashish Bagri: And now, it’s “no Itamar behind a keyboard. It’s agents writing the code.”
[00:02:22] Itamar Friedman: Yeah. Okay. So, it’s about the idea of automating, like, the software development to the point that it’s autonomous, like, end-to-end. Right? Like, it’s taking the spec all the way to software and leaving not the common, like, mundane decisions, but rather the high-level, the most high-level user judgment on how we want the software to look and what the policies and, like, the guardrails are, and what makes it, like, the next-gen software factory, right?
[00:02:52] Ashish Bagri: Yeah. True. I mean, like, so agents writing code, right? Like, I mean, at least at GlassFlow we sat down and looked at, like, how much code did we actually write by hand, and it was like, except for some infrastructure code, basically everything was written by agents, right? But what makes it different now, with the rise of AI? Like, there’s a lot of code being produced, right? And everybody’s writing code, but with so much code being shipped, everybody has a different workflow when it comes to actually, like, the code being in the repo, into the production systems. What the software factory tries to do basically is to actually build the process around that, right? It’s kind of like the next way of doing software development and a new way of doing the software development life cycle, which involves not just simply the code, but how it gets reviewed, how it gets deployed into different systems, whether it’s dev, staging or prod, who manages the context that’s given to the builders, who’s actually writing code, like AI systems that are writing code and what humans basically do. The human is still a very important player in this ecosystem. What gets left to the human is the most important piece in deciding what needs to be built and when the output is good enough, basically, right? So, the way we are trying to build a software factory is, well, as a human, you’re looking at 1 terminal or 1 screen rather than managing 20, 30 different Claude Code sessions, for example, right? And you are only involved when there’s a decision that needs to be taken, which the agent does not know how to make, right? Like, where it’s a critical decision, it comes back to you, but again it comes back to you on a single terminal rather than you having to juggle across 20 different sessions at terminals, right? So, that’s basically it, and it kind of came about by looking at the pieces that we were building internally. So, we sat down, to be honest, and interestingly, I ran a workshop with my team, basically, where we said, “Hey! What are the components that you had to build yourself, actually, in the past couple of months?” Right? And we came up. Like, people had interesting tricks, workarounds, systems that they had built out. And when you start to put it together on a board, it starts to feel like, oh, this actually is like a system, not just a clever prompt, not just like an MD file sitting somewhere, but an actual system. And that’s kind of what brought us to this current shape with Tares and an actual software factory.
[00:05:21] Nnenna Ndukwe: That’s awesome. What was the customer problem? And what is the customer problem that you’re focused on solving for? And has that evolved over time with GlassFlow?
[00:05:31] Ashish Bagri: So, with GlassFlow, basically. Yeah. So, till the end of last year, we were actually building completely non-agentic. Right? Like, we were basically building a large-scale, real-time data processing system that was feeding data into ClickHouse, and we were processing several, like 80, 90 terabytes a day in our system. So, we had a very large-scale, scalable system, but not agentic. We were basically running non-agentic, mostly analytics and log workflows, like observability workflows. And towards the end of last year, kind of, our customers were asking more and more about observing their AI systems, their agentic systems basically. Right? And we looked at that. We looked at where the customers were asking us to go, where the market was heading. So, it kind of felt like to take the company also in that direction. And that’s where we kind of like pushed and started building again. Like, starting with observability but in the agentic world. Right? And from there, that’s our Rius product, basically the agent observability tool. Starting with that, we started building Tares for solving gaps in the AI orchestration workflows that we found, and there was a solution around it. We started building that as an open search project and slowly started to take shape, basically by supporting Rius and then customers of Rius, but also getting independent users trying our tool and trying to give us interesting use cases. So, this is how the journey of GlassFlow evolved into basically becoming an AI-first company from a data-first company.
[00:07:00] Itamar Friedman: How does it feel to do that transition, and how is the dogfooding looking? Right?
[00:07:06] Ashish Bagri: Yeah. Dogfooding is awesome. Right? It’s great to be able to build the product and then use it every day. Right? We are building the next version of Tares, using Tares as a software factory. Right? So, Tares is building itself, which is very interesting to see because you start to see challenges way before a customer would ever see them. Right? And you’re able to always ideate and improve on the product every single day. But moving to AI was, like, it feels great because I have, personally, a background in machine learning, so I actually studied machine learning. 16 years ago, I wrote AI algorithms way before LLMs or transformer models were a thing. So, for me, I’d been in the AI space for a long time, and it was kind of natural to then go and build this even more with the current versions of classroom.
[00:07:57] Itamar Friedman: Yeah.
[00:07:58] Nnenna Ndukwe: This is why I wanted you two to meet: because of these similarities in your backgrounds. But go ahead, Itamar.
[00:08:04] Itamar Friedman: Yeah. My background is also in machine learning. I think since 2005 or something. I’m that old. So, I want to ask, like, why focus on context? Like, what is it about context? And I think Nnenna kind of hinted: what are the problems we’re trying to solve for our customers? And double-clicking on the context solution.
[00:08:25] Ashish Bagri: Yeah. So, we’re actually trying to solve a couple of issues in the AI space, but also a couple of issues with our customers. So, let’s maybe talk about, like, Rius for a moment, right? So, what Rius does is, on the surface, like observability for agents, right? Like, on trying to understand when agents are failing in production and how you can find those failures and improve those failures, right? And what we’ve observed basically is that there are three different kinds of failures, right, that the agents fail. One is a context failure, right? Like, when the agent doesn’t really have the right context or data to make a decision. From the outside, it looks like hallucinations, but more often than not it’s actually a data failure or a context failure. And that’s basically the first kind of failure. The second kind of failure is, like, just a harness failure, right? Like, a tool or MCP server not being available, a credential being wrong, and this is the most easy kind of failure to detect, basically, right, because it kind of fails loudly. And the third kind of failure, which is actually new in the agent world, silent failures, is what we call them, cognitive failures, right, where the agent, being probabilistic in nature, actually made a mistake in reasoning, right? So, with Rius, we are actually trying to solve all 3 kinds of failures. Also, we are doubling down on actually solving silent errors or cognitive failures, because this is the most interesting one, and this is the part that is the least defined, basically, because it’s kind of, like, there’s no, like, in a typical failure when there’s a credential error, you get a clear HTTP failure, right? But when the agent makes a failure in reasoning, there’s no well-defined failure, right? Like, so we actually have to build up the taxonomy of it, collect the right data and then actually understand what patterns can be used to understand that failure. So, what we’re trying to address with this whole approach, basically, for customers is: how do we give customers confidence to run agents in production and run them more autonomously? Right? Like, where customers have trust in the system, the agentic system that they have deployed, Rius is there to basically find, track and fix the silent errors that the agents are making.
[00:10:35] Itamar Friedman: Yeah. How do I know that Rius is doing a good job for me? Like, let’s say that we build our software factory and integrate Rius, for example and/or another tool, right, to try to observe and analyze failures. How do I know that it’s doing a good job? Like, how easy is it to differentiate between missing context and missing reasoning? Do you need, like, eval or a benchmark? Do I need to develop my own eval benchmark to check Rius, or is it coming with such for me?
[00:11:09] Ashish Bagri: Yeah. So, like, let’s maybe break down this question into a couple of parts. First is, like, hey, is it a context failure basically here that the agent did, or a reasoning failure? Right? With Rius, basically, as I said, we actually had to understand and catalog these kinds of failures. So, one of the examples, basically, what Rius can detect is a two-loop failure, right? Like, when the agent is actually, or the harness is actually, making the same tool call with the same parameters, right? And if you see that in a session, you know, it’s doing that several times, right? So, that means that it is stuck in some kind of loop when it’s actually going nowhere, or a failure, which is even harder to detect, is a tool called Mist. It should have actually made a tool call to get the value from an MCP tool, but for one reason or another, it just made up a number. Right? It just made up the reason.
[00:12:01] Itamar Friedman: So, how do I know that Rius understands it? Is there any evidence of correctness to some extent?
[00:12:10] Ashish Bagri: Exactly. So, there is. For some of these failures, right, like, there were some studies earlier this year which kind of detected that, like, between 10% and 12% of agent runs basically had some bona fide failures, right, which also means that the other 88% did not. So, with Rius, we use the successful runs basically as evidence on what kind of flow that the agent should do, and then use that basically to understand and give users this visibility that there was this failure in this specific run. So, we start off basically by flagging those runs, right? So, the different autonomy levels that users can choose, starting from saying just flag it so that the user can go and verify and say, “Oh, yeah, actually this was a failure to fix something, so don’t let the run complete.” So, for example, you had, like, an agent which was, kind of, let’s say the internal tool which was producing an RFP document for an end customer, right? Like, Rius is observing that it can flag, saying, “Oh, look, there is potentially a failure here because the agent kind of made up this number. It did not use this tool call for the past 20 runs. It was using it. Here, it did not.” So, it can start by flagging this so that the human in the loop can basically go and fix that. And the fixing could look in different ways, right? Sometimes, just rerunning that workflow could fix it. Sometimes, you can extract some insights and update the prompt or update the rule, basically. So, that’s the first level of understanding the failure, flagging it. And what we’re now building basically is a steering, right, where, with reviews, we want to actually steer the agent so that the mistake never actually even surfaces, right? Like, where you basically can identify, look, the agent is going down the wrong turn or taking a wrong turn. With Rius, we can send the signal back to the harness and then force the agent to rerun the failure where it started. Right?
[00:14:11] Itamar Friedman: What makes it, like, special for a software factory and not also for a customer support factory or a financial factory? Like, it sounds like a building block. Why focus on software? Why is it specifically working for software?
[00:14:28] Ashish Bagri: Because Rius actually is agnostic, to be honest. So, with Rius, we have customers who are not just building a software factory, right? So, for Rius, we have customers who are running agents which are creating, like, so we have agents which are doing different kinds of workflows. We have customers who run agents just producing documents, or we have customers who are running agents doing data analysis, right, like doing BI analysis and so on. So with Rius, it is more agnostic. So, it’s more widespread than just a software factory. The software factory plays a role, basically, with some of our other products, Tares. So, Tares is basically where we actually focus a lot more on the software factory vertical.
[00:15:10] Itamar Friedman: Interesting. Just before we move there, Rius, basically, agent observability in 6 months, 18 months and 5 years. How do you think it’s going to look?
[00:15:22] Ashish Bagri: Yeah. With Rius, basically, the next 6 months we what we want to get, as I said, we’re building this agent steering framework, right? Like, so we want to actually have customers on this agent steering framework in 6 months. In 18 months, we actually want to extend the product where we have a lot more cognitive failures cataloged and understood, because this is actually like an ongoing process, right? Like, within every harness release, every model release, you start to see some of the old errors disappear, but new errors appear, basically. Right? So, it’s kind of a constantly developing process that you actually need here. So, in 18 months, you want to get to a big enough catalog that we are able to detect almost all kinds of silent failures and extend the product to actually do more guardrails because we believe, like, that one of the key pieces to actually get the system, especially large companies, actually running systems, AI systems in production, they need strong guardrails. And by guardrails, we just do not mean, like… So, you want to actually build dynamic guardrails, basically, right, like where there is a short-term outage, for example. And let’s say your agents work with Stripe. “Let’s shut them out, Agent Stripe.” You want to add a guardrail in your system temporarily, saying, “No invoice gets processed this time because there is a temporary outage in Stripe that I know about.” So, the agents don’t completely fail, right? Like, they don’t fail loudly, like, do I get error 403 on Stripe, for example. But they actually have a guardrail saying, “Oh, I’m not going to run this.” And it kind of recovers as soon as the dynamic guardrail goes off. So, we built it basically. In 18 months, you want to get to park, which has all of these pieces. In 5 years, it’s actually a very difficult question, right? Like, we’re seeing the speed of AI development. It’s hard to answer what 5 years looks like. But I expect that companies will have, like, companies of any size that have tens of thousands of agents running. Right? So, you actually need a platform that’s able to coordinate and understand, because as a human, you’ll not be able to actually even monitor all your agents. Right? So, we’re kind of, like, building towards a vision where Rius is, like, this umbrella platform basically, which is able to understand and work with different kinds of agents that the company has, and that could include software factory as well, but also any kind of internal or external agents that you have built and is able to kind of, like, not just monitor, but also coordinate and recover those agents from different kinds of failures.
[00:17:53] Nnenna Ndukwe: There were a lot of different things that you said that I thought were interesting. I wasn’t expecting you to say that documenting or keeping track of what good agent runs look like is what can allow you to uncover what agent failures look like, especially when you don’t have the visibility, or when you’re still trying to grow that catalog, you said of different types of failures. So, that was super interesting. And then the whole classification of failures thing, I think, is also interesting because you said in 18 months, you think you’ll have a bigger dataset or be able to categorize most or all of the different types of agent failures that exist.
[00:18:34] Ashish Bagri: Yeah. True. I mean, the cataloging actually is like a bigger industry exercise as well. So, in like a month ago or something where we were in Amsterdam at this AGNTCon, right, like, where I actually met several people who are in different working groups in AIF basically who are kind of working towards establishing also this catalog, right? Like, on what kinds of different cognitive failures do agents do. So, you see industry effort basically from a few different pockets who have understood that there’s a need to actually, like, you can’t really fix something which you don’t kind of observe, right? And right now, most tools or almost no tools, are able to actually observe these kinds of cognitive failures. This is an ongoing exercise, basically, that will take, to be honest, like more effort than just simply GlassFlow focusing on it to, for us to get to a point where this kind of can be, like, so basically, we imagine being in a stage where every tool right now builds protection against a 404 error, right? Where it knows that, okay, look, this is not available: 404. And then every tool, every system has an implementation of how do I handle 404? I expect that in 18 months’ time, we have this kind of standardization basically, where then every tool can then pick up and say, “Oh, I need to implement what the tool qualification looks like for my product, basically.” Right? So, getting the specification is super necessary.
[00:20:13] Nnenna Ndukwe: Right. That’s exactly it. I was like, hold on, this has to be bigger than just you all. Because what you’re talking about is something that could be standardized, right? And you just said that. That’s awesome.
[00:20:22] Itamar Friedman: And then if we go to tariffs, like, that’s more specific for software factory, right? And what, kind of, software factory-specific context is there and why is it solving like a major problem?
[00:20:36] Ashish Bagri: Yeah. So, Tares, kind of like found its way towards the software factory, to be honest. Right? Like, Tares, basically, when we started building out Tares, the initial idea was to put data from different data sources together in one place, right, so that it’s agent-native. So, the initial idea of Tares was to build the AI-native data store. And then one of the first use cases where it got success basically was building an AI SRE, right? Because agent monitoring and, like, doing system reliability needs access to many different kinds of data sources, right? Like, whether there are logs, metrics, but also data sources like GitHub commits, release history or deployment logs. So, the first use cases of Tares actually were to build these kinds of SRE agents, and from there, basically, from monitoring and running applications, it kind of moved towards building those applications itself, right? And that is how the good fit. Because, like, an AI SRE collecting data from many different sources – a software factory actually gets data from many different sources, right? From your agents writing code to actually the code living itself in, let’s say, GitHub, right? Like to the CICD, to the building, the deployment logs, basically to monitoring the infrastructure itself, and then orchestrating all the different agents who are actually writing code, right? So, it needs a framework that can manage many different kinds of data sources, but also be able to orchestrate that. So, this is basically, and when we started, as I said earlier with Tares and the software factory, it kind of started as an internal use case where we found value. And then we ran a couple of workshops, actually, with the community, and people were very, very interested in what we were talking about. And that’s the beauty of open source sometimes, right? Like, we kind of go out to the community and then get feedback. People are able to try it themselves, make changes, do tweaks to the software and then tell you what they did or what they built, basically, right? So, this is where we are. And now we are doubling down on, like, extending the software factory with Tares and the differentiator, basically, for us, actually, for the software factory, is that we want to actually make it a modular, to build it in a modular approach, basically, right? So, for example, at the core, how we have built out our software factory, the first version was that there’s an orchestrator who basically manages everything that goes inside the software factory. And there are builder sessions who are actually writing code, and a common reviewer who is reviewing everything that’s been written by the software factory. And then the tariff is basically kind of, like, the record keeper. It basically records all the work that’s being done, all the decisions that are taken by the agents, all the approvals that the human did basically and keeps everybody in check, right? So, it kind of makes sure that the builder is only building and not, like, reviewing its own code, basically, right? Or a reviewer’s job is only to actually review the code, but not merge the code, right? So, Tares enforces this, basically, and this itself then is a factory, because as a user, you kind of look at the orchestrator and the orchestrator brings back any input that the factory needs from you as a human, right? So, you kind of have one window to clarify, to answer questions, to fill in the gaps in the specification that were left behind, and then the factory does a job. And so this was the first approach we took. We kind of went with what the review should look like, essentially. Right? And now we are building out a system which is more modular. So, for example, with Qodo, right, like, we want to add a review component basically, where users who actually have Qodo in their system can plug that into Tares software factory and then Qodo becomes the de facto, basically persona that’s responsible for saying whether the code is good enough to go forward or not, right? So, in the same way users might have, let’s say, Jenkins basically to run CI, right? And then Tares plugs into Jenkins, basically, and then Jenkins logs. So, the factory now has access to that data, essentially. Right? So, this is kind of our approach to make it more modular so that enterprises, large companies who have an established tool or a workflow that they’ve built out sometimes over a year, sometimes over 10 years, don’t suddenly have to overnight abandon all of that, right? And it can integrate into the software factory. So, what’s changing, basically, is who writes the code, right? But what we make better is the standard and the quality of the code that gets shipped. Basically, how much code can get shipped at that high quality, right? And the cognitive load on the user, on the human, right? So, this is what the software factory brings to the table.
[00:25:42] Itamar Friedman: Amazing. So, I’ll try to summarize, although that’s quite a comprehensive notion, like, of the software factory and Tares’s job in it. So, basically, we’re saying that, first of all, you need to have designated agents that have different, you know, roles; therefore, they have different rules and different guidelines and different permissions and maybe even different context. And then you want an orchestrator that is able to call, you know, the relevant coding agent, the relevant agent on the generative part, and then make sure that there is a process that is in place that also there’s adversarial parts that are like the code review and maybe other verification loop and basically make sure that each one is doing its job and otherwise giving an alert or telling human judgment. And then there is, like, tracking all of those sessions and having that auditability, being able to see what’s observed and audit what’s going on. And you’re saying that what’s important is that this is part of the factory, and there are other big parts: where are you managing your tickets? Where are you managing your support? Where are you managing your review? Where are you managing your codebase? And you want that factory to have plug-and-play into it. So, after that, basically, you take a meaningful part of your workflow from your existing infrastructure and make it more automated with orchestrated agents that each one is governed to do its part in the process. That’s my summary. Like, your definition of the software factory and the tools that we discussed.
[00:27:34] Ashish Bagri: Exactly. Yeah. That’s an accurate summary, I would say. One of the pieces that we didn’t speak about, basically, that goes beyond what we just talked about actually is the part around, like, how do you then keep improving the factory itself. So, every work that the factory does basically needs to contribute back to making the factory smarter. So, a decision that we already have cases of that right now, for example, like every back-and-forth that happened between a builder role and a reviewer role, right? Like the reviewer is sending something back to the builder, you see that it’s actually happening for the same reason multiple times, right? That gets flagged as a rule, and then comes to you as a user saying, “This happened so many times, like 5 times in the last couple of days. It’s worth adding it as a standing rule.” And then you can go and approve and add a standing rule, for example, that the builder must always run a specific type of test, right? And then it gets codified into the system, and the next time the builder actually has that rule in place, and the factory enforces that rule. So, that’s like the first basic steps of improving it. But what we are also taking it to the next level is essentially including, like, an engineering second brain into the system. So, that also came across, actually, like, from community conversations and from early adopters is where does decisions taken outside the factory live, for example, right? Like, so there are whiteboard sessions basically, or Notion docs where people had worked on a proposal for a while, or there were some architecture decisions that were taken basically, right? So, Tares, the factory, basically, the software factory with Tares, gets access to all of these, and of course, with the codebase and tries to build up, like, a knowledge base within Tares, which then the factory becomes a customer, basically, or a user of the second brain and also feeds data back into the second brain. But what this also achieves is that it actually enables non-technical people to get a better understanding of what the software does and how it behaves. Right? So, starting from a product manager to even, like, an SDR, for example, could go into the system and understand how a particular module is working and then go in a direction where they understand what the product should do for them. basically. Right? Look, so if you have a product which is serving an SDR, the SDR basically goes into the system, understands how the system works, may not understand all the technical details, and that’s the part that doesn’t need to be understood by this user. Right? That’s subtracted away, and decisions that the factory can take. But what it allows the non-technical person to do is to describe a feature on how they would like to see it, from a user’s point of view, let’s say. Right? So, that becomes part of the specification, and then the factory basically takes in the user specification and turns that into a technical specification, which can then get built by the factory. So, you can go from, like, a user specification to a built product. Right now we are at a point where it goes from a technical specification, which you do together with the factory and then goes to software and then
we’re moving in a direction where user specification gets turned into a finished product.
[00:30:52] Nnenna Ndukwe: So, one of the future benefits of the software factory is that it will be able to cater to non-technical people as well in what ultimately ends up being built.
[00:31:04] Ashish Bagri: Yes, definitely.
[00:31:05] Nnenna Ndukwe: Without the engineer being, I guess, the person in the middle or the practitioner trying to be in the translation process.
[00:31:13] Ashish Bagri: Exactly. Because, like the factory has learned over time the engineering practices, the architecture decision records that were taken basically, it has access to the running systems, along with, of course, the codebases to have enough confidence to translate user specification into technical specification and then into the codebase. Right? So, there’s always, like, a human in the loop, right? Like, it’s designed basically so that at any given stage, a human can go and, like, look at all the decisions that are being taken and override them. Right? So, that’s always possible. It’s not, like, a black box completely, but it builds enough parts of the puzzle that a non-technical person can then produce software.
[00:31:55] Nnenna Ndukwe: There’s one more question I have, because now I’m just like, wait a minute, there must be different configurations then of Tares, or is that something you have or something that you want where there’s a more aggressive version of the software factory, and I guess maybe there are levels of autonomy. Can you configure?
[00:32:16] Ashish Bagri: Yes. We already have, like, levels of autonomy, right? Like, so there are still technical levels of autonomy right now, and not, like, the architecture or, like, software-level of autonomy, let’s say. But, like, what we already have are levels of autonomy where you can decide. So, every work you’re doing with Tares is a project, right? So, you can define the autonomy level at the entire factory level. You can, let’s say, do L3, where all the work that gets done is basically a PR. It stops the PR, right? It doesn’t do it; like, the software factory’s work ends there. But you can basically go and configure it at each project level or at a milestone level in the project, where you can say some of the projects are internal projects. I’m happy that these projects get merged into MAME. So, go to L4 or even deploy it to a certain environment, right, to L5, where it also takes care of deployment. Or for some other projects, you can connect TAM to L3, for example. So, you have that level of autonomy already implemented in Tares and enforced by Tares, basically.
[00:33:17] Itamar Friedman: Out of continuous learning, I think it’s really important and interesting. I’ll start with a simple question. Who or what is in charge of continuous learning? Like, just before you answer, I’ll double-click on context, pun intended, that basically, we’re talking about the delivery plane of the factory, and we’re talking about the software factory plane itself. Like, basically, we’re pushing packages through the software, like work packages, right? Even the PR is actually moving from the main unit of work to a subunit. Like, you have a work package; it has, like, 1 or maybe 15 PRs, and you want to get it done. But then you also have the software factory plane itself that you want the machines to approve the stages, to approve the guardrails, the validations, the processes; maybe you remove a machine, put a machine, divide it into two, getting that continuously evolved by itself, semi-automatically or semi-automatically. Who is in charge? What is in charge of it? How do you verify it? How do you verify the verifier, you know?
[00:34:28] Ashish Bagri: Yeah. I mean, who’s kind of like looking at the factory itself, right? Like, who’s checking? Who’s keeping an eye on the factory itself, right?
[00:34:36] Itamar Friedman: And especially the continuous learning part. Yeah,
[00:34:39] Ashish Bagri: Yeah. So, continuous learning, as you said, like there are two stages differently, right? Like, one, of course, is the work that’s being delivered, right? Like, so PR is a very small unit of work now, right, and so the continuous learning of the entire system – how it runs, what’s being built and even what is supposed to be built, like future plans – all of these, we believe, are part of the second brain. Basically, the factory’s job is to actually deliver, to ship, right, and the second frame, which is connected and is part of Tares, is connected to the factory, is the part which basically is continuously learning, evolving and adapting. Right? With different kinds of data signals that exist within the organization, whether it’s like project documents, proposals that have gone out to customers, whether it’s financial, like shareholder reporting, I mean, whatnot, right? And then it could even plug into external signals, where the market is moving, or what the competitors are doing, basically. Right? So, all of this is part of, like, the second brain, which is like improving and self-learning what the company is about and how to make a project better. And then there’s a self-learning of the factory itself, right? Like, starting with something simple, like which kind of model works best for some kinds of tasks, right? Can I adopt a different kind of model for a specific builder or task? And have I learned from evidence as a factory? Have I learned from evidence that I should basically be doing something different here? Or the learning of the factory itself is like you said, like, I mean different kinds of architecture might be necessary as the system grows, basically. Right? Or a new connector gets added to the factory, right? And then how the factory readjusts itself to be able to support that different connector, right, whether it’s a new security tool that got added to the factory by the customer. So, the first answer for the knowledge part was the second pain, basically, that we’re building and evolving. And for improving the software factory itself, we basically are trying to collect telemetry and data from the agents, right? And this is where we basically start internally with Rius as well. And we treat that as a separate part, right? So, it’s not within Tares. Like, it’s a separate, independent player in this case, right? And then the telemetry of all the factories goes into Rius. From there, we extract insights on what kind of builders were stuck and made mistakes, right, and try to improve builder configurations, right? And a builder here is like a session that is actually responsible for writing a shipping code and delivering a specific ticket or a milestone. Right? So, Rius is kind of like the overarching, and that’s what I mentioned basically earlier, where we see, how do we see like things going in like 18 months and 5 years, right? And the factory becomes one of the things that’s being completely observed and monitored basically by Rius. And then Rius delivers insights to the factory, basically, on what needs to be adapted. We’re already trying, for example, like, a connector between the orchestrator in the factory and Rius, right, because the orchestrator is able to see a lot of things that the internal systems are doing, but not everything, because it’s not always keeping track of every tool run that the builder does, right? Like, it looks at checkpoints, milestones and the outputs. But Rius is looking at everything. It’s observing every tool call, every span that goes out. So, we’re basically building a bridge, kind of like a small bridge between the orchestrator and Rius. When the orchestrator is able to go and ask Rius, basically saying, “Hey, look, how’s my builder XYZ doing?” Right? Or “Didn’t have like any failures in the past run.” Or Rius can push to see that the orchestrator is saying, “Look, this builder is stuck. Or this builder has so many failures in the last half hour.” Right? And then the final call is still with the orchestrator. The orchestrator could say, “Okay, I need to kill this builder and restart a new one.” But it gets more information. It gets more information, more eyes and ears on what is running in the factory. So, this is how we want to improve and build upon, and make the factory also like a self-learning organism, basically, which is improving the infrastructure as well.
[00:39:05] Itamar Friedman: Let’s say that, you know, like somebody wants to start, quote-unquote, doing software factory tomorrow. What do you advise? Like, as we said in the beginning, probably we’re all on our journey to build our software factory. It’s just a question: are we starting from L1, L2, or L3? Like L1, maybe we’re using L3, is like you said, sounds like an agentic SDLC. You’re using AI across your SDLC, but you’re still leaving it to humans to make most of the decisions, for example, if to approve a PR or not. So, each one of us is at a different part of the journey, and maybe it’s hard to give one piece of advice for everyone. So, whatever you feel like on a certain level or something that might fit everyone or something that specific engineering and specific autonomy level, autonomous level, which, what would you advise them to do tomorrow to start with?
[00:39:57] Ashish Bagri: Yeah, good question. So, everybody’s at a different stage in how much work they’re offloading to the agent, at what level. Like, I think when somebody wants to start tomorrow, I think choosing the right project actually makes a big difference. And when you want to evaluate and see the effect of the factory. So, if you have a small task, right, like, which takes maybe 10 minutes for you to run in a session, that’s not a good task for a factory, right? So, trying to build a workflow of a factory around that, you would not see the benefit, right? Like, so where the factory actually shines is for a long, hydrated task, right, like tasks that, for you in a session, would take you a few days basically to run. So, I would say each of us has some kind of a side project that they wanted to do, right? Like something that they wanted to build, right, but haven’t had the time to actually sit down and build it out completely. I would say that’s a good place to evaluate how a software factory can benefit you because that doesn’t change your workflow, right? Like, you basically had something already that you wanted to do, and now you can see the results of it, right? So, I would say pick a project that you wanted to always build and then start from being sure that, like, so you can see the benefit of factory essentially when you treat the factory as if it’s something that is going to give you a finished product, right? And the finished product, at least in my opinion, should be L3, right? Like, at least the PR that you can test, validate, and verify. So, start from, like, a side project, run a specification session in a direct session with Codex, Claude Code, whatever harness that you use, get a complete spec ready and then hand that spec completely to the factory and then see the results, basically. Right? And there you would definitely see the impact that a software factory can bring to your life. And from there, you can then expand onto your actual projects that you do on a day-to-day basis to start to actually then improve your efficiency basically at work.
[00:42:09] Nnenna Ndukwe: Nice. So, some experimentation before you scale up to more, probably more serious projects that you do for work.
[00:42:17] Ashish Bagri: Yeah. I can give an example, like what I did as a first project in the factory that I was building. Right? Like, I’m a father of two, so we are a family here in Berlin, right. And then, with two young kids, you have to manage a lot. Right? And at some point, we had a lot of cables with different notes and different schedules on a fridge. I wanted to build, like, a home management app that I could run on a tablet, basically, and it was customized to my workflow, how we run, basically, me and my wife run the house. We wanted to build it, but never had the time to actually build it out. So, that was the first job I did for the factory. Right? Like I spec’d it out in half an hour, gave it to the factory and at the end I got a finished product that I actually run and use every day now.
[00:42:59] Nnenna Ndukwe: That’s awesome. I love that example. I think there’s a common thread through a lot of what we have talked about here with GlassFlow, with autonomous agents, software factories, and that is data. That’s the thing that keeps popping up in my head. It’s like, in order to build great or better self-improving software factories, you need the data for recognizing patterns, and then to surface insights on how to make it improve. Then there’s the data on the visibility into agent failures, right? That data maybe exists, but it’s not visible to us in a way that’s classified. And so, you’re working on the classification of that. There’s always going to be an agent failure at some point, but the visibility into it is going to be critical. Just like how we’ve handled error handling traditionally in software engineering. And of course, data is what impacts context as well, which is what we spoke a lot about. Where is it that we can find, continue to watch the growth, the journey of GlassFlow and what you’re up to, any of your work? Where are you most active, you would say?
[00:44:10] Ashish Bagri: Yeah. Go to the Tares GitHub Repo. It’s open source, and this is where you would also see the factory in action all the time. Right? Like, so it’s github.com/glassflow/tares. T-a-r-e-s. That’s a good place to start, I would say. Yeah.
[00:44:30] Nnenna Ndukwe: Well, thank you so much for joining us, Ashish.
[00:44:32] Itamar Friedman: Yeah. It was a pleasure.
[00:44:34] Ashish Bagri: Yeah. Thanks, Nnenna. Thanks, Itamar. It was a pleasure talking to you both.
[00:44:38] Outro: If today’s conversation challenged how you think about AI and code quality, that’s the point. At Qodo, we believe that independent, context-aware code review with rules as guardrails is how engineering teams maintain standards at scale. If you’re leading an enterprise team and want to see how intelligent AI code review can reinforce governance, visibility and accountability in your workflow, visit qodo.ai to learn how we help teams turn AI productivity into production-ready quality. And if you enjoyed this episode, subscribe, share it with your engineering leadership circle and leave us a review. Until next time, keep humans in the loop, and keep shipping.
About the hosts