Repository navigation
Description
Summary
A fresh adversarial review of trunk at 8c4def75 scored the port on 13 dimensions. 13 of them fall below 9.5/10, the target for every port, and 10 fall below 8.5, the bar a port must clear before the support-script cleanup counts as accepted. This issue tracks each of those dimensions up to 9.5. Close it when a new review scores every dimension at 9.5 or higher.
Motivation
Scores below 9.5, lowest first, with the reviewer's evidence:
| Dimension | Score | Below 8.5 | Evidence |
|---|---|---|---|
| MCP | 4 | yes | No MCP server and no page says so; CHANGES.md mentions removed libtmux-mcp scaffolds in history lines only. |
| Freshness | 6.5 | yes | The README on trunk describes start_server, which exists only on trunk; the site and the rock still describe 0.1.1 and show run.sh (filed #108). |
| Scannability | 7 | yes | The README follows heading-is-the-API sections, but each snippet repeats about 15 lines of must and binary preamble, so the task is hard to find in the first screen of each. |
| AI use | 7 | yes | The site publishes https://libtmux.org/en/lua/latest/llms.txt (200). AGENTS.md covers repository work, and every public method has LuaLS annotations an agent can read. |
| DX | 7.5 | yes | Request objects with :await() returning value, err, a private-server helper (Runtime:start_server, with_server) and whole-file programs. binary must be an absolute path and every program hard-codes /usr/bin/tmux (filed #109). The quick start installs a rock that lacks the API it calls (filed #108). |
| Async, control mode, streaming | 7.5 | yes | Standalone luv and Neovim adapters. Server:observe (control mode) needs tmux 3.7 or newer and returns unsupported below it; 3.3a to 3.6 get polling only (README.md "Support and status"). |
| Language idioms | 8 | yes | Coroutine-yielding :await(), LuaLS ---@class annotations on the public surface, libtmux.runtime.nvim borrows the editor loop. Every program carries its own must(value, err) helper. |
| Docs | 8 | yes | One guide per area (docs/*.md), a generated reference, a capability table. The README is 968 lines. |
| Async correctness | 8 | yes | Requests are cancellable and retired with the runtime; pauses use one cancellable timer (pane.lua lines 944-959); close escalates stdin, then signal, then kill on only the owned client (docs/control.md). The observe close path has no output pause (filed #110). |
| Readability | 8 | yes | Small modules except server.lua (1,543 lines), runtime.lua (1,070) and control.lua (1,008). Comments state invariants. |
| tmux fidelity | 8.5 | The daemon version is read with run-shell -C, which fires no after-* hook (docs/compatibility.md); wait_for_text pairs capture-pane -p -J with a run-shell -C pane-state marker (lua/libtmux/_internal/pane.lua lines 905-915); a capability registry feeds capabilities.json. Nested commands inside if-shell reach tmux unchecked (open #51). |
|
| Examples | 8.5 | 20 programs under examples/, 19 start their own server through start_server or with_server; no shell or Python launcher remains (find . -name '*.py' -o -name '*.sh' is empty). The binary default is repeated in 18 programs (filed #109). |
|
| Data sourcing | 8.5 | data/tmux-options.json, data/tmux-fields.json and capabilities.json are generated and checked by a unit test (tests/unit/capabilities.lua). The compatibility table states which versions CI covers. |
References
Issues the review cites: #51, #84, #100, #101, #104, #106, #108, #109, #110.
Scope of the Linux verification
The vote-example candidate on d8266f2 built and installed offline. Its unit suite passed 363/363 on PUC Lua 5.1.5 and 363/363 on 5.5.1. On native tmux 3.7 and 3.8, each installed consumer run passed 17 programs. The control-mode example sent three inputs and read three child-generated replies. issue 84 records its output.
For async correctness, issue 136 and issue 137 supply separate failures on master with passing ordinary controls. The review scores on the candidate fixes apply to those diffs. Project-wide scoring and hosted validation remain open under this issue.
Activity
tony commentedon Dec 5, 2026
The Lua 5.1 guide shows where a pending tmux request can yield. Other small guide changes explain where pane programs leave recovery files, how to distinguish a program’s reply from terminal echo, and why a runtime needs a spare process slot to send a tmux wait-for signal. Working directory guide · Terminal output guide · Process slot guide · Lua 5.1 guide.
In the December 5 Linux ARM64 rehearsal, the numbered
0.1.2-1rock ran 23 example programs on tmux 3.8 and 20 on tmux 3.3a. The three pane-output programs need tmux 3.7 or newer. Following the proposed release instructions in a clean installation produced19 + 23 = 42with both Lua and Neovim. The independent review scored those install instructions 9.5/10.The review recommends the tested private-server workflows. Adoption on a long-lived shared server still depends on the open shutdown report in #110. The guide now has a separate change explaining that limit. Vote counter · Shared-server guidance.