update ccusage slash command to breakdown model costs further

This commit is contained in:
George Liu 2025-07-13 22:19:48 +10:00
parent 6cbfbbf777
commit 7941e076ec
2 changed files with 16 additions and 10 deletions

View File

@ -11,16 +11,20 @@ Please run the `ccusage daily -b` command and then provide a structured markdown
- Total cost for the period - Total cost for the period
- Date range covered - Date range covered
- Number of usage days - Number of usage days
- Average daily cost - Average daily cost for sonnet
- Peak usage day and cost - Average daily cost for opus
- Average daily cost for sonnet + opus
- Peak usage day and cost for sonnet
- Peak usage day and cost for opus
- Peak usage day and cost for sonnet + opus
- Cache efficiency percentage - Cache efficiency percentage
### Key Statistics Table ### Key Statistics Table
A markdown table with: A markdown table with usage broken down by model and model totals:
- Total Tokens - Total Tokens (in millions i.e. 1,234,567 reported as 1.2345 m)
- Input Tokens - Input Tokens (in millions i.e. 1,234,567 reported as 1.2345 m)
- Output Tokens - Output Tokens (in millions i.e. 1,234,567 reported as 1.2345 m)
- Cache Read Tokens - Cache Read Tokens (in millions i.e. 1,234,567 reported as 1.2345 m)
- Total Cost - Total Cost
- Average Daily Cost - Average Daily Cost
@ -28,9 +32,9 @@ A markdown table with:
A compact markdown table showing: A compact markdown table showing:
- Date (in MM-DD format) - Date (in MM-DD format)
- Model used - Model used
- Input tokens - Input tokens (in millions i.e. 1,234,567 reported as 1.2345 m)
- Output tokens - Output tokens (in millions i.e. 1,234,567 reported as 1.2345 m)
- Cache read tokens - Cache read tokens (in millions i.e. 1,234,567 reported as 1.2345 m)
- Total cost for that day - Total cost for that day
Limit to the top 15-20 highest cost days to keep the table manageable. Limit to the top 15-20 highest cost days to keep the table manageable.

View File

@ -9,6 +9,8 @@
"Bash(.venv/bin/python:*)", "Bash(.venv/bin/python:*)",
"Bash(awk:*)", "Bash(awk:*)",
"Bash(cat:*)", "Bash(cat:*)",
"Bash(ccusage daily)",
"Bash(ccusage daily:*)",
"Bash(chmod:*)", "Bash(chmod:*)",
"Bash(claude config get)", "Bash(claude config get)",
"Bash(claude mcp:*)", "Bash(claude mcp:*)",