Repository navigation
keeptabs now reports agent state to tmux, so a tmux status line can show which window needs you and jump to it.
✨ Features
- tmux state: the hook writes the most urgent agent state of each window into the tmux option
@keeptabs_state(waiting, then done, running, idle).@keeptabs_frameflips between 0 and 1 while an agent runs, waits or is done, so a status line can animate any of them. The hook adds about 5 ms per state change (#11). - Animated waiting state:
@keeptabs_framenow also flips while an agent waits on you, so a tmux theme can flash a waiting tab (#13). keeptabs-status --once: runs one watcher tick from a tmux#()job, for servers that have no continuous watcher. Add it to your status line:
set -ga status-right '#(keeptabs-status --once)'keeptabs-tmux next: jumps to the agent that needs you. It picks waiting agents before done ones, and older before newer. Repeat presses walk through the list and wrap around. It needs nojq,rofior Hyprland, so it works on headless servers (#12):
bind-key a run-shell -b 'keeptabs-tmux next'keeptabs-pick --jsonand--focus <id>: list sessions as JSON and jump to one without rofi, for frontends such as a Quickshell popup. The JSON includes how full each agent's context is (#2, #4).- Cues for bars:
keeptabs-statusemitsfinished_seqandwaiting_seqcounters, plus transientfinishedandwaiting-startedclasses for Waybar CSS. Use them to animate a session that just finished or just started waiting (#6, #8).
🐛 Fixes
- A subagent's tool calls no longer flip a waiting session back to running. Before, a background subagent could hide a pending question for the whole wait (#10).
⚠️ Breaking changes
keeptabs-waybaris nowkeeptabs-status, because the stream feeds more than Waybar. Change"exec": "keeptabs-waybar"to"exec": "keeptabs-status"in your Waybar config, then runmake installagain. The runtime directory moves tokeeptabs-statusas well (#9).
🚀 Upgrade
cd keeptabs
git pull
make installRestart Waybar after you rename the module command.