blog

How Clover runs its own software factory

Our pilot software factory: an engineer writes the spec, AI coding agents build and test, a person reviews and merges. The workflow, the numbers, what we keep out and what we would do differently.

Roy Canani avatar
Tar Wolfson avatar
Roy Canani & Tar Wolfson
Calculating...
How Clover runs its own software factory

Earlier this year, one of us came across a security company that had built its entire product through a software factory using spec-driven development (SDD) and had since been acquired. As we heard it, every feature, from day one, had gone from a written specification to a pull request, with AI coding agents handling development in between. A company operating this way from founding to acquisition convinced us the approach could work.

We were already using agents across development, and we build security for engineering teams doing the same. But we hadn’t taken things that far. So at the beginning of October, Tar started building our own software factory, where the specification defines the code agents produce. He worked alone at first, testing it on his own development tasks so he could move fast and see what worked and what didn’t.

We wanted to solve three problems:

  • Ship faster by letting agents handle straightforward development tasks end to end.
  • Start development sooner by reducing the time between a requirement coming in from a customer or salesperson and engineering starting work on it.
  • Standardize the workflow instead of having every engineer configure and connect their own agents.

The factory is still a pilot. What follows is our account of what has worked, what hasn’t and what we’ve learned.

How does spec-driven development work in our software factory?

Our factory builds on how most engineers here already work with agents. An engineer writes a user story, then works with an agent that interviews them through a skill the team built, to produce a specification that people review. Some features stop there, once the spec shows they are not worth building. For those that move on, the agent builds the code and opens a pull request. Each PR carries a scope flag based on importance and blast radius, which determines how many human reviewers it requires. Engineers still move work between stages themselves.

The factory automates those handoffs.

1. The factory takes inputs from Slack and Jira

Engineers use a Slack bot to discuss issues, answer questions from specification review and track progress. Jira holds each task’s state. A Jira automation rule picks up tickets with a specific label.

2. Engineers create the specification

Jira tickets hold the specifications for factory tasks, like why the work is needed, where to implement it, how to verify it and any additional instructions. Tickets sit under broader epics.

Engineers can create tickets in three ways:

  • Slack DM: An engineer sends a message to the bot. The first line becomes the ticket title. The bot creates the ticket without drafting a specification or asking questions.
  • Slack channel thread: An engineer tags the bot in a thread. The bot drafts a ticket based on the conversation, lists anything left undecided as open questions and offers two options: create and start the task, or create the ticket without starting it.
  • Claude Code: An engineer works with Claude Code to draft the ticket from their conversation. Claude files it in Jira only after the engineer approves.

We already wrote specifications with agents. Nothing picked a ticket up once it was ready.

3. The factory reviews the specification

A review job checks whether the ticket has enough information, flags business logic or security problems and determines whether the factory can handle the task.

If anything is unclear or a problem is flagged, the review suggests a resolution for engineers to approve, reject or discuss in the ticket’s Slack thread. Implementation waits for approval; otherwise, the factory proceeds.

Slack message from the factory's spec review asking the engineer four questions about a spec
The spec review comes back with four questions, each with a recommended answer, and waits for the engineer before anything is built.

In an October 2026 article, Anthropic’s engineers described their review process: “Very often, we found that the role of the engineers was to tell Claude ‘no’,” when agents proposed designs that violated system constraints.

Reviewing specifications before implementation also gives us another opportunity to catch problems before they reach pull request review. A November 2026 Harvard study of 655 companies found that, twelve months after adopting AI coding agents, pull requests increased 35.7% while time from PR submission to approval increased 56.1%.

4. The implementation agent builds, tests and opens a PR

Once the specification passes review, the agent writes the code and opens a PR linked to the Jira ticket. The factory spins up a test environment for each PR and runs the repository’s tests there. An automated review reads the PR before any person does. The agent follows the repository’s testing and review rules, addresses the automated reviewer’s feedback, fixes failing continuous integration checks and pushes updates. The engineer gets a Slack notification when automated checks pass and the PR is ready.

5. Engineers review and merge

An engineer reviews the PR and decides whether to merge it. If changes are requested, the factory addresses them and returns the PR for review.

According to the same October 2026 article, Anthropic’s engineers still review every change, but now examine “the intent of the change as opposed to reading every line of code.” AWS has taken automation further in its AWS Emulator project: hundreds of agents work concurrently on a codebase built from 438 API models, fixing thousands of issues a day. “Our team hasn’t written or reviewed any of the code,” AWS says. Its automated merge gate checks standards, security and API fidelity.

