forma: AI‑Generated Terminal Prompt Animations on GitHub An open-source project called forma, from the wrong-nebula GitHub repository, generates terminal prompt animations by using an LLM to compile a plain-English description into a schema-validated JSON scene once, then rendering it deterministically at frame rate with no network calls in the animation loop. The project's design separates a slow, non-deterministic model compile step (roughly 0.5–3 seconds) from a seeded frame evaluator that must fit a 16.6 ms per-frame budget at 60 FPS, and it probes terminal capabilities to degrade from truecolor to 256, 16, or monochrome output. The writeup argues that calling a model inside the render loop is three orders of magnitude too slow and that seeds stored in sampling temperature make scenes impossible to replay or diff. Terminal eye candy is usually a hardcoded GIF or a 400-line bash script nobody wants to maintain. forma takes a different swing: describe the vibe in plain English, let a model compile it into a scene, and let a deterministic renderer paint it into your terminal at frame rate. TL;DR: wrong-nebula/forma is a trending open-source project for AI-driven terminal prompt animations. The interesting engineering isn't the prompt — it's the hard boundary between a slow, non-deterministic LLM "compile" step and a fast, seeded render loop that never touches the network. Get that boundary wrong and you get flicker, torn frames, and a $40 API bill from an idle shell. The failure mode I keep seeing in generative-terminal tools is putting the model inside the animation loop. Someone wires an LLM call to "generate the next frame," and the arithmetic kills it immediately: a 60 FPS loop has a 16.6 ms budget per frame, and even a fast small model streaming 20 tokens is a 200–600 ms round trip. You are three orders of magnitude off. The second failure mode is subtler: non-reproducibility. Generative art that can't be replayed isn't art tooling, it's a slot machine. If your seed lives in a model's sampling temperature instead of in a file, you can never render the same scene twice, diff two variants, or commit a look to a repo. The third is terminal reality. A TUI that looks perfect in Kitty on Linux can shred itself in tmux, in a CI log, or on a legacy conhost window — because the author assumed truecolor SGR and cursor addressing that the target emulator doesn't honor. I haven't audited every line of forma , so treat this as the pipeline shape any tool in this class must converge on — verify against the source before you build on it. The load-bearing idea is compile once, render deterministically . ┌──────────────┐ intent natural language │ user / CLI │──────────────────────────────┐ └──────────────┘ ▼ ┌───────────────────────┐ │ LLM scene compiler │ ~0.5–3 s, ONCE │ text → JSON scene │ schema-validated └───────────┬───────────┘ │ scene.json seed, palette, motion ▼ SIGWINCH ──▶ ┌──────────────┐ ┌───────────────────────┐ │ term caps / │───▶│ deterministic frame │ 16.6 ms budget │ size probe │ │ evaluator f t, seed │ ZERO network └──────────────┘ └───────────┬───────────┘ │ cell grid rows cols ▼ ┌───────────────────────┐ │ diff → ANSI encoder │ dirty cells only └───────────┬───────────┘ │ write 2 → PTY ▼ terminal emulator 1. Scene compiler LLM, offline path . The model's job is parameter synthesis , not pixels. It emits a constrained JSON document — seed, palette, motion field, glyph set, density — validated against a schema with a retry-on-invalid loop. Constrain the output with a JSON schema or grammar, not a polite request in the system prompt. Cache the result keyed on hash intent + model + schema version so the same phrase never re-bills you. 2. Capability probe. Read TERM , COLORTERM , and isatty ; query size via ioctl TIOCGWINSZ ; install a SIGWINCH handler. Degrade deliberately: truecolor → 256 → 16 → monochrome glyphs. If stdout isn't a TTY, emit nothing or a single static frame. This one check is the difference between a tool people keep and one they uninstall. 3. Frame evaluator. Pure function f t, seed → grid . Same seed, same t , same grid — on any machine. This is what makes scenes committable and reviewable. 4. Diff + ANSI encoder. Keep two buffers, compare cells, and emit only what changed: \x1b