Skip to content

Regenerate max.kixel.me's terminal with --billing, wrapping the typed command - #366

Merged
kixelated merged 2 commits into
mainfrom
quest/m2/agent-ergonomics/site-billing-refresh
Dec 1, 2026
Merged

kixelated merged 2 commits into
mainfrom
quest/m2/agent-ergonomics/site-billing-refresh

Conversation

@kixelated

@kixelated kixelated commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Finishes quest/m2/agent-ergonomics/site-billing-refresh.md and deletes it.

max.kixel.me's terminal now comes from assets/demo/site.py's --billing flow (from #356), run on nixos across all four hosts. The opening that lists what doctor read is the first step, and no billing question appears.

What changed on the page

  • Typed command: it shows all 7 --billing answers, typed as 5 backslash-continued lines of at most 88 columns. On one line it would be 337 characters, about 2,500px, far wider than the run box.
  • Run (opening and report): the 7 billing questions are gone, and the opening reveals as one step. Still 4 hosts. The headline goes from 112 to 128 changes recommended, and from 87 to 80 worth considering. EVERYTHING ELSE is still cut to one line (139 lines cut, was 141), and each EDITS section is too.
  • Usage boxes: the window is 29 days (was 30): 197.4B tokens, 1,452,581 requests, ~$77,050 at API prices.
  • Savings: 9% on the subscription (was 10%) and ~$25,039/mo at API rates (was ~$24,611).
  • Breakdown: the same 6 rows. Skills is 58 (was 59) and Everything else is 24 settings (was 19).
  • style.css: one typing animation per command line, and the new step timings and bar widths.

Implementation

site.py gains wrap(), which splits the command as run into shell lines that fit COLUMNS (100, the report's width). timing() now writes one .typed:nth-of-type(n) animation per line, started one after another. Doctor runs the same command, and its arguments are unchanged.

Decisions

  • Maintainer (2026-12-01, /quest-run): ✅ an agent runs the quest's Maintainer (PC): step on nixos, and the maintainer reviews the site diff for private names at the merge pick (rejected: maintainer runs it; defer; drop). Recorded here, not in the quest's Plan, because this PR finishes and deletes the quest.
  • Agent: added kixtop:~/.claude=plan --ssh kixtop to the command docs/releasing.md gives. The docs say to add the laptop when it's online, it was, and the old page covered 4 hosts. That's the same answer the old page recorded for it. kixtop had no token-max at this build, so I built d61239c there and put the binary in ~/.cargo/bin/token-max only for the run, then deleted it. That directory is on PATH after the Nix profile. The dotfiles profile is untouched.
  • Agent: wrapped the typed command rather than shortening it to --billing=plan plus API overrides. The page keeps showing the command exactly as run, and even the short form (~230 characters) wouldn't fit on one line.

Validation

  • Privacy grep of the site/public diff for private project, repository, customer and person names, and for paths under home directories: no hits. The only paths are the ~/.claude* profile roots the page already showed, and EVERYTHING ELSE and EDITS stay cut.
  • wrangler dev with headless Chrome at 1280px, no deploy. The command types line by line. The opening (logo, profiles read, and the 3 SSH hosts) shows first. No "paid for?" text is anywhere on the page. The run box doesn't scroll sideways (scroll width equals client width, 1038px), and the typed lines end at 815px, inside the box's right edge at 1159px.
  • nix develop -c just check passes on macOS. zero-network was skipped, since it needs Linux.

Models

Size: XS
Implementer: Claude Code, claude-opus-5-5, unknown

🤖 Generated with Claude Code

(Written by Opus 5.5)

Summary by CodeRabbit

  • New Features
    • The terminal demo now wraps long commands across lines, with typing animations that follow the wrapped layout.
  • Updates
    • Refreshed the billing demo’s example command, results, recommendations, and displayed figures.
    • Updated the demo timeline and breakdown percentages.
  • Documentation
    • Removed an outdated site-refresh planning note.

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The site doctor demo now uses explicit billing modes and updated report figures. Its command display wraps across lines, with per-line typing timing and a revised animation timeline. The associated billing-refresh quest note was removed.

Changes: Doctor demo refresh

Layer / File(s) Summary
Update demo report content
site/public/index.html, quest/m2/agent-ergonomics/site-billing-refresh.md
The demo command now sets a start date and explicit billing modes. Displayed recommendations, findings, totals, and savings were updated. The billing-refresh quest note was removed.
Wrap and animate command lines
assets/demo/site.py, site/public/style.css
The demo generator wraps command arguments and produces separate typing animations for each line. The page renders each line separately and uses updated animation timings and breakdown widths.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related PRs

  • kixel-ai/token-max#233: Defines the short doctor report layout and savings presentation that this PR updates in the site demo.

Suggested reviewers: pullfrog

Merge Risk: Minimal · up to 21272

This refreshes the site's demo terminal with a wrapped billing command and updated figures. No concrete defects were found in the changed behavior. Check the CI gate failure on the Check workflow before merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: the max.kixel.me terminal is regenerated from the --billing flow, and the typed command is wrapped. The summary confirms that assets/demo/site.py wraps the command acr…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the max.kixel.me terminal is regenerated from the --billing flow, and the typed command is wrapped. The summary confirms that assets/demo/site.py wraps the command across lines and that site/public/index.html and style.css were regenerated. The title is specific and accurate, though it is somewhat long at 77 characters.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4e31414d-e185-47da-af5f-9b25ecafd373
Commits

Reviewing files that changed from the base of the PR and between d61239c and 2127281.

Files selected for processing: 4

  • assets/demo/site.py
  • quest/m2/agent-ergonomics/site-billing-refresh.md
  • site/public/index.html
  • site/public/style.css
Files with no reviewable changes: 1

  • quest/m2/agent-ergonomics/site-billing-refresh.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

… command

The site's doctor run now comes from site.py's --billing flow across
nixos, desktop, fedora and kixtop: the opening shows first and no billing
question appears. site.py types the command as backslash-continued lines
that fit the 100-column terminal, each with its own typing animation, since
the --billing answers make it 337 characters on one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated kixelated changed the title Regenerate max.kixel.me's terminal with --billing Regenerate max.kixel.me's terminal with --billing, wrapping the typed command Dec 1, 2026
@kixelated
kixelated marked this pull request as ready for review December 1, 2026 05:39
@kixelated
kixelated added this pull request to the merge queue Dec 1, 2026
Merged via the queue into main with commit c7e9b59 Dec 1, 2026
9 of 10 checks passed
@kixelated
kixelated deleted the quest/m2/agent-ergonomics/site-billing-refresh branch December 1, 2026 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant