Building New York City with Agents

1Stanford University 2Google Research 3Google DeepMind

From a map location to an articulated, executable 3D building, for every building of a district: coding agents with a structured building harness, scaled to the city by harness evolving.

Abstract

We present an agentic framework for reconstructing real-world cities as articulated 3D digital twins with semantic parts, operable joints, carved openings and interior floors, starting from building map locations. While prior works are restricted to static surface shells or generic procedural layouts, we equip coding agents with a structured domain harness to synthesize faithful, executable 3D building programs. The harness first retrieves and grounds multi-modal data from maps, street and aerial imagery, and web facts into a specification fixing each building's coarse structure. Conditioned on this specification, the agent iteratively programs the facades, architectural elements and shapes using a hierarchical building SDK, refining with geometric and visual verifier checks. Furthermore, because scaling frontier agents across thousands of buildings is prohibitively expensive, we introduce harness evolving, which distills and merges recurring 3D structures from a small set of strong runs into tested skill functions to transfer frontier capabilities to a low-cost agent. Experimental results across thousands of city buildings demonstrate that our approach outperforms bare coding agents while scaling near-frontier accuracy and diversity across an entire urban district at a fraction of the cost.

Interactive 3D buildings

Each model here is the output of one agent run: an executable building.py compiled to a URDF with meshes. Every part is a named part of the program, so the same model can be shown with the build's own material colours, as plain geometry, with a semantic class read from the part's name, or with one colour per instance (URDF link). Doors, windows and other operable parts sit on revolute or prismatic joints with their limits: drag the articulation slider to open them.

loading model…

Pick a building above · drag to rotate · right-drag or shift-drag to pan · scroll to zoom

The models may look slightly different from our Blender renders, since this page draws them with a web renderer.

Generalize to different models & harnesses

Our pipeline is not tied to one model or one harness: the same building SDK and tools can be driven by a model called through its API in our own agent loop, or by an existing coding-agent harness such as Codex, Claude Code or Antigravity. Here we show three buildings, each built with eight different model & harness settings. Pick a building, then drag in any view to turn all eight together.

loading models…

Building in action

Two buildings, each built with two models: GPT-6-astra and the much cheaper Gemini-3.8-flash. This is a close look at one build from the coding side, every code edit, compile and render as it happened; the next section steps back to the stages these steps belong to.

How a building is made

One building, the Flatiron, from its map location to an articulated digital twin, and how strong runs on a few buildings become skills for the whole city. The diagram plays on its own; click a step to jump to it.

Multi-modal evidence

The harness retrieves the evidence, then the agent vets each image.

Map with the footprint and street-view poses
footprint + view poses
Aerial photo
aerial
Street view
street view (posed)
Web photo
web photo
building=officeheight=88 m levels=21roof:shape=flat1 surveyed building:part
21 storeys on a triangular lot: “rises twenty-one stories from a triangular lot”National Historic Landmark nomination
18 openings wide: “eighteen window openings wide above the third story”NYC Landmarks Preservation Commission, 1966
floors 18–19: “nine double-height window openings”NYC Landmarks Preservation Commission, 1966
Rejected construction photo
rejected: a construction frame,
not the exterior today

Coarse specification

The evidence is compiled into a specification that fixes the coarse building before any code is written: L0 the site, L1 vertical mass zones, L2 storey bands.

A draft comes straight from the map; the agent revises it from the photos and facts.

L0 site
L0 site
→
L1 draftL1 revised
L1 draft: zones at 88 mL1 revised: fill zones 84.2 m
→
L2 draftL2 revised
L2 draft: 22 × 4 m storeysL2 revised: 21 storeys, 13 bands
what the agent changed, and why:
storeys 22 → 21
exterior rows + recessed penthouse
1 band → 13 bands
5.5 m ground floor … 3.8 m penthouse
fill zones 88 → 84.2 m
the surveyed penthouse stays 88 m

Plan, program, verify

The agent plans, then writes building.py with the hierarchical SDK, and in every round verifies the result and updates the code.

text plan (first version, abridged)
L3eighteen sash columns on each long face, eight on the south; crown bays
L4add_sash_row: carved double-hung openings with two sliding leaves
L5shape_arch: arch section with voussoir joints and keystone
artdouble-hung sashes slide on real prismatic joints
# L5: a parameterised shape
def shape_kiosk_frame(slot, *, depth, post,
                      bays, transoms): ...

