Performance and security#
Performance#
The frame loop costs about half a millisecond and 3 percent of a core at 60 fps on a 200×55
terminal; only changed cells are sent (25 to 35 KB per frame). Lag can therefore only come from
a terminal that cannot drain bytes fast enough. A lag guard detects blocked writes, halves the
frame rate for a few seconds and raises the colour tolerance so fewer cells change, then relaxes
again; under a terminal throttled to 600 KB/s that keeps the battle at 25 fps. dogfight --perf FILE writes one line per second with fps, per-stage timings, bytes per frame, the longest
frame gap and CPU share. If your terminal struggles, set fps = 30.
Security and quality#
The tool takes over your terminal, so it is built to be small, memory-safe and easy to audit:
one dependency (
libc);cargo audit,cargo clippy -D warnings,cargo fmt --checkand--lockedbuilds are CI gates; everyunsafeblock carries a justification that clippy checks; integer overflow checks stay on in release;everything a model produces is filtered to printable ASCII before it can reach the terminal or a file; models never get a tool, a file or a shell;
the binary never opens a network connection; the sidecar downloads models through
huggingface_hub(safetensors, no remote code), pinnable to a commit; it passesbanditandruff;the workflows run with a read-only token, every action is pinned to a commit SHA, and the two jobs that hold the Hugging Face token install their Python dependencies from a hash-pinned set and expose the token only to the step that uploads;
the terminal is restored on every exit path, including SIGTERM and panics;
dogfight removedeletes exactly what the tool created.
Details and the threat model: SECURITY.md.