---
title: "The cheapest software factory"
description: "Software is inference, an agent and a runtime. The agent decides how much inference a task takes, so that is where we make software cheap."
url: "https://folsom.ai/blog/about"
section: "Blog"
---

# The cheapest software factory

_Software is inference, an agent and a runtime. The agent decides how much inference a task takes, so that is where we make software cheap._

By Folsom

August 28, 2026

A software factory turns what you want into merged code. Every one, ours included, is built from three parts:

```math
\text{software} = \text{inference} + \text{agent} + \text{runtime}
```

Inference is the model and every token it reads and writes. The runtime is the computer the work happens on: a sandbox, a browser, a test run. The agent decides what the model sees and what it may do. Inference is most of the bill, and the agent decides how much inference a task takes. That makes the agent the part to get right.

## The agent is a harness

Everyone can rent the same model. What differs between coding agents is the harness around it:

```math
\text{agent} = \text{harness} = \text{tools} + \text{system instructions}
```

The tools are what the model can do; the system instructions are what it is told before it starts. Together they decide how many turns a task takes, how much context each turn re-reads and how much of it the provider can serve from cache. The same model can cost up to five times more in one harness than in another, which is why we [measure harnesses on the same model](/blog/introducing-reason-agent-1-1).

## Inside Folsom’s harness

**Codemode** The model has one Folsom tool, codemode, which runs JavaScript that calls every other tool. Instead of one tool call per model turn, the model writes a short program: a search, five file reads and a test run happen in one call, in parallel, and only what the program returns comes back into context.

**Async tools** Work that takes a while does not hold up the turn. Spawning subagents returns their session IDs at once; the model keeps working and reads their results when it needs them.

**Minimal system instructions** The prompt is short, and it holds only what we think wins at fast execution: act, test what you changed, report what you did. Everything else a platform needs, from other sessions and cloud computers to preview URLs and pull requests, sits behind deferred tools that codemode finds on demand. The prompt and tools never change between turns and each request only appends to the last, so every turn is fully cache-eligible up to its new content.

On GPT-6 Astra, Folsom 1.1 used 23% fewer input tokens than Codex and cost 15–23% less per attempt on every benchmark we ran. [Read the results](/blog/introducing-reason-agent-1-1).

## Toward recursive language models

Recursive language models (RLMs) take the same idea further. A long context becomes data the model programs over instead of text it has to read, and the model can call itself on the pieces it picks:

```math
\text{answer} = \text{model}\big(\text{program}(\text{context},\ \text{model})\big)
```

Codemode is the first half of that: tool output lands in a program’s variables, not in the context window, and the model chooses what to read. Letting that program call the model recursively is the second half, and it is where we are taking the cheapest software factory next.
