{"slug": "title-show-hn-bmux-a-terminal-multiplexer-in-go-built-for-coding-agents", "title": "Title: Show HN: bmux – A terminal multiplexer in Go built for coding agents", "summary": "Bmux-dev released bmux, a terminal multiplexer written in Go and built for coding agents, distributed as a static binary via a Homebrew cask, a SHA-256-verified install script, or `go install` with Go 1.26+. bmux adds persistent sessions, a live-preview session picker, git worktree grouping, a coding-agent status sidebar that detects tools including Antigravity (`agy`), Codex, Claude Code, Gemini CLI, OpenCode, omp and pi from each pane's foreground process, and modeless mouse selection over SSH, with zero telemetry. The tool requires macOS or Linux and an interactive terminal, and its macOS release binaries are not yet Apple-notarized, so manual GitHub Releases downloads need `xattr -d com.apple.quarantine bmux`.", "body_md": "**The batteries-included terminal multiplexer, built for coding agents.**\n\nbmux brings persistent sessions, a live-preview session picker, git worktree grouping, a coding-agent status sidebar, and modeless mouse selection over SSH into one static Go binary — local-first, zero telemetry, daily-driven on macOS and Linux.\n\n[Documentation](https://bmux-dev.github.io/bmux/guides/sessions/) · [Live Demo](https://bmux-dev.github.io/bmux/#demo) · [Coming from tmux](https://bmux-dev.github.io/bmux/start/coming-from-tmux/) · [Roadmap](https://github.com/bmux-dev/bmux/blob/main/ROADMAP.md)\n\n<sub>Project & git worktree picker (`Ctrl-a n`) · Live coding-agent sidebar (` Ctrl-h`) · Session previews (` Ctrl-a s`) · [Full 30fps demo →](https://bmux-dev.github.io/bmux/#demo)</sub>\n\nRequires macOS or Linux and an interactive terminal.\n\n**Homebrew (macOS & Linux):**\n\n```\nbrew install --cask bmux-dev/tap/bmux\n```\n\n**Install script** (SHA-256 verified against `checksums.txt`, installs to `~/.local/bin`, no `sudo` — see [`install.sh`](https://github.com/bmux-dev/bmux/blob/main/install.sh) and [installation options](https://bmux-dev.github.io/bmux/start/installation/)):\n\n```\ncurl -fsSL https://raw.githubusercontent.com/bmux-dev/bmux/main/install.sh | sh\n```\n\n**From source** (Go 1.26+ — Go is only needed when building from source; Homebrew and `install.sh` ship self-contained static binaries):\n\n```\ngo install github.com/bmux-dev/bmux/cmd/bmux@latest\n```\n\n**macOS note:** Release binaries are not Apple-notarized yet. The Homebrew cask clears `com.apple.quarantine` automatically and `curl` never sets it; manual browser downloads from [GitHub Releases](https://github.com/bmux-dev/bmux/releases) need `xattr -d com.apple.quarantine bmux`.\n\n1. **Start a session** in any project folder:\nThe server starts automatically and names the session after the current directory. On first run, a welcome screen walks through the basic keys and optional\n\n```\nbmux\n```\n\n [agent integrations](#agents) .\n2. **Split and copy without modes:** press`Ctrl-a |` (side by side) or`Ctrl-a -` (stacked), move focus with`Ctrl-h/j/k/l` or a click, drag with the mouse to select and copy on release, and scroll history with the wheel.\n3. **Switch projects and watch agents:** press`Ctrl-a n` for the project & worktree picker,`Ctrl-a s` for the live-preview session picker (`/` filters), or launch a coding agent in any pane to track it in the left sidebar (`Ctrl-h` from the leftmost pane enters the sidebar).\n4. **Customize and detach:** press`Ctrl-a ,` for live-preview settings,`Ctrl-a ?` for all bindings, and`Ctrl-a d` to detach. Return with`bmux attach` (running bare`bmux` again always creates a new session; use`bmux list` ,`bmux attach NAME` , and`bmux kill NAME` from the shell).\n\n**Coming from tmux?** The default prefix is `Ctrl-a`; set `prefix = \"C-b\"` in [configuration](#configuration) for tmux's, and every key can be [rebound](https://bmux-dev.github.io/bmux/configuration/rebinding-keys/).\n\nRun **Antigravity (`agy`), Codex, Claude Code, Gemini CLI, OpenCode, omp, pi**, or any custom CLI in any pane. bmux detects it from the pane's foreground process with zero setup and lists your sessions (grouped by git worktree with optional `ui.show-branch` labels) alongside every running agent in the sidebar:\n\n| Indicator | State | \n|---|---|\n| red `●` | **blocked** : agent[reported](https://bmux-dev.github.io/bmux/agents/reporting-state/) it needs a decision | \n| teal `●` | **waiting** : went quiet while unviewed (finished or asking for input) | \n| teal `●` | **bell** : program sent a bell or desktop notification (OSC 9/777) | \n| yellow `●` | **working** : actively drawing output | \n| green `○` | **idle** : ready, and already seen | \n\nA sound plays when an unviewed agent becomes ready or when any agent becomes blocked (`BMUX_SOUND=0` mutes it). Press `Ctrl-h` from the leftmost pane to move into the sidebar (`j/k` selects, `Enter` or `l` jumps to that pane across any session), and `Ctrl-a b` to toggle it (auto-hides below 80 columns).\n\nbmux never scrapes agent state from screen text. For exact `working`/` blocked`/` idle` reporting and exact-session resume, install an agent's integration via `Ctrl-a i` or the CLI:\n\n```\nbmux integration status          # what's installed and on PATH\nbmux integration install         # every agent found, or name one: install agy\nbmux integration uninstall codex\n```\n\nIntegrations exist for **Antigravity (`agy`), Claude Code, Codex, omp, opencode, and pi** (and also install the `bmux` skill for `agy`, `claude`, `omp`, and `pi`). Any custom agent can report state with `bmux agent working|blocked|idle|clear`. See [agent sidebar](https://bmux-dev.github.io/bmux/agents/sidebar/), [agent integrations](https://bmux-dev.github.io/bmux/agents/integrations/), and [reporting agent state](https://bmux-dev.github.io/bmux/agents/reporting-state/).\n\nAgents can drive bmux directly (`bmux guide` teaches them the workflow):\n\n```\nbmux agents --json                                    # list agent panes + sequence numbers\nbmux capture api:2                                    # read a pane's visible screen\nbmux send api:2 --if-seq 12 --text \"y\" --key enter    # guard against races before sending\nbmux wait-agent --since 12                            # block until another agent needs attention\n```\n\nSee [scripting panes and agents](https://bmux-dev.github.io/bmux/agents/scripting/).\n\n| Instead of | Built into bmux | \n|---|---|\n| tmux-sessionx / tmux-fzf | List-first session picker with fuzzy filter ( `/` ) and live terminal preview | \n| sesh / tmuxinator / tmuxp | Git-worktree project picker ( `Ctrl-a n` ) + trusted`.bmux.toml` layout files (`bmux layout save` ) | \n| tmux-resurrect + continuum | Auto-saves every 5s and on shutdown; restores layouts, directories, and agent conversations; `bmux restart` for upgrades | \n| tmux-yank / copy-mode | Drag/double/triple-click copy ( `pbcopy` ,`wl-copy` ,`xclip` ,`xsel` , OSC 52) + optional vi scrollback view (`Ctrl-a v` ) | \n| vim-tmux-navigator | Foreground-aware `Ctrl-h/j/k/l` across panes and sidebar;`FocusGained` /`FocusLost` out of the box | \n| tmux `allow-passthrough` | Native Kitty graphics retained per pane across scrollback, splits, windows, and detach | \n| Separate agent dashboards | Built-in agent status sidebar, sound/notification alerts, hooks, and agent-control CLI | \n\n## Full 15-plugin tmux comparison & live-preview screenshot\n\n| Instead of | Built into bmux | \n|---|---|\n| tmux-sessionist | Create ( `Ctrl-a n` ), rename, and kill from the picker;`Ctrl-a p` last session;`Ctrl-a (` /`)` prev/next | \n| tmux-pain-control | Splits ( `Ctrl-a \\|` /`-` ) in focused dir,`Ctrl-a x` close with confirmation,`Ctrl-a h/j/k/l` repeatable resize,`Ctrl-a m` zoom | \n| tmux-better-mouse-mode | Click to focus, drag dividers to resize, wheel scrolls history, `Alt` /`Shift` overrides mouse-aware apps | \n| tmux-copycat | Scrollback search ( `Ctrl-a /` ),`n` /`N` matches,`[` /`]` prompt jumps (OSC 133) | \n| tmux-notify | Sound on ready/blocked agents; bells and OSC 9/777 mark sidebar panes | \n| tmux-prefix-highlight | Status line shows pending prefix and active resize repeat mode | \n| tmux-powerline / themes | Powerline status bars, accent colors, and Neovim colorscheme presets ( `bmux theme` ) | \n\nSee [Coming from tmux](https://bmux-dev.github.io/bmux/start/coming-from-tmux/) for the complete side-by-side breakdown.\n\n- **vs. tmux + TPM:** Same client-server Unix socket architecture (server owns terminal state, attached clients own clipboard) and optional`prefix = \"C-b\"` , without maintaining a plugin manager or fragile clipboard/focus-event config.\n- **vs. Zellij:** Familiar prefix ergonomics instead of modal locks that intercept shell keys, lighter chrome, list-first session/worktree switching, and native coding-agent orchestration.\n- **Trade-offs:** No runtime plugin system by design (use`[hooks]` and the CLI instead), macOS & Linux only (no native Windows), and 0.x means config/CLI details may still evolve before 1.0.\n\n| Metric | bmux | Notes | \n|---|---|---|\n| Keystroke latency | `1.5 ms` median (`2 ms` p99) | End-to-end client → server → PTY → client | \n| Heavy build output | `200k` lines in`0.06 s` | On par with tmux | \n| Memory footprint | `~21 MiB` RSS | Measured across 4 active sessions | \n| Idle CPU usage | `0 Hz` redraws | Event-driven row delta pushes | \n\nMeasured against tmux 3.8 on Linux x86_64; reproduce locally with [`scripts/compare-tmux.py`](https://github.com/bmux-dev/bmux/blob/main/scripts/compare-tmux.py).\n\n`Ctrl-a s` means press `Ctrl-a`, release, then press `s`.\n\n| Action | Keys or mouse | \n|---|---|\n| Session picker | `Ctrl-a s` , or click bottom status line (`/` filters,`j/k` moves,`Enter` attaches) | \n| Project / worktree picker | `Ctrl-a n` , or`bmux project` (`bmux project DIR` attaches/creates directly) | \n| Split side by side / stacked | `Ctrl-a \\|` /`Ctrl-a -` | \n| Focus pane / enter sidebar | `Ctrl-h/j/k/l` ,`Ctrl-a` arrows, click (`Ctrl-h` from leftmost pane enters sidebar) | \n| Zoom / close pane | `Ctrl-a m` /`Ctrl-a x` (asks first if a program is running) | \n| Select & copy | Drag and release ( `Alt` or`Shift` overrides mouse-aware apps); or`Ctrl-a v` | \n| Search history | `Ctrl-a /` , then`n` /`N` | \n| Settings | `Ctrl-a ,` | \n| Detach / list all keys | `Ctrl-a d` /`Ctrl-a ?` | \n\n## All default keybindings\n\n| Action | Keys or mouse | \n|---|---|\n| Last / next / prev session | `Ctrl-a p` /`Ctrl-a )` /`Ctrl-a (` | \n| New window / select 1–9 | `Ctrl-a c` /`Ctrl-a 1…9` , or click tab on top bar | \n| Next / prev / last window | `Ctrl-a ]` /`Ctrl-a [` /`Ctrl-a Tab` | \n| Rename / close window | `Ctrl-a R` /`Ctrl-a &` (asks first if running) | \n| Last pane / swap / rotate | `Ctrl-a ;` /`Ctrl-a {``}` /`Ctrl-a Ctrl-o` | \n| Pane to new / last window | `Ctrl-a !` /`Ctrl-a @` | \n| Preset layouts / equalize | `Ctrl-a Space` (`Ctrl-a Alt-1…5` ) /`Ctrl-a E` | \n| Resize divider | `Ctrl-a h/j/k/l` , repeat`h/j/k/l` within 1s, or drag divider | \n| Toggle / drive sidebar | `Ctrl-a b` ; inside sidebar: click row, or`j/k` ,`Enter` /`l` ,`n` new,`d` delete,`Esc` | \n| Copy / keyboard scrollback | `Ctrl-a y` copies selection;`Ctrl-a v` then vi moves,`v` /`V` /`Ctrl-v` ,`y` | \n| Scroll history | Mouse wheel or `Shift-PageUp` /`PageDown` | \n| Paste / reload config | Terminal paste shortcut / `Ctrl-a r` | \n| Send `Ctrl-a` to pane | `Ctrl-a Ctrl-a` | \n\nSee the [keybindings guide](https://bmux-dev.github.io/bmux/guides/keys/), [stopping the server](https://bmux-dev.github.io/bmux/reference/runtime-files/#stop-the-server), and [uninstalling](https://bmux-dev.github.io/bmux/reference/runtime-files/#uninstall).\n\n`Ctrl-h/j/k/l` move between panes and into the sidebar when the pane is not running Vim or Neovim; inside those editors, the keys pass through to move between editor splits. Add [`nvim-bmux-navigator` or a small mapping](https://bmux-dev.github.io/bmux/guides/editor-navigation/) to cross seamlessly from an editor edge split into adjacent bmux panes.\n\nOutside an editor, bmux intercepts these keys, so `Ctrl-l` does not clear the shell by default. Add `\"C-l\" = \"none\"` under `[keys.root]` to give it back, or add programs like `fzf` to `keys.pass-through` (`Ctrl-a` arrows, `Ctrl-a o`, and clicks always switch panes directly). Terminal focus events (`FocusGained`, `FocusLost`, `autoread`) work automatically without extra configuration.\n\nbmux saves snapshots every 5 seconds and on clean shutdown. After an upgrade, crash, or reboot, the next server restores:\n\n- every session, its windows and window names, split layout, zoom state, and focused pane;\n- a fresh shell in each pane's last directory;\n- built-in resume for `agy --continue` ,`claude --continue` ,`codex resume --last` ,`opencode --continue` ,`omp --continue` , and`pi --continue` (plus any custom agent configured under`[restore.resume]` or reporting a resume command via its integration).\n\nRestored panes are fresh processes rather than live-migrated PTYs: scrollback and arbitrary running programs do not come back after a reboot.\n\nWhen a new release is out, `↑` appears on the right end of the status line:\n\n- **Homebrew:**`brew upgrade --cask bmux && bmux restart`\n- **Install script / release binary:**`bmux update && bmux restart`\n\n`bmux update` replaces only the binary (until `bmux restart`, the hint shows `↻`), then `bmux restart` restarts the server and reconnects attached clients automatically. Release and `go install ...@latest` builds check `api.github.com/repos/bmux-dev/bmux/releases` once daily with zero telemetry (local `go build` checkouts skip this); set `update.check = false` or `BMUX_NO_UPDATE_CHECK=1` to disable it. See [Restarts and reboots](https://bmux-dev.github.io/bmux/guides/restarts/).\n\nEverything works with no config file. Press `Ctrl-a ,` for the live-preview settings UI, or edit `~/.config/bmux/config.toml` (`bmux default-config` prints every option with defaults):\n\n```\ntheme = \"catppuccin-mocha\"  # or tokyonight, gruvbox-light, nord, onedark, dracula, ...\nprefix = \"C-b\"\n\n[ui]\naccent = \"amber\"\n\n[sidebar]\nwidth = 30\n\n[agents]\nextra = [\"myagent\"]\nwaiting-after = \"5s\"\n\n[restore.resume]\nagy = [\"agy\", \"--continue\", \"--mode\", \"accept-edits\"]\n\n[keys.root]\n\"C-l\" = \"none\"              # restore Ctrl-l clear-screen in shells\n\n[keys.prefix]\n\"v\" = \"split-right\"\n\"minus\" = \"split-down\"\n```\n\nReload changes with `Ctrl-a r`, `bmux reload`, or `SIGUSR1` to the server. Mistakes appear in a floating notice box and that setting keeps its default.\n\nbmux ships 25 theme presets (`dark`, `light`, Catppuccin, Tokyo Night, Gruvbox, Nord, Rosé Pine, Kanagawa, One Dark, Dracula, Everforest, Solarized) with `bmux theme NAME` for scripts or Neovim `ColorScheme` autocmds, plus `[hooks]` for lifecycle events and `BMUX_*` environment variables (`BMUX_THEME`, `BMUX_ACCENT`, `BMUX_POWERLINE_ASCII`, `BMUX_TERMINAL_PADDING`, `BMUX_SOUND`, `BMUX_NO_UPDATE_CHECK` override config settings; `BMUX_CONFIG`, `BMUX_RUNTIME_DIR`, and `BMUX_PPROF_DIR` configure paths and profiling). See [configuration](https://bmux-dev.github.io/bmux/configuration/config-file/), [switching themes](https://bmux-dev.github.io/bmux/configuration/config-file/#switching-themes-from-a-script-or-neovim), and [environment variables](https://bmux-dev.github.io/bmux/configuration/environment/).\n\nIssues and pull requests are welcome (include OS, terminal emulator, `bmux version`, and reproduction steps for bugs). Check [ROADMAP.md](https://github.com/bmux-dev/bmux/blob/main/ROADMAP.md) for what's next, and read [AGENTS.md](https://github.com/bmux-dev/bmux/blob/main/AGENTS.md) and the [architecture guide](https://bmux-dev.github.io/bmux/project/architecture/) before changing terminal or session behavior.\n\n```\ngo build -o bin/bmux ./cmd/bmux\ngo test ./...\ngo test -race ./...\ngo vet ./...\n```\n\nSee [Releasing](https://bmux-dev.github.io/bmux/project/contributing/#releasing) for release steps.", "url": "https://wpnews.pro/news/title-show-hn-bmux-a-terminal-multiplexer-in-go-built-for-coding-agents", "canonical_source": "https://github.com/bmux-dev/bmux", "published_at": "2026-12-01 16:04:47+00:00", "updated_at": "2026-12-01 16:17:30.556564+00:00", "lang": "en", "topics": ["ai-agents", "developer-tools", "ai-tools"], "entities": ["bmux", "bmux-dev", "Go", "Homebrew", "Antigravity", "Codex", "Claude Code", "Gemini CLI"], "also_reported_by": [], "takeaway": "bmux detects running coding agents such as Codex, Claude Code and Gemini CLI from each pane's foreground process with zero setup and flags them in a sidebar as blocked, waiting, working or idle, so developers can jump to any agent pane across sessions with `Ctrl-h`.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/title-show-hn-bmux-a-terminal-multiplexer-in-go-built-for-coding-agents", "markdown": "https://wpnews.pro/news/title-show-hn-bmux-a-terminal-multiplexer-in-go-built-for-coding-agents.md", "text": "https://wpnews.pro/news/title-show-hn-bmux-a-terminal-multiplexer-in-go-built-for-coding-agents.txt", "jsonld": "https://wpnews.pro/news/title-show-hn-bmux-a-terminal-multiplexer-in-go-built-for-coding-agents.jsonld"}}