Our factory sits between the two. A person writes every spec and merges every PR. Everything in between runs without one: the spec review, the build, the test environment, the automated review and the fixes that follow it. The factory stops for a person only when the spec review has a question or finds a problem. The same tests and the same review run on every PR, which gives us a harness: a fixed set of checks to measure the factory against each time we change it.

Outside the steps, the bot keeps the engineer posted. Each morning it sends a summary of open tickets and PRs, and engineers can assign tickets or epics through the conversation.

Morning Slack summary from the Clover Software Factory listing tickets and PRs waiting on the engineer
The morning message: open tickets and PRs waiting on the engineer.

Below you can see a diagram of the Clover factory workflow, covering steps 1 to 5:

Diagram of Clover's software factory workflow, from ticket to spec review, code, tests, pull request and merge

As of November 15, ten people were set up to use the factory and seven had run jobs in the preceding 30 days, out of approximately 30 engineers. In that period, the factory worked on 53 PRs: 22 merged, 30 open and one closed without merging.

For one infrastructure epic, we broke the work into 45 Jira tickets, and the factory filed one more on its own, 46 in all. We selected 20 for the factory and parked 26 for later. Of those 20, three produced merged PRs, twelve have open PRs, three were parked during specification discussion, one is blocked on other work and one PR closed without merging.

What should a software factory not automate?

During the pilot, we have kept four kinds of work outside the factory:

  • Customer data: The factory has no access to it. For those tasks, an engineer uses their own agent with their own permissions and adds context the agent wouldn’t know, such as whether an implementation that works on 3,000 pages can scale to a million.
  • Non-deterministic features: Features built around language models require evaluations across large volumes of real data to determine whether they work. The factory runs tests, but it doesn’t run those evaluations. Our research team handles that work today.
  • Broad architectural changes: They require design discussions and decisions beyond an existing specification.
  • New use cases and products: We have to decide what to build before specifying how.

The boundaries can change as we define more work and decisions in specifications.

What did we learn from putting AI coding agents to work?

In July, we switched on a security agent in our team’s coding sessions without announcing it. Four months later, there has not been a single complaint from a team known for having strong opinions about its development tools. It was a useful sign that automated security review could fit into our workflow without disrupting engineers.

In another case, agents proposed code-level rate limiting for an API already protected at the gateway. We dropped the requirement before implementation. The agents were working with the context they had, but missed a protection already in place elsewhere in the system.

Working with agents has also led us to rethink two aspects of our development process.

Why review specifications before they become code? One of the biggest changes we’ve made is moving review earlier in development. Previously, our review focused on pull requests. Now, specifications are reviewed before agents start building, with engineers involved when decisions or questions need their input.

Early specification review catches missing requirements and flawed assumptions before they lead to restructuring or technical debt. It also gives engineers context for reviewing the eventual PR. For security teams, this means knowing where specifications live, whether in a repository or another system they aren’t currently reviewing.

How much context do AI coding agents need? Engineers still need to decide what context matters. Agents can work within the information they’re given, but they don’t necessarily know where the product is heading or what the next task will require.

We now provide instructions when a task needs them. Prompt-writing rules, for example, appear when an agent writes an LLM prompt, not for unrelated work. We audit rules and skills weekly, remove what isn’t useful and feed mistakes back into the rules.

What would we do differently?

If we were starting again, we would involve more of the team from the beginning. Tar built the factory alone to cut friction and get a working version fast, but the feedback from colleagues turned out to be one of the most valuable parts of the process and came too late. We would also start with less default context. We initially gave agents too much context, found that they lost the thread and moved to a narrow scope with context loaded on demand.

What’s next for our software factory?

We started building the factory with three goals: ship faster, reduce the time between a requirement arriving and development starting and give engineers one shared workflow.

We don’t yet have a speed baseline, but the median time from job start to PR ready for review is about 25 minutes. Compute costs average approximately $4.60 per merged PR, excluding engineers’ time. None of the five PRs we can evaluate so far merged without a human review round. A review agent now runs in shadow mode and records its own verdict on every PR. It does not merge anything yet. Once its verdicts match the human ones often enough, a PR whose spec an engineer approved and that passed every check on the way will merge without a person, and the factory will watch the change in production.

We haven’t measured the time from requirement arrival to development start. As for adoption, ten engineers are set up to use the shared workflow and seven have used it in the last 30 days. Most engineers still move tasks between stages themselves.

Today, the factory stops at merge. The next piece is the one spec-driven development calls for and we haven’t built yet: measure the effect of each change once it is in production, and revert it when the measurement says so. We also plan to have the factory generate release notes after merge, using a template defined by marketing.

Meet us at Black Hat