Skip to main content

Claude Code Wrapped

  ░█████╗░██╗░░░░░░█████╗░██╗░░░██╗██████╗░███████╗
  ██╔══██╗██║░░░░░██╔══██╗██║░░░██║██╔══██╗██╔════╝
  ██║░░╚═╝██║░░░░░███████║██║░░░██║██║░░██║█████╗░░
  ██║░░██╗██║░░░░░██╔══██║██║░░░██║██║░░██║██╔══╝░░
  ╚█████╔╝███████╗██║░░██║╚██████╔╝██████╔╝███████╗
  ░╚════╝░╚══════╝╚═╝░░╚═╝░╚═════╝░╚═════╝░╚══════╝

            C O D E   W R A P P E D
                   by Trollefsen

Your year with Claude Code, Spotify Wrapped style. ✨

A beautiful terminal experience that analyzes your local Claude Code conversation history and presents your coding year in a cinematic, Spotify Wrapped-inspired format.


🚀 Quick Start

No installation needed - Just run one of these commands:

# Using uvx (recommended - Python, no install)
uvx claude-wrapped

# Using npx (Node.js, no install)
npx @da-trollefsen/claude-wrapped

# Or install once and run anytime
pip install claude-wrapped
claude-wrapped

The tool launches in interactive mode with arrow-key prompts to guide you through all options. Press Enter to advance through your personalized stats!

