ryoppippi/ccusage — reverse-engineered prompt
Reverse engineered prompt
Build me a command line tool that helps people see how much they’re spending on coding agents from the usage files already on their computer.
I want it to automatically find local data from tools like Claude Code, Codex, OpenCode, Gemini CLI, Copilot CLI, Goose, Amp, Qwen, Kimi, and similar agent CLIs, then show clear reports by day, week, month, and conversation session. It should show token counts, cache tokens, models used, and estimated cost in USD. Make the terminal output nice and readable with colorful tables, and make it automatically switch to a compact view when the terminal is narrow.
Please include date filters, timezone support, JSON output, custom data paths, an offline mode using cached pricing, and a way to focus on one source or combine all detected sources. For Claude Code, include the 5 hour billing window view and a small status line output for hooks. Keep setup simple so people can run it directly without installing globally.
Want more depth? Deep Reverse