The Last Generation of Handwritten Software
One of the marks of a good programmer has always been knowing how to get away with writing less code.
Entire programming languages, frameworks, and industries have been built around this idea. And yet, until recently, the primary activity of a programmer was still writing code.
I wonder how much of what we consider software engineering today is simply a consequence of having to write software by hand.
I’ve spent much of my career building software development tools. I was the lead architect at Semaphore, a continuous integration company, where I spent years working on the machinery that takes code from a developer’s laptop to production. Automating the actual implementation of a feature was, until recently, outside the scope of that machinery.
Now it’s becoming part of it.
The unit of work
Coding agents have changed how we write software, but surprisingly little about how we organize the work.
The basic unit of work is still a task. An engineer picks it up, works through it, and eventually moves on to the next one. The process would be recognizable to a programmer from twenty years ago.
What interests me is the possibility of changing the unit of work itself. Instead of solving a particular problem, an engineer could spend their time figuring out how to solve an entire class of problems.
Take something mundane like a security vulnerability in a dependency. You can ask Claude to investigate it and prepare a patch. Tomorrow, when another vulnerability shows up, you do it again.
I’d rather spend an afternoon building a workflow that picks up these vulnerabilities automatically. Give it access to the repository and the vulnerability report. Have it investigate whether we’re actually affected, prepare a patch, and run the tests. If the change is risky, send it to an engineer for review.
Next week, when another vulnerability shows up, the machinery is already there.
I think of this as factory engineering. The unit of work becomes a class of problems rather than an individual problem. None of this is particularly new as an ambition. Programmers have been trying to automate their own work for decades. What’s changed is the economics of doing so. We can now automate things that were previously too ambiguous or too expensive to automate.
A few months ago, while I was on holiday, a software factory I’d been working on implemented an entire KPI management feature in about two days, with a few nudges from my phone.
The nature of expertise
One of the more interesting consequences of factory engineering is what happens to the knowledge an engineer accumulates over a career.
Consider a senior engineer reviewing a pull request. They notice something a less experienced programmer wouldn’t. Perhaps a database migration that works perfectly well in development will lock a table in production. They know this because, at some point in their career, they’ve made that mistake themselves.
They leave a comment, the problem gets fixed, and everyone moves on. A few months later, they might find themselves leaving the same comment.
I’ve come to think of this as a rather inefficient way of using expertise.
If we can teach the factory to recognize the problem, the experience of that engineer becomes useful every time a migration is written, even when the engineer is asleep or has left the company.
Of course, much of what makes someone a good engineer is difficult to formalize. But until recently, the amount of effort required to automate a particular piece of engineering judgment was often greater than the effort of repeatedly exercising it. Coding agents are changing that equation.
I suspect that one of the most valuable skills an engineer can develop over the next decade is recognizing which parts of their own work can be turned into permanent capabilities of the factory.
Where value accumulates
For most of my career, the codebase was where I invested the bulk of my engineering effort. If a piece of software was difficult to change, I’d refactor it.
I think we’re going to develop a similar relationship with our factories. If agents keep getting a certain kind of task wrong, we’ll improve the workflow. If reviewing their work takes longer than implementing it ourselves, we’ll have to figure out why.
The nice thing about fixing a problem at this level is that the improvement carries over to future work. A better way of testing database migrations, for example, can benefit every migration the factory produces from then on.
I think the factory deserves the same attention we give the software it produces. It needs to be versioned, tested, observed and deliberately improved. Its performance matters, and so does the quality of its output.
Over time, improvements to the factory accumulate alongside improvements to the codebase. A new engineer joining the company inherits a production system that embodies years of engineering decisions.
This is also why I doubt that access to the same coding agents will put every software company on equal footing. Two companies can use identical models and have wildly different capabilities when it comes to producing reliable software. The difference will be in the machinery they’ve built around those models.
For a software company, that machinery could become one of its most valuable assets.
What makes this particularly appealing to me is how much software there is left to build. Think about a small business that has been running on an elaborate spreadsheet for fifteen years because nobody could justify the cost of building and maintaining a proper application for it.
There are countless opportunities like that. They rarely make sense for a venture-backed startup or a traditional software company. They might make perfect sense for one engineer with a good factory.
I suspect there will be a generation of programmers who find it strange that we used to implement every feature and fix every bug individually.
They’ll still need to understand software. They’ll probably need to understand it remarkably well. But much of their creative energy will go into designing the systems that produce it.
I’ve spent most of my professional life writing software. I suspect I’ll spend a good portion of the next twenty years building the machinery that writes it.
That sounds like a pretty good career to me.