Skip to content

Ember Command

Firefighter decision simulator

  • Hackathon project · worlds.london · 12 Sep 2026
  • TypeScript
  • Next.js
  • WebSocket
  • Gemini
  • LongLive world model

Overview

Ember Command drops a trainee firefighter into a generated fireground that streams as live video, asks for quick tactical calls, and branches the incident on each one. It won the Non-Entertainment category at the worlds.london hackathon.

Decisions feel instant and are timed fairly: the server generates the next turns before the trainee chooses, and the options wait until the video shows the scene.

How it works

From scenario to assessment

The browser and server talk over a WebSocket, the server calls Gemini for each turn and the final assessment, and the browser drives the LongLive video model with a short-lived token from the server.

Fig. 01 · Architecture
Ember Command architectureThe browser talks to a custom Next.js server over a WebSocket. The server's simulation manager calls Gemini for each turn. The browser drives the LongLive 2.0 video world model with a token the server mints. Each session is written as JSON, and an assessor compares the planned storyboard with the path taken to write the report.PROMPTSTOKENSHOT · CUTSESSIONHISTORYBROWSER UIsetup · sim · reportNEXT.JS SERVERWebSocket /ws/simSIM MANAGERstart · step · evaluateGEMINI CLIENTjson · stream · imageVIDEO WORLD MODELLongLive 2.0, liveSESSION STOREone JSON per sessionASSESSORGemini · plan vs path
  1. 01 Setup

    The trainee picks a scenario. Over a WebSocket, the simulation manager asks Gemini for the opening scene and a storyboard of acts.
  2. 02 Live scene

    The server mints a short-lived token, and the browser uses it to drive the LongLive 2.0 video model with shot and scene-cut commands.
  3. 03 Decision

    The trainee picks one of five options. The choice and how long it took go up the socket.
  4. 04 Branch

    The next turn comes back, usually generated in advance (Fig. 02). A new act is a hard cut, so every scene prompt restates a block of world constants to keep the scene consistent.
  5. 05 Record and assess

    Every option shown, every choice and each decision time are written to the session as JSON. At the end, an assessor (Gemini) compares the planned storyboard with the path the trainee actually took and writes the report.

Staying ahead of the trainee

The server generates the next turn for all five options before the trainee chooses, and the decision timer starts only when the video shows the new scene.

Fig. 02 · Staying ahead of the trainee
Staying ahead of the trainee: speculative branches and fair timingA timeline in three lanes. When a turn is written, the server starts generating one next turn for each of the five options in parallel. The options stay hidden until the video model reports a chunk rendered under the new prompt; the decision timer starts then. When the trainee picks option C, branch C is served and the other branches are discarded, and the next turn steers the video.VIDEO MODELTRAINEEBRANCHESABCDEdecisiontimet0t1t2t3t0turn written · branches startt1first chunk · options shownt2decision · branch C takent3next chunk · next optionsbranch not taken, discarded
  1. 01 Turn written

    The server writes the turn and the browser steers the video to it. The options stay hidden while the trainee reads the radio and narrative.
  2. 02 Five branches in parallel

    Before the trainee chooses, the server generates the next turn for each of the five options at once.
  3. 03 Options wait for the video

    The options appear only when the video model reports a chunk rendered under the new prompt. The decision timer starts there.
  4. 04 Timed fairly

    Decision time runs from when the options became visible to the click, so a slow render never counts against the trainee.
  5. 05 Branch taken

    The chosen branch is served, usually already finished; the others are discarded. A branch that has not started yet can be raced against a fast model.

What this doesn't cover

  • It was built in one day at the hackathon. There are no tests, no deployment and no public repository.
  • The project README lists latency and cost figures. They were never measured independently, so none are quoted here.
  • Part of the scenario knowledge base was drafted with AI help. It is not expert firefighting guidance.
  • The timeline figure shows the order of events, not how long each branch takes.