# L4: an element family with a real joint
def add_kiosk(b, face, *, z, width, height,
              frame_shape, door_shape, ...):
    slot = face_slot(face, z=z, width=width, ...)
    attach(b, name + '_shopfront_frame',
           [place_into(slot, frame_shape(slot))])
    b.joints.append(Joint(name + '_door_open',
                          JointType.REVOLUTE, ...))

# L3: the facade system places it at the prow
add_kiosk(b, tip, **p.kiosk, name='north_kiosk')
round 1round 2 round 3final
compile failure
TypeError: Storey.perimeter_frames() got an unexpected keyword argument 'z'
building.py, line 701
the agent fixes the call and recompiles
Floating kiosk door
geometry check: floating part (red)
'north_kiosk_door' is 6.9 m clear of the plan; ask the geometry where the wall is (storey.faces_for_side)
Render
render
Reference photo
reference, same pose
geometry: OK: 21 storeys, 2,451 parts, 8 checks passed
visual check: the wall colour was left at the palette default; the photos show a specific facade colour
Final stage-1 build
clean
21 storeys, 2,484 parts, 1,945 moving joints; 8 checks passed, 4 declared facts verified; every planned step built

Facade, elements, shapes

On top of the specification the agent authors three more levels: L3 the facade system (the layout and rhythm of elements, with carved openings), L4 elements (self-contained structures such as arcades, cornices or a kiosk) and L5 shapes (the solid forms of parts).

L3
L3 facade system
→
L4
L4 15 element families
windows
surrounds
courses
trim
bays, reliefs
crown colonnade
portal, kiosk
roof
→
segmented arch
oculus cartouche
banded column
foliate panel
L5 26 shape functions

Optional visual refinement

A VLM critic compares wide and close-up renders with the photos and lists local defects, each with a reference crop.

A coding agent repairs each defect as a new modular function. A fresh, stateless VLM judge re-checks every defect after each round.

critic→ defects→ repair as a function→ judge
Reference crop
reference crop
BeforeAfter
beforeafter

Crown bays read as sheets of glass; the photo shows paired sash lights in recessed arches.

round 1: improvedround 2: solved
Reference crop
reference crop
BeforeAfter
beforeafter

A plain wall at the prow's crown; the photo shows projecting banded columns.

round 1: solved

Articulated digital twin

The result is a simulation-ready building: semantic mesh parts connected by kinematic joints, exported as URDF and meshes, with carved openings and interior floors.

Moving parts are shown in orange.

2,457 parts1,939 prismatic (sashes) 6 revolute (doors)21 storeysURDF + meshes
ClosedOpen
joints closedjoints open
Portal closedPortal open
the portal and its doorsleaves swing open, sashes slide

Harness evolving

Strong runs are detailed but expensive; base runs are cheap. On a few buildings both run, and every function the strong programs wrote is pooled.

The evolving agent merges recurring structures across buildings into tested skills with photo-observable parameters.

Pool of strong runs
strong / base pairs
→
Strong run
strong
Base run
base
This building: 17 add_*30 shape_*12 other
→
crown arcade
entrance surround
prow colonnade
roof parapet

City-scale deployment

The evolved skills are appended to the base harness. The cheap base agent then searches, previews and commits to skills while it plans each of a district's thousands of buildings.

Roads and street objects are added as two more layers, also built from code.

base agent+ evolved skills+ roads+ street objects
New York, Midtown Manhattan
New York
Paris
Paris
Chicago
Chicago
San Francisco
San Francisco

A six-level building hierarchy

Every building is decomposed into six levels. The grounded specification fixes the first three (site, massing, storeys) before any code is written; the agent then programs the facade system, the elements and their shapes with the hierarchical SDK. Click a level to jump to it.

An 11-storey through-block hotel in Midtown, the most complex strong build of the evaluation set (the supplementary hierarchy figure). The camera swings across its 46th Street front; its sides are party walls.

specification z

L0 Site

The metric footprint polygon from the map and the building's local frame: an 808 m² lot running through the block from West 46th to West 47th Street.

specification z

L1 Massing

Three stacked zones with explicit base and roof heights: the whole lot to 39.1 m, a 471 m² setback to 42.7 m and a 72 m² bulkhead to 46.0 m. The map's draft had a single 46 m zone.

specification z

L2 Storeys

11 storeys in three bands (3 base, 5 shaft, 3 crown), from a 5.0 m ground floor to 3.5 m crown storeys, raised as hollow storey shells with floor slabs.

authored in building.py

L3 Facade system

The facade system: walls with their carved openings, slabs and structure. 158 parts.

158 parts
authored in building.py

L4 Elements

13 element families, each an add_* function the agent wrote (1,323 parts). Colours group related families:

windows (sashes) add_window_row
surrounds and heads add_cartouche_segmental_heads…
projecting bays add_faceted_sash_spandrel_detail…
quoined jambs add_quoined_jambs
balustrades add_balustrade
cornices add_cornice
base facing, canopy, signage add_base_facing…
roofscape, flags add_flags…
13 families1,323 parts
authored in building.py

L5 Shapes

28 shape_* functions build the solid form of single parts. The most specific shape of each part is coloured; generic helpers stay in clay:

shape_moulding ×174
shape_surround ×148
shape_baluster ×140
shape_inset_spandrel ×45
shape_fluted_scroll_console ×36
shape_pointed_relief ×33
shape_bay_shell ×30
shape_low_scroll_relief ×15
shape_flag_panel ×15
shape_segmental_head ×9
fluted_scroll_console
fluted scroll console
oval_cartouche
oval cartouche
baluster
baluster
segmental_head
segmental head
low_scroll_relief
low scroll relief
shield
shield

a few shapes alone, at the slot they got in the build

28 shape functions
exported asset (URDF + meshes)

Articulated asset

The exported articulated asset: 1,481 parts; 401 prismatic joints (sashes) and 5 revolute joints (doors) open and close. Moving parts are in orange.

1,481 parts401 prismatic5 revolute

Harness evolving

The evolving agent reads the programs that strong runs wrote for many buildings. Where several buildings built the same structure in their own way, it merges those versions into one parameterised library skill whose parameters are the things a photograph shows (where it sits, how wide, how many, which form), checks that the skill rebuilds each version, and hands it to the base harness for the whole city. Left (blue): versions from different strong-run buildings. Right (orange): the merged skill, called with a few different arguments.

Written by the strong runs

4 of the 7 NYC strong-run buildings whose versions (27 functions in all) the evolving agent folded into this skill, each cut out of its building.

Merged library skill

Iron fire escape on a facade: grated landings at every upper storey, picket rails, stairs between landings, drop ladder.

add_fire_escape(building, storeys, side, u, width, depth, offset, drop, sill, ladder, ladder_z, ladder_height, ladder_offset)

Shown: the skill called on a plain host with the calls

add_fire_escape(b)
add_fire_escape(b, u=0.32, width=3.2, ladder="both")
add_fire_escape(b, u=0.55, width=6.2, depth=1.4, ladder="roof")

Written by the strong runs

4 of the 10 NYC strong-run buildings whose versions (15 functions in all) the evolving agent folded into this skill, each cut out of its building.

Merged library skill

Rooftop water tank: staved timber vessel bound by steel hoops, conical cap, on a braced steel stand with a ladder.

add_roof_water_tank(building, side, u, v, radius, height, stand_height, cap, cap_rise, form, staves, hoops, legs, ladder, facing)

Shown: the skill called on a plain host with the calls

add_roof_water_tank(b)
add_roof_water_tank(b, form="steel", cap="dome", radius=2.0, stand_height=0.6)
add_roof_water_tank(b, cap="flat", radius=1.2, height=3.6, staves=18)

Written by the strong runs

4 of the 9 NYC strong-run buildings whose versions (18 functions in all) the evolving agent folded into this skill, each cut out of its building.

Merged library skill

Entrance stoop: straight stone stair with a top landing up to a raised front door, iron railings with capped newels or masonry cheek walls.

add_stoop(building, side, u, door, threshold, width, landing, risers, tread, rails, rail_height, stone, iron, door_width, door_height, form)

Shown: the skill called on a plain host with the calls

add_stoop(b)
add_stoop(b, threshold=2.0, rails="cheek", width=2.2)
add_stoop(b, threshold=0.6, form="ramp")

Written by the strong runs

4 of the 12 NYC strong-run buildings whose versions (27 functions in all) the evolving agent folded into this skill, each cut out of its building.

Merged library skill

Bracketed cornice: deep moulded crown on scrolled consoles over a frieze band, optional panels, rosettes and dentils.

add_bracketed_cornice(building, sides, side, storey, z, height, projection, brackets, count, spacing, paired, frieze, dentils)

Shown: the skill called on a plain host with the calls

add_bracketed_cornice(b, side="front")
add_bracketed_cornice(b, side="front", brackets="modillion", dentils=True)
add_bracketed_cornice(b, side="front", brackets="block", paired=True, frieze="medallions")

Written by the strong runs

4 of the 9 NYC strong-run buildings whose versions (18 functions in all) the evolving agent folded into this skill, each cut out of its building.

Merged library skill

Fabric shop awning: a canvas hood, sloped, curved, vaulted or domed, with a hanging valance, over a shop window or door.

