tmux::configuration-id
Returns this worker instance's effective configuration entry ID, without its value.
- idstringrequired
tmux as an iii worker — list, create, rename and kill sessions and windows and move windows between sessions, see which pane runs Claude Code or Codex (working, waiting for you, idle), which runs `iii compose` and every listening port by process and pane, plus a Console page whose terminal is a live tmux client.
iii call compose::add worker=tmux@0.2.5Run in your project with the iii engine running. Exact versions are immutable and digest-pinned.
Returns this worker instance's effective configuration entry ID, without its value.
Install the tmux program on this computer, in the background, and answer at once: the system's package manager when this user may run it without a password (Homebrew, MacPorts, apt, dnf, pacman, zypper, apk), otherwise tmux's official build into ~/.local/bin. Starting during a run joins it. Poll tmux::install::status.
Why it failed, one sentence for people.
True facts about the step, to alternate with the label.
What to show for that step, e.g. `Downloading tmux…`.
Empty unless the state is `failed`: every command and its output.
The way being tried, or the one that worked. Null when tmux was already there.
Where tmux is, once it resolves.
0 to 1, while the step knows how far it is.
`idle` also answers a worker that restarted mid-install.
The step a running install is on.
Its version, once it resolves.
Where tmux::install is: idle (nothing ran since the worker started), running with its step, label and hints, succeeded with the path and version, or failed with one sentence and the log.
Why it failed, one sentence for people.
True facts about the step, to alternate with the label.
What to show for that step, e.g. `Downloading tmux…`.
Empty unless the state is `failed`: every command and its output.
The way being tried, or the one that worked. Null when tmux was already there.
Where tmux is, once it resolves.
0 to 1, while the step knows how far it is.
`idle` also answers a worker that restarted mid-install.
The step a running install is on.
Its version, once it resolves.
Live tmux overview: the full state (sessions, windows, panes with agent/compose/port status, compose stacks and listening ports), sent to each observer when it is added and called again whenever it changes. Takes no args.
Listening ports and compose stacks.
Running `iii compose` daemons.
Compose file the daemon serves, when known.
The engine the daemon started, if it manages one.
Engine pid.
Ports the engine listens on.
The engine WebSocket port workers connect to.
tmux pane the daemon runs in.
Pane id.
Session name.
Session id.
Window id.
Window index.
Daemon namespace (`iii:c:<namespace>`).
Daemon pid.
Daemon working directory.
Workers the daemon started.
Worker name.
Top-most pid of the worker's process tree.
Ports the worker's processes listen on.
Why the scan failed, if it did.
When the snapshot was taken.
Every TCP listening socket of this user's processes, sorted by port.
Bound address, e.g. `0.0.0.0` or `::1`.
Compose namespace the process belongs to.
IPv4 or IPv6.
tmux pane the process descends from.
Pane id.
Session name.
Session id.
Window id.
Window index.
Owning process.
Port number.
Owning process name.
What kind of process owns the socket.
iii worker name, when known.
This platform has a port scanner.
Sessions, windows, panes and their status.
When the snapshot was taken.
Sessions sorted by name.
Last activity in any of its windows.
tmux clients attached, console terminals included.
How many attached clients are console terminals.
When the session was created.
Session id, e.g. `$5`.
Session name.
Windows sorted by index.
This is the session's current window.
Last output in the window.
A bell rang in the window.
Window id, e.g. `@3` (unique on the server).
Window index inside the session.
Window name.
Panes sorted by index.
The window's active pane.
The agent CLI running in this pane, if any.
Matcher id from the configuration, e.g. `claude`.
Display name, e.g. `Claude Code`.
Pid of the agent process.
When the agent entered `state`.
What the agent is doing.
Sub-agents working right now, oldest first. Their work keeps `state` at `working` after the agent's own turn ended. Claude Code and Codex report them; other agents always list none.
1 for a sub-agent of the main agent, 2 for one of its sub-agents, ….
What it was asked to do: Claude Code's task description, Codex's task path under the main agent (`review/tests`).
Stable within the agent's session: Claude Code's agent id, Codex's thread id.
Claude Code's agent type (`general-purpose`, `Explore`, `fork`) or Codex's agent role; null when the agent names none.
When it started its current task.
The agent's session title: the pane title without the agent's status glyph (Claude Code's ✳ or spinner). Null when the pane only shows tmux's default title (the host name) or nothing.
Foreground process name.
The `iii compose` daemon running in this pane, if any.
Compose daemon namespace.
Compose daemon pid.
Current directory.
The pane's process exited and the pane is kept.
Height in rows.
Pane id, e.g. `%5`.
Pane index inside the window.
Pid of the process tmux started in the pane.
Listening sockets owned by processes started from this pane.
Bound address, e.g. `0.0.0.0` or `::1`.
Compose namespace the process belongs to.
IPv4 or IPv6.
tmux pane the process descends from.
Pane id.
Session name.
Session id.
Window id.
Window index.
Owning process.
Port number.
Owning process name.
What kind of process owns the socket.
iii worker name, when known.
Pane title set by the program.
Width in columns.
A pane is zoomed.
tmux availability and server.
A usable tmux binary was found.
Why tmux is unavailable, or the last listing error.
tmux is missing and `tmux::install` can try: a supported OS, the configured binary is plain `tmux`, not a path or another name, and this processor has an official build or this computer a package manager.
Resolved tmux binary.
A tmux server is running on that socket.
Server socket, known while the server runs.
tmux version, e.g. `3.6`.
Listening ports and compose stacks.
Running `iii compose` daemons.
Compose file the daemon serves, when known.
The engine the daemon started, if it manages one.
Engine pid.
Ports the engine listens on.
The engine WebSocket port workers connect to.
tmux pane the daemon runs in.
Pane id.
Session name.
Session id.
Window id.
Window index.
Daemon namespace (`iii:c:<namespace>`).
Daemon pid.
Daemon working directory.
Workers the daemon started.
Worker name.
Top-most pid of the worker's process tree.
Ports the worker's processes listen on.
Why the scan failed, if it did.
When the snapshot was taken.
Every TCP listening socket of this user's processes, sorted by port.
Bound address, e.g. `0.0.0.0` or `::1`.
Compose namespace the process belongs to.
IPv4 or IPv6.
tmux pane the process descends from.
Pane id.
Session name.
Session id.
Window id.
Window index.
Owning process.
Port number.
Owning process name.
What kind of process owns the socket.
iii worker name, when known.
This platform has a port scanner.
Sessions, windows, panes and their status.
When the snapshot was taken.
Sessions sorted by name.
Last activity in any of its windows.
tmux clients attached, console terminals included.
How many attached clients are console terminals.
When the session was created.
Session id, e.g. `$5`.
Session name.
Windows sorted by index.
This is the session's current window.
Last output in the window.
A bell rang in the window.
Window id, e.g. `@3` (unique on the server).
Window index inside the session.
Window name.
Panes sorted by index.
The window's active pane.
The agent CLI running in this pane, if any.
Matcher id from the configuration, e.g. `claude`.
Display name, e.g. `Claude Code`.
Pid of the agent process.
When the agent entered `state`.
What the agent is doing.
Sub-agents working right now, oldest first. Their work keeps `state` at `working` after the agent's own turn ended. Claude Code and Codex report them; other agents always list none.
1 for a sub-agent of the main agent, 2 for one of its sub-agents, ….
What it was asked to do: Claude Code's task description, Codex's task path under the main agent (`review/tests`).
Stable within the agent's session: Claude Code's agent id, Codex's thread id.
Claude Code's agent type (`general-purpose`, `Explore`, `fork`) or Codex's agent role; null when the agent names none.
When it started its current task.
The agent's session title: the pane title without the agent's status glyph (Claude Code's ✳ or spinner). Null when the pane only shows tmux's default title (the host name) or nothing.
Foreground process name.
The `iii compose` daemon running in this pane, if any.
Compose daemon namespace.
Compose daemon pid.
Current directory.
The pane's process exited and the pane is kept.
Height in rows.
Pane id, e.g. `%5`.
Pane index inside the window.
Pid of the process tmux started in the pane.
Listening sockets owned by processes started from this pane.
Bound address, e.g. `0.0.0.0` or `::1`.
Compose namespace the process belongs to.
IPv4 or IPv6.
tmux pane the process descends from.
Pane id.
Session name.
Session id.
Window id.
Window index.
Owning process.
Port number.
Owning process name.
What kind of process owns the socket.
iii worker name, when known.
Pane title set by the program.
Width in columns.
A pane is zoomed.
tmux availability and server.
A usable tmux binary was found.
Why tmux is unavailable, or the last listing error.
tmux is missing and `tmux::install` can try: a supported OS, the configured binary is plain `tmux`, not a path or another name, and this processor has an official build or this computer a package manager.
Resolved tmux binary.
A tmux server is running on that socket.
Server socket, known while the server runs.
tmux version, e.g. `3.6`.
Internal: re-read the tmux configuration after an operator change.
Configuration id that changed.
The visible screen of one pane as text with its colour and style escapes (capture-pane -e), plus the pane's size, cursor position and whether a full-screen program has the alternate screen. Read-only.
Pane id, e.g. `%5`.
The pane shows its alternate screen (a full-screen program).
Cursor column, from 0.
Cursor row, from 0.
Height in rows.
Pane id.
The visible screen, one line per row separated by `\n`, with SGR escapes.
Width in columns.
Kill a pane and the program running in it. Killing a window's last pane closes the window, and its session's last window closes the session; the answer says which closed.
Pane id, e.g. `%5`.
Always true.
That window was its session's last, so the session closed.
It was its window's last pane, so the window closed.
Start a pane's program again in the same pane: the command it was started with (or command), in its starting directory (or cwd). A pane whose program is still running is refused unless kill is true, which ends that program first.
Shell command to run instead of the one the pane was started with.
Working directory, absolute or `~/…`. Defaults to the pane's starting directory.
End the pane's program first when it is still running (default false).
Pane id, e.g. `%5`.
Pane id, the same as before.
Make a pane the active pane of its window. zoom sets the window's zoom, it never toggles: true zooms the window on this pane (or keeps it zoomed there), false unzooms it, and without zoom the window keeps its zoom state, moved to this pane. A window with one pane can't zoom: the answer says zoomed false. Like tmux itself, every client looking at that window follows, your terminal included. It does not change the session's current window (tmux::windows::select does).
Pane id, e.g. `%5`.
true zooms the window on this pane, false unzooms it, absent keeps the window's zoom.
Pane id now active in its window.
Session id the pane was resolved in.
Window id holding the pane.
The window is zoomed on the active pane.
Split a pane in two: the new pane goes to its right or below it, starts in that pane's current directory (or cwd) and runs the default shell (or command). It becomes the window's active pane unless select is false. Like tmux, splitting a zoomed window unzooms it. With remain_on_exit, the new pane stays once its program ends, dead, for tmux::panes::respawn to restart it.
Shell command to run instead of the default shell.
Working directory, absolute or `~/…`. Defaults to the split pane's current directory.
Where the new pane goes: `right` or `below`.
Pane id to split, e.g. `%5`.
Keep the new pane once its program ends, shown dead, so tmux::panes::respawn can restart it (default false: tmux closes it). On tmux before 3.0, which has no pane options, every pane of its window is kept.
Make the new pane the window's active pane (default true).
The new pane's id.
Session id.
Window id holding both panes.
Every TCP port this user's processes listen on, with process, iii role (engine / worker / compose), worker name, compose namespace and the tmux pane the process runs in; plus each running `iii compose` stack with its engine WebSocket port and workers' ports.
Running `iii compose` daemons.
Compose file the daemon serves, when known.
The engine the daemon started, if it manages one.
Engine pid.
Ports the engine listens on.
The engine WebSocket port workers connect to.
tmux pane the daemon runs in.
Pane id.
Session name.
Session id.
Window id.
Window index.
Daemon namespace (`iii:c:<namespace>`).
Daemon pid.
Daemon working directory.
Workers the daemon started.
Worker name.
Top-most pid of the worker's process tree.
Ports the worker's processes listen on.
Why the scan failed, if it did.
When the snapshot was taken.
Every TCP listening socket of this user's processes, sorted by port.
Bound address, e.g. `0.0.0.0` or `::1`.
Compose namespace the process belongs to.
IPv4 or IPv6.
tmux pane the process descends from.
Pane id.
Session name.
Session id.
Window id.
Window index.
Owning process.
Port number.
Owning process name.
What kind of process owns the socket.
iii worker name, when known.
This platform has a port scanner.
Create a detached tmux session (starting the tmux server if needed). Optional name, working directory (default $HOME), first window name and a shell command to run instead of the default shell. With remain_on_exit, the pane stays once its program ends, dead, for tmux::panes::respawn to restart it.
Shell command to run in the first window instead of the default shell.
Working directory, absolute or `~/…`. Defaults to $HOME.
Session name; tmux picks a number when omitted. No `:` or `.`.
Keep the pane once its program ends, shown dead, so tmux::panes::respawn can restart it (default false: tmux closes it). On tmux before 3.0, which has no pane options, every pane of its window is kept.
Name of the first window.
First pane id.
Session name.
New session id, e.g. `$7`.
First window id.
First window index.
Kill a tmux session and every program running in its windows.
Session id (`$5`) or exact name.
Always true.
Every tmux session with its windows and panes: foreground command, cwd, title, size, the agent CLI running in the pane (claude, codex, … with state working / waiting / idle), the `iii compose` daemon it runs and the ports its processes listen on.
When the snapshot was taken.
Sessions sorted by name.
Last activity in any of its windows.
tmux clients attached, console terminals included.
How many attached clients are console terminals.
When the session was created.
Session id, e.g. `$5`.
Session name.
Windows sorted by index.
This is the session's current window.
Last output in the window.
A bell rang in the window.
Window id, e.g. `@3` (unique on the server).
Window index inside the session.
Window name.
Panes sorted by index.
The window's active pane.
The agent CLI running in this pane, if any.
Matcher id from the configuration, e.g. `claude`.
Display name, e.g. `Claude Code`.
Pid of the agent process.
When the agent entered `state`.
What the agent is doing.
Sub-agents working right now, oldest first. Their work keeps `state` at `working` after the agent's own turn ended. Claude Code and Codex report them; other agents always list none.
1 for a sub-agent of the main agent, 2 for one of its sub-agents, ….
What it was asked to do: Claude Code's task description, Codex's task path under the main agent (`review/tests`).
Stable within the agent's session: Claude Code's agent id, Codex's thread id.
Claude Code's agent type (`general-purpose`, `Explore`, `fork`) or Codex's agent role; null when the agent names none.
When it started its current task.
The agent's session title: the pane title without the agent's status glyph (Claude Code's ✳ or spinner). Null when the pane only shows tmux's default title (the host name) or nothing.
Foreground process name.
The `iii compose` daemon running in this pane, if any.
Compose daemon namespace.
Compose daemon pid.
Current directory.
The pane's process exited and the pane is kept.
Height in rows.
Pane id, e.g. `%5`.
Pane index inside the window.
Pid of the process tmux started in the pane.
Listening sockets owned by processes started from this pane.
Bound address, e.g. `0.0.0.0` or `::1`.
Compose namespace the process belongs to.
IPv4 or IPv6.
tmux pane the process descends from.
Pane id.
Session name.
Session id.
Window id.
Window index.
Owning process.
Port number.
Owning process name.
What kind of process owns the socket.
iii worker name, when known.
Pane title set by the program.
Width in columns.
A pane is zoomed.
tmux availability and server.
A usable tmux binary was found.
Why tmux is unavailable, or the last listing error.
tmux is missing and `tmux::install` can try: a supported OS, the configured binary is plain `tmux`, not a path or another name, and this processor has an official build or this computer a package manager.
Resolved tmux binary.
A tmux server is running on that socket.
Server socket, known while the server runs.
tmux version, e.g. `3.6`.
Rename a tmux session.
New name. No `:` or `.`.
Session id (`$5`) or exact name.
New name.
Session id.
Whether tmux is installed, its version and path, and whether a tmux server is running on the configured socket.
A usable tmux binary was found.
Why tmux is unavailable, or the last listing error.
tmux is missing and `tmux::install` can try: a supported OS, the configured binary is plain `tmux`, not a path or another name, and this processor has an official build or this computer a package manager.
Resolved tmux binary.
A tmux server is running on that socket.
Server socket, known while the server runs.
tmux version, e.g. `3.6`.
What one sub-agent of the agent in a pane (Claude Code or Codex) has done so far, from the transcript the agent keeps on disk: the task it was given, what it wrote and reasoned, the tools it called and what they returned, oldest first. Works while the sub-agent runs (`working`) and after it finished, as long as the agent runs. Read-only.
The most items returned, the latest ones: 200 when absent, at most 1000.
Pane id of the agent, e.g. `%5`.
The sub-agent's id, from `agent.subagents[].id` in `tmux::sessions::list`.
Matcher id of that agent: `claude` or `codex`.
The latest items, oldest first, without the task.
When the agent recorded it.
The tool reported a failure (`tool_result` only).
The text, cut at 4 000 characters (then ending in `…`). A tool call's is its main argument: the command, path, pattern or query, else the whole input as JSON.
The tool's name, on `tool_call` and `tool_result` items.
Pane id of the agent running the sub-agent.
The task it was given, cut at 16 000 characters. Null when the transcript holds none; Codex keeps a sub-agent's task encrypted, so there it shows only the task's name and sender.
The sub-agent's id, as in `agent.subagents`.
Older items were left out: past `limit`, or before the last 4 MiB of the file.
The sub-agent is still in its agent's `subagents` list.
Detach a console terminal's tmux client. The session keeps running.
Credential from `open`.
Terminal handle from `open`.
False when the terminal was already gone.
Attach a console terminal to a tmux session as a real tmux client running in a PTY. Output is pushed to the page's handler.
Terminal width in columns (2..=500).
Browser handler receiving output: `iii::tmux-ui::pty-output::console-<browser id>`.
Terminal height in rows (2..=500).
Session id (`$5`) or exact name to attach to.
Window id (`@3`) or index to select before attaching.
Short-lived credential required by every other call. Never persist it.
The tmux client's tty, as `list-clients` shows it.
Session the client attached to.
Terminal handle for the other calls.
Ask tmux to repaint the console terminal's whole screen (refresh-client).
Credential from `open`.
Terminal handle from `open`.
Always true.
Re-send buffered output frames after a sequence, for gap repair.
Credential from `open`.
Last sequence the page applied; frames after it are returned.
Terminal handle from `open`.
Resize a console terminal; also its heartbeat.
Credential from `open`.
Width in columns (2..=500).
Height in rows (2..=500).
Terminal handle from `open`.
Width applied.
Height applied.
Move only this console terminal's tmux client to another session (switch-client), optionally selecting a window there.
Credential from `open`.
Session id (`$5`) or exact name to move this client to.
Terminal handle from `open`.
Window id (`@3`) or index to select there.
Session the client now shows.
Save a file being pasted into a console terminal (any type, base64, at most 12 MiB) in a new folder of its own in the cache folder of the user this worker runs as, under its name made safe, and answer its path for the page to paste. It types nothing; uploads older than 7 days, and the oldest past 256 MiB, are removed.
Credential from `open`.
The file, base64, any type, at most 12 MiB decoded.
Its type as the page knows it; the answer names what the bytes are when they are a known image.
The file's name. Only its base name is kept, made one safe token: characters outside `A-Z a-z 0-9 . _ -` become `-`, no leading dot, at most 100 bytes; empty is `file`. A known image (PNG, JPEG, GIF, WebP) gets the extension its content has.
Terminal handle from `open`.
Its size in bytes.
Its type: what the bytes are when they are a known image, else the request's, else `application/octet-stream`.
Absolute path of the new file, to paste into the terminal as text (no spaces in its name).
Write base64 keyboard input to a console terminal's tmux client.
Credential from `open`.
Base64 keyboard input, at most 64 KiB decoded.
Terminal handle from `open`.
Bytes written to the tmux client.
Serve the tmux worker's injected console UI assets (the target of its ade::ui::asset observers; the console calls it through each asset's observer with {path}).
The asset path from the observer's args (e.g. `state/page.js`).
The asset source, verbatim.
MIME type the console should serve the asset with.
Create a window in a tmux session. Optional name, working directory (default: the directory the session was created in), a shell command to run instead of the default shell, and whether to make it the current window (default true). With remain_on_exit, its pane stays once its program ends, dead, for tmux::panes::respawn to restart it.
Shell command to run instead of the default shell.
Working directory, absolute or `~/…`. Defaults to the directory the session was created in (the home folder on tmux older than 3.2, which can't tell).
Window name. No `:` or `.`.
Keep its pane once its program ends, shown dead, so tmux::panes::respawn can restart it (default false: tmux closes it). On tmux before 3.0, which has no pane options, every pane of the window is kept.
Make it the session's current window (default true).
Session id (`$5`) or exact name.
Its first pane id.
Session id.
New window id, e.g. `@9`.
New window index.
Kill a tmux window and every program running in its panes.
Session id (`$5`) or exact name.
Window id (`@3`) or index.
Always true.
Move a window to another tmux session, after its last window or just before or after one of its windows (`before` / `after`, which need tmux 3.2 or later and also reorder a window inside its own session). The window keeps its id, panes and programs, and the destination session's current window stays as it was. When it was the last window of its session, tmux closes that session.
Put it just after this window of `target_session` (id or index). Needs tmux 3.2 or later. Without `before` or `after` it goes after the session's last window.
Put it just before this window of `target_session` (id or index). Needs tmux 3.2 or later.
Session id (`$5`) or exact name of the session the window is in.
Session id (`$5`) or exact name of the session to move it to. Its own session reorders it, with `before` or `after`.
Window id (`@3`) or index.
Id of the session the window is in now.
It was the last window of its session, so tmux closed that session.
Window id, the same as before the move.
Its index in that session now.
Rename a tmux window.
New name. No `:` or `.`.
Session id (`$5`) or exact name.
Window id (`@3`) or index.
New name.
Window id.
Make a window the current window of its session. Like tmux itself, every client attached to that session (your terminal included) switches to it.
Session id (`$5`) or exact name.
Window id (`@3`) or index.
Session id.
Window id now current.
Find workers, kits and executables, or jump to a page.