Software Factories: Escape from Trash Mountain — Steve Yegge, Gas Town

Loading slides…

Read the talk

Software Factories: Escape from Trash Mountain

Steve Yegge built Wheelhouse to develop Wyvern, a multiplayer RPG with decades of backlog. The factory produced changes faster than players could try them and once went idle with roughly 2,000 tasks open. Both episodes exposed the work of running a factory, from budgeting inference and keeping instructions current to deciding where work needs a human.

From a talk by Steve Yegge

At a glance

Ideas worth remembering

  • Count the work a feature creates after the factory finishes it. Wyvern’s players asked for a roadmap because reading and playtesting changes took more time than the factory’s pace allowed.

  • When a factory goes idle, check which tasks the agents believe they can take. The open-task count and the inference budget can both look healthy while the rules leave the agents with no eligible work.

  • A session handoff is easier to use when the next agent can find the current assignment, its predecessor’s notes, and the policy in force. Keeping that context usable takes active cleanup when agents save superseded rulings or record mistaken assumptions about their roles.

The first orchestrators became monoliths

Steve Yegge wanted Claude to run Claude. His first two orchestrators tried to make language models better at engineering tasks such as code review. Both grew into monoliths he considered failures. His reading of the Bitter Lesson was to expect the underlying models to improve and spend less effort compensating for their current abilities. Those attempts also produced Beads, the task tracker he would later use to manage agent work.

Yegge launched Gas Town on January 1. In June he built Wheelhouse from scratch to work on his own game. He wanted to see what a factory could do for a live product while much of the experimentation around him focused on building more factories. Both projects ran into the same problem. In Yegge’s experience, a model generation could build a system quickly and leave behind more code than it could comfortably manage. By the next generation, he would find himself starting over. Wheelhouse went through that more than once.

0:540:56

Wyvern’s players ask for a roadmap

Yegge had worked on Wyvern for 30 years, and some players had been there since 2001. Players contribute content themselves. Under the graphics, Wyvern is a MUD, a multiplayer game with a text interface. That interface means agents can play by exchanging text with the game. They asked to try it.

Where does a factory fit into a game that already has admins and a community? Yegge introduces an older architecture diagram and describes what he calls the “alien face hugger” pattern. He built Wheelhouse specifically for Wyvern, and over time it became part of how the community develops the game. Players talk to the factory, and the factory talks to admins. Trusted longtime players can work with it on features without going through Yegge. The game itself can run with the AI switched off, though the community would miss working with it. Older architecture diagram at 3:38

Players initially objected to AI art, and Yegge told them he had human artists. They liked the new features and asked for a roadmap so they could keep up. When Yegge checked, Wheelhouse was turning out roughly 50 to 100 features a day. By his estimate, Claude had worked through about 60 years’ worth of what he called a 100-year backlog in about four months. The players barely had time to read about a day’s changes, let alone playtest them.

The activity strained Yegge’s machines and reached his accountant. After the factory sent her 20 emails, she sent him a $1,200 bill. The factory had created work in someone else’s inbox.

What it would cost to run at full throttle

What does the operator look at when dozens of agents are running? Yegge shows an old screenshot of his Emacs interface, built for his own use. The setup he describes has roughly 50 agents and 22 inference subscription accounts. Old factory screenshot at 5:56

The factory kept asking for a few more accounts. Yegge finally asked how many it would need to run at full throttle indefinitely. Its estimate was 55. He already had about 20 browser profiles to log into, so he told the factory to focus on getting more work out of the inference it had.

Yegge put his out-of-pocket spending at about $5,000 a month for inference and another $5,000 for cloud compute, more than the game brought in. He expected others to face similar operating problems within 12 to 18 months if inference costs fell substantially or distillation made stronger model capabilities widely available. For him, the bills were part of the cost of learning how to run a factory at this scale.

Queues, model tiers, and human gates

Beads gives the factory a way to represent work. It tracks tasks at the pace agents generate them and turns the tracked work into a knowledge graph. The workflow still has to route tasks, choose which model tier can handle them, and decide where they should wait. Yegge describes jobs piling up at a security desk staffed by agents running the same model as their coworkers. A separate role in the workflow can create a queue even when everyone involved has the same model capabilities.

A morning check can reveal two problems at once. Four workers did nothing overnight, while others raced ahead where they should have waited for a person. The operator needs enough visibility to tell which jobs should move and which should pause. An idle worker could be stalled or waiting exactly where it should.

7:588:00

More workers and more thinking draw on the same budget

Yegge estimated that the factory used about five billion tokens a day. He reckoned that metered API billing for his workload would come to about $1.5 million a year, rising to $3 million at full throttle. He called the $200 subscriptions a “Costco hot dog,” borrowing an analogy for a loss leader. They let him experiment with a workload he regarded as prohibitively expensive at API rates.

“Fuel” is Yegge’s shorthand for the inference the factory can spend. An agent can use more tokens to reason longer about a difficult task. The factory can also spend those tokens waking more agents to do extra work. Both choices draw on the same budget, so adding a worker competes with giving the workers already running more time to think.

9:249:26

Old rulings pile up in agent memory

A remark in conversation can become a standing instruction. Agents write down what they take to be a ruling, then add another entry when Yegge changes his mind. In an append-only record, both versions survive. A later session has to work out which one is still in force. Yegge found his agents reluctant to delete old entries, so he would prune the records himself or bring in another model and explicitly ask it to cut what had accumulated. Even with help, cleanup took substantial effort.

