ai-wrapped

agent
Security Audit
Fail
Health Warn
  • No license — Repository has no license file
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 12 GitHub stars
Code Fail
  • rm -rf — Recursive force deletion command in package.json
  • network request — Outbound network request in server/index.ts
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Your year in AI coding, wrapped: story-style stats from your coding agents' local logs (Claude Code, Codex, agy, DeepSeek, Grok, Cursor and more), in your browser. npx ai-wrapped@latest

README.md

AI Wrapped icon

AI Wrapped

Your year in AI coding, wrapped: Spotify Wrapped-style stories from your coding agents, in your browser.
ai-wrapped.com · npm

No desktop app to install: npx ai-wrapped@latest reads the session logs on your machine, serves the stories from 127.0.0.1 and opens them in your browser. Nothing is uploaded unless you press Share.

Built on top of agent-sessions session format discovery — reads JSONL/JSON session logs that AI coding agents write to disk.

Supported Agents

  • Claude Code — ~/.claude/projects/ JSONL sessions + subagent logs
  • OpenAI Codex — Codex CLI session files
  • Google Gemini CLI — Gemini session logs
  • OpenCode — OpenCode session data
  • Droid — Droid session files
  • GitHub Copilot — Copilot session logs
  • Amp — Amp thread usage ledgers
  • Codebuff — Codebuff agent chats
  • Goose — Goose session database
  • Hermes — Hermes state database
  • Kilo — Kilo message database
  • Kimi Code — Kimi wire session logs
  • OpenClaw — OpenClaw session logs
  • pi — pi-agent session logs
  • Qwen Code — Qwen chat logs
  • agy (Antigravity CLI) — ~/.gemini/antigravity-cli/brain transcripts
  • DeepSeek Harness — ~/.dsh/sessions logs (plain or zstd)
  • Grok CLI — ~/.grok/sessions/*/*/updates.jsonl
  • Cursor CLI — ~/.cursor/projects/*/agent-transcripts (sessions, messages and tool calls; Cursor keeps token counts on its servers)

The newer readers (agy, DeepSeek Harness, Grok, Cursor) take numbers only: tokens, models, times and counts, never message text.

Usage from chat apps and provider APIs (claude.ai, ChatGPT, Anthropic/OpenAI usage APIs, Cursor's dashboard) can be added as totals with --cloud; see agents.md. Missing a harness? Open an issue or a PR with a discoverer and parser in src/bun/discovery/additional.ts and src/bun/parsers/additional.ts.

What It Shows

  • Total sessions, messages, tool calls, tokens, and estimated cost
  • Daily activity timeline with per-agent and per-model breakdown
  • Cost breakdown by model (Claude Opus, Sonnet, GPT-4o, Gemini Pro, etc.)
  • Agent podium and top-5 models, with their logos
  • Time spent — total hours, average session duration, longest session, current streak, active day coverage ring
  • Top repositories with sessions, tokens, cost, and duration (names hidden as codes unless you choose to show them)
  • Coding hours — 24-hour activity breakdown by agent
  • Short share links (ai-wrapped.com/s/…) with a rich link preview, plus image export
  • A soundtrack generated in the browser (a different genre per story), 12 interface languages, and a "Calm motion" option

Quick start

npx ai-wrapped@latest
# or
bunx ai-wrapped@latest

Flags: --no-open (only print the link), --no-scan, --version, --uninstall

For agents: the AI Wrapped skill

Any coding agent with a shell (Claude Code, Codex, agy, DeepSeek Harness, Grok, Cursor, OpenCode, …) can build your wrapped, add its own commentary to every story, and publish a link. The skill is plain Markdown in skills/ai-wrapped/SKILL.md.

bunx ai-wrapped@latest skill install      # copies SKILL.md into ~/.claude/skills, ~/.codex/skills, ~/.agents/skills

Then ask your agent for "my AI wrapped". The agent can comment on each story, give it its own title and subtitle, and pick its background and number animation from a fixed catalog. Under the hood it uses:

ai-wrapped stats --range 2026                       # JSON digest for the agent to read
ai-wrapped view --range 2026 --notes notes.json     # private link (data stays in the #fragment)
ai-wrapped share --range 2026 --notes notes.json    # publish with the agent's notes

Notes are { "author": "Codex (gpt-6)", "lang": "en", "stories": { "intro": { "title": "…", "subtitle": "…", "note": "…" }, "hours": "…" } }. Repository names are shared as codes unless you add --show-repos.

Stack

  • Runtime: Bun
  • Local app: a small Bun server on 127.0.0.1 (loopback only, per-run key in the opened link, Host header check) that serves the web app and the stats.
  • Frontend: React + Tailwind CSS, hand-rolled SVG charts, and per-story WebGL backgrounds and text effects from React Bits (src/wrapped/rb/, used under the React Bits license), shared by the app, share page and landing page. Avatars from Open Bot Avatar.
  • Build: Vite (dist/ for the local app, dist-site/ for the website)
  • Storage: JSON files in ~/.ai-wrapped/

Layout

Path What
src/bun/ Session discovery, parsing, aggregation, the local server (local.ts), share upload
src/mainview/ The local web app (stories + share controls)
src/wrapped/ Design system: shader, palettes, stories, charts, share image
src/site/ Landing page (/) and share page (/share, /s/:id)
server/ Bun server for the site and short share links (SQLite)

Getting Started

bun install

Development

bun run dev        # builds the web app, then runs the CLI (opens your browser)
bun run build      # builds dist/ only

Website and share server

bun run build:site          # builds dist-site/
bun run server              # serves dist-site and the share API on :3000

Environment: PORT, HOST, STATIC_DIR, DATA_DIR (SQLite location), PUBLIC_ORIGIN (e.g. https://ai-wrapped.com), RATE_LIMIT_PER_HOUR.
A Dockerfile builds the site and runs the server; mount a volume at /data.

The local app posts shares to https://ai-wrapped.com/api/share (override with AI_WRAPPED_SHARE_ORIGIN). If the server can't be reached it falls back to a self-contained /share#… link.

How It Works

  1. On launch, the CLI scans known session directories for each agent
  2. New or changed session files are parsed into a normalized format with token counts, tool calls, and cost estimates
  3. Aggregated daily stats are written to ~/.ai-wrapped/daily.json
  4. The local server builds the wrapped for the chosen range and the browser renders the stories

Reviews (0)

No results found