The tools
This page has the header of each tool of the skill, with each option. It is the same text as the --help of the tool.
Run a tool with a tclsh of Tcl 8.6 or later, or with the program hangar-floor (hangar-floor tick, hangar-floor data).
assets/tick.tcl
The update of the coordinator in one command: it makes the floor and
the plan from GitHub, from the file tick.json, and from the logs of the
gates, and writes them to each store of the config:
tclsh tick.tcl ?--file tick.json? ?--check? ?--dry? ?--print-patch? ?--patch-skip KEY? ?--gh PROGRAM? ?--now STAMP?
tclsh tick.tcl --init ?--main state/main.json? ?--floor state/floor.json? ?--file tick.json? ?--force?
hangar-floor tick ... (the same in the program)
--file the file of the coordinator (default: tick.json in the current
folder). The format is in references/data-shapes.md, "The tick settings".
--check prints the faults of the data and writes nothing: a seat with no
work, a gate with PRs and no start, a crate of a merged PR that
is not shipped, and a plan older than the floor. The exit code
is 1 with a fault.
--dry prints the floor and writes nothing.
--print-patch
prints only the keys that changed since the last update, as one
JSON object {"floor": {...}, "main": {...}} (a key that is gone
is null), for a store that a person or another tool updates by
hand. The other lines go to stderr. When only the samples of
burn changed, the patch has burn_sample {"at": N, "samples":
[...]} in place of burn: keep the first N samples of burn and
add these. --patch-skip KEY (again, or KEY,KEY) leaves a key
out of the patch, for example burn, to send it less often.
--init writes a first tick.json from the plan and the floor files of a
running setup (the repos, the zone, the shift, the release, the
work, the gates in progress, the crates sent back, the queue).
It keeps a tick.json that is there; --force replaces it. Check
config.milestone after it: it is the name of the release.
--gh the gh program to run (default: config.gh, else gh). The tests
give a fake. --check and --dry also read GitHub with it.
--now the time of now as a UTC stamp (default: the clock).
From GitHub (with gh and its login): the open PRs and the PRs merged
since the start of the day of each repo (the crates), the issues of the
milestone (counts, dock, issues, burn), and the lines estimate: and
actual: of the issues (the forecast in hours, and the estimate and the
start of the work of each seat). updated is the clock of this machine.
From the gates: the board (MERGED TODAY, ISSUES OF the milestone), the
lamps, and their notes. From config.weather_cmd: the weather.
The stores: stores.floor and stores.main are JSON files. The tool keeps
each key of the file that it does not make (talk, tokens, weather, the
river), and prints the path. With stores.github, it puts the floor on
the data branch of the clone stores.github.clone with data.tcl (public
keys only) and pushes it; the plan never goes there. It prints one
line: the time, the merges, the open and closed issues, and each change
from the last update. The rules are in lib/tick.tcl.
assets/counts.tcl
The numbers of the day of the floor from GitHub: the keys counts, dock,
and issues of state/floor, and with the times of the shift the key burn
(the burn-down of the day). No session types these numbers.
tclsh counts.tcl -R SHORT=OWNER/NAME ?-R ...? --milestone TITLE \
?--tz ZONE? ?--day YYYY-MM-DD? ?--limit N? ?--into FILE? ?--gh PROGRAM? \
?--start HH:MM --work-end HH:MM --qa-end HH:MM? ?--now STAMP?
?--estimates ?--history TITLE ...? ?--seats N??
-R a repo of the floor: its short name (the key of repos in
state/main) and its name on GitHub.
--milestone the title of the milestone of today, the same in each repo.
--tz the zone of the day (default: the zone of this machine).
--day the day (default: today in that zone).
--limit the most PRs to read of each repo, newest first (default
300). Raise it when a day has more merges.
--into a floor file: the tool writes the three keys into it and
keeps each other key. Without it, the tool prints the keys.
--gh the gh program to run (default: gh). The tests give a fake.
--start, --work-end, --qa-end
the times of the shift on the day (in the zone), for the
key burn. A time at or before the one before it is on the
next day, so "--qa-end 00:00" is midnight.
--now the time of now as a UTC stamp (default: the clock).
--estimates adds the forecast in hours to burn: open_min (the sum of
the last "estimate:" line of each open issue of the
milestone), factor (the median of the correction factors
of the sessions, from the issues with an estimate and an
actual), and no_estimate (the open issues with none). The
rules are in lib/estimates.tcl.
--history a milestone more for the factor (repeat it).
--seats the sessions that work on the milestone (burn.seats).
It uses only the GitHub CLI gh, with the login of gh: the PR list of each
repo (merged, with mergedAt; not the search, which is late) and the
issue list of the milestone. Run it with a tclsh, so that gh finds its
login. The rules are in lib/counts.tcl.
assets/estimates.tcl
Estimates and actuals of a milestone: reads the lines "estimate:",
"actual:", and "gate:" from the comments of its issues, and prints a
table for each session, kind, and size, and the correction factor of
each session. A session multiplies its next estimate by its factor.
tclsh estimates.tcl -R ?SHORT=?OWNER/NAME ?-R ...? --milestone TITLE ?--json? ?--gh PROGRAM?
-R a repo of the milestone, with the short name of the floor
(default: NAME).
--milestone the title of the milestone, the same in each repo.
--json prints one JSON object in place of text: table, factors,
team_factor (the median of the factors, or null), issues
(for the key work: each issue with an estimate gives
est_min, start, actual_min, and session), and prs (for the
key prs: each PR that closes such an issue gives est_min
and actual_min). It also reads the PR list of each repo.
--gh the gh program to run (default: gh). The tests give a fake.
It uses only the GitHub CLI gh, with the login of gh: the issue list of
the milestone with the comments. Run it with a tclsh, so that gh finds
its login. The format of the lines and the rules are in
lib/estimates.tcl.
assets/tokens.tcl
Prints the token numbers of this Claude Code session from its own
transcript, as the value of one seat of the key tokens of state/floor:
ztcl --allow file,channels,clock --tclsh tokens.tcl ?--limit N? ?--dir FOLDER | --file PATH?
tclsh tokens.tcl ?--limit N? ?--dir FOLDER | --file PATH?
With ztcl the tool needs the capabilities file and channels (to read
the transcript) and clock (for the start of the day). Without clock it
stops with 'invalid command name "clock"'.
A worker runs it in the folder of its project and puts the line in its
report to the coordinator. The coordinator runs it for its own seat.
--limit the size of the context window of the model, in tokens. The
default is 200000. Give 1000000 for a session with a window of
one million tokens.
--dir the folder of the transcripts. The default is the folder of
the current project under ~/.claude/projects (the home folder
is $env(HOME), else [file home]): the path of the
current folder with each character other than A-Z a-z 0-9 as
"-". The newest .jsonl file of the folder is the transcript.
--file one transcript file.
--mark at the start of an issue: writes a start mark (the time and
the output tokens of the session so far) into FILE.
--actual at the PR: reads the mark of FILE and prints the line of the
process, such as "actual: 65 min to the PR, 180K output
tokens, 0 rework". --rework gives the count of reworks.
The output is one JSON object, such as
{"context": 0.41, "limit": 1000000, "used": 410000, "out_today": 228000, "at": "2026-12-02T14:02:10Z"}
and {} when the transcript has no usage yet. The day starts at midnight
in the time zone of this machine. The rules are in lib/tokens.tcl; this
script finds the file and reads the clock.
assets/milestones.tcl
Milestones for a plan of one milestone for each day or release.
The script uses only the GitHub CLI `gh`. A dry run is the default: the
script reads what it needs and prints each change that it would make.
Add --apply to make the changes. Run it with a tclsh of Tcl 8.6 or
later.
tclsh milestones.tcl create -R OWNER/NAME ?-R ...? --start 2026-12-02 --days 5 \
--title "v0.{n}.0" --first 4 ?--focus-file FILE? ?--due-time 17:00 --tz Europe/Berlin?
tclsh milestones.tcl shift -R OWNER/NAME --from "v0.4.0" --to "v0.5.0" ?--close?
tclsh milestones.tcl list -R OWNER/NAME
create makes one milestone for each day from --start. The title
pattern takes {n} (a counter from --first), {date}
(YYYY-MM-DD), and {weekday}. Each line of --focus-file (or
each --focus) is the description of one milestone, in order.
An existing title is left as it is.
shift moves each open issue of milestone --from to milestone --to,
for example at the end of a day. --close also closes --from.
list prints each open milestone with its count of open issues.
--gh the gh program to run (default: gh). The tests give a fake.
The logic is in lib/dates.tcl and lib/milestones.tcl. This script
reads the focus file, finds the time of a zone, and runs gh.
assets/data.tcl
The data writer of the coordinator: it puts the documents of the status
page as JSON files on a branch of the repository, which the page reads
with the data source "GitHub branch". Run it in the folder of a clone of
the repository:
tclsh data.tcl put PATH FILE
tclsh data.tcl push ?--remote origin? ?--branch hangar-floor-data? ?--folder DIR? ?--message TEXT?
tclsh data.tcl status
ztcl --allow file,channels,exec --tclsh data.tcl ... (the same with ztcl)
hangar-floor data ... (the same in the program)
put keeps FILE (one JSON object) for the document PATH. The branch
holds public data only: PATH is state/floor, and the writer
keeps only the public keys of the floor (lib/data.tcl,
PUBLIC_FLOOR_KEYS), so the token numbers and the talk go. It
refuses questions/*, inbox/*, river/*, state/main, and
state/plan: those stay in the private store. A second put of
the same PATH replaces the first.
push makes one commit with each kept document on the branch, on top of
the branch of the remote (or as the first commit of a new
branch), and pushes it without force. The list is then empty.
A push that the remote refuses because the branch moved tries
one more time on the new head.
status prints the kept documents.
The writer uses the git of the machine and holds no token: git pushes
with the login that it has. It changes no file of the work tree and not
the index. The author of the commit is user.name and user.email of the
git config. The logic is in lib/data.tcl.
assets/serve.tcl
Serves a folder on the local machine, to look at the status page or
the doc site:
tclsh serve.tcl ?DIR? ?PORT?
The default folder is `site` beside this file, and the default port is
8000. The server listens on 127.0.0.1 only and answers GET.
The rules of a request are in lib/http.tcl. This script has the socket
and reads the files.
assets/gate.template.tcl
The gate: each check that a change must pass before its merge.
Template of Hangar Floor skill. Copy it to tools/gate.tcl in the
project and change the list in gate::checks below.
tclsh tools/gate.tcl ?--logs DIR? ?--list? ?--only A,B? ?--skip A,B? ?--stop?
--logs DIR the folder of the logs (default: gate-logs)
--list print the name and the command of each check, and stop
--only A,B run only these checks
--skip A,B do not run these checks (each one counts as a skip)
--stop stop at the first failed check
Run it at the top of a test tree. A check is one shell command. It
passes when the command exits with 0. The output of a check goes to
DIR/NAME.log, and the gate prints one line for each check:
ok unit 12 s
FAIL lint 3 s src/a.c:4: unused variable
skip web no node on the PATH
The last line is `gate: N ok, N failed, N skipped (names)`, and the exit
status is 1 when a check failed, 2 for a bad option. A check that needs
a program that the machine does not have is a skip, and the last line
names it, so a skip is never silent.
Use a tclsh of Tcl 8.6 or later. A sandboxed Tcl runner can start a
program of `exec` with no environment, and then the tools of a check
find no PATH or HOME. Some runners give the full environment only when
they run under the name `tclsh` (a link with that name to the runner).
The gate stops with exit 2 when it sees no PATH, and says so.
Next: the data format.