Display your Claude Code API usage (5-hour and 7-day quotas) directly in your tmux status bar with color-coded thresholds and time-until-reset.
5h:14(3h) 7d:75(19h) │ 13:20 29-Jan
| function* runTimer(getState) { | |
| while(yield take('START')) { | |
| while(true) { | |
| const {stop, tick} = yield race({ | |
| stop : take('STOP'), | |
| tick : call(wait, ONE_SECOND); | |
| }) | |
| if ( !stop ) { | |
| yield put(actions.tick()); |