Skip to content

About

Spotify Wrapped for Claude Code. One command turns your local Claude history into a terminal recap and HTML report.

Topics

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

33 Commits

Folders and files

Repository files navigation

claude-code-wrapped

ccwrapped shows a year of Claude Code in numbers. It reads the transcripts on your machine. Nothing leaves your machine.

What it shows

  • What the traffic would cost at API list prices.
  • Which models and projects the traffic went to, and how much of it was cache.
  • Which tools ran, and when you worked.

The output is a terminal report, Markdown, JSON, HTML slides or a share card. The engine is written in Bend. A Python oracle implements the same metric specification, and the tests require the two to agree field for field. A Bend proof shows that the totals do not depend on duplicate copies, file order or sharding.

Totals
------
  Measure                              Value
  API-equivalent cost                 $18.86
  Responses                               55
  Human prompts                           13
  Tool calls                              13
  ...

This sample comes from the synthetic test corpus.

Formats

Command Output
./ccwrapped Terminal report for this year, in your local time zone
./ccwrapped --markdown The report as Markdown
./ccwrapped --json Every metric as JSON, with exact picodollar costs
./ccwrapped --html Ten full-screen slides in one page with no scripts
./ccwrapped --card A 4:5 card to share, without project names, tool names or time zone
./ccwrapped --share Projects as project-1, project-2, ... and all MCP tools as one entry

Every format goes to standard output. All flags, the counting rules and the engine design are in docs/details.md. The specification of every metric is in docs/semantics.md.

Install and run

You need Bend and a C compiler (clang 14 or newer). The tests also need Python 3.9 or newer.

curl -fsSL https://bend-lang.com/install.sh | sh
git clone https://github.com/onblueroses/claude-code-wrapped
cd claude-code-wrapped
scripts/build.sh                    # writes ./ccwrapped
./ccwrapped                         # this year, in your local time zone
./ccwrapped --html > wrapped.html   # the same year as slides
./ccwrapped --card > card.html      # a one-page card to share
scripts/test.sh                     # laws, build, metrics and formats against the oracle, CLI

The cost is the API-equivalent value at first-party list prices. It is not what a subscription costs. Models without a listed price show as unpriced and are not in the total.

Layout

bend/       the engine, LAWS.bend and PROOF.bend
oracle/     the Python reference implementation of the metrics
pricing/    the price list
tests/      the edge-case corpus and the comparisons with the oracle
scripts/    build.sh and test.sh
docs/       the metric specification and details

Contributing and license

Read CONTRIBUTING.md. The license is MIT.

About

Spotify Wrapped for Claude Code. One command turns your local Claude history into a terminal recap and HTML report.

Topics

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages