ts_stale_context
Scan recent session transcripts to find tool results made obsolete later in the same session, then return stale refs so you can drop or refetch them.
Instructions
Scan the recent session transcript(s) and list tool results made obsolete later in the SAME session — a file read then re-read, a file read then edited, a Bash command re-run. Returns the stale refs so you can drop that content or refetch the fresh copy, keeping the context window lean. Agent-agnostic, read-only, PII-safe. format='table' (default) or 'json'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Cap the number of stale refs returned (default unlimited). | |
| format | No | Output format. 'table' (default) or 'json'. | |
| project | No | Filter to project dirs whose name contains this substring (omit = all recent). | |
| since_days | No | Only consider events newer than now - since_days (default 1 = the current session). |