Safe + Fast
Barty Wardell and Nik Lebedenko of Vividata, aerospace engineers who build AI for airline operations, show how their small team stopped writing code by hand. Nik walks through their agent loop: well-scoped tasks handed to many agents in parallel, sandboxed environments, CI and automated review, a tool that finds duplicated code, and lessons fed back so mistakes are not repeated. They share the numbers, how sales and engineering merged into one team, and what changes when code is cheap.
Chapters
Full transcript
The complete talk, organized by section.
Host Intro (Gene Kim)
I am very excited about our next speakers, who will give us a glimpse of the strange new world of software that is emerging.
Barty Wardell is the CEO of Vividata, a London company who, among other things, have been building AI operations software for airlines. He and his co-founders are Cambridge aerospace engineers, including Nik Lebedenko. They met building rockets together at Cambridge.
Ben and I met Barty a couple weeks ago on a call he took from Lisbon straight after the World Aviation Forum. He came to us through Tom Commons at Number 10, who had just seen Barty present at Downing Street.
Barty blew us away with a proof point that you can use AI to help create mission-critical production systems for airlines that support flight scheduling, crew scheduling, and maintenance scheduling for some of the largest airlines on the planet. And for those of you who don't know, aviation is one of the most regulated industries on the planet.
So here to tell us about their amazing adventures, Barty and Nik.
Barty Wardell
Thank you for the kind introduction, and it's great to speak to so many of you.
Today, we want to talk about our kind of odd exploration of how much of our own software engineering we can automate, and our quest for the safe and fast grail for doing this in a regulated industry.
We work predominantly with airlines to help them automate their operations and maintenance planning. And we did this and embarked on this project because we had no choice with such a small team.
In terms of how we got started, as Gene said, we started off as researchers in Cambridge, and then moved to London to avoid the twin evils of either investment banking or becoming a PhD student, where we met the owner of a Southeast Asian airline in Vietnam who said, "Would you like to come and help us transform our airline?" And we said, "Yes." Booked one-way tickets to Ho Chi Minh City in Vietnam. Moved around the world.
At the time, it was a team of five of us, and we dropped our lives and lived in the maintenance center and operations center in an airline and learnt inside out how it worked, which was quite nuts. And we then spent four months there in total, and came and spent a lot of time helping them improve their operations and software, and then learnt a lot that we've now taken to Europe and America, including most recently partnering with customers like Ryanair, which is the second-largest airline in the world.
So what do we actually do in practice is a good question. I won't bore you with a load of aviation details. Broadly, it's two things.
One is, can we help airlines do their maintenance in a shorter amount of ground time? The answer is yes, and it's pretty complicated.
And the other one is, when things go wrong, you have an aircraft on ground, or you have a really delayed flight, can we optimize what happens with the crew, the passengers, the mechanics, the ground staff to reduce the amount of disruption?
Many of you, I'm sure, travel. Most of you will be hating the experience at the moment. There's a ton of delays. It's going horribly wrong. Our mission is to make that less bad.
But as you can probably guess, this is mission-critical software. Screw this up and people are rather upset with you.
However, we have a team, at the start of five, now still less than 15 people, less than 10 engineers. We were tasked with building software that typically would've taken a team of about 20 engineers about five years. We had 18 months to do it with about four people. So that was problem number one. We didn't have the headcount. We didn't have the time.
We operate, as I said earlier, in a super regulated industry, so we can't try things and have it go wrong. And lastly, we have to do a lot of R&D. It's not deterministic. We're not building something that's known. It's a very hard optimization problem. And so a lot of our time is spent to trial various research pathways, and so we needed to move incredibly quickly.
So this left us with basically no choice but to embark on the following question of, can we not spend our days writing code? We have other problems to solve, like figure out how maintenance planning works, figure out how an operations center works in practice.
Can we imagine the kind of grail environment where our engineers are not actually spending hands on keyboards at all, or even managing agents, but actually just focused on the other valuable technical problems that we have?
And this is a question that has taken us down some rather odd rabbit holes, and today we want to present the rather stark results on the other side.
The short answer is yes, although I imagine this leads to natural suspicion amongst many of you. And it, for sure, for us, has led to more questions than answers. But in terms of our background, we're both aerospace engineers, and we were very suspicious about the ability for much of this to be as automated as we have now made it entirely. And so we have also gone on a very significant journey of our own trust in the things that we've built.
But this has been really led entirely by Nik, who's our CTO, who I met in Cambridge, who managed to basically ratchet us up from individuals being sped up locally in our network with AI all the way to end-to-end code writing that's triggered completely autonomously. And so he's going to be explaining in a lot more detail about exactly what we've done and how we've done it.
Nik Lebedenko
Sure. Thanks, Barty. So yeah, of course, when you're starting off with code automation, a lot of what you'll be doing, especially in the early days, is using tools like GitHub Copilot or Cursor, where a developer might be focusing on one file at a time or one function or resolving one particular failing test. It's definitely a big productivity lift, but the developer is still very much in the loop. So there's not really much parallelism that you can get out of that.
As you move further towards having more workflow autonomy, you then get to the second stage where it's a single touch for a PR or a code change, right? So a developer will just have a well-scoped task handed off to an agent, then that will get you to a PR, and that's great once you can get that engine really solid.
But from then on, what we discovered once we got there is that actually the problem now becomes, or the bottleneck becomes, task generation. So we're actually just running out of things to do that are well scoped enough, where we just need something that we can hand off to an agent without needing to go through some sort of UAT or BRD or whatever it is.
So yeah, the next point is then getting external events to trigger end-to-end zero-touch PRs. So, of course, the question is how exactly do you do that, right? So to go into more detail about each of these steps.
In the first stage, the developer is the orchestrator. So the developer is starting off with some prompt or some steer to an AI agent, and then the AI agent produces some output. It's varying levels of quality. The developer then has some taste, and this is where senior developers become very important in this sort of loop, where they are the feedback mechanism. But yeah, that's very mentally taxing, and of course quite slow and not very parallelizable.
So we lived here for a while. Certainly, I lived here for a while. I was initially very skeptical about the possibility of automating this stuff, and then I kind of took the thought experiment of like, well, what if it was possible? What would we have to do to get it there?
And so the next stage that we got to is to actually invert things a little bit. So instead of the developer giving feedback to the agent, instead the agent produces code, it goes through a PR, it goes around to CI, and then CI gives some sort of validation, some sort of feedback, and that goes back to the agent to go round and round in a loop to produce high-quality outputs without the developer constantly having to prompt it saying, "Don't do this, don't do that."
So that goes round and round, and the real lift here is making CI really good. So then the developer doesn't have to be giving feedback all the time. And then once that finally gets past CI, then the human gets involved and can then decide, do I want to keep this, or do I want to throw it away, or do I want to rewrite it?
So yeah, the developer is here just for defining the task and approving or rejecting the change.
I can stand here and talk about pretty diagrams all day, but the question is, how do you do that? It's not trivial. The devil is very much in the details. So let's go into a bit more detail here.
So if we talk about the first section, which is the context, you need to give the agent enough information to be able to get the job done. If the agent doesn't have, for example, all the code that it needs to understand to be able to get the job done, it just won't be able to do it, and that's not a problem with the model. That's just a problem with the information you've given it.
So what we've done internally is, once upon a time, we had hundreds of different repos, and then we moved to a monorepository situation where lots of different projects across lots of different clients are all living in one repo, so it's all just there. There's less friction for the agents to be moving around.
We also have all of our documentation and our standards and our product documents all in GitHub alongside our code. So anything that the agent needs to understand, it's all there.
And we have given it access to sanitized logs across all of our environments, including production, so that then it can diagnose and fix problems in production without us having to be the proxy between it and log access to production. So that massively speeds things up and makes it way, way more powerful and expands the scope of tasks it can take on.
The second box is talking about workspaces. So initially you'll be just running it on your laptop. You're running Codex or Claude, whatever it is, on your laptop. That's problematic. So the reason why that's problematic is permissioning.
So there's a lot of very embarrassing stories online of people on Twitter who've had their production databases dropped because they gave Claude their admin tokens and just were pressing yes on all the permissions. You can't be doing that.
So you have to containerize things properly, add proper sandboxes, so that then the agents have access to exactly what they need and nothing more. So you're not giving it access to deploy to production directly. You're not giving it access to the production databases, et cetera.
You make these fake environments for it to operate in, so that then it can have its own complete clone of an environment equivalent to production, where it can test out things and see whether it can reproduce a bug and then fix it appropriately.
And so you need to make this repeatable and you need to make this scalable, because very quickly, what we've discovered is we've run out of RAM on our laptops just running all of these agents simultaneously. So very quickly, you just need to be able to scale this into the cloud.
And the final, I would say arguably the most important part, is very restrictive checks before merging a change. So this is not some skill file. This is not us saying, "Claude, please don't make mistakes." This is us actually checking things.
In the CI suite we have a ton of checks, which I'll go into in more detail in a second. One example of which is deduplication. Claude really likes to duplicate code. We have to ban that somehow.
And we have, of course, agent review panels, but we definitely heavily try and rely on making things as deterministic as possible. You can't be relying on agents for everything. You have to try and limit the amount of workload that they have to do and try and make things programmatic as much as possible.
So to go into more detail about one of the checks. One day, I got frustrated of reading the 15th duplicated CSV parsing function, and I decided to build a tool which finds semantic duplicates. What does that mean?
So traditionally, deduplication tools, what they do is they rely on exact text deduplication, or near exact—you switch a variable name or something. So these don't really work when you've implemented the same sort of meaning of a function without implementing it in the exact same way.
So what our tool instead does is it takes the codebase, it chops it up into small chunks, either functions or indentation levels, whatever it is. It converts those into meanings, and what are these meanings actually encoded as? They're encoded as like 1,000-dimensional vectors. They're stored in a database, and then you compare which two vectors are too similar.
If the vectors are too close together, like this cluster over here, then you can say, this cluster is too similar. We have to get rid of it. It's banned, it gets caught, and we have literally just like, from this line to that line, this is a duplicate of this other part of the codebase, which Claude would otherwise never find.
If you just have a strongly worded prompt to Claude saying, "Hey, please don't duplicate," it will never find this. Whereas if you use this tool, then you can tell it exactly what it's done wrong and it can go and fix it. And so we use this every day. We found this tremendously helpful and far more helpful than the traditional code deduplication tools.
But the real point here is not about one particular lint, this one secret trick that's going to solve everything. It's about the idea of having a continuously improving feedback system, where every time that a human reviewer goes in and looks at a piece of code that's been generated by one of these agents and they find something, they have to think, "How can we make it so that I never have to see that again?" And just taking that approach every single time, every time you have a finding.
And thinking, of course, the initial friction is like, well, yeah, duh, if we could make it automated, then we would. But actually be persistent with it and think outside the box, like with the deduplication tool or with other lints, tests, agent review panels. There's so many tools now that you can use, from traditional programmatic checks all the way up to machine learning and so on, that you can use to try and avoid repeated findings.
So of course, it goes round and round. You have a finding, you come up with a new rule. On the next time round on the PR, you don't see that anymore, but then maybe find something else, and it goes round and round until eventually the human reviewer finds they don't really find anything wrong with the PRs anymore.
So at that point, that means that your core engine of going from task all the way up to merge gets super reliable and high quality, and you don't get this accumulation of AI code slop, which gradually degrades your codebase up until your token cost at that point blows up, because you have to use these really smart models like Fable 5.5 to make any sense of your codebase because it's a mess.
So this is why checks actually matter, and the idea that code quality and maintainability don't matter anymore because we have AI to do it, it's just a complete misconception. So internally, this is the way that we've been really able to cut down our token costs.
But from there, once you have this core engine, you have this task to merge, you can then start wiring it up to all the other parts of your business. So you might have an incident report come in that automatically triggers a task. This is some of the event-driven stuff that I was mentioning earlier.
An incident comes in, production has some sort of elevated error rate somewhere. That goes into an agent, it reproduces it in its isolated clone of production. It can then request approval for that to be merged into production. An engineer just presses approve if they agree with it, and so then that gets deployed. And from there, that can go out as a customer report saying, "Hey, we fixed the outage," or whatever it is.
So you can imagine this expanding further and further. One of the things that we do—lately people have been very nervous about security—every time we have a vulnerability come in, we have the similar process kick off. So a CVE is dropped, we have patches rolling already.
So you start abstracting this away, and you have this central engine that just deals with tasks, and then the goal of the human is then just to focus on the exceptions. So whenever a piece of bad code comes in, the human is focusing on that exception, or whenever the engine falls over, they're picking it back up again and making sure that it doesn't fall over again.
So this is the approach that we've taken to vastly, vastly increase the amount of output that we're able to produce with quite a small team in quite a regulated industry.
Barty Wardell
I don't think we necessarily set out or understood that we were going to build our own, effectively, harness, but certainly we have. And the outcomes of that for the rest of the organization have been really interesting.
It massively helps, of course, that we've never had normal jobs, so we have no idea what a normal organization looks like. And I can make it up as I go along, which makes my life a lot easier compared to many of you.
However, there are some cool things of note, which is, one time I came into the office and we found our head of go-to-market had built his own browser for automatically dealing with his to-do list. He had seen the event-driven work happening on the engineering side and had started treating all of his emails the same way, and effectively built himself an approval mechanism for doing exactly the same kind of thing.
Going to an organization where you don't have a human being bottlenecking all of the important steps, and really you can just take all of the external signals that people were responding to anyway, instead of having them build all of the issues, them decide what to do.
Ultimately, who's to say that the agent is not perfectly capable of interpreting the customer feedback, given that they have the full context of both the codebase, what the customer was doing, and all of the knowledge about the product?
In short, it can, and we can go end to end from someone submitting a ticket on the site to there being a ready PR for someone to review, and then the job of the human engineer is just making decisions about what is worth merging in or not.
So I think that a lot of people stand up and say these kind of things and then are very reluctant to show what the actual numbers are, and people talk in percentages. We talk in multiples. In the last seven, eight months, the number has gone up 10x in terms of code that's going into production.
There's a few things to note. This is not all of our codebases. And this is also not pricing correctly that now a far higher amount of the code simply doesn't get merged in at all. So there's a further increase on the right-hand side as well.
It's our aim that this number can go up another 10 times in the same number of months. Obviously, I think many of you would rightly say, "Come on, lines of code is not a perfect metric." We're yet to hear a better one. I genuinely would love to hear one, but this is one of our metrics, seeing how this is going.
We're able to add features and get them out to production far more quickly. I think the question is, is it valuable? We wouldn't exist as a business if we hadn't been able to get it to work this way. As I said, this would've been a five-odd-year project with a much larger team. We simply couldn't have built it. We wouldn't exist.
Runtime. I think as you extend these harnesses, most people have referred to the conversation back and forth with the agent. Our view is that this is fundamentally a waste of time, and we want to get rid of this as much as possible.
There's two competing factors in this graph, and it's also logarithmic, so it doesn't give exactly the right sense, but the mass of the distribution is around the one- to four-hour mark. And that's basically you allowing the agent to run continuously for four hours without you interceding with some kind of prompt or submission.
Obviously, we're trying to make the tasks more atomic, so they're easier to deal with, which obviously reduces the time, but our work has allowed these agents to run with confidence to actually tackle these tasks for a much more significant amount of time as compared to the average guy sitting at a desk with Claude Code or Codex trying to solve these problems.
The team has really evolved. We used to think about go-to-market, product, engineering. Engineering has bifurcated basically into the more and less socially capable, although some of my colleagues might dispute me saying this. It's weird times. Both myself and Nik have been let out of the basement to speak to you all today.
On the product side, we've seen really go-to-market, product, and the more capable engineers in terms of account management merging into really one team. Our view is that the number of touchpoints between customers giving feedback or having ideas and the engineering implementing it should basically be zero. And the fact that they're spending so much less time actually writing code means people can be dual owners between effectively being account managers and technical leads on projects or integrations.
And then the other side of the engineering has been a real focus on infrastructure, which in practice for us looks like increasing this flywheel to increase the number of agents that we can sustain.
And to put some numbers on this, I think the starkest example for me was when I sat down after being out of the office for a few weeks, and one of my colleagues was running 30 agents in parallel, looked over at me running five and said, "Wow, that's slow." I went, "Oh my God."
Something that's been talked about today that we have maybe a different perspective on is historically you come up with a lot of ideas, and then you can discuss 10 as an organization, and then you have the resources to try a handful.
When you have the ability to write this much code, you can discuss, or at least create issues for and outline how you'll respond to, a far higher number of tasks. And you build a far higher number of features and pieces of software.
What this means is we execute a load of bad ideas, right? We don't care about whether the plan is good because the cost of each development bit is so low that we can just throw things at a wall, A/B test them, and deterministically see what sticks. This has been great for us. We're wrong all the time. Things that sound bad turn out to be great ideas.
And as an organization, I think we have found that the choosing of ideas really has in a major way gone away, and it's really just how many ideas can we generate and try in parallel.
This links into the next point, which may surprise some of you, but it's how much does this cost? A tremendous amount of time has gone into optimizing this harness. We spend probably more as a team personally per month on coffee than we do our token spend. It is a rounding error for us.
And I know that that must sound odd, and obviously these organizations are not apples to apples. But the way that the tokens are handled in terms of that loop, I think, is really engineerable in a way that most people don't expect that it is. And there is so much headroom. And this is API pricing, by the way, and a mix between Claude and OpenAI.
So a tremendous amount of code can be written at a fairly low price point now. It's just a question of adding the deterministic harness to make sure that it's high enough quality, safe given the sector, and ready to go.
So what are we doing now? We're now beginning, because people have been bothering us enough, giving this out to some of our customers. So instead of just giving them the two pieces of the existing product suite, we're saying, "Hey, can we start also giving the technical side of the organization the ability to do the same things, plug in, get the same uplift, and add effectively features on top of the ones that we were giving you out of the box?"
And this is stuff that we were plugged into anyway to do a lot of the development, because this is brownfield work, not greenfield. And so we sit on top of a massive, terrible, miserable legacy layer that we have to still ship safe code on top of.
So people have asked me, "Is what you're talking about something that only works in a greenfield state where you're a small team and able to do this?" Yes, perhaps from an organizational perspective, but certainly it's not like we were able to build all of our own databases and be free from the ground up. We are on top of 40-odd years of interesting legacy decisions, shall we say.
So thank you for listening. We are really keen to just learn more about how people are working at scale, which has been great today. We love to talk more to people, and we're very happy to help.
The semantic deduplication that Nik showed earlier is open source, so you guys can just go and look at the Git repo if you like Rust code. It's Nik's penchant.
And yeah, thanks for having us.
One membership. The IT Revolution library.
IT Revolution's books, the video library, the courses, and the MCP. The papers stay free.