replay_corpus
Replay captured AI coding sessions through shipped compression mechanisms to report real token reduction, verifying that compression works on your actual session history.
Instructions
Reproduce the shipped compression mechanisms across a filtered corpus of captured sessions and report the aggregate real tool-result token reduction. Strictly read-only.
days is an exact rolling ingestion window over the caller's own
sessions (default 30). For source="codex", stored model names must
start with gpt- or codex-. model_family/project/session_category
further narrow the corpus. limit is the target fully eligible session
count (max 100); Replay scans up to 4x that many recent session
records, capped at 100, and stops when it reaches the target or
exhausts the scan. Every result states sessions considered vs eligible
and why the rest were excluded.
min_turns/min_tool_calls override the turn-count and tool-call-count floors (default 5/5; PRD §6's documented floors are 10/10) — reported in the output's provenance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| limit | No | ||
| source | No | all | |
| project | No | ||
| min_turns | No | ||
| mechanisms | No | ||
| model_family | No | ||
| min_tool_calls | No | ||
| session_category | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||