Repository navigation
Releases
Releases · uhs-robert/keeptabs
v2.0.0: tmux Integration and keeptabs-status
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.
v1.0.0: Initial Release
First release of keeptabs: keep tabs on your Claude Code and Codex sessions from Waybar, and jump straight to the one that needs you.
✨ Features
- Waybar module: one icon per state (
waiting,done,running,idle) with a count. The icon bobs while an agent is busy, pulses while one waits on you, and hides when no agents are running. - Picker: a rofi list of every session with its state, title, project, location and age. Picking one focuses the exact kitty window, tmux pane or nvim terminal buffer. With only one session, rofi is skipped.
- Seen tracking: a status clears when you look at its window, however you get there, so only new information stays in the bar.
- Colors: set your own in
~/.config/keeptabs/config.ini. - Works with both classic and Lua Hyprland configs.
🚀 Install
git clone https://github.com/uhs-robert/keeptabs
cd keeptabs
make installThen add the agent hooks and the Waybar module. See the README for setup.
🚩 Caveats
- Requires Hyprland,
jq,rofi, bash 5.1+ and Waybar. - Claude Code has no hook for
Escduring a reply, so keeptabs reads Claude's session status files in~/.claude/sessions/. That format is undocumented and may change.