We quadrupled our dev velocity (and so can you)

At the start of this year, Tessl (the AI coding startup where I work) was a pretty normal R&D team. We were shipping somewhere between 150 and 200 pull requests a week, which we thought was pretty quick, and every one of them was put up by an engineer.

These days we ship 700 to 800 PRs a week. Around 80% of those are built start to finish by agents without anyone touching the code along the way, and about 40% get merged without a human reviewer ever looking at them. Each PR costs us roughly $8 in tokens. As far as we can tell the code is about as good as it was before (more on this in a second).

Getting here took us about six months, although a good half of that was us flailing around trying to figure out what to even do. Once we figured our shit out, almost all of the real work happened in about two months.

Tessl's path isn't the only way to transform your R&D team to work with agents. But it is a way. And it's practical enough that nearly any team or company could use it to reach a reliably good outcome.

I think this series will turn out to be three posts. This one is mostly about the end state you're trying to achieve, and how you measure progress along the way. The second will be about the organizational side of getting a company to make the leap. The third will cover the things we built and our overall technical approach.

Where we started

Like a lot of companies, Tessl got serious about adopting agents in January, 2026. It was right after the November inflection point, combined with a Christmas break that left a lot of engineers (myself included) sleep deprived and twitching with the new possibilities that agents promised.

We were about 25 people in R&D, which for us meant mostly engineers and a couple of PMs and designers.

The codebase was the kind most companies have. We'd written nearly all of it before agents could do much more than autocomplete, and it was reasonably modern TypeScript spread across a lot of services in a lot of repos.

Our AI adoption looked like a bell curve. At one end we had a few power users who'd gone all in on agents and were getting great results out of them. At the other end we had a few people who barely touched AI at all and kind of hated it. I realise this is a strange thing to say about people working at an AI coding startup, but there you go. Most people were smeared somewhere across the middle, having some success here and there but nothing you'd write a blog post about.

We were doing a bit under 10 PRs per engineer per week, and engineers were the only people shipping code.

Where we landed

Today, most of our PRs are built entirely by agents inside our software factory. The headline numbers:

PRS MERGED / WEEK

  • jan 150-200
  • now 700-800
  • BUILT BY AGENTS ~80%
  • NO HUMAN REVIEWER ~40%
  • COST / PR $8
  • others quote $20-40
  • BEST SOLO WEEK 90-100 PRs

The agent share moves around, so some weeks it's 90% and some weeks it drops to 70%. Most of the variance is due to exploratory prototyping, where people still find a local Claude Code session works better. We'd like to pull that into the factory too and we're working on it.

For the PRs that merge without a reviewer, the person who asked for the change still does QA and manual testing, but nobody else looks at it. We'd like to auto-merge more, but we're no longer drowning in review.

The $8 includes every review round and every round of fixes. Most figures I see people quote are more like $20 to $40, and Warp wrote about getting their own factory from $80 down to $30, so we feel pretty good about our costs.

The 90 to 100 is what we've seen when someone really gets into a flow on a project. That's an intense week, but people can sustain it.

Alongside all that, we haven't seen any major increase in tech debt, bugs shipped to customers, reversion rates, or things like cyclomatic complexity. Our PRs are about as complex and about as valuable as they were before, and the code is about as good. We're just shipping roughly four times as much of it. Again, more on that below for all you skeptics screaming at me.

The other change is who's doing the shipping. PMs and designers now ship changes regularly, and at this point basically everyone at the company has shipped something to production, including people on our HR team. It's still mostly engineers, but that's because they know the codebase and building is what they spend their days on.

So what is a software factory?

I'll describe our software factory architecture and its most critical loops in the third post. But I should probably define the thing I keep mentioning.

First though, let me complain about names for a second, because I hate pretty much all the naming in AI right now. We're building tools for software engineers and then naming them the way research scientists would. People keep picking words that mean something in their own field without realising they already mean something else to the people who actually have to use the new god machines.

On top of that you've got people barfing out posts on X trying to make a name for themselves, picking whatever sounds cool and catchy this week whether or not it holds up. It makes building a product in this space pretty frustrating, because it's hard to find names that are simple and descriptive and that everyone reads the same way. So if you've been tearing your hair out screaming for someone (anyone!) to just tell you what the hell a software factory is, you're not alone. All names in this field suck right now.

