Recapture what you built with Claude — conversation history analyzer and report generator
Project description
Claude Recap
Recapture what you built with Claude Code.
中文文档
Turn your local Claude Code conversation history into interactive dashboards, periodic reports, and AI-powered summaries — all without sending raw conversations anywhere.
Features
- Interactive Dashboard — GitHub-style activity heatmap, project breakdown, filterable session browser
- AI-Powered Summaries — Optional Claude API integration for intelligent narrative generation
- Multi-period Reports — Daily / Weekly / Monthly / Yearly
- Purpose-driven Exports — General, Academic, Job Search, Work Report modes
- Multiple Formats — Self-contained HTML, Markdown, JSON
- Cross-platform — macOS, Linux, Windows — auto-detects Claude data directory
- Privacy-first — Runs entirely on your machine; the only network call is the opt-in
--aiflag
Getting Started
pip install claude-recap
# With AI summary support
pip install claude-recap[ai]
export ANTHROPIC_API_KEY=sk-ant-...
claude-recap # quick usage stats
claude-recap serve # launch interactive dashboard
claude-recap report --open # generate & open a weekly HTML report
claude-recap dashboard # export a static dashboard file
Usage
claude-recap — Quick Stats
$ claude-recap
╭──────────────────────╮
│ Claude Recap v0.1.0 │
╰── 2026-03-10 → 04-04 ╯
Sessions 42
Messages 2665
Active Days 18
Projects 12
claude-recap serve — Interactive Dashboard
claude-recap serve [--port 6275]
Opens a local dashboard in your browser featuring an activity heatmap, messages-per-day chart, project & tool breakdown, session browser with filters, and an AI Insights button.
claude-recap report — Generate Reports
claude-recap report # weekly HTML (default)
claude-recap report -p monthly --purpose academic --ai # monthly academic + AI summary
claude-recap report --from 2026-01-01 --to 2026-03-31 # custom date range
claude-recap report -f markdown --purpose work_report # Markdown work report
| Purpose | Focus |
|---|---|
general |
Overall activity and key conversations |
academic |
Research activities, experiments, methodologies |
job_search |
Technical skills, tools used, problem complexity |
work_report |
Deliverables, productivity, project progress |
claude-recap schedule — Automate Reports
claude-recap schedule --period weekly
Prints platform-specific cron / Task Scheduler instructions for recurring report generation.
How It Works
Claude Recap reads the JSONL conversation logs stored locally by Claude Code:
| Platform | Default Location |
|---|---|
| macOS / Linux | ~/.claude/ |
| Windows | %LOCALAPPDATA%\claude\ or %APPDATA%\claude\ |
Override with --dir or the CLAUDE_HISTORY_DIR environment variable. All processing happens locally. The optional --ai flag sends only condensed session metadata (not full conversations) to the Claude API for summary generation.
Project Structure
src/claude_recap/
cli.py CLI commands (Click)
parser.py JSONL conversation parser
analyzer.py Statistics & time-series grouping
reporter.py Report rendering (HTML / Markdown / JSON)
summarizer.py AI summarization via Claude API
server.py Local dashboard server
templates/
dashboard.html Interactive dashboard template
report.html Report template
Development
git clone https://github.com/MazelTovy/claude-recap.git
cd claude-recap
pip install -e ".[ai]"
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_recap-0.1.0.tar.gz.
File metadata
- Download URL: claude_recap-0.1.0.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38828ded1083187d9bd255ec434171c174e6a6d674c2d1e75da9cedc4a5c19af
|
|
| MD5 |
ebc19aee5d762d8581fa5f1d7a9334d6
|
|
| BLAKE2b-256 |
5e5f7cec7e0e1e3159c1c14cd35c6cd982cee1efe7549a351bd1b11b3c3c50ce
|
File details
Details for the file claude_recap-0.1.0-py3-none-any.whl.
File metadata
- Download URL: claude_recap-0.1.0-py3-none-any.whl
- Upload date:
- Size: 26.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42bde705bb56b8c5303e67549f3dd62795b55aec42d5a2a23e16894ab9b58559
|
|
| MD5 |
9f03ee9a2861229b3e350c2a2a1accc9
|
|
| BLAKE2b-256 |
aa024efe95beafffcf4aa944bdd901238141109a15e626db2bb0e49dad27d1a1
|