cg-transcript-replay

command
v0.7.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

cg-transcript-replay runs the shipped pipeline over request sequences rebuilt from Claude Code transcripts (scripts/analysis/cc_transcript_requests.py) and writes, per call, what the pipeline changed. It makes no network call: it is the offline half of "what would Context Guru save here".

Every call k of a round is sent as messages[:n_k], in order, through apply.BodyOpts with a Tracker, a per-round store and the call's own timestamp — the same inputs the proxy gives it — so the cached-prefix boundary, the cold-cache verdict and sticky offloads all behave as they would live.

Per call it records the token count of the original and the forwarded messages, how much of the forwarded body is an unchanged prefix of the previous forwarded body (anything less is a cache rewrite), the per-component saving, and the per-tool_use_id saving. Pricing is left to the caller.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL