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.
01 Setup
The trainee picks a scenario. Over a WebSocket, the simulation manager asks Gemini for the opening scene and a storyboard of acts.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.03 Decision
The trainee picks one of five options. The choice and how long it took go up the socket.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.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.
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.02 Five branches in parallel
Before the trainee chooses, the server generates the next turn for each of the five options at once.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.04 Timed fairly
Decision time runs from when the options became visible to the click, so a slow render never counts against the trainee.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.