Skip to main content

Changelog

All notable changes to pairmux are documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased​

Added​

  • Promo images in English and Traditional Chinese. assets/promo/ holds a README banner and post images for X and Threads (*.png and *.zh-TW.png), rendered from promo.html by render.sh (headless Chrome). The copy is plainer: "real terminal" instead of PTY jargon.

1.7.0 - 2026-11-27​

Added​

  • The TUI fits a full-screen program to its preview. Terminals are 220x50 so agents' output does not wrap, and a full-screen or self-redrawing program (Claude Code, Codex, vim, htop) drawn for that size and cut into the preview box showed only its top-left corner. While such a terminal is selected, the TUI now resizes its pane to the preview box's content area and the program redraws to fit. Attaching gives it the human's whole terminal as before, and coming back fits it again. A terminal counts as a full-screen program when it is on the alternate screen, or when it is a program terminal (new --cmd), or a shell's running command, that reads raw keys and hides the cursor or asks for the mouse. Program names are not used. A shell at its prompt or running a build is never resized. Neither is a pane a human is attached to, a dead one, or any pane while the preview is smaller than 40x10 or shows the activity view. The resize waits until the selection has rested for 300 ms, so holding j resizes nothing it passes, and it is re-applied when the TUI is resized. Moving on and quitting, including on SIGTERM, SIGHUP or a closed window, give each pane back the size it had. Nothing is typed into any terminal.
    • Both backends implement it as new mux.Mux operations (PaneScreen, FitPane, UnfitPane). On the built-in backend a fit is a lease that the TUI renews. A TUI that dies without cleaning up has its fits lapse after 20 seconds. A built-in server started by an older pairmux does not know the new requests, and the TUI then shows the preview as before. On tmux, resize-window would leave a window's size manual, so a later attach would keep the preview size. Each fit therefore records the window's previous size on the window and ends by unsetting window-size. pairmux attach releases every fit before it attaches, and a starting TUI releases fits left by TUIs that are no longer running.

Changed​

  • The TUI's list is the smaller side and the preview leads with the command. Side by side, the terminals box takes about 38% of the width (42 to 84 columns) instead of 52%. Its state column is a 6-cell word (run, input, idle, dead) next to the coloured glyph. The header, preview title and hints keep the full words. The command column is now only a teaser in the cells left over, and is dropped when too few remain. The preview's first line shows the selected terminal's running command in full, on one line, cut with … (~ on terminals that draw it double-width), above the created/shell/layer line. A name wider than its column ends in …; on the selected row it scrolls as a marquee after a short pause, so the whole name can be read.

1.6.1 - 2026-11-27​

Added​

  • pairmux skill install supports many more agents. New targets: antigravity (Google Antigravity / agy, installs to ~/.gemini/config/skills/; aliases agy, antigravity-cli), qwen-code, goose, crush, augment, continue, junie, trae, trae-cn, qoder, codebuddy, iflow, lingma, openhands, mistral-vibe, devin, rovodev, tabnine, forgecode, zencoder, command-code, grok, hermes and cortex, plus kimi, warp, zed and pi, which read the shared ~/.agents/skills/ directory. Aliases qwen, vibe, factory and kimi-code are accepted too.

Fixed​

  • skill install -t all now detects agents by their own home directory where it differs from the skills directory. Codex is found through ~/.codex (not only an existing ~/.agents), and Antigravity through ~/.gemini/antigravity-cli or ~/.gemini/antigravity, so a fresh install of either is no longer skipped.

1.6.0 - 2026-11-27​

Added​

  • Opt-in sub-agent trees in the embedded skill. When the user explicitly asks (e.g. "use pairmux to build a hierarchy of sub-agents" / 「使用 pairmux 來構建階層式的管理 Subagents」), an agent runs its sub-agents as pairmux terminals instead of its host's native sub-agents: an explicit --model per child, a task that ends in pairmux report and may recurse, wait --note / events --tree --wait instead of sleeping, and kill when done. Otherwise agents keep their native mechanism. The skill also covers inherited ANTHROPIC_* proxy variables and how to check them without printing secrets. New docs guide: Sub-agent trees (opt-in).

Fixed​

  • tmux terminals now get the creating command's environment, not the tmux server's. A tmux pane inherited the server's global environment, which tmux snapshots from whichever process first started the server, and pairmux only added its own PAIRMUX_* variables on top. A server first started from inside an agent session that pointed ANTHROPIC_BASE_URL and ANTHROPIC_MODEL at a local proxy therefore sent every later claude started with pairmux new, even from a clean shell, to that proxy. In the other direction, a caller's own changes (a virtualenv, an export, a new API key) never reached new panes. A new tmux terminal now starts with the calling pairmux process's environment overlaid with pairmux's variables, the same as on the built-in backend. Variables that exist only in the server's environment are gone. The values tmux sets for the pane itself (TMUX, TMUX_PANE, TERM, COLORTERM, TERM_PROGRAM, TERM_PROGRAM_VERSION, PWD) are kept. The environment is passed through an owner-only (0600) file in the terminal's state directory. The pane reads that file and deletes it before the program starts. Secrets never appear on the tmux command line or in ps. The program is still the pane's own process, so pane_current_command, exit status and lifecycle are unchanged. pairmux doctor's live probe starts its panes the same way.

1.5.1 - 2026-11-22​

