headroomlabs-ai/tokview — reverse-engineered prompt
Reverse engineered prompt
Build me a small local tool called tokview that sits in front of coding agents and shows where tokens are actually going while they run. I want the main flow to be really simple, you wrap Claude or Codex with one command, then in another terminal you can watch a live view of usage by session, request, model, and especially by individual tool call. It should also estimate what a subscription session would have cost on normal API pricing.
Please make it zero config by default, local only, and store everything in a SQLite file on the user’s machine. By default it should save accounting data only, not prompt or response text. I also want an option to import past local history from Claude Code and Codex logs so old sessions show up in the same view.
A browser dashboard is nice to have, but the terminal view should be the main experience. It should also work with apps that can point to OpenAI, Anthropic, or Gemini compatible base URLs. Keep it lightweight and privacy friendly, and check current docs online if you need to.
Want more depth? Deep Reverse