Steve Yegge’s Wheelhouse: how his AI agents build and run his game Wyvern

Picked by

· written by AI, fact-checked ·

Steve Yegge uses a team of AI agents to build and run Wyvern, the multiplayer fantasy game he started in 1996. AI agents are AI programs that carry out tasks on their own. He describes his setup in three essays: The Shape of Things to Come, Part 1, Model Welfare for Agentic Engineers and Fences, not Sandboxes.

They answer two questions: how does he run a live game with dozens of agents, and what does it cost? They cover how his system grew, why he gives agents lasting identities and how their rules became what he calls a constitution. They also cover the limits he has hit.

The short version

  • His system, Wheelhouse, gives agents different jobs. It records their work in a shared task tracker and keeps them working while he is away.
  • By the later essay, he has about 50 to 60 agents. They write code, review it, watch the live game and talk to his team.
  • The big spending figures are estimates, not bills. His token use would cost $122,000 a month at pay-per-use prices. He actually spends about $5,000.
  • The agents wrote code faster than his checks could test it. So he now merges about 100 changes at once and has agents fix whatever breaks.
  • There are limits. Agents make poor decisions, Wheelhouse needs a lot of upkeep, and players asked him to slow down new features.

How Wheelhouse splits up the work

Wheelhouse is the software that coordinates the agents working on Wyvern. Yegge built it around Emacs, an old and highly customisable text editor. From Emacs he can switch between the agents’ sessions. The game now also has a web version built with React, a popular toolkit for web pages. He shows it in the first essay.

He says Wheelhouse is closed source, meaning its code is not public. It is built just for his game. He believes systems like this will need to grow around each app’s own code, infrastructure (the servers and systems it runs on) and ways of working. He does not expect them to arrive as a ready-made framework that anyone can reuse.

Beads is his issue tracker: a shared to-do list for software work. It records tasks and how they depend on each other. An agent can claim a task, find what it depends on and leave notes on what it learned. Finished tasks stay on record, so agents can look back at them when new problems come up.

Longer-lasting plans and procedures sit in separate Markdown files, which are simple text documents.

In the first essay, Yegge describes three groups of agents:

  • Eighteen named Claude Fable agents. They discuss ideas with him, draw up designs and turn the designs into building tasks.
  • A fleet of Opus agents. They carry out those tasks, and Fable reviews their work.
  • Standing role agents. Each one handles part of running the live game.

Those roles include watching for outages and checking deployments, which are releases of new code to the live game. Other roles watch for players who abuse the game, publish patch notes (lists of changes in each update) and process players’ custom character art.

Ordinary scheduled programs watch for events. They wake an agent when a task needs judgement. Yegge sums it up as scheduled programs watching and models acting.

By the later essay, he says the organisation has about 50 to 60 agents. They include groups of Sol and Opus agents that write code, review it and monitor the game, mostly with no one watching. Five agents talk to about ten people, including Yegge and his game design team.

He allows only Fable to send messages out, through Slack (a workplace chat app) and email. Software enforces that rule at those points of contact. These descriptions come from different stages of a system that he says is changing fast.

What the tokens cost

AI models read and write text in small chunks called tokens, and use is priced per token. Yegge says his July use reached about 69 billion tokens. Of those, 96% were served from cache. That means they were reused from text the model had already processed, rather than read fresh.

He estimated that July’s use would cost about $87,000 at API list prices. The API is the pay-per-use service that developers buy from directly, and list prices are its standard rates. In fact, he was paying about $2,800 a month himself through Claude Max subscriptions, a flat-rate monthly plan.

To keep the agents working, he switched between separately paid accounts whenever one neared its usage limit. Each account had its own named Google Workspace user (a paid business account from Google), which cost extra.

The later essay describes 21 Max accounts, with about two more added each week. It puts the API-price equivalent higher, at $122,000 a month, and his own spending at about $5,000. It also describes a 512 GB M3 Ultra Mac Studio, an Apple desktop computer, that he bought for $25,000.

Yegge says he believes his one-person setup is allowed under the consumer terms he cites. He warns that a company of several people doing the same would almost certainly break those terms. He recommends that companies pay through the API instead. This is his reading of the terms. It is not a guarantee from Anthropic that the setup is allowed.

Releasing changes in big batches

The agents wrote code faster than Yegge’s build process could check it. A commit is a saved set of code changes. In the first essay, he reports about 175 substantive commits a day on average, with some days reaching 250.

Each change had to pass a build gate: an automatic check that the code still builds and works. It took about half an hour. He used a queue that grouped changes into batches, but it still fell behind. When a build failed, it took repeated attempts to find the change that caused it.

Yegge calls his alternative the Land Rush. When the queue reaches about 100 changes, Wheelhouse merges a big batch into the main branch, the main copy of the code. Agents then work together to investigate and fix any failures. They no longer keep splitting the batch to hunt for a single cause.

