Check Claude Code TUI Compact Readiness
companion_tui_compact_checkInspect the Claude Code TUI and cc-in-codex metadata to decide if it's a good moment to run /compact. A heuristic alternative to reading exact token limits.
Instructions
Inspect the visible Claude Code TUI and cc-in-codex metadata to decide whether this is a good checkpoint to run /compact. This is a heuristic, not a true token-limit reading.
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": "companion_tui_compact_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| lines | No | Recent pane lines to inspect. Defaults to 500. |