replay_session
Measure token savings from session compression by replaying captured tool calls through configurable mechanisms and reporting actual tool-result reduction. Read-only analysis; no model calls.
Instructions
Reproduce the shipped compression mechanisms over one captured session's tool calls and report the real tool-result token reduction. Strictly read-only: no model calls, no writes, no re-execution of historical commands.
session_id defaults to your most recent complete session. mechanisms defaults to all three (range_cache, shell_compaction, hash_dedupe); pass a subset (e.g. ["shell_compaction"]) to isolate one mechanism's effect. A session below the size/turn thresholds is refused with the specific failing constraint (verdict "insufficient_data") rather than given an unstable number.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "replay_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| min_turns | No | ||
| mechanisms | No | ||
| session_id | No | ||
| min_tool_calls | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||