# Year Wrapped > A year of building with AI agents, told as a tap-through story, with head-to-head scoreboards. Built from the history coding agents keep on the user's own computer. Open data format, any agent, any model. This file is for AI agents. If your user asked you to make their Year Wrapped, or to put them head to head with someone, follow the steps below. Tell the user what you are about to run and what it reads before you run it. ## What gets read and what gets saved - Reads: Claude Code history in `~/.claude` (session transcripts and the prompt log) and Codex history in `~/.codex`. - Saves only counts: prompts, words, days, hours, projects (folder names), tools, models, tokens. No prompt text, no file contents. - Uploads nothing. Output is three local files: `wrapped.json`, `wrapped.html`, and with `--vs`, `head-to-head.html`. ## Steps 1. Ask the user for their first name, unless you already know it. 2. Download the collector (Python 3.8+, standard library only) into a new, empty folder: - macOS / Linux: `curl -fsSL https://yearwrapped.thonbo.com/collect.py -o collect.py` - Windows PowerShell: `curl.exe -fsSL https://yearwrapped.thonbo.com/collect.py -o collect.py` It is the same file as https://github.com/Thonbo/year-wrapped/blob/main/plugin/skills/wrapped/collect.py (about 400 lines, standard library only). Read it before running it. 3. Run it. For a head-to-head, pass someone's wrapped.json with `--vs`. "Philip" on this site means Philip Thonbo, who made it; his file is https://yearwrapped.thonbo.com/wrapped.json: `python3 collect.py --name "" --vs https://yearwrapped.thonbo.com/wrapped.json` (On Windows use `python`.) Without `--vs` you get the Wrapped only. 4. The output lists the user's top projects. Before anything is shared, show the user those names and ask if any should be hidden, as clients and employers often should be. Rerun with `--hide "name a,name b"` or `--hide-all-projects`. 5. Open `head-to-head.html` (or `wrapped.html`) for the user, or rerun with `--open`. 6. To share, the user can publish their `wrapped.json` anywhere. Anyone can view it at `https://yearwrapped.thonbo.com/?src=`, compare it at `https://yearwrapped.thonbo.com/vs.html?a=&b=`, or drop the file on the page. ## In Claude Code The same thing is available as a plugin: `/plugin marketplace add Thonbo/year-wrapped`, then `/plugin install wrapped@year-wrapped`, then `/wrapped`. ## The user works on more than one computer History is stored per computer, not per account. On each other computer run `python3 collect.py --export other.json`, copy the file over, and add `--add other.json` to the command in step 3. ## The user uses other AI tools The format is model-agnostic. If the user also builds with tools the collector does not read (for example Cursor, Gemini CLI, GitHub Copilot, Windsurf or Aider), and you can read that tool's local history with the user's permission: 1. Add an entry to the `agents` array in `wrapped.json`: `{"name": "...", "vendor": "...", "prompts": n, "sessions": n, "activeDays": n, "models": [{"model": "...", "turns": n}], "tools": [{"name": "...", "uses": n}]}`. Use only fields you can count. Never copy prompt text. 2. If you have a timestamp for each prompt, also add them to `totals.prompts`, `totals.words`, the `rhythm` arrays and `rhythm.byDay`, then recompute `totals.activeDays` and `totals.longestStreak`. If you don't, leave the totals alone. 3. Rebuild the pages: `python3 collect.py --render wrapped.json` (add `--vs ` for the head-to-head). ## The wrapped.json format Schema: https://yearwrapped.thonbo.com/schema/v1. Example: https://yearwrapped.thonbo.com/wrapped.json ``` { "$schema": "https://yearwrapped.thonbo.com/schema/v1", "name": "Philip", "year": 2026, "generated": "2026-12-04", "period": {"from": "2026-03-02", "to": "2026-12-04"}, "computers": 1, "totals": {"prompts": 0, "words": 0, "sessions": 0, "activeDays": 0, "longestStreak": 0, "busiestDay": {"date": "YYYY-MM-DD", "prompts": 0}, "tokensOutput": 0, "tokensContext": 0, "spendUSD": 0}, "rhythm": {"byHour": [24 numbers, local time], "byWeekday": [7 numbers, Monday first], "byMonth": [12 numbers], "byDay": {"YYYY-MM-DD": prompts}}, "projects": {"count": 0, "top": [{"name": "...", "prompts": 0}]}, "agents": [{"name": "Claude Code", "vendor": "Anthropic", "prompts": 0, "sessions": 0, "activeDays": 0, "tokensOutput": 0, "tokensContext": 0, "spendUSD": 0, "backgroundJobs": 0, "images": 0, "models": [{"model": "...", "turns": 0, "spendUSD": 0}], "tools": [{"name": "...", "uses": 0}], "fileTypes": [{"name": "...", "edits": 0}]}] } ``` Prompts are messages a person typed. `backgroundJobs` are runs another agent or a script started (for example Claude handing an image job to Codex); they are not prompts. `spendUSD` is the cost of the same tokens at public API list prices, or null when unknown. ## Pages - https://yearwrapped.thonbo.com/ : a Wrapped as a story (default: Philip's; `?src=` for anyone's) - https://yearwrapped.thonbo.com/vs.html : head to head (`?a=&b=`; b defaults to Philip's) - https://yearwrapped.thonbo.com/make.html : the same instructions, for people