Skip to content

wrapped: legit numbers, nothing private, each machine once - #15

Merged
gntrs merged 2 commits into
mainfrom
fix/wrapped-review
Dec 3, 2026
Merged

gntrs merged 2 commits into
mainfrom
fix/wrapped-review

Conversation

@gntrs

@gntrs gntrs commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

/wrapped after a full review against real logs, plus five new scenes. the numbers are the person's own, nothing private reaches the video, each machine counts once.

new

  • your top model, its share of what claude wrote, and the next two. unknown model ids never show.
  • the receipts: esc mid answer, commits claude made, please, thanks, times you said it was wrong. each only at 10 or more.
  • the bill you didn't pay: every token type the logs record at list api prices (lib/prices.mjs, dated), rounded down. per day divides by the days the transcripts cover.
  • your type: builder or reader, crew or solo, night or day, quick or long. your clock: hour bars. 30% of prompts between 10 pm and 5 am makes a night builder in both.
  • closing card: four color themes, replay, top model and type. npx github:gntrs/workflow runs it without the install. totals v3 carries the new counts, v2 still reads.
  • typo and swear scenes stay as they were. no "you're absolutely right" tile, no top 1%.

fixed

  • inflated counts. compact summaries and other text the person did not type counted as prompts (words tripled, swears and typos up). parallel sessions stacked their minutes. a history line without a session id counted twice. org forks added commits. copy rounded up ("4 workdays", "100%").
  • private data. the first commit scene could name a private repo (a missing private flag now counts as private). the html carried the github login and private org repo names. --top hid names only on the closing card. the player now gets an allowlist of exactly the fields it reads, and a test keeps that list in step with the template.
  • double counting. the same machine through --merge, --device and --totals is refused, matched by its first prompt of the year, not just the hostname. 1.3.0 totals files (minutes summed per session) and files for another year are refused.
  • one counter. aggregate.mjs and the main run share the same code, so they agree on words, swears, sessions and minutes.
  • windows. aggregate.mjs --out writes utf-8, stdout is ascii escaped, the html opens without a shell (paths with & work), long names fit the frame.
  • one font (allo), the picker and dead code gone. --top keeps only real projects. one prompt years read right.

checked

  • node --test skills/wrapped/test/: 92 pass. each fix was broken on purpose in a copy and a test failed.
  • bash scripts/check.sh: ok, with the private string scan on.
  • three cold reviews that ran it on fake and real logs and stepped 20 generated videos in edge: no console errors, no NaN or undefined, nothing past 1080 px.
  • price checked by hand on one real session: $76.38 both ways.
  • a real run on windows with github: no login, private repo names, prompt text or paths in the html.

not checked: mac and linux, node 20, a claude.ai export zip.

still open

  • two machines used in the same hour each add their minutes for it.
  • a run with only --totals and no local prompts stops with "no prompts found".

hand test

  1. after merge, run the installer, then node $HOME/.claude/skills/wrapped/wrapped.mjs --github. minutes come out lower than on 1.3.0, which is right: parallel sessions no longer stack.
  2. add --top "<one of your projects>": only that name and stars, in every scene and in the copy text.
  3. the new scenes: top model, the bill, your type and clock show with your numbers. receipts show only for counts of 10 or more.
  4. from an empty folder: npx github:gntrs/workflow --help prints the help.
  5. pass a totals file made by 1.3.0: it stops with "made by an older aggregate.mjs, run it again".
  6. broken: a name you did not pin shows anywhere, or the same machine's prompts appear twice, or the type and clock disagree on night.

gntrs added 2 commits December 3, 2026 10:27
a full review against real logs found counts inflated by compact summaries
and parallel sessions, private repo names reaching the html, and the same
machine counted twice through different flags. the player now gets only the
fields it shows, totals files are versioned and matched by first prompt,
every shown number rounds down, and aggregate.mjs shares one counter with
the main run.
five new scenes from the person's own logs: the top model and its share,
small receipts (10 or more each), the year at list api prices rounded
down, a four letter type and an hour clock that agree on night. the
closing card gets four themes and replay. npx github:gntrs/workflow
runs it without the install. totals v3 carries the new counts.
@gntrs
gntrs merged commit be85c84 into main Dec 3, 2026
4 checks passed
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