sebside-tmux
A tmux sidebar that shows every session as a card, so you can see at a glance who is working, who is waiting for you, and what just finished.
Why
When you run many long jobs in tmux (AI agents, builds, test runs, dev servers), the hard part is not starting them. It is noticing which one needs you right now. tmux's own session list shows names, not state.
sebside keeps a narrow pane on the left with one card per session or task:
- waiting (yellow ●) and error (red ✖) cards float to the top: they need you.
- working (cyan spinner) means busy, nothing to do.
- done (green ✔) means finished; it turns quiet once you have looked at it.
- quiet (grey ○) and unknown (grey ?) are dimmed.
- Recently closed cards stay at the bottom, greyed, and can be resumed with Enter.
It works with plain tmux out of the box (session name, directory, current command, last activity). Any program can
make its card richer with one command: sebside card set --id build --state working --desc "compiling".
It knows nothing about any particular tool. Colors come from your terminal theme: only the 16 ANSI colors, bold and
dim are used.
Install
You need tmux 3.0 or newer and Python 3.12 or newer.
uv tool install sebside-tmux # or: pipx install sebside-tmux
uvx --from sebside-tmux sebside --help # try it without installing
Then add the tmux plugin with TPM in ~/.tmux.conf:
set -g @plugin 'swojtyna/sebside-tmux'
and press prefix + I to install it. Without TPM, clone the repo
(git clone https://github.com/swojtyna/sebside-tmux ~/.tmux/sebside-tmux) and add
run-shell ~/.tmux/sebside-tmux/sebside.tmux to your tmux.conf. The sebside command must be on tmux's PATH;
if uv says its tool directory is not on your PATH, run uv tool update-shell and restart tmux. If sebside is
missing, the plugin shows a message with the install command.
Quick start
- Press
prefix + S(by defaultCtrl-b S). The sidebar opens on the left of the current window. ↑/↓(orj/k) select a card,Enterswitches to that session.Ctrl-b →moves to your session,Ctrl-b ←back to the sidebar.qcloses it, so doesprefix + Sagain.?explains where the selected card's state came from (tmux basics or a card file, and how old it is).
In any pane, give it a real card:
sebside card set --id build --state working --title "build" --desc "compiling 120 files"
make && sebside card set --id build --state done --desc "build ok" \
|| sebside card set --id build --state error --desc "build failed"
Cards: the contract
A card is one JSON file in $XDG_STATE_HOME/sebside/cards/<id>.json (default ~/.local/state/sebside/cards/).
The file is the single source of truth. sebside card set writes it atomically (temporary file and rename, mode
0600, directory 0700). Inside tmux it also sets two pane options, @sebside_id and @sebside_state, so the
sidebar knows which pane the card belongs to and your status line can show the state.
card set flag |
File field | Shown as | Default when empty |
|---|---|---|---|
--id (required) |
id |
(identity) | none |
--state (required) |
state |
icon, color, order | none |
--title |
title |
line 1, bold | session name |
--subtitle |
subtitle |
line 2, dimmed | pane directory |
--desc |
desc |
line 3, dimmed, cut with … (max 300 characters) | current command |
--extra |
extra |
right side of line 2 | nothing |
--resume |
resume (argv list) |
Enter on a closed card | not resumable |
--cwd |
cwd |
directory for resume | current directory |
| (automatic) | tmux: socket, server pid, pane |
which pane is live | null outside tmux |
| (automatic) | schema, rev, created_at, updated_at, closed_at |
age on the right |
States: waiting, error, working, done, quiet, unknown. Text is cleaned of control characters.
Live or closed. A card is live when its tmux server (socket and server pid) is running and its pane still
exists. On every refresh the sidebar closes cards whose pane is gone ("reconciliation"); the plugin's
session-closed hook only nudges that. Pane ids reused after a tmux restart cannot claim an old card, because the
server pid differs. A card set outside tmux has no pane, is shown without one, and stays open until you clear it.
Stale. A card whose last update and last pane output are both older than stale_hours is shown as unknown.
Resume. --resume "agent --resume 1234" is split into words and stored as a list. Enter on a closed card shows
the exact command first and runs it after a second Enter, in a new detached tmux session, without a shell. Only
programs listed in resume_programs in the config can be resumed, and only from card files owned by you with no
group or other permissions. If a live card with the same id exists, Enter switches to it instead.
The allowlist covers the program, not its arguments: anything that can write a card file decides the arguments, so
never list a shell or interpreter (bash, sh, python, ssh, npx, env) in resume_programs.
Other commands:
sebside card clear [--id ID] [--forget] # close the card (keep it in history unless --forget)
sebside card list # live and recently closed cards as JSON
sebside reconcile # close cards whose pane is gone (the hook runs this)
sebside config path | show | get KEY
sebside uninstall # remove hook, key binding, sidebar panes and @sebside_* pane options
Exit codes: 0 ok, 1 runtime error, 2 usage error, 3 tmux missing or not running, 4 state not readable or writable.
Configuration
Everything is optional. ~/.config/sebside/config.toml (or $XDG_CONFIG_HOME/sebside/config.toml, or the path in
$SEBSIDE_CONFIG):
width = 36 # sidebar width used by the plugin (columns)
history = 5 # closed cards shown at the bottom
stale_hours = 12 # no update and no output this long -> unknown
quiet_minutes = 10 # a session without a card is quiet after this long without output
refresh_seconds = 1.5 # tmux poll interval; card file changes show up at once
sort = "attention" # attention | recent | name
resume_programs = [] # programs a closed card may be resumed with, e.g. ["vim", "my-agent"]
[icons] # several characters = animation frames
waiting = "●"
working = "⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏"
done = "✔"
[colors] # ANSI names (red, bright-cyan, grey, default) or #rrggbb
waiting = "bright-yellow"
selected-bg = "grey"
[filter] # glob patterns on session names
include = ["*"]
exclude = ["scratch-*"]
Environment variables beat the file; the sebside sidebar flags --sort and --history beat both: SEBSIDE_WIDTH, SEBSIDE_HISTORY, SEBSIDE_STALE_HOURS,
SEBSIDE_QUIET_MINUTES, SEBSIDE_REFRESH_SECONDS, SEBSIDE_SORT; also SEBSIDE_STATE_DIR,
SEBSIDE_TMUX_SOCKET and SEBSIDE_DEBUG=1 (debug log in the state directory).
tmux options, set them before the plugin line in tmux.conf:
| Option | Default | Meaning |
|---|---|---|
@sebside-key |
S |
key after the prefix that toggles the sidebar (S is bound only if it is free) |
@sebside-width |
config width |
sidebar width in columns or percent (25%, tmux 3.1+), always under half the window |
@sebside-hook |
on |
off skips the session-closed[97] hook |
Integrations
Anything that can run a command can drive a card. A few examples:
A shell script
#!/bin/sh
sebside card set --id backup --state working --title "backup" --desc "rsync to nas"
if rsync -a ~/photos nas:/backup/; then
sebside card set --id backup --state done --desc "backup finished"
else
sebside card set --id backup --state error --desc "rsync failed"
fi
A long-running test watcher
while inotifywait -qq -r -e modify src; do
sebside card set --id tests --state working --desc "running tests"
if out=$(pytest -q 2>&1 | tail -1); then state=done; else state=error; fi
sebside card set --id tests --state "$state" --desc "$out"
done
An AI coding agent (example: a Claude Code hook)
Agents that support hooks can report "waiting for you" and "done" directly. A Claude Code hook script receives JSON
on stdin with a session_id and the event name:
#!/bin/sh
# registered for the Notification, Stop and UserPromptSubmit hook events
input=$(cat)
id=$(printf '%s' "$input" | jq -r .session_id)
case $(printf '%s' "$input" | jq -r .hook_event_name) in
Notification) state=waiting ;;
Stop) state=done ;;
UserPromptSubmit) state=working ;;
*) exit 0 ;;
esac
sebside card set --id "$id" --state "$state" --resume "claude --resume $id" >/dev/null
Add claude to resume_programs to resume closed agent sessions from the sidebar. Other agents and tools work
the same way: pick a stable id and map your events to states.
FAQ
Does it work without any integration? Yes. Every session gets a card from tmux basics. Cards just get better
when something calls sebside card set.
Can it type into my sessions or kill them? No. The sidebar only reads tmux and switches your client to the card
you pick, through an explicit, tested allowlist of tmux commands. It never sends keys, never runs a shell through
tmux and never kills anything. The explicit exceptions: Enter on a closed card starts a new session for its resume
command (after you confirm), the plugin's toggle key closes the sidebar pane, and sebside uninstall removes
sebside's own hook, key and sidebar panes.
The colors look wrong. sebside uses your terminal's 16 ANSI colors. Change them in your terminal theme, or
override them per state in [colors].
Does it support the mouse? Not in 0.1. Keyboard only.
Where is my data? Only in ~/.local/state/sebside/cards/ and in your tmux pane options. Nothing leaves your
machine.
How do I remove it? Run sebside uninstall, remove the plugin line from tmux.conf, then
uv tool uninstall sebside-tmux. Card files stay in the state directory until you delete them.
Development
uv sync
uv run pytest # integration tests need tmux and run on a private tmux server
uv run pytest -m "not tmux" # unit tests only
uv run ruff check && uv run ruff format --check
uv run mypy
scripts/demo.sh # try the sidebar on a private tmux server with demo cards
uv run --with pillow python scripts/screenshot.py docs/screenshot.png
The integration tests start their own tmux server on a temporary socket and never touch your default server. See docs/ARCHITECTURE.md for the design rules and CONTRIBUTING.md.
License
MIT, see LICENSE.
Metadata
Release files for sebside-tmux 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sebside_tmux-0.1.0.tar.gz | 57.2 kB | With provenance | Details for sebside_tmux-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sebside_tmux-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sebside_tmux-0.1.0-py3-none-any.whl |
Total release size: 97.4 kB
Release files / sebside_tmux-0.1.0.tar.gz
| Download URL | sebside_tmux-0.1.0.tar.gz |
|---|---|
| Size | 57.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e057874690c4e5f33d59d33e535ce5df0cb23a71b56adfc09b1e9ca0d0ee7f0
|
|
BLAKE2b-256 checksum How to use checksums |
f910ad2e6b33dbbf57345574c3250913bc1e3735a31202c795d549d2b3e8248f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / sebside_tmux-0.1.0-py3-none-any.whl
| Download URL | sebside_tmux-0.1.0-py3-none-any.whl |
|---|---|
| Size | 40.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b0b427385dd9661e8a8c52648637fed98a947879cf4815ce424c9542d0420c3
|
|
BLAKE2b-256 checksum How to use checksums |
0ee8dcfc07702a11f9309945f199bf9eb0bfbe0dc033e70c2236cf8abe595580
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logSecurity for sebside-tmux 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sebside_tmux-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.