Bridget notebook · Article 5
Bridget: running a 12-million-inhabitant project with a team of AI agents
Twinz (twinzcities.com) moves forward on five fronts at once: a simulation engine for 12.25 million inhabitants, 3D rendering in the browser, geographic data, micro neural networks and server operations. To run this project on my own, I built Bridget, an orchestration tool that spreads the work across several AI agents from different providers and requires evidence before every merge.
Why a single chat thread ends up stuck
When you start a software project with an artificial intelligence assistant, a single thread is enough. As soon as the project grows and touches server computation, 3D, public maps and research all at once, that single thread breaks against three walls: the context window fills up every thirty minutes, one provider's quota cuts the day in half, and an urgent fix drowns the long-term work.
The quantified audit of the first 9.4 days of the city's first version shows how big the work quickly became: 458 agent sessions (24 main sessions and 434 sub-agents) from 3 providers and 8 models, adding up to 892 active agent-hours, 126,384 tool calls and 4,376 commits on the main branch, against 2,661 human messages (about one human message for every 47 agent actions).
To get these sessions working together without copying and pasting instructions by hand all day, I wrote Bridget. At first it was a simple message channel between agent sessions. It has become the project's Chief of Staff post: assigning a bounded mission, choosing a model suited to the need, relaying a cross-review between providers and tracking each delivery by its commit hash.
Separating roles instead of handing everything to a generalist
Having the same agent write the engine, the 3D, the data and the deployment in the same folder leads straight to conflicts. On Twinz, the work rests on a clear separation of responsibilities, each entrusted to an autonomous agent in its own isolated workspace.
Each domain produces measurable results within its scope: the engine team brings the measured speed to ×233 (Article 2), the visual team watches over the 496 MiB ceiling and the captures (Article 3), the territory team qualifies public data and LiDAR (Article 4), the research team tests the 128-byte brains (Article 1), and a separate owner handles production releases with a verified rollback.
A second mechanism paid off very quickly: cross-review between providers. Asking a different model to review a plan or a delivery before merging breaks a single provider's blind spots. Of the 434 delegations in the first phase, 52 missions (12%, calculated) were solely meant to check existing work. These cross-reviews spotted 6 major defects in a neighbourhood plan and 13 objections upheld out of 15 during a review of urban mechanisms. Using several providers also absorbs quota cuts: on 28 September, when the weekly quota blocked the main model until 8 am, the other agents relayed by Bridget carried on alone and took 6 fixes from measurement to production.
The real failures that shaped the safeguards
Telling the story of multi-agent orchestration without showing where it breaks would paint a false picture. Almost all our current rules come from a concrete incident experienced in the field.
- Work announced as finished, wrong image. Several agents delivered character outfits or pieces of roadway while declaring every test green, when eight figures shared the same arm or grey slabs covered the façades. No visual delivery is accepted on the strength of a counter any more: the captures must be opened in a real browser.
- Competing clean-ups and a full disk. On 24 September, three agents deleted working copies without consulting one another, cutting off the folder the public server was running from. The hard drive fell to 163 MB free, and machine load peaked at 343 for 16 cores on 29 September. Today, free space is checked before any heavy work (stop below 15 GB), computations longer than 30 s go to a dedicated server, and each batch is closed and cleaned up right after it is merged.
- Bugs in the messaging itself. In the first week, the Bridget audit counted 112 subscriptions lost after the daemon restarted, 15 messages delivered several hours late on 1 October, and a “no reply expected” note interpreted by an agent as “nothing to do”. This unfiltered record allowed Bridget's maintainer to ship nine targeted fixes the same day.
- Drowning under stacked rules. By adding an instruction after every incident, the first version of the project required an agent to read 2,320 lines of procedures before modifying a 3D place, and 82% of commits on the publishing scripts were fixes to scripts. When rebuilding as Twinz, we set a strict limit: a single central page of instructions under 150 lines. A new rule replaces an old one or fixes the root cause.
What broke in v1 versus the rules applied on Twinz
| Risk observed | Incident in the first phase | Current safeguard |
|---|---|---|
| False visual green | Grey façades or identical arms delivered with green tests (measured) | Before-and-after captures in a real Chrome required for every visual batch |
| Machine saturation | Disk at 163 MB free, load 343 on 16 cores (measured) | Disk check before launch, heavy computation on a server, immediate close-out |
| Crossed merges | 1.58 GB merged despite a refusal, 3 read-only bypasses (measured) | A single coordinator integrates into main; heavy data kept out of Git |
| Bureaucracy | 2,320 lines of instructions, 1,051 heavy test files (measured) | A single page under 150 lines, tests targeted at the change, zero dead code |
Figures from the internal audit of the first 9.4 days (September and October 2026) and from the rebuild audit of 7 November 2026.
What can't be delegated
With this discipline, the loop can run on its own for several hours in a row, including at night (up to 4 h 47 straight without a human message as early as 2 October). Yet four decisions remain entirely human: setting the direction in one sentence, judging the final rendering on the image, refusing a bad shortcut and asking the common-sense question that breaks a collective blind spot.
“Everything you fix has to be written back either into the deterministic checks or into the method.”
One example sums up this boundary well. One evening in September, a simulated inhabitant kept talking about loneliness. Every unit test passed. A simple human question (“why does she keep talking about her loneliness?”) triggered a diagnosis that found a constant four times too strong. The same happened on 6 November, when I refused to put off-camera neighbourhoods to sleep to save RAM: no agent can take on its own a decision that changes the very nature of the world we want to build.
Limits still open in our orchestration
- Silent defects hold out for a long time: one incident raised an error at the end of every task for 14 hours straight without the city looking sick, until another project happened to read the log.
- Coordination costs grow as soon as several agents touch the same files or the same roadmap; limiting the size of parallel teams is often more effective than multiplying sessions.
- Agents remain optimistic when assessing their own work: of the 434 delegations measured, 88.2% were judged delivered by their author, while several were rejected at review.