cartae.app

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.

By François · 25 November 2026 · 8-minute read

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.

HOW ROLES ARE ORGANISED AROUND BRIDGET HUMAN (DIRECTION) Vision, visual taste, trade-offs COORDINATOR + BRIDGET (CHIEF OF STAFF) Bounded missions, cross-reviews, single merge into main ENGINE Rust computation ×233 and determinism 3D RENDERING WebGL, VRAM and Chrome captures TERRITORY IGN, OSM, LiDAR, Panoramax BRAIN EMP 2019, 128 B, technical notes PRODUCTION Server activation, safe rollback
Figure 1. The five domains kept separate on Twinz. The coordinator remains the only one who integrates into the main branch; deployment and activation of the public service go through a separate owner.

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.

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.”

Instruction set as early as 23 September 2026 to avoid repeating the same mistakes

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