Skip to content
ISSUE 001·LIVE·01:53 IL
← The Lab/N° 049 · CLI·Shipped 2026-05

Context Budget

Claude Code context-window budget calculator — know your token cost before you load files.

context-budget is a Python CLI that helps Claude Code users understand token consumption before loading files into a session. It scans a workspace and reveals which files are most expensive, helping you avoid hitting the ~200K token context wall and triggering early compaction. Token counting is powered by tiktoken.

The build log

Follow the work.

New essays and prototypes, in your feed reader. Email subscriptions are paused while I connect a working delivery service. No email is collected here.

Follow via RSS