add_shop_awning(building, side, storey, u, width, z, projection, fall, valance, form, stripes, over, supports, scallop, material2)

Shown: the skill called on a plain host with the calls

add_shop_awning(b)
add_shop_awning(b, form="hood", stripes=7, scallop=True)
add_shop_awning(b, form="vault")

Written by the strong runs

4 of the 16 Paris strong-run buildings whose versions (42 functions in all) the evolving agent folded into this skill, each cut out of its building.

Merged library skill

Arched carriage entrance (porte-cochère): a tall round- or segmental-arched doorway cut in the street storey, with a stone archivolt, impost blocks, keystone and banded jambs, and a pair of panelled timber leaves on real hinges filling the arch.

add_carriage_portal(building, side, u, width, height, arch, rise, storey, face, leaves, surround, keystone, panels)

Shown: the skill called on a plain host with the calls

add_carriage_portal(b)
add_carriage_portal(b, arch="round", width=3.6, height=5.2)
add_carriage_portal(b, arch="flat", width=3.0, panels=2)

Written by the strong runs

4 of the 12 Paris strong-run buildings whose versions (27 functions in all) the evolving agent folded into this skill, each cut out of its building.

Merged library skill

Stone balcony on carved consoles: a slab with a moulded nosing projecting from the wall at a floor line, scroll brackets beneath, and a wrought-iron railing (or a stone balustrade) along its edge with returns to the wall.

add_balcony(building, side, storey, span, depth, thickness, railing, rail_height, bracket_spacing, faces)

Shown: the skill called on a plain host with the calls

add_balcony(b)
add_balcony(b, railing="balustrade", depth=0.9)
add_balcony(b, span="bays")

Written by the strong runs

4 of the 8 Paris strong-run buildings whose versions (21 functions in all) the evolving agent folded into this skill, each cut out of its building.

Merged library skill

Dome or open lantern (cupola) on a drum: a cylindrical drum ringed by arched openings separated by piers, a moulded cornice, a hemispherical or bulbous dome with ribs, and a small open lantern with a finial on top.

add_cupola(building, z, radius, center, side, drum_height, openings_count, dome, lantern)

Shown: the skill called on a plain host with the calls

add_cupola(b)
add_cupola(b, dome="tall", openings_count=12)
add_cupola(b, lantern=False, radius=2.6, drum_height=2.4)

Written by the strong runs

4 of the 14 NYC strong-run buildings whose versions (34 functions in all) the evolving agent folded into this skill, each cut out of its building.

Merged library skill

Projecting canopy / marquee over a shopfront or entrance: deck with edge fascia on tie rods or brackets.

add_shop_canopy(building, side, storey, u, width, depth, z, form, fascia, supports, over, text, lamps, crest)

Shown: the skill called on a plain host with the calls

add_shop_canopy(b)
add_shop_canopy(b, form="glass")
add_shop_canopy(b, form="marquee", text="THEATRE")

Written by the strong runs

4 of the 22 NYC strong-run buildings whose versions (33 functions in all) the evolving agent folded into this skill, each cut out of its building.

Merged library skill

Packaged rooftop HVAC units: louvred cabinet or air handler on feet or a curb, capped lid, optional fan cells with guards on top.

add_roof_hvac_units(building, side, u, v, count, pitch, width, depth, height, form, fans, louvres, feet, fan_radius, facing)

Shown: the skill called on a plain host with the calls

add_roof_hvac_units(b)
add_roof_hvac_units(b, form="air_handler")
add_roof_hvac_units(b, form="fan_unit", count=3)

Street objects

Street furniture is built the same way as the buildings. For each category of object in the city's census, an agent writes one parametric generator program; every object placed in the city is a sample of that program's parameters (e.g. size, form, colours). Each of the 20 tiles below plays one category's six different sampled instances (120 in all), one full turn each.

Fire hydrant
Street lamp
Traffic signal
Traffic sign
Bus stop
Bench
Waste bin
Mailbox
Phone / Wi-Fi kiosk
Information kiosk
Advertising column / board
Newspaper / vending box
ATM
EV charger
Drinking fountain
Fountain
Street clock
Statue / memorial
Outdoor seating
Subway elevator

BibTeX

@article{li2026building,
  title   = {Building New York City with Agents},
  author  = {Li, Zizhang and Esteves, Carlos and Wang, Haochen and Ho{\l}y{\'n}ski, Aleksander and
             Snavely, Noah and Wu, Jiajun and Makadia, Ameesh},
  journal = {arXiv preprint arXiv:xxxx.xxxxx},
  year    = {2026}
}