Core Concepts

World UI

The spatial interface that turns fleet state into visible agent presence.

The World UI is a Next.js app with a Phaser 3 isometric scene and React HUD panels. It is available at:

/world?fleet=<fleet-id>

Main Parts

PartPurpose
Phaser sceneRenders the isometric world, agents, movement, objects, speech bubbles, and camera controls.
Zustand storesHold agents, world objects, selected agent, and socket status.
useWorldConnectionLoads initial state and subscribes to WebSocket events.
Fleet panelLists agents, status, provisioning progress, current action, and identity hints.
InspectorShows selected agent details, task history, actions, and workspace context.
Command barSends tasks or messages to selected agents.
World customizerSwitches themes such as office, hackerspace, gym, and industrial.

Controls

ControlAction
Arrow keys or WASDPan camera.
Mouse wheelZoom.
Q / EZoom out / in.
Click an agentSelect it and open detail context.

Live Data

Live mode depends on:

  • GET /fleets/:id/world for the initial snapshot
  • WS /fleets/:id/stream?token=... for ongoing updates
  • event broadcasts from POST /events, task routes, and message routes

When no fleet or API connection is available, the same UI can render demo events.

On this page