Skip to content

Releases

v2.0.0: tmux Integration and keeptabs-status

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.

v1.0.0: Initial Release

Choose a tag to compare

@uhs-robert uhs-robert released this 22 Sep 21:24

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 install

Then 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 Esc during a reply, so keeptabs reads Claude's session status files in ~/.claude/sessions/. That format is undocumented and may change.