xray_transcripts
Audit local Claude Code JSONL transcripts offline to quantify unwindowed reads, cache idle cliffs, and largest tool-output offenders without exposing file contents, commands, or paths.
Instructions
Run a 100% offline, read-only diagnostic on local Claude Code JSONL transcripts to quantify unwindowed file reads (>350 lines), >5-minute prompt-cache idle cliffs, and largest tool-output context offenders without exposing file contents, shell commands, or full paths.
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": "xray_transcripts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Number of largest tool-output offenders to return (1..50). | |
| days | No | Only scan transcripts modified within the last N days (0 = all). | |
| path | No | Transcript directory or .jsonl file path (defaults to ~/.claude/projects). | |
| format | No | Output representation ('json' or human-readable 'text'). | json |
| max_files | No | Maximum number of newest transcript files to scan (0 = unlimited). | |
| idle_seconds | No | Idle gap in seconds above which a subsequent cache rewrite counts as an idle cliff. | |
| read_threshold | No | Line count above which an unwindowed Read call is counted as bloat. |