☕ Pro tip: Using Claude Code? Just paste this repo URL (https://github.com/da-troll/claude-wrapped) into your conversation and ask Claude to install and run it for you. Sit back, sip your coffee, and let Claude handle the setup while you wait for your stats. Meta, right? 😎


✨ Features

📊 Comprehensive Stats

  • Total messages exchanged with Claude
  • Coding sessions and project counts
  • Tokens processed (input, output, cache)
  • Cost estimates based on official Anthropic pricing
  • Longest coding streak with start and end dates
  • Current streak to keep you motivated

🎬 Cinematic Experience

  • Dramatic reveals - Stats appear one at a time, Spotify Wrapped style
  • GitHub-style contribution graph - Visualize your coding patterns
  • Movie-style credits - Featuring your top tools, projects, and models
  • Fun facts & insights - Like "You coded after midnight 47 times"

🎭 Personality Types

Based on your coding habits, discover your type:

  • 🦉 Night Owl - The quiet hours are your sanctuary
  • 🔥 Streak Master - Consistency is your superpower
  • ⚡ Terminal Warrior - Command line is your domain
  • 🎨 The Refactorer - You see beauty in clean code
  • 🚀 Empire Builder - Building across multiple projects
  • 🌙 Weekend Warrior - Passion fuels your weekends
  • 🎯 Perfectionist - Only the best will do
  • 💻 Dedicated Dev - Steady and reliable

📤 Export Options

  • HTML export - Beautiful web page with interactive graphs
  • Markdown export - Clean, readable format for sharing
  • JSON export - Raw data for your own analysis
  • Timestamped filenames - Never overwrite previous exports

🎯 Usage

Two Ways to Use

🎨 Interactive Mode (Recommended for beginners)

Simply run the command without any arguments:

claude-wrapped

You'll be guided through beautiful prompts to select:

  • ⏳ Time period - Current year, specific year, or all-time
  • 📤 Export format - Terminal only, HTML, Markdown, or JSON
  • 🎬 Animations - Show dramatic reveals or skip to dashboard
  • 📝 Custom filename - Optional custom name for exports

No need to remember complex command-line arguments!

⚡ CLI Mode (For power users & scripts)

Pass arguments directly for quick access:

# Full cinematic experience (current year)
claude-wrapped 2025

# Skip animations, go straight to dashboard
claude-wrapped --no-animate

# All-time statistics
claude-wrapped all

# Export to HTML
claude-wrapped --html

# Export to Markdown
claude-wrapped --markdown

# All-time stats with exports
claude-wrapped all --html --markdown

# Export raw data as JSON
claude-wrapped --json

Custom Output Filename

# Custom filename (without extension)
claude-wrapped --html --output my-wrapped-2025
# Creates: my-wrapped-2025.html

# Default timestamped filenames
claude-wrapped --html
# Creates: claude-wrapped-2025-20260102-1430.html

💾 Including Backup Directories

Have Claude Code backups in Dropbox, external drives, or exported conversations? Include them all:

Setup

# 1. Create a .env file
cp .env.example .env

# 2. Edit .env and add your backup locations (comma-separated)
CLAUDE_BACKUP_DIRS=~/Dropbox/claude-backups/.claude,~/exported-chats,/Volumes/backup/.claude

# 3. Run as normal - automatically combines all data
claude-code-wrapped

Supported Directory Structures

The tool auto-detects three different directory layouts:

1. Standard ~/.claude Structure

backup-dir/
├── projects/
│   └── -Users-you-code-project/
│       └── session-uuid.jsonl
└── history.jsonl (optional)

2. Projects Folder

projects-dir/
├── -Users-you-code-project1/
│   └── session.jsonl
└── -Users-you-code-project2/
    └── session.jsonl

3. Flat Structure

backup-dir/
├── session1.jsonl
├── session2.jsonl
└── session3.jsonl

Deduplication

  • Messages are automatically deduplicated by message_id
  • Order matters: Later directories override earlier ones for duplicates
  • List most authoritative/complete sources last

Example:

# CORRECT: Pre-compaction backups listed last (highest priority)
CLAUDE_BACKUP_DIRS=~/.claude/backups/old,~/external-drive/pre-compaction

# WRONG: Pre-compaction backups will be overridden
CLAUDE_BACKUP_DIRS=~/external-drive/pre-compaction,~/.claude/backups/old

📋 Requirements

  • Python 3.12+ (with uvx, pipx, or pip)
  • Or Node.js 16+ (for npx)
  • Claude Code installed (~/.claude/ directory exists)

🔒 Privacy

This tool is 100% local and private:

  • ✅ No network requests - All data read from local ~/.claude/ directory
  • ✅ No data collection - Nothing sent to any server
  • ✅ No API keys needed - Works entirely offline
  • ✅ No secrets exposed - Only aggregated stats shown, not conversation content
  • ✅ Open source - Inspect the code yourself

Your conversations never leave your machine.


🎨 What You'll See

Dashboard View

════════════════════════════════════════════════════════
  CLAUDE CODE WRAPPED 2025
════════════════════════════════════════════════════════

   71,108         263          2.9B           40d
  messages      sessions      tokens      best streak

╭─────────────── Activity · 90 of 365 days ────────────╮
│  Mon ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■     │
│      ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■     │
│  Wed ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■     │
│                                                      │
│                Less ■ ■ ■ ■ ■ More                   │
╰──────────────────────────────────────────────────────╯

Credits Sequence

  • 💵 THE NUMBERS - Cost breakdown by model, total tokens
  • 📅 TIMELINE - Journey start, active days, peak coding hour
  • 📊 AVERAGES - Messages and cost per day/week/month
  • 🔥 LONGEST STREAK - Your best consecutive coding days with dates
  • 💬 LONGEST CONVERSATION - Your epic coding session stats
  • ⭐ STARRING - Your favorite Claude models
  • 📁 PROJECTS - Top projects by message count

🛠️ How It Works

Reads your local Claude Code conversation history from ~/.claude/projects/ and aggregates:

  • Message counts and timestamps
  • Token usage (input, output, cache reads/writes)
  • Tool usage (Bash, Read, Edit, Grep, etc.)
  • MCP server usage (extracted from tool names)
  • Model preferences (Opus, Sonnet, Haiku)
  • Project activity (intelligently aggregates common subdirectories)
  • Coding patterns (hourly distribution, weekday patterns, streaks)
  • Cost estimates (based on official Anthropic API pricing)

Intelligent Project Aggregation

The tool recognizes common subdirectories and aggregates them properly:

# Both of these become "my-project":
/Users/you/code/my-project/app
/Users/you/code/my-project/src

# Common subdirectories recognized:
app, src, lib, frontend, backend, api, server, client,
test, tests, public, static, dist, build, etc.

📦 Installation Methods

🚀 No Install Required (Recommended)

uvx (Python ecosystem - most reliable):

uvx claude-wrapped
  • ✅ No installation needed
  • ✅ Always runs latest version
  • ✅ Isolated environment
  • ✅ Requires Python 3.12+ or uv installed

npx (Node.js ecosystem):

npx claude-wrapped
  • ✅ No installation needed
  • ✅ Works if you have Node.js 16+
  • ⚠️ Wrapper script that calls Python version

📥 Install Globally

pip (system-wide Python install):

pip install claude-wrapped
claude-wrapped
  • Installs claude-wrapped command globally
  • Requires Python 3.12+

pipx (isolated Python install):

pipx install claude-wrapped
claude-wrapped
  • ✅ Best of both worlds: installed command + isolated environment
  • ✅ Doesn't pollute global Python packages
  • Requires pipx (installation guide)

Homebrew (macOS/Linux package manager):

brew tap da-troll/claude-wrapped
brew install claude-wrapped
  • ✅ Native macOS/Linux package manager
  • ✅ Easy updates with brew upgrade
  • Tap repository: homebrew-claude-wrapped

🔧 Development Mode

From source (for contributors):

git clone https://github.com/da-troll/claude-wrapped.git
cd claude-wrapped
uv sync
uv run python -m claude_code_wrapped

Editable install (makes claude-wrapped command available locally):

uv pip install -e .
claude-wrapped

🤝 Contributing

Contributions are welcome! This project is open source and community-driven.

Development Setup

# Clone the repository
git clone https://github.com/da-troll/claude-wrapped.git
cd claude-wrapped

# Install dependencies with uv
uv sync

# Run from source
uv run python -m claude_code_wrapped

# Run tests
uv run python -m claude_code_wrapped.reader
uv run python -m claude_code_wrapped.stats

📄 License

MIT - see LICENSE for details.


⭐ Show Your Support

If you found this useful, consider:

  • Giving it a star on GitHub ⭐
  • Sharing your wrapped on social media
  • Contributing improvements

Built with ❤️ for the Claude Code community


💡 Inspired By

Originally inspired by Mert Deveci's concept. This project has since evolved into a completely independent codebase with a different architecture and feature set.

Metadata

Release files for claude-wrapped 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for claude-wrapped 1.0.2
File Size Uploaded
claude_wrapped-1.0.2.tar.gz 39.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for claude-wrapped 1.0.2
File Interpreter ABI Platform
claude_wrapped-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 82.7 kB

Release files / claude_wrapped-1.0.2.tar.gz

Download URL claude_wrapped-1.0.2.tar.gz
Size 39.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a06c414bfe97224e2fccd310129814a128448582314da415d345a5a8a2cca547
BLAKE2b-256 checksum
How to use checksums
1647433d9a8f905e2e7ada2a0145aabaab18bbd2185cdaceb6b6f9854f9fa5b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.13

Release files / claude_wrapped-1.0.2-py3-none-any.whl

Download URL claude_wrapped-1.0.2-py3-none-any.whl
Size 42.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08ab9c4309577cfd18fe0b3f3a84e6c6f43b76c1da168a360a98072cdbf453c8
BLAKE2b-256 checksum
How to use checksums
e77ad2d38ac904a7033804e2c51adca22558b588677d529d413d9b1891915c90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.13

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page