Skip to main content

rewatch

analytics over your claude code session transcripts.

claude code keeps a jsonl transcript of every session under ~/.claude/projects/. rewatch separates what you actually typed from harness noise (tool results, slash-command expansions, subagent sidechains) and tells you things like:

  • your most-repeated literal prompts (everyone has a "make the PR description not suck")
  • how often you open with no / wait / stop / actually
  • where your prompts, interrupts, and output tokens go, per project
  • which tools claude leans on, and what hours you really work

install

uv tool install rewatch

usage

rewatch report            # the whole picture, human-formatted
rewatch prompts --pretty  # most-repeated literal prompts
rewatch hours --pretty    # prompts by local hour of day
rewatch overview --days 7 # recent only

machine-readable by default — lists are ndjson, single results are one json object — so output pipes straight into jq or an agent:

rewatch projects | jq -r '.project'

note: claude code prunes local transcripts (30 days by default, see cleanupPeriodDays), so rewatch sees a rolling window, not all time.

library

from rewatch import load_sessions, repeated_prompts

sessions = load_sessions(days=30)
for text, count in repeated_prompts(sessions, top=10):
    print(count, text)

Metadata

Release files for rewatch 0.1.0

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

Source distribution (sdist)

Source distribution for rewatch 0.1.0
File Size Uploaded
rewatch-0.1.0.tar.gz 16.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rewatch 0.1.0
File Interpreter ABI Platform
rewatch-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 24.8 kB

Release files / rewatch-0.1.0.tar.gz

Download URL rewatch-0.1.0.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
215e2c77181d87285460326d46453e54d21e136a9204041c7d96ec7e48d285b5
BLAKE2b-256 checksum
How to use checksums
78340a132115eb851a64504dd5bc9e5798b2d31734257d681f56238f4db4086e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / rewatch-0.1.0-py3-none-any.whl

Download URL rewatch-0.1.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
95bc141ab3e07c4462d9a68b430bc497e4e126aea808e3ba31ce930026c6e721
BLAKE2b-256 checksum
How to use checksums
ac8daecb7dd0dfd22592b7680bc93e7c0e98a48c7a050f6a9a7710567b7e24db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

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