The Factory Stack | Warp

Introducing Warp Factories

Warp Factories: open, flexible infrastructure for building your own cloud software factory. Learn More

Software factories should be built on an infrastructure stack that is open, composable and defined in code.

Open == works with any model, agent and hosting configuration
Composable == you can adopt part or all of the stack, and use the pieces however you want
Defined in code == factory state is versioned, testable, and revertible

In this article, I’ll lay out how we designed the stack for Warp Factories. The principles apply to anyone who is looking to move to a factory model.

Let’s break this down layer by layer, starting with the foundation and working our way up:

Factories-as-code

Underlying the entire factory stack is a definition of the Factory-as-code, starting with factory.yaml, including:

The precise format of the code matters less than having a code-based approach that allows for versioned changes to the factory definition. Versioning opens up the possibility of benchmarking, A/B testing, rollbacks, etc. It’s Terraform for factories. If your factory is defined in code with versioning, it's much easier for you (or your agent) to test and improve.

Data and context

One level up sits the Context Layer of your factory. This is comprised of:

The Context Layer should be pluggable and extensible.

If you are using a third-party context layer, you should be able to store all data from it on your own infrastructure. No external provider should get to train on this data. ZDR is a must.

Compute

Next up is the Compute Layer. This is where your agents run.

In the Compute Layer, you need:

If you are evaluating factory infra providers, you should make sure that compute is self-hostable.

Inference

The Inference Layer should support running any model and any agent so that you can evolve and test your factory configuration to optimize quality, cost and speed. It also prevents lock-in and any single model provider having pricing power over your org over time, and insulates you against risks of just having one model source (e.g. regulation, etc.).

It should support frontier and open-weight models and multiple agent harnesses so you can test their quality.

E.g. you should have at least one harness that supports open-weight models like Warp Agent or OpenCode, plus the ability to run the main model harnesses from the model labs directly, like Claude Code and Codex.

It also should support different inference sources, including connecting to APIs…

Finally, it should support tune-able model routing, so that as you measure and benchmark your factory, you can change the model and harness mix to optimize performance on your own workflows.

Improvement

An important part of any software factory is the Improvement Infrastructure: what the factory provides to ensure that software gets built at higher quality and lower cost over time.

The first piece of improvement is metrics and observability. The factory should provide visibility into:

All raw internal metrics data should be available via MCP and API so you (and your agents) can slice and dice your data to understand factory throughput.

Once you have reliable metrics, you’ll want improvement infrastructure:

Note that measurable improvement is only possible if:

Orchestration

Your factory needs a runtime. It needs:

Think of this as the “control plane” for your factory. It should handle things like:

As mentioned above, the Orchestration Layer should support multiple agent harnesses, and present a unified interface for working with all of them and storing the data exhaust from each.

Access

The Access Layer sits at the top of the Factory Stack.

Think of “access” in terms of how work gets in and out of the factory from external systems.

These systems are:

All of these access points under the hood should use a unified set of APIs that allow for launching work, monitoring progress, updating the factory definition, and so on.

API-first is essential because it allows agents to debug and control the factory (with human supervision).

Conclusion

In sum, as the world moves towards automated development, you should be thinking of your software factories as an Infrastructure Stack. Warp Factories provides an open, composable implementation of this stack.

Warp Factories is being deployed by enterprises across the Fortune 500 to help them scale development while measurably improving coding agent ROI.

If you are exploring adopting a software factory approach, we would love to chat.