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.2.0a1.tar.gz (21.7 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.2.0a1-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file rewatch-0.2.0a1.tar.gz.

File metadata

  • Download URL: rewatch-0.2.0a1.tar.gz
  • Upload date:
  • Size: 21.7 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.2.0a1.tar.gz
Algorithm Hash digest
SHA256 02e120fec0fb0c8fec2076d6908c9e054cbe7e67f32c8587e820920c0391afa5
MD5 c5e57a7b67933a0004a439edca86fbcf
BLAKE2b-256 7b6306cceea41ab0a44d1788c0251263dd972edbe7d0f326eb45c4a354d6a207

See more details on using hashes here.

File details

Details for the file rewatch-0.2.0a1-py3-none-any.whl.

File metadata

  • Download URL: rewatch-0.2.0a1-py3-none-any.whl
  • Upload date:
  • Size: 10.5 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.2.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 c1dfadb91de8869c624e845d4f007aa6da10d236e98b476132d26eb44010f0a6
MD5 24fd3ffc013a6fee5e8c51903564e379
BLAKE2b-256 03745d7cb8958968435f432da250bc445dbaa61ae9b0ec3aa0e8f14d0d8f6b84

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