Anyways, here's another definition of software factories.

If that sounds unglamorous, good. Software factories are not for cowboys.

A sidebar on dark factories

When I say "software factory", a lot of people hear "dark factory". A dark factory is a frontier idea, which may or may not be possible and may or may not be ready, where you put business requirements in one end and get product out the other. There are no engineers. It's all just vibes and trust the exponential, bro.

A software factory isn't that, at least not in our experience. Ours still has a lot of squishy engineers in it, and they're checking things, reading code, talking about the design of the system and generally playing an important part.

You could think of the two as points on a spectrum of how much is automated, but the dark factory idea also comes with an ethos of "engineers need not apply". You define the outcomes you want and you don't worry about the implementation, because it'll come out fine on the other end.

But I think, even once we get to the point of auto-merging every PR and never reading the code, we'll still be spending a lot of our time on software engineering.

It will look a lot like being the tech lead in another engineer's architecture review. You're not reading their code, but you are interrogating their design and asking about performance bottlenecks and code reuse and complexity, and probing for the anti-patterns and smells you've learned to look for. You're still very involved in how the system is built and how it's evolving.

A further sidebar on ticket-to-PR

The other thing people assume is that a software factory means one specific flow, where you delegate a ticket and an agent builds it. That's definitely part of it, and it's one of the main payoffs, but a lot of our workflows have nothing to do with tickets.

We have an automation that scans every night for flaky CI tests, for example. We have another that goes through all the PRs at the end of the week, generates a changelog, publishes it to our website and posts it in our sales channel. The factory is a whole series of loops and automations that you configure, and the product development loop that takes tickets and builds them is only one of those.

Should you build a software factory?

If you're a company using agents, yes, you probably should. And probably now, not later.

A lot of people have software factories filed under "future crazy". As in, "once we've got agents figured out we can start thinking about a factory". I'd argue it's the other way around, and a software factory is how you figure agents out at company scale.

It's probably easier to ask who wouldn't want one, and that list is pretty short. Solo devs don't need it. People who are only building internal stuff, or things for themselves and their friends and family, don't need it. People working at a frontier lab where tokens are water don't need it. That's about all I've got.

How did we measure this shit?

Finally! Let me talk to all the skeptics about how we convinced ourselves that the house wasn't falling apart around us. I want to go through the metrics in the order they became useful, because I think the order you bring these metrics in matters a lot for how likely you are to succeed. The philosophy is basically the old line about how you eat an elephant (it's "one bite at a time"). You work on one metric until it's in a good place, and then you introduce the next.

I see a lot of people fail at this because they try to solve everything up front. They haven't even started sending tickets to agents and they're asking "but how do I know these PRs are actually valuable?"

People worry about metrics being gamed way too much, way too soon. At first, you won't even be able to game the metric because you will understand the problem like a cat understands calculus. People looking to game the metric will be like puppets in your master plan, trying desperately to understand what levers actually affect the outcome.

Then, you will actually know enough to game the metric, but all the easiest ways to move the metric are healthy, useful optimisations. And then (only then!), will people start to game the metric in a way that's harmful. You will have made a ton of forward progress without being over fussed about "Goodhart's Law", and you will add another metric to get things back on course.

Factory share

The first thing we tracked was just the share of our PRs that were created by the factory, which we call factory share.

This is already a good example of how a factory makes the work easier. When people are working locally with Claude Code or Codex, even this very first metric is hard to compute, because how do you know which contribution came from AI? With a factory it's trivial. It's literally what percentage of PRs were put up by the factory versus by anything else.

We spent a long time only looking at this number, and we got pretty far just by asking people what it would take to put their work through the factory. Their reasons were usually a straightforwardly good thing to go and fix. It was mostly adding systems the factory could access, improving speed, and tuning much feedback the factory gave you while it was working.

Human takeovers

Once we got to around 40% of all PRs coming from the factory, we started getting pickier. An agent shouldn't just implement the ticket and respond to feedback, it should get the feature right without a human stepping in.

We started tracking takeover events, which we measured as any later commit pushed to a factory PR that didn't come from the factory. We also tracked what percentage of factory PRs had a human comment on them, meaning a person had needed to correct something.

