Experience
Writing code got fast. Verifying it didn’t.
In my last blog post I discussed how I protect my mental capacity now that agentic workflows have radically changed the way software is developed by individual contributors. Now, allow me to show you the very same workflow that both accelerates writing code and threatens to overload my mind.
Until recently, writing code for a feature was the slow part. Tools like Claude Code have made this very fast: an agent can plan, implement and test in a few hours a feature that would take a human developer a whole day. What hasn’t sped up yet is proving that the feature is actually done. This kind of verification still needs the whole application running and someone (who can be an agent) using it to verify all acceptance criteria are met.
This blog post is about how we split those two kinds of work at ELMO Software: code in parallel, verify one at a time.
The software factory
First, I need to briefly introduce the software factory that we’ve built at ELMO Software. It’s an agentic software solution that covers the full lifecycle from product discovery to production deployment, used by the whole company. Product managers use it to turn customer research into an opportunity worth building, designers leverage the design system to generate Figma files for responsive web design, and engineers use it to pick up a ticket, plan the change across every repository it touches, implement it, review it against our standards and take it through to production. The guiding principle: humans author, agents implement. A Jira ticket holds the information for everything an agent needs to build it and everything a reviewer needs to check it.
I hope that I can talk more about this in the future, but for now let’s just call it “the factory”. There’s way more to it than what I will describe in this blog post…
Two speeds, one bottleneck
AI agents are already fast at writing code to a specification. Without going into too much detail, we customised Jira to create tickets that can be written by a product owner and turned into a detailed software spec that ensures high quality, matches standards and contains non-functional requirements. With git worktrees, a coding agent can write code against a number of repositories in isolation and verify the “local correctness” (unit tests + integration tests).
Passing tests in individual repositories is just the start. They don’t prove that the whole feature has been implemented correctly. For that, the change has to run in the full software stack (frontend, backend, authentication, and other upstream services), with somebody using it in a real browser. With the local stack running, a tester has to verify each scenario on the ticket and every screen against the Figma design. As one computer (currently!) runs the whole stack, only one feature can be verified at a time. If you look at the shape of this process, you’ll see a wide parallel phase followed by a narrow serial one. They are not the same and need a dedicated setup.
The workflow
We built four commands (renamed for this blog post) to control the workflow:
| Name | Description |
|---|---|
/factory-feature <ticket> | Creates new worktrees for the given ticket |
/factory-forward <ticket> | Moves the code from the worktrees into the local stack |
/factory-evidence <ticket> | Remote-controls a browser to verify the acceptance criteria and design |
/factory-cleanup <ticket> | Deletes all worktrees |
Together, they work like this:
Fan out
Running /factory-feature <ticket> creates the new workspace for one ticket: a fresh git worktree for every repository that is required by the ticket, branched off the main branch. In addition to checking out the code, it also runs the scaffolding (installing dependencies, copying over .env files and so on). In case you haven’t used that feature yet: a git worktree is a separate checkout of the same repository on its own branch. Without an isolated environment per feature, agents would read and write the same files, resulting in data loss, rework, or utter confusion.
Writing code in parallel
In each workspace, a coding agent now plans and implements the feature in isolation. When the agent is done, it runs the unit and integration tests following the coding standards and guardrails set for each repository. Should questions arise, the agent will ask for direction, but overall the work happens independently of the other agents working in different workspaces. The only limit on how much work gets done in parallel is the available compute capacity and the willingness to spend tokens.
When all is done and the agent has committed the code to all branches on the repositories, the feature joins the queue for verification.
Bringing the code into the stack
With our current setup the full stack can’t run from the individual git worktrees. We need to bring all the individual pieces of code into the local stack by running /factory-forward <ticket>. It’s a simple shell script that copies the code over and restarts the entire application. Once it has booted up, the stack now runs the feature (and nothing else). Only the committed code gets brought forward to ensure that the exact code on all individual branches can be validated.
Why do we only run one instance per local developer machine? We never designed our local setup for parallelism. It’s a custom-built solution that runs the whole software stack in Docker on a local dev machine, from the core application to all the services around it. Just one local tenant takes about 16 GB of RAM. And resources are only half of the problem: in theory, two features that only touch the frontend and one microservice would just need their own copies of those two, and could share everything else. In practice, the setup doesn’t know which services a feature touches. The shared services were never designed to talk to two versions of the same microservice at the same time.
I’ve worked at companies that solved this by offering their engineers on-demand cloud development environments: you configure the product you need, it boots up in minutes, and you connect to it from VS Code or IntelliJ. With something like that, every feature could get its own stack, and verification could fan out just like the coding does.
Proving the feature works
This is the most important step: /factory-evidence <ticket> initialises the software tester. A software agent opens Chrome via the MCP and walks through every step on the ticket to validate each scenario using the acceptance criteria.
This is why high-quality tickets (which are being generated using the factory itself) are so important. Garbage in, garbage out: if acceptance criteria are missed or incorrect, neither the human software developer nor the agent validating them will ever know. In addition to reading the page content and comparing against the ticket, screenshots are taken and compared against the Figma designs.
The result is either a failure (acceptance criteria that cannot be met or designs that don’t match Figma) or success. This step has limits, though. Sometimes the local setup doesn’t support all criteria (e.g. when a third-party integration is not set up) and manual intervention (e.g. testing after a staging deployment) is required.
If the verification fails, there are two ways back. Small fixes can be made directly in the local dev stack; once they’re confirmed working, they have to be synced back to the worktree(s) and committed there. If something needs complete rework, I have to go back to the coding agent in the worktree: fix, local tests, a commit and npm verify, before the ticket can go forward again.
Cleaning up when done
When all code has been validated, gone through code review (which will be the topic of another blog post), and verified on staging, it’s time to clean up. By running /factory-cleanup <ticket> all local worktrees are removed and the disk space is reclaimed. Attempting to run this when not all branches have been merged into the main branch will fail with an error.
Relevant to this: code reviews don’t happen perfectly aligned with feature development. All changes that stem from code reviews will have to go back into the flow: changes in a local worktree first, then verification in the dev stack.
What it looks like
So what does that look like on a normal day? Since we use Kanban, I pull the next ticket from “To do” and create a new worktree for it. What Kanban doesn’t decide is what goes into my local stack next. That part is constraint-driven: as soon as a feature passes verification, it’s ready for review. In that case, I create the PR and the stack is “free” again.
Usually, I’d rather choose an existing ticket for which I got “requested changes” on my PR over a fresh ticket that is “local done”. That way, I can focus on getting the tickets that are further along done, instead of overloading myself with too many tickets in flight. And this is where my last blog post comes back in. However, it’s not that simple. Protecting my mental energy means deciding when to work on the PR feedback itself: do I agree with the findings? How do I actually implement the changes once an issue has been diagnosed? Running a Claude command that uses the available local stack for verification doesn’t need my full attention. PR feedback does.
Verification is rarely one pass. A forward and restart easily takes 30 minutes, an evidence run longer. That leaves room for a handful of verification runs per day, regardless of how many agents are busy coding.
Measuring success
All of this sounds good in theory, but does it make the team faster? After I tested the flow for a few weeks, the team adopted the process and I went through LinearB to crunch some numbers. I compared the three months before and after 21 May, the day we first used the worktree scripts. All times are the 75th percentile: three out of four PRs were at least this fast.
| Stage | What it measures | Change | LinearB rating |
|---|---|---|---|
| Coding time | First commit until the PR is opened | About 12× faster | Needs focus → Good |
| Review time | First review until merge | About 46% shorter | Needs focus → Fair |
| Cycle time | First commit until release | About 47% shorter | Fair → Good |
| Pickup time | PR opened until the first review | About 2.8× longer | Fair → Fair |
At the same time, we merged about five times as many PRs per week.
Coding went from the biggest part of the cycle to a small fraction of it. The only stage that got slower is pickup: PRs waiting for a human to look at them. That’s exactly the point of this post. Writing code got fast, everything that needs a human didn’t.
Take this with a grain of salt: LinearB only has data for the last few weeks of the “before” period, and other things changed at the same time. We changed how we do PR reviews, we improved the factory, and the models got better, too. LinearB shows that we got faster, not why. The direction is clear, though.
My learnings
- The bottleneck (at least during those months) is verification, not coding! Running one more agent doesn’t necessarily make you ship faster, unless verification keeps up. Even if in the future we can spawn more instances to verify against (possibly via a cloud-based dev stack), running end-to-end tests via Chrome MCP is slow.
- Tests prove the code works; the browser walk-through proves the entire feature is done correctly. Think of the testing pyramid: type checks and unit tests are necessary, but not enough. The feature cannot be considered done until a tester has verified it working against the ticket and design.
- Isolation enables safe parallelisation! Git worktrees bring separate branches, dependency installs, and test runs. Without it, agents step on each other’s toes and produce conflicts. But keep in mind: you can only parallelise work when you have mapped the dependencies correctly.
- Ship features independently, as a constant stream. Bundling features into one big-bang release brings back the wait time that we worked hard on eliminating.
It’s a wrap
- Coding agents widen the build phase
- Verification is still narrow
Until we improve our factory to also scale out verification, we need to build around this constraint: fan out the work that can run in parallel and run the one that we can’t in a queue.
Comments