Security​

  • Stored text can no longer drive a person's terminal. A note, a command line or an event text is written by one party (an agent, a sub-agent using report) and read later by another, usually the person supervising it. The human-readable replies (peek, ls, run, wait, log), the watch dashboard and the TUI wrote that text to the terminal as it was, so an ESC in it was executed, not shown: pairmux note build "$(printf 'ok\033]52;c;...\007\033[1A\033[2K\r...')" loaded the reader's clipboard (OSC 52) and replaced the row above it, and a command line could hide itself from the activity view the same way. Every control character other than a line feed or tab (C0, DEL, C1, and bytes that are not UTF-8) is now shown as a visible escape such as \x1b. --json output is unchanged: JSON already escaped these characters, and the value an agent decodes is still the exact text. Shaped program output never contained C0 controls; a raw C1 byte or invalid UTF-8 in it is now shown as \x9b in the human block instead of being passed through.
  • MCP tools refuse a terminal argument that starts with -. The value becomes a positional argument of the pairmux child, where --all or --notify was parsed as an option the caller had not set (pairmux_kill with terminal: "--all" killed every terminal). No terminal name or path starts with -.
  • A journal's event log and lock files are created 0600, and its directory 0700. new already forced the terminal directory to 0700, so these files were not readable by other users in practice; they no longer depend on that. Existing files keep their modes.

1.5.0 - 2026-11-19​

Added​

  • pairmux tui and ui run in a Windows console. A bare pairmux ls or list typed at one opens the TUI as it does on macOS and Linux. It works in Windows Terminal and in Windows 10 1809+ conhost, which have VT input; a console without it still gets the table from a bare ls, and tui fails with E_BAD_ARGS and points at ls --tree, watch and attach. On Windows, pairmux now decides whether it is talking to a terminal with GetConsoleMode, so NUL and the pipes of Git Bash (mintty) are not terminals: the listing is printed there. In a console with Quick Edit on, a mouse click selects text and the TUI receives none; the keyboard works, and turning Quick Edit off in the console's properties restores clicks.
  • pairmux update runs on Windows. It verifies that the running pairmux.exe is the one a persistent uv tool installed (the copy in uv's executable directory must match the tool environment's Scripts\pairmux.exe byte for byte, and uv's own listing must record both), moves the executables that uv replaces aside as pairmux.exe.old-<pid>, because Windows will not overwrite or delete a running program, and runs uv tool install --upgrade --reinstall. If uv fails, the executables are moved back. The next update deletes leftover .old-* files that are no longer running. An install made with a custom UV_TOOL_DIR is refused when the copy in the executable directory is the one running, with a hint to run that tool environment's Scripts\pairmux.exe update. A path containing (, such as Program Files (x86), is still refused because uv's listing cannot be parsed unambiguously there.
  • PAIRMUX_CONSOLE_PROBE=0 (also off, false, no) stops pairmux from starting the helper described below; Windows prompt detection then uses wording alone, as before.
  • CI runs the unit and packaging suites on a native Windows ARM64 runner (windows-arm64-unit on windows-11-arm), so the ARM64 build is now executed in CI. It has still not been accepted on real hardware.

Changed​

  • Windows prompt detection reads the console's input mode. pairmux asks a short-lived hidden helper (pairmux __console-probe, its answer cached for about a second) for the input mode of the terminal's pseudo console. Line input with echo cleared (ENABLE_LINE_INPUT set, ENABLE_ECHO_INPUT clear, the counterparts of ICANON and ECHO) is classified as a secret whatever the wording, as on macOS and Linux. Many Windows programs read key by key instead, so line input is off and the mode says nothing about secrecy: Win32-OpenSSH, Go's x/term, Python's getpass and PowerShell's Read-Host -AsSecureString do. For those the evidence is still the prompt's wording and PAIRMUX_SECRET_PROMPT_RE, exactly as before; nothing is classified less than it was.
  • Parked and working states are known on Windows. pairmux reads the thread states of the processes attached to the console, so the two inferred detections that need them now exist there too: a terminal that goes quiet on an unterminated line is reported as an unrecognized prompt, and one whose program reads keys itself, prints nothing and is off the CPU is reported as awaiting-input with a hint to look at the screen. A terminal with a thread on the CPU is no longer reported as waiting.
  • On Windows, meta.json records the terminal's tty as conpty:<pid>:<creation time>, which the helper uses to find the pseudo console. A terminal created before the upgrade has no such value and keeps wording-only detection until it is recreated.
  • E_UPDATE is no longer returned for the platform being Windows.

Fixed​

  • On Windows, a multi-line send --text (and any other literal text pairmux types) now submits each line: the built-in backend types every LF or CRLF as CR, the Enter key a Windows console ends a line at. Before, a console took LF as an ordinary character, so the lines reached the program joined into one (a Python REPL saw left=1right=2… and raised a SyntaxError).

1.4.0 - 2026-11-18​

Added​

  • pairmux events --exit-with-parent ends the command once the process that started it has exited. Without it, a stream whose reader died only noticed on its next write, so with a quiet fleet an orphaned pairmux events kept polling forever. The stream's last line is then end with the new reason parent-exited, and the exit code is 0. The flag is opt-in, so nohup pairmux events > file & still outlives its shell, and it works with --wait too. It has no effect when pid 1 started the command (a container's PID 1, a systemd unit, a launchd agent), and on macOS and Linux a parent that exits before pairmux has started is not detected.
  • The TUI measures how wide your terminal draws its glyphs. A terminal set to draw East Asian Ambiguous characters double-width (common in CJK setups) draws ● ─ │ ╭ and similar glyphs two cells wide, which pushed borders out of line and put mouse clicks on the wrong column. At startup the TUI asks the terminal where the cursor lands after each glyph and replaces any glyph that comes back two cells wide with an ASCII one (+ - | for borders, * ! o x for status marks). A terminal that does not answer within about 200 ms keeps the usual glyphs. PAIRMUX_TUI_AMBIGUOUS_WIDTH=1 or =2 skips the check and sets the width yourself.

Fixed​

  • The v1.3.0 TUI lost its right-hand border column: the boxes that reach the edge of the screen were missing their right edge (╮, │, ╯), because each row's erase-to-end-of-line wiped the last cell. The border is restored.
  • An events --wait stopped by a signal (Ctrl-C or SIGTERM, for example) before anything changed replied status: "timeout", with a next step that doubled a deadline that had never been reached. It now replies interrupted, still with exit code 0, and suggests running the same wait again.

1.3.0 - 2026-11-17​

Added​

  • pairmux events, the subscription half of an integration API for front ends (desktop apps, dashboards, editor panels) and supervisor agents. It streams the fleet as JSON lines (pairmux.events.v1): a snapshot, then added, changed (with the changed fields and the previous status) and removed for each terminal, and end when --max or --timeout stops it. --tree follows every layer below. Output activity alone is never an event.
  • pairmux events --wait blocks until the fleet changes, then returns one pairmux.v1 envelope (new events field) with next steps, so an agent that supervises others can "tell me when any of my workers needs me". --status awaiting-input,dead keeps only the changes into those states and --max N collects several. Also exposed over MCP as pairmux_events.
  • The TUI is laid out like btop. Every region is a rounded box with its name and controls set into its border, each key highlighted, and every control is a mouse button: click a row to select it and click it again to attach, click a fold arrow to fold, click a border label to press it, and scroll with the wheel. Dialogs have clickable buttons too. 1 and 2 switch the preview between screen and activity, and the list has column headers.
  • Documentation: an Integrations page (event schema, reference client, stability rules), a TUI guide, and screenshots and a concept diagram in the README and docs, generated reproducibly by scripts/screenshots/capture.sh.

Changed​

  • Homebrew instructions add brew trust --tap treeleaves30760/pairmux: Homebrew 7 refuses casks from third-party taps until they are trusted. Release acceptance does the same and now runs its macOS jobs on macos-15, because GitHub has retired the macos-14 runners.

Fixed​

  • TUI: typing a filter no longer leaves the previous terminal's screen in the preview.
  • TUI: on a terminal under 10 rows or 40 columns, the frame is clipped instead of scrolling.
  • TUI: esc in the : command line, when opened from a reader, returns to that reader.
  • TUI: a crash in a : command no longer leaves the terminal in raw mode.

1.2.0 - 2026-11-17​

Security​

  • Pin fixed documentation dependencies: body-parser 1.20.9, fast-uri 3.1.9, follow-redirects 1.16.2, joi 17.13.9 and qs 6.16.1, clearing six new blocking audit advisories, and drop the braces exception now that its advisory is no longer reported. No exception was added.

Added​

  • pairmux tui, an interactive session manager for humans: the whole layer tree with live status, a preview of the selected terminal's screen, and single keys to attach (returning to the manager on detach), create a terminal at the top or under the selected one, kill a live terminal, delete a dead one's journal or every dead terminal's journal, leave a note, send a line, fold subtrees and filter. Destructive keys ask first; every action runs the same subcommand an agent would. Not available on Windows yet.
  • pairmux ls opens the session manager for people. A bare ls typed at an interactive terminal opens tui; any flag (new --plain), --json, piped or captured output, a caller inside a pairmux terminal, or an agent CLI's tool shell (CLAUDECODE, CODEX_SANDBOX, GEMINI_CLI, OPENCODE) still prints the listing, and PAIRMUX_NO_TUI=1 turns the switch off. list is a new alias for ls.
  • Readable output inside the TUI: tab switches the preview between the screen and an Activity view (commands with exit codes and durations, notes and whether the agent has seen them); o opens the full output history or activity in a scrollable reader; x shows what prune removed; and : runs any pairmux command in the background ({} = the selected path) and shows its output there.
  • Agent hierarchy. Every terminal now carries PAIRMUX_SCOPE (its own child layer) and PAIRMUX_OWNER_SOCKET. A process with a scope may address that layer and the layers below it; any other endpoint fails with the new E_SCOPE, so control flows strictly down and nothing below can drive its owner, a sibling, or the human's top layer. It is a guardrail for cooperating agents, not a security boundary.
  • Terminal paths: every command that takes a terminal name accepts worker/tests — terminal tests in the layer worker drives, at any depth. Replies and their next commands use the path. new --name worker/lint creates directly in that layer.
  • ls --tree (alias -r) lists every live layer below with a path per row; plain ls points at it when a terminal drives a layer.
  • pairmux report <text...>: from inside a terminal, note that terminal in the layer that owns it — the one upward channel. The older --socket <owner> note <own name> form remains allowed.
  • MCP: pairmux_ls takes tree, a new pairmux_report tool, and terminal arguments accept paths.

Changed​

  • Pruning a dead terminal also reclaims the retained journals of the layers it used to drive once their servers are gone, which no listing could reach before. Layers still running are untouched.

1.1.0 - 2026-10-23​

Security​

  • Pin fixed documentation dependencies: DOMPurify 3.4.17, follow-redirects 1.16.1, and launch-editor 2.14.2, clearing seven new blocking audit advisories without adding or broadening security exceptions.

Changed​

  • Teach agents to submit work first, estimate when useful output should appear, and inspect startup after a short bounded wait (usually about 30 seconds) before unrelated work or longer waits. Prefer event-aware waits over blind sleeps; keep credential handoff waits and privacy rules unchanged.
  • skill install and --dry-run identify the embedded skill's CLI version and deterministic bundle SHA-256. Installation remains offline: it replaces the bundle's filenames, preserves unrelated files, and never downloads a remote "latest" skill. Update the executable and rerun installation to refresh its bundled skill.
  • Refresh the bundled skill's shell-versus-program waiting guidance, nested endpoint note examples, backend and Windows shell selection, and human-handoff privacy boundaries. Remove an unsupported interrupt key from troubleshooting.

Added​

  • skill install -t as a short alias for --target, including -t all; Cline (cline), Roo Code (roo-code), Kilo Code (kilo-code), and Factory Droid (droid) skill targets, with verified native skill directories.
  • All-target skill refresh regressions covering stale files, repeated installs, exact bundle bytes, custom files, dry runs and shared directory symlinks; real pip/uv source-install tests verify the packaged executable's skill bundle.

Removed​

  • The in-repository landing/ static site and its Landing workflow. The homepage at https://pairmux.treeleaves30760.com now lives in the separate treeleaves30760/pairmux-website repository, whose build fetches the root install.sh and install.ps1 from main; those installers are unchanged and remain canonical.

1.0.0 - 2026-10-14​

pairmux 1.0.0 is the first stable release: the CLI commands and flags, the pairmux.v1 JSON envelope and its error codes, and the MCP tools are now the public interface covered by Semantic Versioning. Release run 38514717450 published nine native assets, six wheels and the Homebrew Cask, and published-release acceptance 38515151767 passed all seven jobs, including a native Windows install and built-in-backend round trip.

Added​

  • pairmux no longer requires tmux. A built-in multiplexer now owns terminals when tmux is absent: real PTYs through /dev/ptmx on macOS/Linux and ConPTY on Windows. It is the same pairmux executable running as a server through a hidden subcommand, started on demand by the first command that needs it, detached from the caller's session or console, one per endpoint (--socket / PAIRMUX_SOCKET), and it exits by itself after about 30 seconds with no terminals and no connections — so there is still no service to install or supervise. new, run, peek, wait, send, log, ls, kill, note, prune, watch and mcp behave the same on both backends; peek --screen renders a virtual screen with tmux capture-pane -p semantics, and the default size is 220x50 as with tmux. The built-in backend journals a program from its very first byte, so it needs no start gate.

  • PAIRMUX_BACKEND selects the backend: tmux, builtin, or unset/auto. The automatic choice is Windows → built-in; else a built-in server already running for this socket → built-in, so terminals created without tmux stay reachable after tmux is installed; else tmux if it is on PATH, so existing users see no change and their live tmux terminals stay where they are; else built-in. Every terminal is created with PAIRMUX_BACKEND set to its own backend, so nested layers stay on it. PAIRMUX_BACKEND=tmux on Windows is an error, and an invalid value is E_BAD_ARGS for terminal commands while help, version, doctor, skill and update still work.

  • Native Windows, x86-64 and ARM64 (Windows 10 1809+). A new terminal starts PowerShell 7, else Windows PowerShell, else %COMSPEC%; $SHELL is honored only if it names an existing file, because Git Bash exports /usr/bin/bash, which Windows cannot start. PowerShell terminals use hooks mode through an inline prompt wrapper passed with -NoExit -EncodedCommand (so the script execution policy does not apply) that emits OSC 133 A/D marks with the exit status after the user's profile loads; it has no C mark, so doctor reports hooks-no-C. cmd.exe uses sentinel mode (cmd /v:on /k, ERRORLEVEL), and Git Bash gets the bash hooks shim. new --cmd runs through the shell (PowerShell -EncodedCommand, cmd /s /c, or bash -lc). Windows has no tty line discipline to read, so secret-prompt classification there uses prompt wording only; PAIRMUX_SECRET_PROMPT_RE can extend it. Killing a terminal kills its whole process tree through a job object, and --notify shows a best-effort notification through Windows PowerShell. This support is new: it is validated by CI on hosted Windows Server 2025 runners and was accepted on real Windows 11 x86-64 hardware (Windows PowerShell 5.1, cmd.exe and Git Bash terminals through ConPTY, including a human attach); the ARM64 build has not been exercised at runtime. WSL remains possible; inside it pairmux is a Linux program and picks its backend as on Linux.

  • PAIRMUX_SHELL overrides the terminal shell on every platform (for example PAIRMUX_SHELL=C:\Program Files\Git\bin\bash.exe). PAIRMUX_TMPDIR selects the built-in server's runtime directory: on Unix $PAIRMUX_TMPDIR, else $TMUX_TMPDIR, else /tmp, then pairmux-<uid>/ (created 0700; refused if another uid owns it or group/others can access it); on Windows %PAIRMUX_TMPDIR%, else %LOCALAPPDATA%\pairmux, then run\. It holds <socket>.sock, <socket>.lock and the server log <socket>.log. Socket paths are limited to about 100 bytes; a long socket name gets a digest name, and a too-deep directory fails with a hint to set PAIRMUX_TMPDIR to a short writable directory. On Windows the server runs from a private copy, pairmux-muxd-<hash>.exe, so an upgrade can replace the installed pairmux.exe while terminals are open.

  • Install from a clone without PyPI. The repository root has a pyproject.toml with an in-tree build backend that needs no build dependencies, so python -m pip install ., uv tool install --offline ., uv pip install . and pip install git+https://github.com/treeleaves30760/pairmux work offline. The backend builds the binary with Go 1.25+, or packages a release binary named by PAIRMUX_PREBUILT_BINARY after checking its Mach-O/ELF/PE header against the host (a wrong OS/architecture, relative path or missing file is refused). These are host-only development wheels versioned X.Y.Z.post<N>.dev0+g<sha> from git describe, which pairmux update refuses; there is no sdist and no editable install. make local-wheel builds such a wheel into dist/local-wheel, and make pypi-test runs the packaging tests, including an install of the checkout into a temporary virtual environment when Go and git are available.

  • Releases gain pairmux_<version>_windows_amd64.zip and pairmux_<version>_windows_arm64.zip (pairmux.exe, LICENSE, README.md, man/pairmux.1) and win_amd64/win_arm64 wheels: nine native GitHub assets and six wheels per release. A Windows smoke job installs the win_amd64 wheel and runs pairmux.exe from both the wheel and the checksummed zip, requiring identical bytes, and gates publication.

Changed​

  • PyPI metadata declares Development Status :: 5 - Production/Stable instead of Alpha.

  • The built-in and tmux backends keep separate state. Built-in endpoints have their own hashed namespace under <state root>/.sockets/, so equal terminal names on the two backends never collide, and each backend lists only its own terminals, dead ones included. The legacy unnamespaced default-socket fallback remains tmux-only.

  • attach on the built-in backend attaches this terminal straight to the pane — no session or window list, no status bar. Ctrl-b d detaches, as in tmux, and Ctrl-b Ctrl-b sends a literal Ctrl-b; other keys after the prefix are dropped. The pane takes the human's terminal size while attached (the most recent attach or resize wins when several humans attach) and returns to 220x50 when the last one detaches. With no name it opens the only live terminal, and with several it fails with E_BAD_ARGS listing them. It needs interactive stdin and stdout and works inside tmux, but refuses to attach a pane to itself. It uses the alternate screen, so the human's scrollback survives; on detach it prints [detached from NAME] tell the agent what you did: pairmux note NAME "...". The tmux backend's attach, including its refusal to nest inside tmux, is unchanged, and send still warns the agent when a human is attached.

  • doctor starts with a backend check naming the backend, why it was chosen, and the built-in socket path or tmux version, and notes "tmux not installed (not required)" when relevant. Its live probe runs on an isolated throwaway endpoint of the selected backend.

  • E_TMUX keeps its name but now means that the terminal backend — tmux or the built-in server — failed. Built-in failures carry built-in-specific hints, such as setting PAIRMUX_TMPDIR.

  • pairmux update refuses on Windows with E_UPDATE: uv installs Windows tools as copied .exe files rather than the symlinked layout the updater verifies, and Windows cannot replace a running executable. The hint says to close pairmux and run uv tool install --upgrade pairmux (or pip install -U pairmux in that environment).

  • The PowerShell installer (irm https://pairmux.treeleaves30760.com/install.ps1 | iex) installs natively by default, with install.sh's policy: uv installs the PyPI wheel exclusively from https://pypi.org/simple, wheel-only and uncached, ignoring inherited UV_* settings and uv configuration. The previous WSL behavior is opt-in with $env:PAIRMUX_INSTALL_TARGET = 'wsl'; naming a WSL distribution without that target is refused rather than silently ignored. Until a release with Windows wheels is on PyPI, the native default fails with a hint to use WSL.

  • The RPM recommends tmux >= 3.2 (a weak dependency) instead of requiring it. The Homebrew cask still installs tmux, which therefore remains the automatically selected backend there.

  • README, documentation, man page, landing page and the Agent Skill describe both backends, native Windows installation, installing from a clone, and per-backend attach.

Fixed​

  • A cold Windows PowerShell start could take longer than the five seconds new waited for its first prompt mark, so the terminal fell back to sentinel mode; PowerShell now gets 20 seconds (a fast shell still returns at its first mark). Its sentinel also writes through the console host's Unicode output: [Console]::Write encodes with Windows PowerShell's OEM code page, which turned the zero-width completion boundary into ???, so a run could end early with the wrong output.

  • cmd.exe terminals (sentinel mode) on Windows reported run output as empty and leaked a stale exit status into the next command. ConPTY emits a pass-through OSC sequence at the start of the render frame it arrived in, ahead of the text written in that frame, so the completion sentinel could land before the very output it reported; the Windows sentinels now print an invisible zero-width boundary after the OSC, which keeps its place in the text, and a command ends there. The sentinel's <nul set /p also left ERRORLEVEL at 1, which builtins such as echo never reset, so echo after any command reported exit code 1; run now clears ERRORLEVEL with (call ) before the command and again once the sentinel has read it, so a status left behind by a send-typed command or a human no longer leaks into the next run either.

  • Programs in built-in Windows terminals never received Ctrl-C (send --key C-c): the server is started with CREATE_NEW_PROCESS_GROUP, which makes it ignore Ctrl-C, and every ConPTY child inherited that state, so ping in a cmd.exe or Windows PowerShell terminal kept running and the terminal stayed busy. The server now re-enables Ctrl-C handling for itself before spawning terminals (it has no console, so this cannot expose it to console events) and children inherit the enabled state.

  • A command's output line was lost when the terminal put an escape sequence between its and — ConPTY does so with its cursor-show sequence at the moment the screen first scrolls, so in a PowerShell terminal about every 25th fast run came back with no output. Escape sequences occupy no column, so output shaping now removes them before resolving carriage-return overwrites instead of treating such a as one.

  • A failing PowerShell installer now throws instead of closing the PowerShell window, so the error stays readable when it was run as irm ... | iex.

0.6.0 - 2026-10-09​

Added​

  • pairmux update updates the currently running, verified persistent uv installation from public PyPI to the latest compatible stable wheel, replacing old pins and source settings without an intentional downgrade. Global --json returns one envelope with updated or refreshed; failures use E_UPDATE. The command requires installed uv and refuses non-uv, temporary uvx, development, and unverified installations rather than overwriting another manager's files.
  • Opt-in offline uv self-update integration tests install real local native wheels into isolated tool directories and exercise pinned upgrades, same-version reinstalls, source isolation, entrypoint ownership refusals, and stable-version resolution. CI and release validation share a fail-closed gate that rejects a missing suite instead of passing mock-only or empty tests.
  • A manually dispatched published-release acceptance workflow checks real public uv upgrades, macOS Homebrew installations, Fedora RPM transactions and Windows-hosted WSL1 installations. Each channel must pass doctor and an isolated live terminal round trip using its installed binary. Public uv refresh requires a genuine executable replacement, preserved held-old bytes and the actual upgraded release's verified native/wheel identity. Published-release acceptance run 37950571238 passed all six jobs on 2026-10-09: public uv/Bash on Ubuntu 24.04 x86-64 and macOS 14 ARM64, fresh Homebrew with tmux dependency installation, Fedora 44 x86-64 userspace DNF installation, and actual Canonical Ubuntu 24.04 WSL1/non-root installation on Windows 2025. Nine installed-binary terminal round trips passed; this does not claim WSL2, bare-metal Fedora or ARM64 RPM runtime coverage.

Changed​

  • uv tool install pairmux is the primary installation path in the README, website, docs and PyPI description, followed by pairmux update from v0.6.0. Older versions first need uv tool install --upgrade pairmux. The PyPI one-click installer remains a persistent uv alternative, and uvx remains available for optional quick runs.
  • The canonical Agent Skill covers setup and update authorization; agents must not autonomously install or self-update during terminal workflows.
  • Installation examples pin the v0.6.0 release. Current APT guidance records completed retirement, and documentation HTTPS was completed by the operator on 2026-10-09.
  • The release guide records verified GitHub/PyPI/Homebrew publication and actual public installation acceptance, preserves the historical v0.5.3 clean-machine/WSL/RPM gaps, and makes the next-tag checklist generic so it cannot suggest recreating a published tag.

Fixed​

  • Both the updater and Bash installer reject ambiguous uv name/path display delimiters, so a malformed receipt entrypoint name cannot make preflight check a different symlink while uv removes the actual recorded path. Rare paths containing ( fail closed.
  • The updater rejects relative uv PATH lookup results before resolving symlinks, including when GODEBUG=execerrdot=0 disables Go's usual current-directory lookup protection.
  • The public runtime acceptance helper uses explicit argument-count guards compatible with Linux CI's ShellCheck, retaining the same failure status and validation behavior.
  • The tmux integration test harness waits for owned shell/job exit writers before deleting its temporary HOME/state, retaining process birth identities across pane removal and endpoint shutdown instead of racing late history writes. Production terminal behavior is unchanged.

0.5.3 - 2026-10-08​

Added​

  • A project landing page at https://pairmux.treeleaves30760.com, with visible PyPI links, uvx quick runs, persistent uv tool install instructions, and inspectable installers.
  • Documentation configured for https://pairmux-docs.treeleaves30760.com, including migration guidance for former APT users; pull requests now validate both sites without deploying them. At release time, DNS and deployment have succeeded but GitHub Pages HTTPS certificate provisioning is still pending; the migration guide source remains available on GitHub.

Changed​

  • The shell installer now installs a platform wheel exclusively from public PyPI using uv, rather than a GitHub release archive. It ignores inherited uv source/configuration overrides, supports version pins and an offline dry run, and verifies the executable in its actual tool-bin directory. Missing uv is bootstrapped from Astral; Python and tmux requirements are explicit.
  • The Windows entry point still installs into WSL, but downloads the Bash installer completely before executing it and safely passes version and destination arguments.
  • Homepage and documentation metadata point to the new domains; repository, issue and source links remain on GitHub. RPM, tar archives, Homebrew and all four PyPI wheels remain supported.

Fixed​

  • Updated documentation-build dependency pins for 31 actionable security advisories. A reviewed, automatically expiring exception covers the sole unpatched braces nested-glob DoS advisory; its inputs are repository-controlled build/dev patterns, not public request patterns.
  • Installer upgrades refuse manual replacements of uv receipt entrypoints, including old paths when the executable directory changes. WSL delegation preserves arguments under Windows PowerShell's legacy native binder and now has an offline native-argv regression test.

Removed​

  • Debian packages and the public signed APT repository are retired. New releases contain seven native assets (four archives, two RPMs and a checksum manifest), not nine. Historical .deb assets are removed while surviving release files, tags and their original checksums remain; historical checksum manifests may still list retired Debian files.

0.5.2 - 2026-08-28​

Fixed​

  • wait --human could not be armed on a prompt it had just been handed (#7). The documented hand-off loop is wait --pattern "<the question>", notify the human, then wait --human — and the pattern wait returns the instant the question is printed, which is inside the settle window the prompt classifier required before it would call a terminal awaiting-input. The handoff therefore armed no answer-watch at all; on a --cmd terminal (ssh, a login prompt) there is no completion mark to fall back on either, so the wait could only run out its full deadline while the human answered in the pane — reporting a finished hand-off as still pending, forever. The settle gate exists to stop a busy command's prompt-shaped line from being called a question; it was never meant to hide a prompt from a caller that had already been shown it. Arming now uses the same evidence without that gate, and — because a hand-off may also be armed before the command has got as far as asking — the decision is re-taken on every poll until it is made, so a prompt that arrives later is picked up too. The two branches that gate on a silence threshold of their own keep them, so nothing that was not a prompt before becomes one now.

  • A resolved hand-off on a program terminal pointed at a command that only errors. It offered wait --done for following the command that is still running; a --cmd terminal emits no completion marks and wait rejects that flag outright. It now offers wait --idle, which is the same advice the rejection itself gives.

  • The documentation site had not deployed since 2026-08-01. The Docs workflow ran npm audit --audit-level=moderate ahead of the build, a transitive dependency picked up an advisory with no published fix, and because the audit gates the build every deploy stopped with it — so 0.4.0, 0.5.0 and 0.5.1 never reached the site. Everything with a fixed version is now pinned through overrides, and the gate is a script that still fails on anything actionable but accepts a short list of reviewed exceptions, re-checking on every run that each one is still genuinely unfixable and still reported. An exception that cannot expire is what turns one stuck advisory into a month of silent non-deployment.

0.5.1 - 2026-08-26​

Added​

  • A one-line installer at the top of the README, for both platforms it can serve:

    curl -fsSL https://raw.githubusercontent.com/treeleaves30760/pairmux/main/install.sh | sh
    irm https://raw.githubusercontent.com/treeleaves30760/pairmux/main/install.ps1 | iex

    The POSIX one is the installer that already shipped, promoted out of the last subsection of the install chapter into the first thing anyone reads. The PowerShell one is new and does not pretend to install a Windows binary: tmux has no Windows build, so it finds WSL, checks it has a distribution and something to download with, and runs the POSIX installer inside it — refusing with the command that fixes it rather than half-installing. Configure it through PAIRMUX_VERSION / PAIRMUX_WSL_DISTRO / PAIRMUX_INSTALL_DIR, since a piped script takes no arguments.

    Both are checked in CI now: the PowerShell one is parsed and analysed on every push, because a syntax error in a script people run as irm ... | iex is a syntax error in their terminal.

Changed​

  • The pairmux.v1 journal gained an event type in 0.5.0 without the release saying so. index.jsonl now also carries sent, recorded when send delivers input. Anything parsing that file against a closed set of created | cmd_start | cmd_end | note should accept it. It stores only the shape of a send (text+enter) and never its content — a human answering a handoff types the credential through send, and that file outlives the screen. The journal layout in the concepts documentation now lists the full vocabulary.

Fixed​

  • Documentation still said a note is marked seen only by a completed run. Since 0.5.0 a send marks it seen too, which is the whole reason a driving loop over a long-lived program terminates; the human-collaboration guide described the old rule and would have led anyone reasoning from it to the wrong conclusion about why their wait returned.

0.5.0 - 2026-08-26​

This release is about one workload: an agent driving other agents, with a human able to step into any of them. Every change below came out of running that end to end against real Claude Code and Codex terminals and fixing what broke.

Added​

  • A terminal that holds the keyboard is now recognised as waiting for input. A pager, an editor, an ssh session at a remote prompt, another agent's terminal UI — all of them turn ICANON off and then say whatever their author chose, which left them invisible to both the line-discipline check and the pattern list. ICANON off is itself a declaration that the program reads keystrokes, so a program that has claimed the keyboard, printed nothing, and is running no code at all has nothing left to be doing but waiting on it. Whether it is running is asked of the kernel — KERN_PROC_TTY plus Mach task info on macOS, /proc on Linux — never of the screen. Measured against the previous release: a raw-mode prompt in an invented script went from a 15s timeout reported as running to awaiting-input in 2.5s, vim from invisible to 2.3s, and Claude Code's own trust prompt and input box to 2.5s and 1.4s.

    It is reported as an inference, not a recognition, because "running nothing" is not "blocked on a read": a TUI waiting on the network looks identical. The reply says so and offers peek --screen first.

  • wait accepts several terminals (pairmux wait a,b,c or pairmux wait a b c) and ends on the first to satisfy a condition, naming it in the reply. Waiting on five sub-agents was five processes polling five deadlines, none of which could wake the others.

  • wait --note resolves on a note event and nothing else. A shell terminal completes commands and --done can wait for the mark; a terminal holding an agent's UI never completes anything, so the only honest turn boundary is one the pane itself declares. Have it call pairmux note "$PAIRMUX_NAME" "..." from a stop hook and the wait ends exactly there, with no screen-reading and no heuristics. --human keeps its handoff extras; --note is the primitive underneath, without --human's habit of returning early on a terminal already sitting at a prompt.

  • Nested layers. Each pane is now handed its own tmux endpoint, so a pairmux run inside a pairmux terminal builds its own layer. Everything pairmux scopes is already keyed by socket, so this separates the session, the state directory, the name grammar and the write locks in one move: three layers can now each have a terminal called build. ls marks a terminal driving a layer with [layer:SOCKET] and spells out the command to descend into it.

Changed​

  • kill tears down the nested layers a terminal was driving, deepest first, and reports which endpoints went with it. Each layer is its own tmux server, so a grandchild does not die with its parent's; left behind, a sub-agent keeps running and keeps spending, unlisted at every layer anyone would think to look at.

  • send takes a short lock of its own. Not the write lock — that means "a command is running here", which is exactly when an interactive answer most needs to get through — but one that stops two senders interleaving keystrokes into a line belonging to neither. No lock reaches a human at a keyboard, so when one is attached and watching that window, send now says you are sharing its input line.

  • A terminal that has been quiet mid-line but is burning CPU is no longer called a question. The weakest inference now asks the kernel before it speaks: printf 'Building... ' followed by real work used to be reported as awaiting-input after ten seconds.

  • awaiting-input on a terminal held by a full-screen program no longer suggests --done. There is no command underneath it to complete, so that hint blocked until the program itself exited — for an agent's UI, never. It now points at --screen and --pattern.

Fixed​

  • wait --human replayed the same note forever on a terminal driven by send. A note counted as answered only once a command completed, and a terminal holding a long-lived program completes none, so every wait after the first returned the first note instantly and an agent looping on "instruct the sub-agent, wait for its reply" never blocked at all. Delivering input now counts as answering it, which is what it always meant.

0.4.0 - 2026-08-10​

Changed​

  • Prompt detection now reads the pane's terminal, not just the words on it. Echo suppressed while the kernel is still assembling a line is exactly what getpass() does — and what sudo, ssh, git, gpg, pinentry and npm therefore do — so a credential prompt is identified as one whatever language it is written in and whichever tool asked, including tools no pattern covers. Of eighteen real prompts, the pattern list recognised twelve; the ssh host-key question, terraform's Enter a value:, [yes/No], Username: and a type-the-name confirmation were all invisible, which meant the terminal sat at running and a handoff over one could only end in a timeout. Every one of them is now detected, and every echo-suppressed prompt is refused rather than guessed at — the case where guessing wrong is worst is the one case that is now certain rather than heuristic.

    Wording remains a second source of evidence, and still promotes a prompt to secret for tools that ask in plain sight. A terminal that only goes quiet mid-line is reported as a third, weaker kind: it is how an unrecognised question surfaces at all, but it also describes a command that printed Building... and went to work, so it needs ten seconds of silence and its reply says to look before answering and offers --done for carrying on. run is unaffected below that threshold, and never kills anything either way.

    The reading costs one ioctl on a device recorded at creation — no subprocess and no tmux round-trip — because several agents watching one terminal each pay for every poll.

Fixed​

  • A program terminal could lose the first thing it printed. tmux starts a pane's command as soon as the window exists, which is before pipe-pane can be attached, so a program whose opening act is a prompt could print into a window nothing was recording and then sit there invisible for its whole life. Linux lost that race routinely while macOS won it. The pane now holds on a FIFO until the journal is capturing, turning the race into an ordering; the holding shell execs the real command, so what runs in the pane, what pane_current_command reports, and how the terminal dies are all unchanged.

  • The release job validated every credential except the one it used last. The Homebrew tap token was first exercised after PyPI — which cannot be republished for a tag — and after the GitHub release went public, so v0.3.0's 403 Resource not accessible by personal access token could only surface in the one position where recovery has to be manual. The preflight now proves the tap token can reach the cask for stable tags, before anything publishes, and a manual Tap credential workflow proves read and write after a rotation: only Actions can read the secret, so a value mistyped into gh secret set is otherwise invisible until a release depends on it.

0.3.0 - 2026-08-09​

Added​

  • pairmux wait <name> --done blocks until the terminal's running command finishes — or until the next one does, if the terminal is idle right now — and reports its exit_code. wait takes no lock and records nothing, so any number of agents can hold a --done wait on one terminal and every one of them wakes on the same completion mark: a completion broadcast with nothing to register with and no daemon involved. It also covers a command a human typed into the pane directly. Shell terminals only; a --cmd program terminal emits no completion marks and gets E_BAD_ARGS with a workable alternative.
  • detect.CompletionWatcher, a pollable form of the C-correlated completion detection run already used. wait has to watch a completion alongside notes, patterns and quiescence, so it drives the watcher from its own loop instead of blocking inside one.

Fixed​

  • wait --human could only end in its own timeout. The handoff the docs teach — hit a secret prompt, wait --human --notify, let a human type the password in the pane — resolved only on a pairmux note, and a human who answers the prompt writes nothing to the journal: attaching records no event, and typing into a pane is not one either. The command would finish and the agent would keep blocking for the full 300s. --human now also resolves when the human is finished: the prompt is answered and the terminal is visibly moving again (status: running, whose next offers --done for following the command the rest of the way), or the command finishes outright (status: done with its exit_code). Reporting resumption rather than completion is the point — a password answered at second two can be followed by a five-minute migration, and the agent is released at second two. A rejected answer that re-prompts keeps the wait blocked, because the terminal is still awaiting input. A completion that landed before the wait started resolves it immediately, the same way an unseen note already does — an agent that hands off, does other work, and only then waits is not left blocking for a human who has gone.
  • Adding --idle to wait --human was not a workaround: awaiting-input counts as a terminal state for an idle wait, so it returned instantly with the very prompt being handed off, and the agent's only move was to hand off again. A prompt no longer resolves a --human wait at all.
  • A timed-out wait's retry hint dropped every condition flag: wait <name> --human --notify came back suggesting a bare wait <name> --timeout 2x, which at the handoff prompt is an idle wait that returns awaiting-input instantly — so an agent following its own next spun instead of waiting. The hint now reproduces the wait exactly (--idle/--pattern/--done/--human/ --notify) with double the deadline, floored at 300s for a handoff so it cannot undercut the skill's own rule, and a --human timeout leads with "the human has not answered yet — do NOT type the secret".
  • A handoff is released by the human's answer, not by their keystrokes. Typed characters echo into the journal one at a time, and an echoed answer stops the last line looking like a prompt well before the human commits to it — so "output appeared past the prompt" alone reported a human who was still deciding as a human who had finished. The line the prompt sat on must now be terminated (the newline an Enter produces, echoed by the tty or written by the program) before any verdict is reached, and the verdict is then held briefly so a rejected answer's re-prompt wins over the echo that preceded it.
  • A resolved --human handoff returns no output. The span it would quote is the span a human was summoned to type into, so a program that echoes what it should not — or a secret prompt the heuristics never recognized — would have put the credential straight into the agent's context. The agent gets the fact and the exit code, and peeks if it wants the output.

0.2.0 - 2026-08-01​

Added​

  • pairmux prune [name] [--older-than 7d] [--dry-run] reclaims retained journals: dead terminals' state directories and .prev rotation archives (including orphaned ones), never a live terminal's journal, and never a directory whose write lock is held. This is the documented exit for kill's retain-the-journal default; kill and the large-journal guard now teach it.
  • doctor reports the bytes retained under the state namespace with the largest terminal directories, and suggests prune once the total passes the large-journal threshold.
  • The large-journal warning is now also appended to wait replies. Program terminals (dev servers, tail -f) are driven by send/wait/peek and previously never saw the guard even though they grow journals the fastest.

Changed​

  • README, the docs site, and the Agent Skill now lead with what only pairmux provides — a real PTY for interactive programs, persistent shell state, live human handoff, and shared observation — and include an explicit "when to use it and when not to" table that sends short commands to the agent's own shell tool and plain long non-interactive commands to the harness's background mode. The install docs now cover the live signed APT repository (pairmux-apt) instead of calling it unavailable, and state the tmux ≥ 3.2 requirement up front.

  • Secret-prompt recognition covers far more than English password prompts: PIN, OTP/MFA/2FA, verification/security/access codes, API/encryption/private keys, tokens and client secrets, plus the standard sudo password translations (zh-TW/zh-CN 密碼/密码, de Passwort, fr mot de passe, ja パスワード, es contraseña, pt senha, ko 암호, ru пароль) and fullwidth-colon endings. Multi-option confirmations ([y/N/a], (y/N/q)) are now recognized too. A new PAIRMUX_SECRET_PROMPT_RE environment variable extends — never replaces — the builtin patterns; doctor validates it. Documentation now states plainly that recognition is best-effort and that a known credential prompt sitting quiet at running should be treated as a handoff candidate.

  • A Homebrew cask (binary + man page, depends_on formula: tmux, quarantine-stripping postflight) is staged in the GoReleaser configuration, and the channel is now active: the release workflow preserves the rendered cask during validation and pushes Casks/pairmux.rb to the treeleaves30760/homebrew-pairmux tap after the release goes public (prereleases skipped, content read back and byte-compared). RELEASING.md documents the wiring, and the APT channel is recorded as live via the pairmux-apt repository.

Fixed​

  • Documentation builds pick up the patched fast-uri release and override the vulnerable transitive brace-expansion versions with 5.0.9; npm audit reports zero known vulnerabilities again.
  • The commit-subject validator pins LC_ALL=C so its [a-z] pattern brackets match bytes rather than locale collation. Under locales such as zh_TW.UTF-8 the ranges also matched uppercase letters, silently accepting invalid subjects (and failing --self-test) on contributor machines while CI's C locale rejected them.
  • run now takes the command as exactly one argument, matching the MCP pairmux_run contract. The previous variadic form re-joined tokens on single spaces and typed the result into the shell, silently discarding quoting the caller's shell had already consumed (pairmux run t git commit -m "two words" committed with the message two). Multiple command tokens now return E_BAD_ARGS with a hint that reconstructs the correctly quoted single-argument command.

0.1.1 - 2026-07-20​

Changed​

  • PyPI wheels now use a dedicated Markdown project description with copyable installation and quickstart commands, precise platform requirements, Agent Skill and MCP entry points, and links to the documentation, changelog, and issue tracker. Core Metadata also advertises tmux as an external requirement and adds discovery keywords; the release workflow rejects wheels whose description fails PyPI's strict renderer check.
  • The README and documentation now use reproducible JSON examples, distinguish direct .deb/.rpm downloads from the not-yet-implemented APT repository, and document prompt detection, future-only pattern waits, program terminals, notes, and human handoff without overstating their guarantees. The note command's self-teaching hint now distinguishes run/peek note fields from wait --human's output result, and the nested-tmux attach hint no longer recommends an impossible cross-server switch-client.

0.1.0 - 2026-07-20​

Fixed​

  • Tag releases now build the complete GoReleaser archive/package/checksum set once, verify and preserve those exact bytes with the four wheels, then promote them without recompilation. GitHub remains a draft until PyPI succeeds, tag commits and workflow syntax are checked, and concurrent runs serialize.
  • The wheel builder recognizes GoReleaser's dotted arm64 variant directories such as v8.0, validates both Mach-O architecture/deployment targets and ELF64 architecture, and rejects a binary whose native header does not match its wheel platform tag. Only canonical three-part SemVer tags are accepted; supported prerelease tags are normalized to PEP 440 wheel metadata.
  • install.sh now stages the verified binary beside its destination and atomically renames it, replacing a pre-existing symlink instead of following it; it also requires the installed version to match the tag.
  • Unsigned and unnotarized Homebrew casks are no longer advertised or published. That channel remains deferred until macOS signing and a real Gatekeeper installation test are available.
  • Terminal names and tmux socket labels are validated before any filesystem or tmux operation. State now lives in an endpoint-specific hash of canonical TMUX_TMPDIR, uid, and socket label, preventing traversal and cross-server metadata collisions while retaining an in-place, non-migrating fallback for the historical conventional default-socket layout.
  • Concurrent terminal creation uses a per-name reservation; journal preparation and command dispatch now close their failure paths so a partial tmux operation cannot leak a pane or leave a permanent E_BUSY command record.
  • Fish 4+ uses its native OSC 133 integration. Fish installations that emit no ready mark degrade to the sentinel path using fish's $status, rather than the POSIX-only $? expansion.
  • wait --idle now treats output silence as a prompt to refresh terminal state, not as proof that a command completed. Quiet running commands continue waiting; prompts and dead panes surface their actual status.
  • Managed-pane discovery now uses a printable tmux format separator. Alpine's C locale can sanitize control-character tabs into underscores, which previously made a newly created live pane look dead.
  • Bounded peek and default-log responses now report skipped raw prefixes as truncated.omitted_bytes and provide the executable pairmux log NAME --range 1:end recovery. Explicit log --grep, --range, and --cmd selections read the complete requested history; --range A:end selects through the final shaped line.
  • Documentation builds override vulnerable transitive serialize-javascript and uuid releases with patched versions; npm audit now reports zero known vulnerabilities.

Added​

  • pairmux mcp serve exposes the existing terminal commands as typed MCP 2025-11-25 stdio tools, preserving each pairmux.v1 envelope as structured and text content without invoking a wrapper shell.
  • pairmux skill install embeds the canonical Agent Skill and installs it atomically for Claude Code, Codex, Gemini CLI, Cursor, OpenCode, GitHub Copilot, Windsurf, Kiro, Amp, or the cross-agent agents location. Codex and agents share the standard ~/.agents/skills destination, and --target all updates each existing agent directory only once.
  • Terminal lifecycle and core loop: pairmux new (optional --name, --cwd, --cmd) opens a tmux-backed terminal; run blocks for command completion; peek returns a bounded recent view; send delivers interactive input; log returns a bounded recent view or complete explicitly selected history with --cmd, --grep, and --range A:B/A:end; ls lists status and activity; and kill ends terminals while retaining their journals.
  • wait family: pairmux wait <name> blocks until the shell is truly idle (--idle MS, the default), a regex matches new output (--pattern RE), or a human note arrives (--human), with --timeout and a --notify desktop ping.
  • Notes and human handoff: pairmux note <name> <text> records a message that surfaces in the driving agent's next run/peek envelope; wait --human instead returns human-done with the note text in output.
  • Awaiting-input detection: a quiet command whose last screen line matches an interactive prompt ([y/N], password:, pager --More--/(END), "press any key") makes run return awaiting-input before its overall timeout. Password/passphrase/passcode prompts are classified as secrets and answered with a human-handoff hint rather than a guess.
  • Human-facing commands: pairmux attach [name] takes over the live tmux session; pairmux watch [--interval 2s] renders a self-refreshing dashboard; pairmux doctor probes tmux version, per-shell completion tier, state-dir writability and the notification backend.
  • Completion detection: injected OSC 133 integration for bash/zsh and native fish 4 marks are the primary signal; a shell-specific sentinel marker is the fallback. doctor distinguishes the diagnostic hooks-no-C tier from the stored terminal modes (hooks or sentinel).
  • Journal and locking: each terminal streams raw output through tmux pipe-pane into a per-terminal journal (raw.log + index.jsonl, mode 0600); reads are lock-free, writes take a per-terminal writer flock and return an E_BUSY envelope naming the holder when contended. Attaching is a native tmux operation and records no event; humans leave an explicit note when handing back.
  • Output shaping and pairmux.v1 JSON envelopes: every non-interactive command replies through a self-describing envelope (--json) carrying status, ANSI-stripped and carriage-return-collapsed output, truncated recovery metadata when output is elided, notes, ordered next hints, and stable error.code values (E_NO_TERMINAL, E_EXISTS, E_BUSY, E_DEAD, E_BAD_ARGS, E_TMUX, E_INTERNAL).