Settings

Theme

Show HN: Tree, but for Token Usage

github.com

3 points by likium 2 months ago · 0 comments · 1 min read

Reader

Treetok shows the token count for Claude and OpenAI in a directory structure. I built it because this one folder I was working in filled up the context window quick, and wanted to know why. I could have used line count instead, but I wanted more precision.

Through it, I learned that the same files in Claude cost 20-30% more tokens than OpenAI. So the same 200k context window in Claude is similar to 150k in Codex.

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection