ccusage/ccusage ? reverse-engineered prompt
Reverse engineered prompt
Build me a command line tool called ccusage that reads local usage data from AI coding assistants and turns it into simple reports so I can see how many tokens I’m using and what it’s costing me.
I want to be able to run things like daily, weekly, monthly, and session reports, and also look at one specific tool like Claude Code or Codex if I want. It should work from local files only, no account login or cloud service. The output should look good in the terminal, with totals, breakdowns, and easy to read tables, and it should also be able to export JSON for scripts. If it makes sense, add a status line mode for Claude Code and a few helpful filters like date ranges, timezone, and hiding cost columns.
Make it easy to install and run with npx or a similar package runner, and keep the experience very polished. If you need current CLI docs for the different tools, look them up online first.
Are you gonna build this?
make sure you review the code using coderabbit