Skip to content
vlad.io
Go back

Software Factory Workers of the world, unite

In June I went to some trouble to make sure I could get to Claude and Codex from a seat on a transatlantic flight. Around the same time I was reading about how engineers at Ramp and Stripe were getting work done from Slack. I had figured out how to take my terminal with me. They had figured out which jobs didn’t need anybody sitting at a terminal in the first place.

That’s what interested me about the term software factory. Say somebody has already written a decent bug report. Could I send that ticket to an agent, let it check out the repo and run the tests, and come back when there’s something for me to review? By mid-June there were some surprisingly detailed accounts of what it took to make that work.

What happens after the agent edits the file?

In January, Ramp said Inspect had written about 30% of the frontend and backend pull requests merged in one week. In February it reported 57% in one 24-hour period. The part I liked was how Inspect checked its work. It had a full development environment on Modal, access to Sentry and Datadog, and a browser. If the ticket said “this menu gets cut off,” Inspect could start the app, open the menu and show the engineer a screenshot. That’s a much better answer to the ticket than a paragraph explaining what the CSS ought to do.

Stripe reported over 1,300 human-reviewed PRs merged per week in February with all the code in those PRs written by its Minions. An engineer could kick off a task from Slack. A fork of Block’s Goose worked in an isolated devbox, already warm with the repo and build caches. Stripe put ordinary steps like linting directly into the workflow. Why spend tokens convincing a model to remember a command you already know you want to run? CI could send failures back to the agent, but after two rounds an engineer got to decide what to do next.

Spotify had a particularly good job for a factory. A Java migration can involve the same change across hundreds of services, each just different enough to spoil a perfectly good script. At QCon London in March, Spotify’s engineers described using Honk, their Claude-based agent, for those migrations. They were merging 1,000 PRs every ten days. Shopify came at it from the other direction. Its agent River started in Slack, where somebody had usually already explained the problem. By May, Shopify said River coauthored one in eight of its merged PRs.

The money behind coding agents

Factory raised $150 million in April for its Droids. Qodo raised $70 million for automated code review. If I can hand off five tickets before lunch, somebody still has to read five pull requests.

Then on June 11, OpenAI announced a deal to acquire Ona, which gives agents a persistent place to run. That was the part of the factory I wanted to try myself. If I gave an agent a ticket and closed my laptop, where would the Java build run?

Which factory could I run myself?

Open Inspect is an independent open-source project modeled on Ramp’s Inspect. Its repo dates to January. Cloudflare Workers and Durable Objects keep track of the session. Modal supplies the sandbox where the agent can clone a repo, install dependencies and run the code. Open Inspect saves a filesystem snapshot after a prompt, so a follow-up can pick up the same checkout and dependencies. Two people can join the same session, and a request can come in from Slack, GitHub or Linear. If you’re wondering which machine has to survive a Java build, that’s the Modal sandbox.

A Linear ticket or a Slack thread starts an Open Inspect session on Cloudflare Workers and Durable Objects. The session runs a Modal sandbox that clones the repo, builds and tests it and saves a snapshot, and the pull request it produces is linked back on the ticket.

Deputies caught my eye for much the same reason. Each piece of engineering work gets its own session, with a history of what the agent did and a place to look at the result. Its June setup had a Node backend, Postgres and a choice of Docker or Daytona for the sandbox. I could see the appeal of that arrangement. With Docker Compose I could bring the services up together and follow a task from the first prompt to the files it produced.

So why did I go with Open Inspect? Of the two projects, it seemed further along to me at the time. And, to be honest, I already had Modal and Cloudflare startup credits and here was a project that used both. I had a Java repo that would give the sandbox a decent workout.

How much machine does a Java build need?

Working with Open Inspect in June, I found something I wanted to change. I could tell the agent to build a Java application and run its tests, but I couldn’t tell Open Inspect how much CPU or memory to reserve for the job. Modal could give the sandbox spare CPU when it was available. That’s handy, but what I wanted was a way to say, for this repo, give the build a little more room. I added that to Open Inspect in a pull request that merged June 9.

The change exposed two optional settings, cpuCores and memoryMib. Say I want a particular repo’s sandboxes to start with two CPU cores and 4 GiB of memory. I can set those values to 2 and 4096 for that repo.

{
  "settings": {
    "cpuCores": 2,
    "memoryMib": 4096
  }
}

Open Inspect passes them to Modal when it creates the sandbox, and uses the same reservation if it restores the session from a snapshot. For a repo where the agent mostly edits Markdown, I’d leave both fields blank. Why pay for a Java build every time somebody fixes a typo?

One decision I made was to leave both reservations optional. Modal bills for at least what you reserve, even if the build uses less. Picking a generous default for my Java repo would be an odd thing to do to everybody else’s bill. If you do set a value, Open Inspect checks that it’s positive and lets Modal enforce its own limits.

My favorite little detail in that PR was what happened when you didn’t touch either field. Suppose a repo inherits its CPU setting from the global configuration. You open its settings, change something unrelated and hit Save. If the UI also saves the CPU value it displayed, congratulations, you’ve just given that repo a permanent override. Next time you change the global setting, that one repo quietly stays behind. I added regression tests for that case. Two optional fields turned out to need a little more thought than two text boxes.

Two ways into the same repo

I hooked Open Inspect up to both Slack and Linear. Slack makes sense for work that starts as a conversation. Mention the bot in a channel with a request and you can follow up in the same thread. If the bot can’t tell which repo you meant, it can ask you to pick one. I’d much rather answer that question up front than review a perfectly good fix to the wrong application.

Linear makes sense when somebody has already done the work of writing a decent ticket. You can assign the issue to the agent or mention it in a comment. Linear gets a link to the session, and if the agent opens a PR, a link to that too.

What did I actually send to the factory?

I had a bug where I’d scroll halfway down a tab, switch to another one, and lose my place when I came back. The bug was already written up in Linear, so I tagged the agent and wrote “create a PR for this.” About two minutes later, the agent posted a link to a pull request.

Linear ticket activity showing the agent finished and opened a pull request.

I started the agent from this ticket. It posted the pull request right back in the activity thread.

Its fix kept the tab mounted while it was out of view, and it added a regression test. The fix made it into the app. My favorite part was that I never had to open a terminal and explain the bug a second time.

Getting a pull request back on that tab bug was enough to get me excited. Now imagine every bug report gets a first pass from an agent. For a bug like mine, it could reproduce the problem, fix it, and attach a regression test and a short video to the ticket. I’d get my first notification, open the ticket, and watch the agent scroll down, switch tabs, and come back to exactly the same spot. After handing off that first ticket myself, that future feels pretty close.



Previous Post
Coding agents over airplane Wi-Fi
Next Post
Adding flexibility and observability to an AI application with LiteLLM