Skip to main content

analytics over your claude code session transcripts

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rewatch-0.1.0.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rewatch-0.1.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file rewatch-0.1.0.tar.gz.

File metadata

  • Download URL: rewatch-0.1.0.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for rewatch-0.1.0.tar.gz
Algorithm Hash digest
SHA256 215e2c77181d87285460326d46453e54d21e136a9204041c7d96ec7e48d285b5
MD5 054e4e7273f91b28655cce8c71f1f8e1
BLAKE2b-256 78340a132115eb851a64504dd5bc9e5798b2d31734257d681f56238f4db4086e

See more details on using hashes here.

File details

Details for the file rewatch-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rewatch-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for rewatch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95bc141ab3e07c4462d9a68b430bc497e4e126aea808e3ba31ce930026c6e721
MD5 5ef47e02f18adc14c5796f35aadc3fc2
BLAKE2b-256 ac8daecb7dd0dfd22592b7680bc93e7c0e98a48c7a050f6a9a7710567b7e24db

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page