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 (*.pngand*.zh-TW.png), rendered frompromo.htmlbyrender.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 holdingjresizes 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.Muxoperations (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-windowwould 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 unsettingwindow-size.pairmux attachreleases every fit before it attaches, and a starting TUI releases fits left by TUIs that are no longer running.
- Both backends implement it as new
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 installsupports many more agents. New targets:antigravity(Google Antigravity /agy, installs to~/.gemini/config/skills/; aliasesagy,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,hermesandcortex, pluskimi,warp,zedandpi, which read the shared~/.agents/skills/directory. Aliasesqwen,vibe,factoryandkimi-codeare accepted too.
Fixed
skill install -t allnow 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-clior~/.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
--modelper child, a task that ends inpairmux reportand may recurse,wait --note/events --tree --waitinstead of sleeping, andkillwhen done. Otherwise agents keep their native mechanism. The skill also covers inheritedANTHROPIC_*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 pointedANTHROPIC_BASE_URLandANTHROPIC_MODELat a local proxy therefore sent every laterclaudestarted withpairmux 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 callingpairmuxprocess'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 inps. The program is still the pane's own process, sopane_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), thewatchdashboard 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.--jsonoutput 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\x9bin the human block instead of being passed through. - MCP tools refuse a
terminalargument that starts with-. The value becomes a positional argument of thepairmuxchild, where--allor--notifywas parsed as an option the caller had not set (pairmux_killwithterminal: "--all"killed every terminal). No terminal name or path starts with-. - A journal's event log and lock files are created
0600, and its directory0700.newalready forced the terminal directory to0700, 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 tuianduirun in a Windows console. A barepairmux lsorlisttyped 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 barels, andtuifails withE_BAD_ARGSand points atls --tree,watchandattach. On Windows, pairmux now decides whether it is talking to a terminal withGetConsoleMode, soNULand 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 updateruns on Windows. It verifies that the runningpairmux.exeis the one a persistent uv tool installed (the copy in uv's executable directory must match the tool environment'sScripts\pairmux.exebyte for byte, and uv's own listing must record both), moves the executables that uv replaces aside aspairmux.exe.old-<pid>, because Windows will not overwrite or delete a running program, and runsuv 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 customUV_TOOL_DIRis refused when the copy in the executable directory is the one running, with a hint to run that tool environment'sScripts\pairmux.exe update. A path containing(, such asProgram Files (x86), is still refused because uv's listing cannot be parsed unambiguously there.PAIRMUX_CONSOLE_PROBE=0(alsooff,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-unitonwindows-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_INPUTset,ENABLE_ECHO_INPUTclear, the counterparts ofICANONandECHO) 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'sx/term, Python'sgetpassand PowerShell'sRead-Host -AsSecureStringdo. For those the evidence is still the prompt's wording andPAIRMUX_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-inputwith a hint to look at the screen. A terminal with a thread on the CPU is no longer reported as waiting. - On Windows,
meta.jsonrecords the terminal'sttyasconpty:<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_UPDATEis 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 sawleft=1right=2…and raised aSyntaxError).
1.4.0 - 2026-11-18
Added
pairmux events --exit-with-parentends 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 orphanedpairmux eventskept polling forever. The stream's last line is thenendwith the new reasonparent-exited, and the exit code is 0. The flag is opt-in, sonohup pairmux events > file &still outlives its shell, and it works with--waittoo. 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 beforepairmuxhas 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 xfor status marks). A terminal that does not answer within about 200 ms keeps the usual glyphs.PAIRMUX_TUI_AMBIGUOUS_WIDTH=1or=2skips 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 --waitstopped by a signal (Ctrl-C or SIGTERM, for example) before anything changed repliedstatus: "timeout", with a next step that doubled a deadline that had never been reached. It now repliesinterrupted, 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): asnapshot, thenadded,changed(with the changed fields and the previous status) andremovedfor each terminal, andendwhen--maxor--timeoutstops it.--treefollows every layer below. Output activity alone is never an event.pairmux events --waitblocks until the fleet changes, then returns onepairmux.v1envelope (neweventsfield) with next steps, so an agent that supervises others can "tell me when any of my workers needs me".--status awaiting-input,deadkeeps only the changes into those states and--max Ncollects several. Also exposed over MCP aspairmux_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.
1and2switch the preview betweenscreenandactivity, 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 onmacos-15, because GitHub has retired themacos-14runners.
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 lsopens the session manager for people. A barelstyped at an interactive terminal openstui; 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, andPAIRMUX_NO_TUI=1turns the switch off.listis a new alias forls.- Readable output inside the TUI:
tabswitches the preview between the screen and an Activity view (commands with exit codes and durations, notes and whether the agent has seen them);oopens the full output history or activity in a scrollable reader;xshows 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) andPAIRMUX_OWNER_SOCKET. A process with a scope may address that layer and the layers below it; any other endpoint fails with the newE_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— terminaltestsin the layerworkerdrives, at any depth. Replies and theirnextcommands use the path.new --name worker/lintcreates directly in that layer. ls --tree(alias-r) lists every live layer below with apathper row; plainlspoints 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_lstakestree, a newpairmux_reporttool, 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 installand--dry-runidentify 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 -tas 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 itsLandingworkflow. The homepage athttps://pairmux.treeleaves30760.comnow lives in the separatetreeleaves30760/pairmux-websiterepository, whose build fetches the rootinstall.shandinstall.ps1frommain; 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/ptmxon macOS/Linux and ConPTY on Windows. It is the samepairmuxexecutable 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,watchandmcpbehave the same on both backends;peek --screenrenders a virtual screen with tmuxcapture-pane -psemantics, 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_BACKENDselects 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 withPAIRMUX_BACKENDset to its own backend, so nested layers stay on it.PAIRMUX_BACKEND=tmuxon Windows is an error, and an invalid value isE_BAD_ARGSfor terminal commands whilehelp,version,doctor,skillandupdatestill work. -
Native Windows, x86-64 and ARM64 (Windows 10 1809+). A new terminal starts PowerShell 7, else Windows PowerShell, else
%COMSPEC%;$SHELLis 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, sodoctorreportshooks-no-C.cmd.exeuses sentinel mode (cmd /v:on /k,ERRORLEVEL), and Git Bash gets the bash hooks shim.new --cmdruns through the shell (PowerShell-EncodedCommand,cmd /s /c, orbash -lc). Windows has no tty line discipline to read, so secret-prompt classification there uses prompt wording only;PAIRMUX_SECRET_PROMPT_REcan extend it. Killing a terminal kills its whole process tree through a job object, and--notifyshows 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 humanattach); 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_SHELLoverrides the terminal shell on every platform (for examplePAIRMUX_SHELL=C:\Program Files\Git\bin\bash.exe).PAIRMUX_TMPDIRselects the built-in server's runtime directory: on Unix$PAIRMUX_TMPDIR, else$TMUX_TMPDIR, else/tmp, thenpairmux-<uid>/(created 0700; refused if another uid owns it or group/others can access it); on Windows%PAIRMUX_TMPDIR%, else%LOCALAPPDATA%\pairmux, thenrun\. It holds<socket>.sock,<socket>.lockand 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 setPAIRMUX_TMPDIRto a short writable directory. On Windows the server runs from a private copy,pairmux-muxd-<hash>.exe, so an upgrade can replace the installedpairmux.exewhile terminals are open. -
Install from a clone without PyPI. The repository root has a
pyproject.tomlwith an in-tree build backend that needs no build dependencies, sopython -m pip install .,uv tool install --offline .,uv pip install .andpip install git+https://github.com/treeleaves30760/pairmuxwork offline. The backend builds the binary with Go 1.25+, or packages a release binary named byPAIRMUX_PREBUILT_BINARYafter 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 versionedX.Y.Z.post<N>.dev0+g<sha>fromgit describe, whichpairmux updaterefuses; there is no sdist and no editable install.make local-wheelbuilds such a wheel intodist/local-wheel, andmake pypi-testruns 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.zipandpairmux_<version>_windows_arm64.zip(pairmux.exe, LICENSE, README.md,man/pairmux.1) andwin_amd64/win_arm64wheels: nine native GitHub assets and six wheels per release. A Windows smoke job installs thewin_amd64wheel and runspairmux.exefrom both the wheel and the checksummed zip, requiring identical bytes, and gates publication.
Changed
-
PyPI metadata declares
Development Status :: 5 - Production/Stableinstead 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. -
attachon the built-in backend attaches this terminal straight to the pane — no session or window list, no status bar.Ctrl-b ddetaches, as in tmux, andCtrl-b Ctrl-bsends a literalCtrl-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 withE_BAD_ARGSlisting 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'sattach, including its refusal to nest inside tmux, is unchanged, andsendstill warns the agent when a human is attached. -
doctorstarts with abackendcheck 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_TMUXkeeps 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 settingPAIRMUX_TMPDIR. -
pairmux updaterefuses on Windows withE_UPDATE: uv installs Windows tools as copied.exefiles rather than the symlinked layout the updater verifies, and Windows cannot replace a running executable. The hint says to close pairmux and runuv tool install --upgrade pairmux(orpip install -U pairmuxin that environment). -
The PowerShell installer (
irm https://pairmux.treeleaves30760.com/install.ps1 | iex) installs natively by default, withinstall.sh's policy: uv installs the PyPI wheel exclusively fromhttps://pypi.org/simple, wheel-only and uncached, ignoring inheritedUV_*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
newwaited 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]::Writeencodes with Windows PowerShell's OEM code page, which turned the zero-width completion boundary into???, so aruncould end early with the wrong output. -
cmd.exeterminals (sentinel mode) on Windows reportedrunoutput 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 /palso leftERRORLEVELat 1, which builtins such asechonever reset, soechoafter any command reported exit code 1;runnow clearsERRORLEVELwith(call )before the command and again once the sentinel has read it, so a status left behind by asend-typed command or a human no longer leaks into the nextruneither. -
Programs in built-in Windows terminals never received Ctrl-C (
send --key C-c): the server is started withCREATE_NEW_PROCESS_GROUP, which makes it ignore Ctrl-C, and every ConPTY child inherited that state, sopingin 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 fastruncame back with no output. Escape sequences occupy no column, so output shaping now removes them before resolving carriage-return overwrites instead of treating such aas 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 updateupdates 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--jsonreturns one envelope withupdatedorrefreshed; failures useE_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 pairmuxis the primary installation path in the README, website, docs and PyPI description, followed bypairmux updatefrom v0.6.0. Older versions first needuv 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=0disables 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,uvxquick runs, persistentuv tool installinstructions, 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
bracesnested-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
.debassets 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 --humancould not be armed on a prompt it had just been handed (#7). The documented hand-off loop iswait --pattern "<the question>", notify the human, thenwait --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 terminalawaiting-input. The handoff therefore armed no answer-watch at all; on a--cmdterminal (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 --donefor following the command that is still running; a--cmdterminal emits no completion marks andwaitrejects that flag outright. It now offerswait --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=moderateahead 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 throughoverrides, 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 | shirm https://raw.githubusercontent.com/treeleaves30760/pairmux/main/install.ps1 | iexThe 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 ... | iexis a syntax error in their terminal.
Changed
- The
pairmux.v1journal gained an event type in 0.5.0 without the release saying so.index.jsonlnow also carriessent, recorded whensenddelivers input. Anything parsing that file against a closed set ofcreated | cmd_start | cmd_end | noteshould accept it. It stores only the shape of a send (text+enter) and never its content — a human answering a handoff types the credential throughsend, 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 asendmarks 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
ICANONoff and then say whatever their author chose, which left them invisible to both the line-discipline check and the pattern list.ICANONoff 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_TTYplus Mach task info on macOS,/procon Linux — never of the screen. Measured against the previous release: a raw-mode prompt in an invented script went from a 15s timeout reported asrunningtoawaiting-inputin 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 --screenfirst. -
waitaccepts several terminals (pairmux wait a,b,corpairmux 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 --noteresolves on a note event and nothing else. A shell terminal completes commands and--donecan 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 callpairmux note "$PAIRMUX_NAME" "..."from a stop hook and the wait ends exactly there, with no screen-reading and no heuristics.--humankeeps its handoff extras;--noteis 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.lsmarks a terminal driving a layer with[layer:SOCKET]and spells out the command to descend into it.
Changed
-
killtears 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. -
sendtakes 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,sendnow 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 asawaiting-inputafter ten seconds. -
awaiting-inputon 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--screenand--pattern.
Fixed
wait --humanreplayed the same note forever on a terminal driven bysend. 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'sEnter a value:,[yes/No],Username:and a type-the-name confirmation were all invisible, which meant the terminal sat atrunningand 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--donefor carrying on.runis 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-panecan 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 shellexecs the real command, so what runs in the pane, whatpane_current_commandreports, 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 tokencould 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 intogh secret setis otherwise invisible until a release depends on it.
0.3.0 - 2026-08-09
Added
pairmux wait <name> --doneblocks until the terminal's running command finishes — or until the next one does, if the terminal is idle right now — and reports itsexit_code.waittakes no lock and records nothing, so any number of agents can hold a--donewait 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--cmdprogram terminal emits no completion marks and getsE_BAD_ARGSwith a workable alternative.detect.CompletionWatcher, a pollable form of the C-correlated completion detectionrunalready used.waithas 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 --humancould 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 apairmux 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.--humannow also resolves when the human is finished: the prompt is answered and the terminal is visibly moving again (status: running, whosenextoffers--donefor following the command the rest of the way), or the command finishes outright (status: donewith itsexit_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
--idletowait --humanwas not a workaround:awaiting-inputcounts 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--humanwait at all. - A timed-out wait's retry hint dropped every condition flag:
wait <name> --human --notifycame back suggesting a barewait <name> --timeout 2x, which at the handoff prompt is an idle wait that returnsawaiting-inputinstantly — so an agent following its ownnextspun 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--humantimeout 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
--humanhandoff returns nooutput. 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, andpeeks 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.prevrotation archives (including orphaned ones), never a live terminal's journal, and never a directory whose write lock is held. This is the documented exit forkill's retain-the-journal default;killand the large-journal guard now teach it.doctorreports the bytes retained under the state namespace with the largest terminal directories, and suggestspruneonce the total passes the large-journal threshold.- The large-journal warning is now also appended to
waitreplies. Program terminals (dev servers,tail -f) are driven bysend/wait/peekand 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 newPAIRMUX_SECRET_PROMPT_REenvironment variable extends — never replaces — the builtin patterns;doctorvalidates it. Documentation now states plainly that recognition is best-effort and that a known credential prompt sitting quiet atrunningshould 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 pushesCasks/pairmux.rbto thetreeleaves30760/homebrew-pairmuxtap 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-urirelease and override the vulnerable transitivebrace-expansionversions with 5.0.9;npm auditreports zero known vulnerabilities again. - The commit-subject validator pins
LC_ALL=Cso its[a-z]pattern brackets match bytes rather than locale collation. Under locales such aszh_TW.UTF-8the ranges also matched uppercase letters, silently accepting invalid subjects (and failing--self-test) on contributor machines while CI's C locale rejected them. runnow takes the command as exactly one argument, matching the MCPpairmux_runcontract. 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 messagetwo). Multiple command tokens now returnE_BAD_ARGSwith 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/.rpmdownloads 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 distinguishesrun/peeknote fields fromwait --human'soutputresult, and the nested-tmux attach hint no longer recommends an impossible cross-serverswitch-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.shnow 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_BUSYcommand 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 --idlenow 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
peekand default-logresponses now report skipped raw prefixes astruncated.omitted_bytesand provide the executablepairmux log NAME --range 1:endrecovery. Explicitlog --grep,--range, and--cmdselections read the complete requested history;--range A:endselects through the final shaped line. - Documentation builds override vulnerable transitive
serialize-javascriptanduuidreleases with patched versions;npm auditnow reports zero known vulnerabilities.
Added
pairmux mcp serveexposes the existing terminal commands as typed MCP2025-11-25stdio tools, preserving eachpairmux.v1envelope as structured and text content without invoking a wrapper shell.pairmux skill installembeds the canonical Agent Skill and installs it atomically for Claude Code, Codex, Gemini CLI, Cursor, OpenCode, GitHub Copilot, Windsurf, Kiro, Amp, or the cross-agentagentslocation. Codex andagentsshare the standard~/.agents/skillsdestination, and--target allupdates each existing agent directory only once.- Terminal lifecycle and core loop:
pairmux new(optional--name,--cwd,--cmd) opens a tmux-backed terminal;runblocks for command completion;peekreturns a bounded recent view;senddelivers interactive input;logreturns a bounded recent view or complete explicitly selected history with--cmd,--grep, and--range A:B/A:end;lslists status and activity; andkillends terminals while retaining their journals. waitfamily: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--timeoutand a--notifydesktop ping.- Notes and human handoff:
pairmux note <name> <text>records a message that surfaces in the driving agent's nextrun/peekenvelope;wait --humaninstead returnshuman-donewith the note text inoutput. - Awaiting-input detection: a quiet command whose last screen line matches an interactive prompt
(
[y/N],password:, pager--More--/(END), "press any key") makesrunreturnawaiting-inputbefore 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 doctorprobes 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.
doctordistinguishes the diagnostichooks-no-Ctier from the stored terminal modes (hooksorsentinel). - Journal and locking: each terminal streams raw output through
tmux pipe-paneinto a per-terminal journal (raw.log+index.jsonl, mode 0600); reads are lock-free, writes take a per-terminal writerflockand return anE_BUSYenvelope naming the holder when contended. Attaching is a native tmux operation and records no event; humans leave an explicitnotewhen handing back. - Output shaping and
pairmux.v1JSON envelopes: every non-interactive command replies through a self-describing envelope (--json) carryingstatus, ANSI-stripped and carriage-return-collapsedoutput,truncatedrecovery metadata when output is elided,notes, orderednexthints, and stableerror.codevalues (E_NO_TERMINAL,E_EXISTS,E_BUSY,E_DEAD,E_BAD_ARGS,E_TMUX,E_INTERNAL).