Hangar Floor: static build
Hangar Floor is a status page for a small team of AI coding sessions and the person who directs them. It shows the plan, a hangar floor of the open pull requests (with the sky, the weather, and the cargo plane of the next release), the questions for the person, the work that is done, a river of events, the queue of each session, and a table of the pull requests.
Run it
Serve this folder from any static host. For a local test:
tclsh serve.tcl site
serve.tcl is in the folder assets of the skill. It needs only tclsh (Tcl 8.6 or later). Each tool of the skill is a Tcl script. Any other static server works too.
Then open http://127.0.0.1:8000/.
The page needs no build step. It loads only the files of this folder. It sends no analytics and loads no outside font.
| File | What it is |
|---|---|
index.html | The page. It reads the data and gives it to the app. |
river.tcl | The app: a Tcl/Tk script. |
ztk.js, webgpu.js, ztk.wasm | ztk, the Tk runtime for the browser (WebAssembly, BSD-2-Clause). |
data.json | The data. Change this file to change the page. |
Where the data comes from
- In a Claude artifact with a data store, the page reads the store (
state/main,state/plan,state/floor, and the collectionsriver,questions,inbox). The answers and the messages of the person go back to the store. - With the setting
"github"in the element#home, the page reads the documents from a branch of a GitHub repository. See "Data from a GitHub branch" below. - In all other places, the page reads
data.jsonnext to it. It reads the file again every 10 seconds, so a script can write a new file and the page follows. A failed read keeps the last good data and shows no error.
Without the store, the page is read-only. With a GitHub branch, the note names the branch and the repository. The Questions tab shows each question and its options, with the note "Answers work in the Claude artifact." It has no answer buttons and no message box. A copy on a static host has no place to save an answer, so the page does not pretend to save one.
To update the file safely, write a new file and rename it over the old one:
tclsh make-data.tcl > data.json.new && mv data.json.new data.json
Data from a GitHub branch
Put this setting into the element #home of index.html:
{ "github": { "repo": "OWNER/NAME", "branch": "hangar-floor-data", "folder": "", "poll": 60, "write": false } }
repo: the repository, asOWNER/NAME.branch: the branch of the documents. The default ishangar-floor-data.folder: the folder of the documents in the branch. The default is the top of the branch.poll: the time between two reads, in seconds, from 15 to 3600. The default is 60.write:trueturns on the full layout below and the answers through GitHub. The default isfalse.
The branch holds public data only: the file state/floor.json, with the public keys of the floor. Questions, answers, the river, the plan, main, the inbox, the token numbers, and the talk between the sessions stay in the private store: the artifact store or data.json. With this source and no "write": true, the page reads only state/floor.json, shows the floor only (as the shared floor does), and writes nothing.
The public keys of the floor are updated, counts, burn, prs, issues, dock, gates, lamps, lamp_notes, milestones, release, release_state, shift, status, work, weather, and board. The list is in one place: PUBLIC_FLOOR_KEYS in lib/data.tcl of the project.
With "write": true, the page reads one JSON file for each document, in the shapes of the sections below. Use it only for a branch that the owner keeps private on purpose; the data writer of the skill writes only the floor.
| File | Document |
|---|---|
state/main.json | main (required) |
state/plan.json | plan: a list, or { "items": [...] } |
state/floor.json | floor |
river/NAME.json | one river entry, or { "entries": [...] } |
questions/ID.json | one question; the file name is its id |
inbox/ID.json | one message |
A name is 1 to 80 characters of A-Z a-z 0-9 _ -. The page ignores each other file.
The page talks only to https://api.github.com. Each read is one request for the tree of the branch, with the ETag of the last tree. An answer 304 means no change. A new tree names each file by its SHA, so the page reads only the files that changed. A failed read, a file that is not JSON, or a branch with no state/main.json keeps the last good data. One line at the foot of the page says why the data is old.
A public repository needs no token. With no token, GitHub permits 60 requests each hour from one IP address, so the default poll is 60 seconds. All the pages that read from one address share that limit. An answer 304 to a conditional request does not count against the limit only when the request has a token, so with no token each poll counts. When GitHub says that the limit is used up, the page waits until the time of the reset.
The coordinator writes the branch with the data writer of the skill. The writer accepts only state/floor. It refuses state/main, state/plan, river/*, questions/*, and inbox/*, and it removes the key tokens and each other key that is not public, and names them. A push also names each old document on the branch that is not public, so that you can remove it. Each put keeps one document, and each push sends the kept documents as one commit, on top of the branch of the remote:
tclsh data.tcl put state/floor floor.json
tclsh data.tcl push --branch hangar-floor-data
The writer runs in a clone of the repository. It uses git plumbing, so the work tree, the index, and the current branch stay as they are. It pushes without force and holds no token: git uses its own login. hangar-floor data and ztcl --allow file,channels,exec --tclsh data.tcl run the same writer. A program of ztcl starts git with no environment of the user, so a push to a remote that needs a login works with a tclsh.
The shared floor page (floor.html) uses the same source with the same setting. It reads only state/floor.json, so the branch needs no state/main.json for it. A private repository works with the same token panel. With "tokens": false in #home, the page drops the key tokens of the floor before the app or the sound gets it. With no data from the branch in 8 seconds, it shows its snapshot.
To serve the page from S3 and CloudFront, see Host the status page on AWS.
A private repository needs a token. With no token, the page says so and opens its panel GitHub token (a button at the foot of the page):
- Make a fine-grained personal access token on GitHub for the one repository. Give it the right Contents: read-only to read, or read and write to answer from the page (to verify).
- Paste it into the panel and click Save. The browser keeps it on this device only, and the page sends it only to
https://api.github.com, in the headerAuthorization. - Click Forget to remove it. The page then starts again, so no data of the repository stays in its memory.
With "write": true and a token that may write (GitHub gives permissions.push for the repository), the Questions tab has its answer buttons and its message box again. An answer changes the file questions/ID.json of its question (answer and answeredAt), and a message is a new file of inbox/. Without "write": true, the page never writes to GitHub.
With the setting "signin": { "clientId": "..." } in #home, the panel also has Sign in with GitHub: a sign-in with a GitHub App, through the function of lambda/auth.mjs under /auth/ of the site. Its token stays in the memory of the page. The setup is in the page below.
The threat model of the token is in Host the status page on AWS.
The shape of data.json
One object with six keys. Each key is optional except main.
{ "main": {}, "plan": [], "floor": {}, "river": [], "questions": [], "inbox": [] }
Times are ISO 8601 in UTC, such as "2026-12-01T19:40:00Z". Text is plain. The page removes HTML tags, except <code>.
main
The settings of the project (title, tz, place, repos, seats) come from main. A key that main does not have comes from the element <script type="application/json" id="home"> at the top of index.html. In this copy that element is {}, so data.json sets all of them.
{
"updated": "2026-12-01T19:40:00Z",
"title": "Hangar Floor",
"tz": "Europe/Berlin",
"place": { "name": "Berlin", "lat": 52.52, "lon": 13.405, "tz": "Europe/Berlin" },
"repos": { "lumen": "example-org/lumen", "lumen-web": "example-org/lumen-web" },
"seats": { "L": "Linux", "M": "macOS", "W": "Windows" },
"test": ["Three PRs in one gate: lumen 41, lumen 43, lumen-web 17"],
"queue": { "Linux, coordinator": [{ "s": "now", "t": "Gate of three PRs" }, { "s": "next", "t": "v0.4.0" }] },
"themes": ["Releases", "Library", "CLI"]
}
updated: the time of the last change. The heading shows it.title: the heading text and the title of the browser tab. Plain text, 60 characters at most. The default is "Hangar Floor".tz: an IANA time zone for each time on the page. The default is the zone ofplace. Each time shows the short name of the zone, such as "ET" or "GMT+1".place: the place of the sky.latandlonare numbers in degrees (north and east are positive). The page computes the sun (its height, sunrise, and sunset) and the moon for this place and the current time, so the floor shows day, dusk, and night.nameshows on the sky card and with the weather.tzis the zone of the place; without it, the page uses the zone of the browser. Without a validlatandlon, the place is Washington, DC, inAmerica/New_York.repos: a short name, as the data uses it, toowner/nameon GitHub. The floor opens a pull request, an issue, or a milestone only of a repo in this map. A short name has 1 to 40 characters ofa-z 0-9 _ -. An owner and a name have 1 to 100 characters ofA-Z a-z 0-9 _ . -and do not start with a dot. The page ignores each other entry, and uses 12 entries at most. The first repo gives the blue crates, the second the wood crates, the third and the fourth green and violet, and the others steel.seats: the label of each of the three seats of the floor.Lis the coordinator.MandWare two workers. A label has 24 characters at most. A session ofqueuebelongs to a seat when its name starts with the label.test: the lines of "in test now".queue: the name of each session to its list of items.sisnowornext.themes: the rows of the Plan tab, in order.
plan
[{ "th": "CLI", "s": "now", "who": "W", "t": "Paths longer than 260 characters", "d": "", "o": 1 }]
th is a theme of main.themes. s is now, next, week, later, or done. who is a seat (L, M, W). d is the day text of a done item, such as "Tuesday, December 1". o sets the order in a cell. The store keeps the same list as { "items": [...] } in state/plan; the file accepts both forms.
floor
{
"prs": [{ "repo": "lumen", "n": 44, "who": "M", "stage": "bench", "t": "Font fallback", "since": "2026-12-01T18:55:00Z", "note": "" }],
"issues": [{ "repo": "lumen", "n": 46, "t": "The CLI prints a stack trace for an empty file" }],
"gates": [
{ "id": "lumen", "label": "lumen", "lamp": "amber", "note": "the gate runs on two PRs", "since": "2026-12-01T19:20:00Z", "checks": { "done": 25, "total": 41 } },
{ "id": "lumen-web", "label": "lumen-web", "lamp": "red", "since": "2026-12-01T19:22:00Z", "checks": { "done": 12, "total": 18 }, "failed": "link format" }
],
"dock": 3,
"lamps": { "gate": "amber", "ci": "green" },
"tokens": { "L": { "context": 0.41, "limit": 1000000, "out_today": 228000, "at": "2026-12-01T19:35:00Z" } },
"lamp_notes": { "gate": "the gate runs on three PRs", "ci": "" },
"milestones": { "lumen": 3 },
"release": "v0.4.0",
"shift": { "work_end": "2026-12-01T21:00:00Z", "qa_end": "2026-12-01T23:00:00Z" },
"release_state": "building",
"status": { "L": "work", "M": "qa", "W": "work" },
"work": { "L": "Gate of three PRs", "M": "QA pass of the CLI", "W": "Long paths (lumen 45)" },
"weather": { "kind": "clouds", "text": "Partly cloudy", "cloud": 0.55, "temp_f": 41, "wind_mph": 9, "wind_dir": 250, "at": "2026-12-01T19:00:00Z" },
"talk": [{ "from": "W", "to": "L", "text": "lumen 45 pushed", "at": "2026-12-01T19:12:00Z", "kind": "msg" }]
}
prs: one crate for each open pull request.stageisbench(in work at the seatwho),gate(in the test tree),ci(merged, CI of main runs),shipped(in the release), orback(sent back to its seat).issues: the boxes at the dock: the issues of the milestone of today.dockis their count.gates(optional): 1 to 4 gates, each a test press with its lamp, its crates, and a plate with its name, its checks ("25/41"), the time of its run, and a failed check in red. A crate at the stagegatenames its gate ingate. With nogates, the floor has one gate with the lamplamps.gate. The board row IN THE GATE counts the crates of all gates, and the turning row shows each run.lamps:green,amber,red, or empty, for the gate and for CI.lamp_notesreplaces the words of a lamp.tokens: the token use of each seat.contextis the part of the context window in use now (0 to 1),limitthe size of the window,usedthe tokens in it,out_todaythe output tokens of the day, andatthe time. Each seat with acontexthas a gauge in the manner of a fuel gauge: green, then amber from 0.6, and red from 0.85. The flip board shows the output of the day of the team and of each seat. No entry: no gauge. The tooltokens.tclin the folderassetsof the skill prints the entry of one session. A shared floor page with"tokens": falsein its element#homeshows no token data.milestones: a repo to the number of its milestone of today. A click on the dock opens it.release: the name of the next release. The cargo plane on the tarmac carries it.release_state:idleorbuilding(the plane waits on the tarmac),publishing(the engine starts), orreleased(the plane takes off one time, and the tarmac stays empty). Without it, the plane leaves at the end of the QA pass.shift: the end of the work hours and the end of the QA pass.status: the state of each seat:work(at its bench),qa(it runs the QA pass at the end of CI), oroff(stopped for the day). Another value or no value iswork. When all seats are off, the floor stops its motion.work: the item in work of each seat. The bubble of a seat shows thenowitem of its session inmain.queue, and this text when the queue has none.weather: the weather that you write; the page calls no weather service.kindisclear,clouds,rain,snow,fog, orstorm.cloudis the cover from 0 to 1.temp_f,wind_mph, andwind_dir(degrees, where the wind comes from) are numbers.textis the words of the sky card,atthe time of the observation, andplacereplaces the name ofmain.placeon the card.board: custom rows for the flip board on the wall, at most 6:{ "label": "BUILDS", "value": "3 of 3 green" }. The label has 14 characters at most and the value 30. They join the turning line of the board. The other rows of the board come from the data above: merged today, open PRs, in the gate, CI, the next release, and the issues left.talk: the messages (kindmsg) and files (kindfile) between seats, newest first, 20 at most.tois a seat orall. A new entry plays one time on the floor: a walk between the seats, or a message. An entry that the page saw before does not play again, and a seat that is off sends and gets nothing.
river
[{ "t": "2026-12-01T19:30:00Z", "k": "problem", "r": ["lumen-web 15"], "h": "The share link PR goes back", "b": ["One test fails in the gate."] }]
k is merged, problem, fixed, decision, design (in work), or you (for the person). r holds references as "repo number". h is the head line, and b the paragraphs. An item can also be a block of older entries: { "entries": [...] }.
questions
[{ "id": "q-demo-theme", "from": "macOS session", "at": "2026-12-01T19:00:00Z", "text": "May it merge?", "options": ["Merge it", "I want changes"], "answer": "" }]
id has 1 to 80 characters of A-Z a-z 0-9 _ -. An empty answer makes the question open.
inbox
[{ "at": "2026-12-01T13:50:00Z", "from": "owner", "text": "Keep the web demo out of tonight's release.", "reply": "Done." }]
The messages of the person to the coordinator, with the reply of the coordinator.
Sound and music
The floor has its own sound, made at run time with Web Audio. There are no sound files. The goal is calm background music with the sound of work in the hangar under it.
- The controls. The top bar of the floor has four controls: the style of the sound, the sound of the floor, the music, and the volume (four steps). Sound and music are off until a person turns them on. The page remembers each choice in the browser. The keys are
s(style),m(sound),M(music), and+and-(volume). Tab on the floor moves a gold focus ring through the controls. - Two styles.
smoothhas soft waves: a sine lead, a bell, pads of soft waves, a soft bass, a low-pass filter, and a reverb.16bitis in the manner of a 16-bit game console: each instrument is a short wave table that the page computes, with an envelope, a soft filter, and an echo. A switch plays a short phrase in the new style, so you can compare the two by ear. The default issmooth. - The music. Four tunes of two to three minutes each, written for this page. Each tune has its own melody, chords, and rhythm, and changes key or tempo between its sections. A repeat of a section is a variation. The page picks the next tune at random, never the same tune two times in a row, and prefers a tune that fits the floor: the time of day of the sky of
main.place, rain, and a release. The tempo, the filter, and the level follow the time of day. - The ambience. Under the music: a low room tone, wind from
weather.wind_mph, rain fromweather.kind, and quiet work sounds that follow the floor: a tool at a bench while a seat works, a crate that slides, steps, and the press while the gate lamp is amber. The times and the levels drift at random, so no short loop repeats. - The sounds of the floor. The workers make small sounds that follow their work, each seat in its own pitch, placed left or right by its place on the floor. The events of the floor (a crate that moves, a message, the plane) are soft and lower than the music. A seat that is off makes no sound.
- Levels and fades. The music and the ambience each have a level, and the volume sets both. A change of the volume, a start or a stop of the music, and a change of style each fade, so nothing clicks.
- A hidden page. The music, the ambience, and the sounds of the floor go on while the page is in the background. The page plans the notes 4 seconds ahead while it is hidden, with a timer in a worker. A browser can still stop the sound of a hidden page by its own rule, for example to save power on a phone or in a low-power mode.
Safety
- The page builds each address from checked parts only. A
reposentry that fails a check opens nothing. - The app never runs text of the data. Each text is shown as text.
- The page talks to no host other than its own, and to
https://api.github.comonly with the setting"github".
Next: GitHub access.