Commit b7d4cfc
feat: add 5-hour blocks report command
Implements a new `blocks` command to analyze Claude Code usage in 5-hour billing windows as requested in #23:
- Track active blocks with time remaining and burn rate projections
- Support token limits with `-t` parameter (including `-t max` for highest previous block)
- Add `--recent` flag to show last 3 days of blocks
- Add `--active` flag for detailed view of current active block
- Include REMAINING and PROJECTED rows in table view with percentage tracking
- Fix max token calculation to include all blocks (not filtering synthetic models)
- Update README with blocks command documentation
The blocks report helps users understand:
- When their 5-hour session windows start and end
- How many tokens they've used vs their limit
- Projected usage if current burn rate continues
- Time remaining in active sessions
Fixes #23
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 932b9ec commit b7d4cfc
File tree
6 files changed
+9197
-0
lines changed- src
- commands
- utils
6 files changed
+9197
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
219 | 262 | | |
220 | 263 | | |
221 | 264 | | |
| |||
0 commit comments