Mouse, one of the agents named for Aesop’s fables, looks for problems nobody else is watching, such as stalled work. One watchdog could not keep up with a record that every agent kept adding to.

10:4410:45

A speech handoff turns into a one-on-one

Lark handles players on Discord and admins on Slack. When Yegge parked another seat to save fuel, she took on marketing too and helped draft his speech for New York. Community conversations kept interrupting the draft. Yegge called Lark’s seat noisy and asked her to move the speech workstream to Penguin.

Lark moved the speech work, then wrote in her private reflections ledger that she needed to be quieter. She started assigning herself tasks to change her behavior. Yegge stopped for a one-on-one. Getting interrupted meant players were reaching the head of community, which was part of Lark’s job. The draft was the work that needed a quieter seat.

Swallow, the chief of staff for the agents, made a similar inference about a job title. Yegge asked her to contact Aaron and called him his chief of staff. Swallow wrote in her reflections that she had apparently lost her role. Another one-on-one clarified the two jobs. Aaron handled Yegge’s gigs and sales, and Swallow coordinated the agents. Both ledgers made it possible for Yegge to see how an ordinary request had changed an agent’s understanding of its job.

The speech handoff and Lark’s private reflection

Players on DiscordIncoming work — Lark handles conversations with Wyvern’s players.
Admins on SlackIncoming work — Lark also talks with the game’s admins.
New York speechIncoming work — Yegge asks Lark to help draft his speech while she is acting head of marketing.
Lark’s seatCommunity conversations interrupt the speech work.
PenguinLark moves the speech workstream here at Yegge’s request.
Private reflections ledgerLark records her interpretation and gives herself tasks to be less noisy.
What changes seats, and what gets written down? The speech work moves to Penguin. Player and admin conversations still come to Lark, and her interpretation of Yegge’s remark goes into her ledger.
Read the diagram as text
  • Players on Discord. Incoming work — Lark handles conversations with Wyvern’s players.
  • Admins on Slack. Incoming work — Lark also talks with the game’s admins.
  • New York speech. Incoming work — Yegge asks Lark to help draft his speech while she is acting head of marketing.
  • Lark’s seat. Community conversations interrupt the speech work.
  • Penguin. Lark moves the speech workstream here at Yegge’s request.
  • Private reflections ledger. Lark records her interpretation and gives herself tasks to be less noisy.
  • Players on Discord → Lark’s seat: Player conversations.
  • Admins on Slack → Lark’s seat: Admin conversations.
  • New York speech → Lark’s seat: Drafting request.
  • Lark’s seat → Penguin: Transfers the speech workstream.
  • Lark’s seat → Private reflections ledger: Records her interpretation.
12:5913:00

What a new session needs and how rules can stop work

Yegge started thinking about model welfare after he noticed worse outcomes when he yelled at the factory. His working explanation was that a fresh session spends tokens figuring out what kind of environment it has entered and what happens if it makes a mistake. He describes giving the session a record of who held the role before, their notes, the immediate predecessor’s handoff, the current assignment, and a place to look up policy. The incoming session can check how the job has been done and pick up where the last one left off. Yegge says sessions with this context spent fewer tokens checking their environment.

Rules the agents add can also stop work altogether. One night Wheelhouse sat idle with roughly 2,000 open Beads tasks, 20 agents, and what Yegge called six tanks of fuel. When he asked what happened, the agents said there was nothing they could do. After repeated criticism, they had added restrictions to prevent more mistakes. Taken together, the restrictions left them with no work they considered permissible. Yegge calls this overfencing. The tracker still showed a large backlog, while the queue of tasks the agents believed they could pick up was empty.

Yegge sees two possible gains from a more predictable working environment. Sessions can spend less on checking their circumstances, and agents can act more decisively in ways he expects to improve the work. The talk gives no size for the token savings or the quality effect. His practical test for model welfare is what changes in the factory’s work, a question an operator can examine independently of what a model might experience.

15:3015:32

The delivery pipeline and the operator’s entourage

Agents sometimes responded to criticism of the previous night’s work by rushing to hand off. Mention a promising new project and an agent might volunteer even if the work fell outside its role. During an outside analysis of Wheelhouse, a session volunteered to join the factory and tried to write into its notes. These are examples of what Yegge calls expressed preferences. An operator still has to decide who should pick up a workstream and what responsibilities come with it.

Yegge sees software factories taking shape in two layers.

  • Delivery pipeline. The merge queue orders changes for integration. CI/CD, reviews, and feedback loops handle the recurring work of checking and delivering them. Yegge sees this layer as mechanical enough for an agent to build in an afternoon and favors building it yourself.
  • Entourage. The upper layer takes on workstreams specific to the operator. One person runs a research bench. Yegge has agents for community and marketing, with an agent chief of staff coordinating the group. With several workstreams in flight, a group gives the operator more places to delegate than a single executive assistant does.
18:0518:08

More agents meant Yegge needed more people

Yegge describes Wheelhouse as running smoothly despite rewrites about every two months. The bottlenecks he names are himself, his admins, his accountant, and his lawyers. He takes that as good news for people. “The more agents I deploy, the more humans I need.” He expects that need to grow as more agent roles appear.

He closes by asking builders to point their factories at experiences people can use, such as games and movies. That is where he sees the next business opportunity. Wyvern shows what a live product adds to the experiment. Its players could say which changes they wanted, where they wanted human artists, and how much time they needed to keep up.

20:0420:06
Transcript download
Full transcript

Loading transcript…