tmux-companion
A companion binary for your tmux: agents list/brief/journal, project sessions and saved layouts, chunk clock, statusbar segments, served by a warm daemon instead of a script per keypress. If you run multi agents in terminal and use tmux, this makes it easy to be on top of them.
What each agent is doing at a glance | What's brief status across sessions
https://asciinema.org/a/1267082
What you get
Section titled “What you get”inbox, brief, journal |
the agents waiting on you and what each asked, a nudge when one waits too long, and what happened today |
SKILL.md |
the skill that teaches a coding agent to share your tmux server |
sessions |
every session saved on a timer, and sessions resurrect brings them back after a reboot |
project |
one session per project, sessions and your directory jumper in one list |
project save |
capture this session’s panes as the layout it reopens with |
chunk |
how long this sitting has been in focus, painted on the status line, and a notice when the budget is over |
panes, search, ports |
jump to any pane, any line of any scrollback, or whatever’s listening on that port |
promote, note, quiet |
a pane into a session of its own, a note on a pane, an hour with nothing nagging |
status-right |
git, bandwidth and battery in one call |
keys |
fuzzy search every binding, press enter to run it |
cheatsheet |
the bindings you keep looking up, until you’ve learned them |
run |
pick from shell history, run it in a pane that slides out |
theme pick |
your themes with a swatch each, applied on the spot; theme init writes six to start |
Every flag: docs/reference/cli.md.
Try it first
Section titled “Try it first”docker run --rm -it lonkarorg/tmux-companion:playgroundtmux, the binary, five fake projects and a guided tour through the bindings, in a container that goes away when you leave it. Nothing is mounted from your machine. docs/how-to/playground.md.
Install
Section titled “Install”All five paths, with the flags and how to remove it again, are in docs/how-to/install.md.
curl -fsSL https://raw.githubusercontent.com/lonkar-org/tmux-companion/main/scripts/install.sh | bashtmux-companion doctorThat downloads the binary for your machine, checks it against the checksums the release published, and puts it on PATH. Nothing to compile. Read the script first if you’d rather not pipe it, which is a fair thing to want.
Then the way in, from a shell that is not in tmux yet:
tmux-companion setuptmux-companion startThat opens the project picker, live sessions first and then every directory
your jumper knows, and attaches to what you choose. tmux on its own leaves you in
a session called 0 with one bare shell, which is the thing this replaces.
start --last goes back to whatever you were in without asking, and
start ~/src/thing skips the picker.
Then docs/tutorial/first-hour.md takes it from there, one step at a time.
Configuration
Section titled “Configuration”There’s no config file till you write one, and the defaults are what the binary did before the file existed.
tmux-companion config init # a fifteen-line starter, refuses to overwritetmux-companion config checkEvery setting with its default is in docs/config.example.toml, and the reasoning is in docs/reference/configuration.md.
What it doesn’t do
Section titled “What it doesn’t do”- macOS and Linux. Not Windows, and not planned: the whole thing is a unix
socket and a
SIGWINCH. WSL2 may work but is untested, see docs/how-to/install.md. - The pickers need tmux 3.2 for
display-popup -E. The bar is happy on 3.0. - It won’t restore your sessions on its own. It saves them on a timer, and restoring stays on a key you press, cause an automatic restore would resurrect a stale layout over a session you’d already started working in.
My tmux config shelled out for everything. The bar spawned five processes a
second. Every binding that needed to think ran a zsh script that started a
shell, read some config, called fzf, and exited. I’d built it that way over
years, a script at a time, and never added it up.
That’s how this repository started, I wrote a post about it too: ten years of tmux.
Then multi agent workspace became difficult to context-switch and focus, this time instead of writing scripts add feature to companion for handling multiple agents.
Documentation
Section titled “Documentation” https://with-love.lonkar.org/tmux-companion/ for easy search and navigation.
| tutorial | docs/tutorial/first-hour.md | from nothing installed to a bar you can see and a picker you’ve pressed |
| how-to | docs/how-to/playground.md | a container to try it in, and the tour inside it |
| how-to | docs/how-to/install.md | the five ways in, and how to remove it |
| how-to | docs/how-to/themes.md | where themes live, what one is, and the contrast they clear |
| how-to | docs/how-to/agents.md | the skill that teaches a coding agent to share your tmux server |
| how-to | docs/how-to/which-key.md | list of key bindings that you could setup and what it could do for you |
| how-to | docs/how-to/things-tmux-already-does.md | logging, menus, moving panes, one config across versions: tmux does these without a plugin |
| reference | docs/reference/cli.md | every subcommand and flag |
| reference | docs/reference/configuration.md | the config file, and what it changes |
| reference | docs/reference/requirements.md | tmux, fonts, platforms, Rust |
| example | docs/tmux.conf.starter.example | the bar and the eight bindings worth having on day one |
| example | docs/tmux.conf.example | the bar I actually run |
| example | docs/tmux.conf.full.example | every feature on, with what each costs |
| example | docs/config.example.toml | every setting with its default |
| explanation | docs/explanation/cheatsheet.md | why the cheat sheet forgets what you’ve learned |
| explanation | docs/explanation/theme-contrast.md | how every theme’s text and borders are computed to meet WCAG 2.1 contrast |
| explanation | docs/explanation/performance.md | actual documented performance improvements and benchmarks |
| contributing | CONTRIBUTING.md | build, test, lint, and what a patch needs |
| contributing | CHANGELOG.md | what changed |
Performance
Section titled “Performance”Actual documented performance improvements and benchmarks on my own device
Few measured numbers:
| what | before to after | conditions |
|---|---|---|
| project picker | 446 to 103 ms | under heavy load (-77%) |
| panes picker | 194 to 69 ms | under heavy load (-64%) |
| status bar | 31.2 to 24.9 ms of CPU | each second, idle, one client, call to push (-20%) |
A second idle in push mode, one Intel MacBook Pro 2019 16”, 2026-10-09.
docs/explanation/performance.md
Happy to get more benchmarks from someone else using scripts in the repo.
Contributing
Section titled “Contributing”The code and features are stable enough that I have not done lot of fixes, I do use it everyday so changes I make could be very opinionated. The whole idea for this was to have tailored DX. Now that the code is public the DX could be improved, generalised.
Patches welcome, including the ones that tell me I got something wrong. CONTRIBUTING.md has the three commands CI runs.
MIT.