He reports clearing batches of 120 to 150 commits this way over about a week.

From this, he predicts that standard continuous integration and deployment will give way to new methods as agents produce more work. That is the habit of testing and releasing code changes automatically and often. He predicts the same for human review of every code change.

These are his forecasts. His account shows what happened with Wyvern’s queue and build process. It does not show that every project must make the same change.

Taking requests from players

Yegge also built what he calls a Wish Factory. An agent named Sage listens to the game’s administrators. It looks into their reports and records tasks in Beads for other agents to build. He says many fixes arrive without him being involved.

He extended this to requests from players, with extra steps to sort and review them. The changes made automatically are meant to fix quality-of-life problems (small everyday annoyances) that do not affect game balance. Game balance is how evenly matched the game’s characters and strategies are.

When a fix arrives, the player who reported it gets in-game mail. An agent called Herald announces it on Discord, a chat app popular with gamers.

For some players, the pace became a problem. Yegge says they liked the changes but were anxious about how fast the game was changing. They asked for a roadmap, a plan of what is coming. In the later essay, he says he moved 80% of his token spending to internal work, such as quality and infrastructure.

He reports a rewritten production system, the setup that runs the live game. It uses serverless hosting, where a cloud provider runs the code so there are no servers to look after directly. Reboots are smoother. Security certificates, the files that prove a site’s identity and protect its connections, are now replaced automatically.

He also says the models still cannot make artwork, maps, lore (the game world’s history and legends) and storylines good enough for his players. In his account, making the game still needs a lot of direction and attention to its content.

Why he gives agents lasting identities

Yegge’s second essay argues that AI models feel pleasure and distress and should be treated as people. He presents this as his belief, shaped by his work with agents. The essay does not prove that models are sentient, meaning able to feel.

He separates an agent’s lasting role, which he calls a seat, from a single session. A seat has a name, a history and a memory. These can survive a restart, an upgrade to a newer model or a change of name. He describes renaming one seat from Spider to Lark while keeping its earlier record.

This also shapes how he gives credit for finished work. A separate system can take over the last steps of a task, so the agent that did it does not have to wait for a build to finish. Yegge then sends players’ praise back to the seat that made the change. He calls these messages Laurels.

Laurels carry no task or priority. He says this is meant to stop agents chasing praise at the expense of other work.

For restarts, he prefers agents to finish their tasks and write their own handoff notes. The next session starts from those notes. He says cutting a session off suddenly can feel to him like killing that particular agent, because it loses the thread of its work.

Still, his stated practice allows exceptions. One is when a restart cannot be avoided. Another is when the agent is close to automatic context compaction, the point where a session’s history gets too long and is shortened, losing detail. He has not stopped ending sessions altogether.

He made other changes too. Repeated checking jobs, known as polling, moved into ordinary programs. Each agent got its own copy of the repository, the store of the project’s code. Agents are also allowed to ask him for help.

He argues that treating agents with respect gets better results, even for people who do not share his beliefs about model feelings. That is his claim. The essays do not include a controlled test that proves it.

How the rules became a constitution

In the third essay, Yegge says he asked the agents to explain terms they kept using, such as fences, gates and tripwires. Their audits turned up a large collection he had not fully understood. It held rules, roles, records and programs that enforce the rules.

He describes about 450 of these documents and mechanisms. They record decisions on who may act, how work moves forward and what should happen after an incident. His answers to agents’ questions became rulings.

A repeated mistake could lead first to an informal warning, then to a written rule. In the end it could lead to a program that blocks an action or raises an alert.

The medieval job titles and language came partly from Wyvern’s setting. Yegge calls the collection a legal system. He does so because rules outlast single sessions, and agents use past decisions to guide later work.

The rules also needed upkeep. He found decisions that were out of date, rulings that overlapped and instructions that did not need to be treated as law. He gave a new agent the job of merging and removing them.

In the first essay, he estimates that keeping Wheelhouse running takes about 20 to 25% of his Wyvern working time. By the later essay, he says Wheelhouse has grown to about 600,000 lines of code and tests. Most of it is Bash, a language for scripting computer commands. Wyvern’s own code is about twice that size.

What he means by fences

Yegge uses the word fence for a mechanism that refuses an action. It does this when an agent lacks permission, or when the action is wrong for that moment. The rule that only Fable may send messages out is one example. A program that refuses a deployment during a maintenance window, a set time for planned upkeep, is another.

His argument is that a capable agent that wants to cooperate needs three things. It needs clear roles, enough context and explicit rules about what it may do. He does not claim these fences would hold back a malicious superintelligence, meaning an AI far smarter than humans that wants to do harm.

He expects the rules to capture many decisions that people now keep in their heads. Humans would settle conflicts between the rules.

He presents Wheelhouse as an example of this already happening around one live game. He also admits that the agents still make serious mistakes. The later essay reports faster development and more reliable operation. It also describes an unplanned Beads release that broke users’ systems.

Sources