Skip to content

v2.0.0: tmux Integration and keeptabs-status

Latest

Choose a tag to compare

@uhs-robert uhs-robert released this 25 Nov 20:15

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_frame flips 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_frame now 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 no jq, rofi or Hyprland, so it works on headless servers (#12):
bind-key a run-shell -b 'keeptabs-tmux next'
  • keeptabs-pick --json and --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-status emits finished_seq and waiting_seq counters, plus transient finished and waiting-started classes 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-waybar is now keeptabs-status, because the stream feeds more than Waybar. Change "exec": "keeptabs-waybar" to "exec": "keeptabs-status" in your Waybar config, then run make install again. The runtime directory moves to keeptabs-status as well (#9).

🚀 Upgrade

cd keeptabs
git pull
make install

Restart Waybar after you rename the module command.