If factory share was really a measure of the factory's usability, takeovers gave us our first signal on the quality of the PRs. Tracking just these two took us up to about 60% of PRs coming from the factory. Don't overthink it!

Quality, compared to humans

Around 60% is when we started digging deeper into the quality and the value of what we were building.

For us it started with test coverage, reversions, and the rate of incidents attributed to factory PRs. Then we added things like cyclomatic complexity, the average number of lines added in a factory PR, average function length, average file length, comment count and number of files touched.

These metrics are probably generically good things to track, but the point is not this specific list. At this stage you're building out a laundry list based on issues that your developers see during code review or things that they're worried might become an issue.

This turned out to be a great way to build trust in the factory, especially with the more skeptical developers. Ask them what they're afraid is going to happen to the codebase, and then write a metric for it.

The way we used these numbers was to compare them to the same numbers for human PRs. Very few numbers in AI have an absolute good or bad meaning, and mostly all you can say is whether something is better or worse than a baseline. As your factory share grows and you have less human PRs to compare, you'll shift to comparing these metrics against historical factory baseline, which you know is as good as humans from the first phase.

PR complexity

We also wanted to make sure we weren't growing factory share just because people were breaking work down into tiny, micromanagey, hyper-detailed implementation tickets. So we started classifying PRs as small, medium or large using an LLM judge.

The criteria were the kind of thing you could put in front of a mid-level engineer and they'd agree was reasonable: how many lines and files changed, whether it touched multiple components at once, and whether it involved something that's known to be complicated. We tuned the judge against human PRs by having engineers spend a few hours combing through and spot-checking whether they agreed with it.

By this point the dashboard was getting fairly involved. We had:

  • factory share
  • the takeover rate
  • a grab bag of quality metrics, all split by S/M/L PR size

Any time one of those started getting worse, we'd have agents review the offending PRs and look for common trends. Whatever came out of that we fixed.

Velocity

By this point, 50 to 60% of our PRs were going through the factory pretty reliably and coming out the other end in good shape. Our velocity started going up really fast.

PR count is mostly a vanity metric, but vanity metrics are important for transformations! People could look at that dashboard and see that quality was still good, that the factory's PRs were no different from human PRs, and then see how much faster we were going. It got everybody motivated and made them want to do more.

Motivation and excitement are hugely important with the rate of change and churn the industry is going through right now.

Cost per PR and review rounds

Once our factory share and velocity started spiking, we were suddenly spending a lot of money on AI. Enough that we wanted to be sure we were scaling responsibly. So we introduced cost per PR.

This is another place where a factory makes life easy. If all your developers are on local Claude Code, how the hell do you measure cost per PR? With a factory you just add the cost of each workflow step:

implement + number of review rounds * (code review + address-feedback)

Once we started looking at cost per PR, we found that our top driver of cost was the number of review rounds. So we added review rounds per PR, and the percentage of a PR's cost that goes to review and fixing feedback.

Where the bottlenecks went

That completes our infinity gauntlet of metrics! At Tessl, we haven't felt the need to go beyond these.

SDLC is no longer our limiting factor, so we've shifted our focus to other areas. Go-to-market is our biggest bottleneck now. We turn a feature around in somewhere between a day and a week, at least in MVP form, so the challenge now is keeping our GTM teams up to date on what we've built and getting it out there.

Related to that is feedback. Polishing an MVP requires feedback, and it's tough to get enough time and attention for that from people inside the company, let alone from users.

Then there's market attention. We can kind of build anything now, but we can't ship entirely new dimensions of the product every week. Our marketing message has to stay consistent and our acquisition campaigns need time to bake. We're basically at full saturation for how fast we can launch features if we want the market to actually adopt them. So we've started shifting more of our engineering cycles inward, towards going deeper on features, improving quality and performance and speed, and improving our own processes.

We've gotten to a place where every person behaves like a sizeable team in terms of output, and a lot of the traditional best practices around organizing and reviewing and keeping people up to date just don't hold any more. It's really hard to keep everybody up to speed with what else is going on in the company.

I'll pick it up in the next post on organizational advice for the AI transformation. I've got plenty of scars to share about ideas that sounded smart but were actual stupid.

Cheers!