Capture the Claude CLI's /usage panel as structured JSON.
claude-usage.py drives the interactive claude TUI through a pseudo-terminal (PTY):
it launches claude, types /usage, snapshots the rendered screen,
shuts the process down cleanly, parses the screen, and prints structured JSON.