Skip to content
Sign in

tmux

v0.2.5

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.

license: Apache-2.0agentsconsolemultiplexerportssessionsterminaltmux

Install

bash
iii call compose::add worker=tmux@0.2.5

Run in your project with the iii engine running. Exact versions are immutable and digest-pinned.

Functions31

tmux::configuration-id

Function

Returns this worker instance's effective configuration entry ID, without its value.

Request
Empty object
Response
  • idstringrequired

tmux::install

Function

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.

Request
Empty object
Response
  • errorstring

    Why it failed, one sentence for people.

  • hintsstring[]required

    True facts about the step, to alternate with the label.

  • labelstring

    What to show for that step, e.g. `Downloading tmux…`.

  • logstring[]required

    Empty unless the state is `failed`: every command and its output.

  • methodany of

    The way being tried, or the one that worked. Null when tmux was already there.

    any of (2)
    Variant 1
    one of (8)
    Variant 1
    valuestringenum apt
    Variant 2
    valuestringenum dnf
    Variant 3
    valuestringenum pacman
    Variant 4
    valuestringenum zypper
    Variant 5
    valuestringenum apk
    Variant 6
    valuestringenum homebrew
    Variant 7
    valuestringenum macports
    Variant 8
    valuestringenum prebuilt
    Variant 2
    valuenull
  • pathstring

    Where tmux is, once it resolves.

  • progressnumber· double

    0 to 1, while the step knows how far it is.

  • stateall ofrequired

    `idle` also answers a worker that restarted mid-install.

    all of (1)
    Variant 1
    one of (4)
    Variant 1
    valuestringenum idle
    Variant 2
    valuestringenum running
    Variant 3
    valuestringenum succeeded
    Variant 4
    valuestringenum failed
  • stepany of

    The step a running install is on.

    any of (2)
    Variant 1
    one of (6)
    Variant 1
    valuestringenum checking
    Variant 2
    valuestringenum updating
    Variant 3
    valuestringenum downloading
    Variant 4
    valuestringenum verifying
    Variant 5
    valuestringenum installing
    Variant 6
    valuestringenum finishing
    Variant 2
    valuenull
  • versionstring

    Its version, once it resolves.

tmux::install::status

Function

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.

Request
Empty object
Response
  • errorstring

    Why it failed, one sentence for people.

  • hintsstring[]required

    True facts about the step, to alternate with the label.

  • labelstring

    What to show for that step, e.g. `Downloading tmux…`.

  • logstring[]required

    Empty unless the state is `failed`: every command and its output.

  • methodany of

    The way being tried, or the one that worked. Null when tmux was already there.

    any of (2)
    Variant 1
    one of (8)
    Variant 1
    valuestringenum apt
    Variant 2
    valuestringenum dnf
    Variant 3
    valuestringenum pacman
    Variant 4
    valuestringenum zypper
    Variant 5
    valuestringenum apk
    Variant 6
    valuestringenum homebrew
    Variant 7
    valuestringenum macports
    Variant 8
    valuestringenum prebuilt
    Variant 2
    valuenull
  • pathstring

    Where tmux is, once it resolves.

  • progressnumber· double

    0 to 1, while the step knows how far it is.

  • stateall ofrequired

    `idle` also answers a worker that restarted mid-install.

    all of (1)
    Variant 1
    one of (4)
    Variant 1
    valuestringenum idle
    Variant 2
    valuestringenum running
    Variant 3
    valuestringenum succeeded
    Variant 4
    valuestringenum failed
  • stepany of

    The step a running install is on.

    any of (2)
    Variant 1
    one of (6)
    Variant 1
    valuestringenum checking
    Variant 2
    valuestringenum updating
    Variant 3
    valuestringenum downloading
    Variant 4
    valuestringenum verifying
    Variant 5
    valuestringenum installing
    Variant 6
    valuestringenum finishing
    Variant 2
    valuenull
  • versionstring

    Its version, once it resolves.

tmux::on-changed

Function

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.

Request
  • portsall ofrequired

    Listening ports and compose stacks.

    all of (1)
    Variant 1
    • composesobject[]required

      Running `iii compose` daemons.

      Show 7 nested
      • compose_filestring

        Compose file the daemon serves, when known.

      • engineany of

        The engine the daemon started, if it manages one.

        Show 2 nested
        any of (2)
        Variant 1
        • pidinteger· uint32requiredmin 0

          Engine pid.

        • portsinteger[]· uint16requiredmin 0

          Ports the engine listens on.

        • ws_portinteger· uint16min 0

          The engine WebSocket port workers connect to.

        Variant 2
        valuenull
      • locationany of

        tmux pane the daemon runs in.

        Show 2 nested
        any of (2)
        Variant 1
        • pane_idstringrequired

          Pane id.

        • sessionstringrequired

          Session name.

        • session_idstringrequired

          Session id.

        • window_idstringrequired

          Window id.

        • window_indexinteger· uint32requiredmin 0

          Window index.

        Variant 2
        valuenull
      • namespacestringrequired

        Daemon namespace (`iii:c:<namespace>`).

      • pidinteger· uint32requiredmin 0

        Daemon pid.

      • project_dirstring

        Daemon working directory.

      • workersobject[]required

        Workers the daemon started.

        Show 3 nested
        • namestringrequired

          Worker name.

        • pidinteger· uint32requiredmin 0

          Top-most pid of the worker's process tree.

        • portsinteger[]· uint16requiredmin 0

          Ports the worker's processes listen on.

    • errorstring

      Why the scan failed, if it did.

    • generated_at_msinteger· uint64requiredmin 0

      When the snapshot was taken.

    • listenersobject[]required

      Every TCP listening socket of this user's processes, sorted by port.

      Show 9 nested
      • addressstringrequired

        Bound address, e.g. `0.0.0.0` or `::1`.

      • composestring

        Compose namespace the process belongs to.

      • familyall ofrequired

        IPv4 or IPv6.

        Show 1 nested
        all of (1)
        Variant 1
        valuestringenum ipv4, ipv6
      • locationany of

        tmux pane the process descends from.

        Show 2 nested
        any of (2)
        Variant 1
        • pane_idstringrequired

          Pane id.

        • sessionstringrequired

          Session name.

        • session_idstringrequired

          Session id.

        • window_idstringrequired

          Window id.

        • window_indexinteger· uint32requiredmin 0

          Window index.

        Variant 2
        valuenull
      • pidinteger· uint32requiredmin 0

        Owning process.

      • portinteger· uint16requiredmin 0

        Port number.

      • processstringrequired

        Owning process name.

      • roleall ofrequired

        What kind of process owns the socket.

        Show 1 nested
        all of (1)
        Variant 1
        one of (4)
        Variant 1
        valuestringenum engine
        Variant 2
        valuestringenum worker
        Variant 3
        valuestringenum compose
        Variant 4
        valuestringenum other
      • workerstring

        iii worker name, when known.

    • supportedbooleanrequired

      This platform has a port scanner.

  • sessionsall ofrequired

    Sessions, windows, panes and their status.

    all of (1)
    Variant 1
    • generated_at_msinteger· uint64requiredmin 0

      When the snapshot was taken.

    • sessionsobject[]required

      Sessions sorted by name.

      Show 7 nested
      • activity_at_msinteger· uint64requiredmin 0

        Last activity in any of its windows.

      • attachedinteger· uint32requiredmin 0

        tmux clients attached, console terminals included.

      • console_attachedinteger· uint32requiredmin 0

        How many attached clients are console terminals.

      • created_at_msinteger· uint64requiredmin 0

        When the session was created.

      • idstringrequired

        Session id, e.g. `$5`.

      • namestringrequired

        Session name.

      • windowsobject[]required

        Windows sorted by index.

        Show 8 nested
        • activebooleanrequired

          This is the session's current window.

        • activity_at_msinteger· uint64requiredmin 0

          Last output in the window.

        • bellbooleanrequired

          A bell rang in the window.

        • idstringrequired

          Window id, e.g. `@3` (unique on the server).

        • indexinteger· uint32requiredmin 0

          Window index inside the session.

        • namestringrequired

          Window name.

        • panesobject[]required

          Panes sorted by index.

          Show 13 nested
          • activebooleanrequired

            The window's active pane.

          • agentany of

            The agent CLI running in this pane, if any.

            Show 2 nested
            any of (2)
            Variant 1
            • idstringrequired

              Matcher id from the configuration, e.g. `claude`.

            • labelstringrequired

              Display name, e.g. `Claude Code`.

            • pidinteger· uint32requiredmin 0

              Pid of the agent process.

            • since_msinteger· uint64requiredmin 0

              When the agent entered `state`.

            • stateall ofrequired

              What the agent is doing.

              Show 1 nested
              all of (1)
              Variant 1
              one of (3)
              Variant 1
              valuestringenum working
              Variant 2
              valuestringenum waiting
              Variant 3
              valuestringenum idle
            • subagentsobject[]

              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.

              Show 5 nested
              • depthinteger· uint32requiredmin 0

                1 for a sub-agent of the main agent, 2 for one of its sub-agents, ….

              • descriptionstringrequired

                What it was asked to do: Claude Code's task description, Codex's task path under the main agent (`review/tests`).

              • idstringrequired

                Stable within the agent's session: Claude Code's agent id, Codex's thread id.

              • kindstring

                Claude Code's agent type (`general-purpose`, `Explore`, `fork`) or Codex's agent role; null when the agent names none.

              • since_msinteger· uint64requiredmin 0

                When it started its current task.

            • titlestring

              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.

            Variant 2
            valuenull
          • commandstringrequired

            Foreground process name.

          • composeany of

            The `iii compose` daemon running in this pane, if any.

            Show 2 nested
            any of (2)
            Variant 1
            • namespacestringrequired

              Compose daemon namespace.

            • pidinteger· uint32requiredmin 0

              Compose daemon pid.

            Variant 2
            valuenull
          • cwdstringrequired

            Current directory.

          • deadbooleanrequired

            The pane's process exited and the pane is kept.

          • heightinteger· uint32requiredmin 0

            Height in rows.

          • idstringrequired

            Pane id, e.g. `%5`.

          • indexinteger· uint32requiredmin 0

            Pane index inside the window.

          • pidinteger· uint32requiredmin 0

            Pid of the process tmux started in the pane.

          • portsobject[]required

            Listening sockets owned by processes started from this pane.

            Show 9 nested
            • addressstringrequired

              Bound address, e.g. `0.0.0.0` or `::1`.

            • composestring

              Compose namespace the process belongs to.

            • familyall ofrequired

              IPv4 or IPv6.

              Show 1 nested
              all of (1)
              Variant 1
              valuestringenum ipv4, ipv6
            • locationany of

              tmux pane the process descends from.

              Show 2 nested
              any of (2)
              Variant 1
              • pane_idstringrequired

                Pane id.

              • sessionstringrequired

                Session name.

              • session_idstringrequired

                Session id.

              • window_idstringrequired

                Window id.

              • window_indexinteger· uint32requiredmin 0

                Window index.

              Variant 2
              valuenull
            • pidinteger· uint32requiredmin 0

              Owning process.

            • portinteger· uint16requiredmin 0

              Port number.

            • processstringrequired

              Owning process name.

            • roleall ofrequired

              What kind of process owns the socket.

              Show 1 nested
              all of (1)
              Variant 1
              one of (4)
              Variant 1
              valuestringenum engine
              Variant 2
              valuestringenum worker
              Variant 3
              valuestringenum compose
              Variant 4
              valuestringenum other
            • workerstring

              iii worker name, when known.

          • titlestringrequired

            Pane title set by the program.

          • widthinteger· uint32requiredmin 0

            Width in columns.

        • zoomedbooleanrequired

          A pane is zoomed.

    • tmuxall ofrequired

      tmux availability and server.

      Show 1 nested
      all of (1)
      Variant 1
      • availablebooleanrequired

        A usable tmux binary was found.

      • errorstring

        Why tmux is unavailable, or the last listing error.

      • installableboolean

        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.

      • pathstring

        Resolved tmux binary.

      • server_runningbooleanrequired

        A tmux server is running on that socket.

      • socket_pathstring

        Server socket, known while the server runs.

      • versionstring

        tmux version, e.g. `3.6`.

Response
  • portsall ofrequired

    Listening ports and compose stacks.

    all of (1)
    Variant 1
    • composesobject[]required

      Running `iii compose` daemons.

      Show 7 nested
      • compose_filestring

        Compose file the daemon serves, when known.

      • engineany of

        The engine the daemon started, if it manages one.

        Show 2 nested
        any of (2)
        Variant 1
        • pidinteger· uint32requiredmin 0

          Engine pid.

        • portsinteger[]· uint16requiredmin 0

          Ports the engine listens on.

        • ws_portinteger· uint16min 0

          The engine WebSocket port workers connect to.

        Variant 2
        valuenull
      • locationany of

        tmux pane the daemon runs in.

        Show 2 nested
        any of (2)
        Variant 1
        • pane_idstringrequired

          Pane id.

        • sessionstringrequired

          Session name.

        • session_idstringrequired

          Session id.

        • window_idstringrequired

          Window id.

        • window_indexinteger· uint32requiredmin 0

          Window index.

        Variant 2
        valuenull
      • namespacestringrequired

        Daemon namespace (`iii:c:<namespace>`).

      • pidinteger· uint32requiredmin 0

        Daemon pid.

      • project_dirstring

        Daemon working directory.

      • workersobject[]required

        Workers the daemon started.

        Show 3 nested
        • namestringrequired

          Worker name.

        • pidinteger· uint32requiredmin 0

          Top-most pid of the worker's process tree.

        • portsinteger[]· uint16requiredmin 0

          Ports the worker's processes listen on.

    • errorstring

      Why the scan failed, if it did.

    • generated_at_msinteger· uint64requiredmin 0

      When the snapshot was taken.

    • listenersobject[]required

      Every TCP listening socket of this user's processes, sorted by port.

      Show 9 nested
      • addressstringrequired

        Bound address, e.g. `0.0.0.0` or `::1`.

      • composestring

        Compose namespace the process belongs to.

      • familyall ofrequired

        IPv4 or IPv6.

        Show 1 nested
        all of (1)
        Variant 1
        valuestringenum ipv4, ipv6
      • locationany of

        tmux pane the process descends from.

        Show 2 nested
        any of (2)
        Variant 1
        • pane_idstringrequired

          Pane id.

        • sessionstringrequired

          Session name.

        • session_idstringrequired

          Session id.

        • window_idstringrequired

          Window id.

        • window_indexinteger· uint32requiredmin 0

          Window index.

        Variant 2
        valuenull
      • pidinteger· uint32requiredmin 0

        Owning process.

      • portinteger· uint16requiredmin 0

        Port number.

      • processstringrequired

        Owning process name.

      • roleall ofrequired

        What kind of process owns the socket.

        Show 1 nested
        all of (1)
        Variant 1
        one of (4)
        Variant 1
        valuestringenum engine
        Variant 2
        valuestringenum worker
        Variant 3
        valuestringenum compose
        Variant 4
        valuestringenum other
      • workerstring

        iii worker name, when known.

    • supportedbooleanrequired

      This platform has a port scanner.

  • sessionsall ofrequired

    Sessions, windows, panes and their status.

    all of (1)
    Variant 1
    • generated_at_msinteger· uint64requiredmin 0

      When the snapshot was taken.

    • sessionsobject[]required

      Sessions sorted by name.

      Show 7 nested
      • activity_at_msinteger· uint64requiredmin 0

        Last activity in any of its windows.

      • attachedinteger· uint32requiredmin 0

        tmux clients attached, console terminals included.

      • console_attachedinteger· uint32requiredmin 0

        How many attached clients are console terminals.

      • created_at_msinteger· uint64requiredmin 0

        When the session was created.

      • idstringrequired

        Session id, e.g. `$5`.

      • namestringrequired

        Session name.

      • windowsobject[]required

        Windows sorted by index.

        Show 8 nested
        • activebooleanrequired

          This is the session's current window.

        • activity_at_msinteger· uint64requiredmin 0

          Last output in the window.

        • bellbooleanrequired

          A bell rang in the window.

        • idstringrequired

          Window id, e.g. `@3` (unique on the server).

        • indexinteger· uint32requiredmin 0

          Window index inside the session.

        • namestringrequired

          Window name.

        • panesobject[]required

          Panes sorted by index.

          Show 13 nested
          • activebooleanrequired

            The window's active pane.

          • agentany of

            The agent CLI running in this pane, if any.

            Show 2 nested
            any of (2)
            Variant 1
            • idstringrequired

              Matcher id from the configuration, e.g. `claude`.

            • labelstringrequired

              Display name, e.g. `Claude Code`.

            • pidinteger· uint32requiredmin 0

              Pid of the agent process.

            • since_msinteger· uint64requiredmin 0

              When the agent entered `state`.

            • stateall ofrequired

              What the agent is doing.

              Show 1 nested
              all of (1)
              Variant 1
              one of (3)
              Variant 1
              valuestringenum working
              Variant 2
              valuestringenum waiting
              Variant 3
              valuestringenum idle
            • subagentsobject[]

              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.

              Show 5 nested
              • depthinteger· uint32requiredmin 0

                1 for a sub-agent of the main agent, 2 for one of its sub-agents, ….

              • descriptionstringrequired

                What it was asked to do: Claude Code's task description, Codex's task path under the main agent (`review/tests`).

              • idstringrequired

                Stable within the agent's session: Claude Code's agent id, Codex's thread id.

              • kindstring

                Claude Code's agent type (`general-purpose`, `Explore`, `fork`) or Codex's agent role; null when the agent names none.

              • since_msinteger· uint64requiredmin 0

                When it started its current task.

            • titlestring

              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.

            Variant 2
            valuenull
          • commandstringrequired

            Foreground process name.

          • composeany of

            The `iii compose` daemon running in this pane, if any.

            Show 2 nested
            any of (2)
            Variant 1
            • namespacestringrequired

              Compose daemon namespace.

            • pidinteger· uint32requiredmin 0

              Compose daemon pid.

            Variant 2
            valuenull
          • cwdstringrequired

            Current directory.

          • deadbooleanrequired

            The pane's process exited and the pane is kept.

          • heightinteger· uint32requiredmin 0

            Height in rows.

          • idstringrequired

            Pane id, e.g. `%5`.

          • indexinteger· uint32requiredmin 0

            Pane index inside the window.

          • pidinteger· uint32requiredmin 0

            Pid of the process tmux started in the pane.

          • portsobject[]required

            Listening sockets owned by processes started from this pane.

            Show 9 nested
            • addressstringrequired

              Bound address, e.g. `0.0.0.0` or `::1`.

            • composestring

              Compose namespace the process belongs to.

            • familyall ofrequired

              IPv4 or IPv6.

              Show 1 nested
              all of (1)
              Variant 1
              valuestringenum ipv4, ipv6
            • locationany of

              tmux pane the process descends from.

              Show 2 nested
              any of (2)
              Variant 1
              • pane_idstringrequired

                Pane id.

              • sessionstringrequired

                Session name.

              • session_idstringrequired

                Session id.

              • window_idstringrequired

                Window id.

              • window_indexinteger· uint32requiredmin 0

                Window index.

              Variant 2
              valuenull
            • pidinteger· uint32requiredmin 0

              Owning process.

            • portinteger· uint16requiredmin 0

              Port number.

            • processstringrequired

              Owning process name.

            • roleall ofrequired

              What kind of process owns the socket.

              Show 1 nested
              all of (1)
              Variant 1
              one of (4)
              Variant 1
              valuestringenum engine
              Variant 2
              valuestringenum worker
              Variant 3
              valuestringenum compose
              Variant 4
              valuestringenum other
            • workerstring

              iii worker name, when known.

          • titlestringrequired

            Pane title set by the program.

          • widthinteger· uint32requiredmin 0

            Width in columns.

        • zoomedbooleanrequired

          A pane is zoomed.

    • tmuxall ofrequired

      tmux availability and server.

      Show 1 nested
      all of (1)
      Variant 1
      • availablebooleanrequired

        A usable tmux binary was found.

      • errorstring

        Why tmux is unavailable, or the last listing error.

      • installableboolean

        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.

      • pathstring

        Resolved tmux binary.

      • server_runningbooleanrequired

        A tmux server is running on that socket.

      • socket_pathstring

        Server socket, known while the server runs.

      • versionstring

        tmux version, e.g. `3.6`.

tmux::on-config-change

Function

Internal: re-read the tmux configuration after an operator change.

Request
  • idstring

    Configuration id that changed.

Response
  • okbooleanrequired

tmux::panes::capture

Function

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.

Request
  • panestringrequired

    Pane id, e.g. `%5`.

Response
  • alternatebooleanrequired

    The pane shows its alternate screen (a full-screen program).

  • cursor_xinteger· uint32requiredmin 0

    Cursor column, from 0.

  • cursor_yinteger· uint32requiredmin 0

    Cursor row, from 0.

  • heightinteger· uint32requiredmin 0

    Height in rows.

  • pane_idstringrequired

    Pane id.

  • textstringrequired

    The visible screen, one line per row separated by `\n`, with SGR escapes.

  • widthinteger· uint32requiredmin 0

    Width in columns.

tmux::panes::kill

Function

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.

Request
  • panestringrequired

    Pane id, e.g. `%5`.

Response
  • killedbooleanrequired

    Always true.

  • session_closedbooleanrequired

    That window was its session's last, so the session closed.

  • window_closedbooleanrequired

    It was its window's last pane, so the window closed.

tmux::panes::respawn

Function

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.

Request
  • commandstring

    Shell command to run instead of the one the pane was started with.

  • cwdstring

    Working directory, absolute or `~/…`. Defaults to the pane's starting directory.

  • killboolean

    End the pane's program first when it is still running (default false).

  • panestringrequired

    Pane id, e.g. `%5`.

Response
  • pane_idstringrequired

    Pane id, the same as before.

tmux::panes::select

Function

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).

Request
  • panestringrequired

    Pane id, e.g. `%5`.

  • zoomboolean

    true zooms the window on this pane, false unzooms it, absent keeps the window's zoom.

Response
  • pane_idstringrequired

    Pane id now active in its window.

  • session_idstringrequired

    Session id the pane was resolved in.

  • window_idstringrequired

    Window id holding the pane.

  • zoomedbooleanrequired

    The window is zoomed on the active pane.

tmux::panes::split

Function

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.

Request
  • commandstring

    Shell command to run instead of the default shell.

  • cwdstring

    Working directory, absolute or `~/…`. Defaults to the split pane's current directory.

  • directionall ofrequired

    Where the new pane goes: `right` or `below`.

    all of (1)
    Variant 1
    one of (2)
    Variant 1
    valuestringenum right
    Variant 2
    valuestringenum below
  • panestringrequired

    Pane id to split, e.g. `%5`.

  • remain_on_exitboolean

    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.

  • selectboolean

    Make the new pane the window's active pane (default true).

Response
  • pane_idstringrequired

    The new pane's id.

  • session_idstringrequired

    Session id.

  • window_idstringrequired

    Window id holding both panes.

tmux::ports::list

Function

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.

Request
Empty object
Response
  • composesobject[]required

    Running `iii compose` daemons.

    • compose_filestring

      Compose file the daemon serves, when known.

    • engineany of

      The engine the daemon started, if it manages one.

      any of (2)
      Variant 1
      • pidinteger· uint32requiredmin 0

        Engine pid.

      • portsinteger[]· uint16requiredmin 0

        Ports the engine listens on.

      • ws_portinteger· uint16min 0

        The engine WebSocket port workers connect to.

      Variant 2
      valuenull
    • locationany of

      tmux pane the daemon runs in.

      any of (2)
      Variant 1
      • pane_idstringrequired

        Pane id.

      • sessionstringrequired

        Session name.

      • session_idstringrequired

        Session id.

      • window_idstringrequired

        Window id.

      • window_indexinteger· uint32requiredmin 0

        Window index.

      Variant 2
      valuenull
    • namespacestringrequired

      Daemon namespace (`iii:c:<namespace>`).

    • pidinteger· uint32requiredmin 0

      Daemon pid.

    • project_dirstring

      Daemon working directory.

    • workersobject[]required

      Workers the daemon started.

      • namestringrequired

        Worker name.

      • pidinteger· uint32requiredmin 0

        Top-most pid of the worker's process tree.

      • portsinteger[]· uint16requiredmin 0

        Ports the worker's processes listen on.

  • errorstring

    Why the scan failed, if it did.

  • generated_at_msinteger· uint64requiredmin 0

    When the snapshot was taken.

  • listenersobject[]required

    Every TCP listening socket of this user's processes, sorted by port.

    • addressstringrequired

      Bound address, e.g. `0.0.0.0` or `::1`.

    • composestring

      Compose namespace the process belongs to.

    • familyall ofrequired

      IPv4 or IPv6.

      all of (1)
      Variant 1
      valuestringenum ipv4, ipv6
    • locationany of

      tmux pane the process descends from.

      any of (2)
      Variant 1
      • pane_idstringrequired

        Pane id.

      • sessionstringrequired

        Session name.

      • session_idstringrequired

        Session id.

      • window_idstringrequired

        Window id.

      • window_indexinteger· uint32requiredmin 0

        Window index.

      Variant 2
      valuenull
    • pidinteger· uint32requiredmin 0

      Owning process.

    • portinteger· uint16requiredmin 0

      Port number.

    • processstringrequired

      Owning process name.

    • roleall ofrequired

      What kind of process owns the socket.

      all of (1)
      Variant 1
      one of (4)
      Variant 1
      valuestringenum engine
      Variant 2
      valuestringenum worker
      Variant 3
      valuestringenum compose
      Variant 4
      valuestringenum other
    • workerstring

      iii worker name, when known.

  • supportedbooleanrequired

    This platform has a port scanner.

tmux::sessions::create

Function

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.

Request
  • commandstring

    Shell command to run in the first window instead of the default shell.

  • cwdstring

    Working directory, absolute or `~/…`. Defaults to $HOME.

  • namestring

    Session name; tmux picks a number when omitted. No `:` or `.`.

  • remain_on_exitboolean

    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.

  • window_namestring

    Name of the first window.

Response
  • pane_idstringrequired

    First pane id.

  • sessionstringrequired

    Session name.

  • session_idstringrequired

    New session id, e.g. `$7`.

  • window_idstringrequired

    First window id.

  • window_indexinteger· uint32requiredmin 0

    First window index.

tmux::sessions::kill

Function

Kill a tmux session and every program running in its windows.

Request
  • sessionstringrequired

    Session id (`$5`) or exact name.

Response
  • killedbooleanrequired

    Always true.

tmux::sessions::list

Function

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.

Request
Empty object
Response
  • generated_at_msinteger· uint64requiredmin 0

    When the snapshot was taken.

  • sessionsobject[]required

    Sessions sorted by name.

    • activity_at_msinteger· uint64requiredmin 0

      Last activity in any of its windows.

    • attachedinteger· uint32requiredmin 0

      tmux clients attached, console terminals included.

    • console_attachedinteger· uint32requiredmin 0

      How many attached clients are console terminals.

    • created_at_msinteger· uint64requiredmin 0

      When the session was created.

    • idstringrequired

      Session id, e.g. `$5`.

    • namestringrequired

      Session name.

    • windowsobject[]required

      Windows sorted by index.

      • activebooleanrequired

        This is the session's current window.

      • activity_at_msinteger· uint64requiredmin 0

        Last output in the window.

      • bellbooleanrequired

        A bell rang in the window.

      • idstringrequired

        Window id, e.g. `@3` (unique on the server).

      • indexinteger· uint32requiredmin 0

        Window index inside the session.

      • namestringrequired

        Window name.

      • panesobject[]required

        Panes sorted by index.

        Show 13 nested
        • activebooleanrequired

          The window's active pane.

        • agentany of

          The agent CLI running in this pane, if any.

          Show 2 nested
          any of (2)
          Variant 1
          • idstringrequired

            Matcher id from the configuration, e.g. `claude`.

          • labelstringrequired

            Display name, e.g. `Claude Code`.

          • pidinteger· uint32requiredmin 0

            Pid of the agent process.

          • since_msinteger· uint64requiredmin 0

            When the agent entered `state`.

          • stateall ofrequired

            What the agent is doing.

            Show 1 nested
            all of (1)
            Variant 1
            one of (3)
            Variant 1
            valuestringenum working
            Variant 2
            valuestringenum waiting
            Variant 3
            valuestringenum idle
          • subagentsobject[]

            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.

            Show 5 nested
            • depthinteger· uint32requiredmin 0

              1 for a sub-agent of the main agent, 2 for one of its sub-agents, ….

            • descriptionstringrequired

              What it was asked to do: Claude Code's task description, Codex's task path under the main agent (`review/tests`).

            • idstringrequired

              Stable within the agent's session: Claude Code's agent id, Codex's thread id.

            • kindstring

              Claude Code's agent type (`general-purpose`, `Explore`, `fork`) or Codex's agent role; null when the agent names none.

            • since_msinteger· uint64requiredmin 0

              When it started its current task.

          • titlestring

            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.

          Variant 2
          valuenull
        • commandstringrequired

          Foreground process name.

        • composeany of

          The `iii compose` daemon running in this pane, if any.

          Show 2 nested
          any of (2)
          Variant 1
          • namespacestringrequired

            Compose daemon namespace.

          • pidinteger· uint32requiredmin 0

            Compose daemon pid.

          Variant 2
          valuenull
        • cwdstringrequired

          Current directory.

        • deadbooleanrequired

          The pane's process exited and the pane is kept.

        • heightinteger· uint32requiredmin 0

          Height in rows.

        • idstringrequired

          Pane id, e.g. `%5`.

        • indexinteger· uint32requiredmin 0

          Pane index inside the window.

        • pidinteger· uint32requiredmin 0

          Pid of the process tmux started in the pane.

        • portsobject[]required

          Listening sockets owned by processes started from this pane.

          Show 9 nested
          • addressstringrequired

            Bound address, e.g. `0.0.0.0` or `::1`.

          • composestring

            Compose namespace the process belongs to.

          • familyall ofrequired

            IPv4 or IPv6.

            Show 1 nested
            all of (1)
            Variant 1
            valuestringenum ipv4, ipv6
          • locationany of

            tmux pane the process descends from.

            Show 2 nested
            any of (2)
            Variant 1
            • pane_idstringrequired

              Pane id.

            • sessionstringrequired

              Session name.

            • session_idstringrequired

              Session id.

            • window_idstringrequired

              Window id.

            • window_indexinteger· uint32requiredmin 0

              Window index.

            Variant 2
            valuenull
          • pidinteger· uint32requiredmin 0

            Owning process.

          • portinteger· uint16requiredmin 0

            Port number.

          • processstringrequired

            Owning process name.

          • roleall ofrequired

            What kind of process owns the socket.

            Show 1 nested
            all of (1)
            Variant 1
            one of (4)
            Variant 1
            valuestringenum engine
            Variant 2
            valuestringenum worker
            Variant 3
            valuestringenum compose
            Variant 4
            valuestringenum other
          • workerstring

            iii worker name, when known.

        • titlestringrequired

          Pane title set by the program.

        • widthinteger· uint32requiredmin 0

          Width in columns.

      • zoomedbooleanrequired

        A pane is zoomed.

  • tmuxall ofrequired

    tmux availability and server.

    all of (1)
    Variant 1
    • availablebooleanrequired

      A usable tmux binary was found.

    • errorstring

      Why tmux is unavailable, or the last listing error.

    • installableboolean

      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.

    • pathstring

      Resolved tmux binary.

    • server_runningbooleanrequired

      A tmux server is running on that socket.

    • socket_pathstring

      Server socket, known while the server runs.

    • versionstring

      tmux version, e.g. `3.6`.

tmux::sessions::rename

Function

Rename a tmux session.

Request
  • namestringrequired

    New name. No `:` or `.`.

  • sessionstringrequired

    Session id (`$5`) or exact name.

Response
  • namestringrequired

    New name.

  • session_idstringrequired

    Session id.

tmux::status

Function

Whether tmux is installed, its version and path, and whether a tmux server is running on the configured socket.

Request
Empty object
Response
  • availablebooleanrequired

    A usable tmux binary was found.

  • errorstring

    Why tmux is unavailable, or the last listing error.

  • installableboolean

    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.

  • pathstring

    Resolved tmux binary.

  • server_runningbooleanrequired

    A tmux server is running on that socket.

  • socket_pathstring

    Server socket, known while the server runs.

  • versionstring

    tmux version, e.g. `3.6`.

tmux::subagents::transcript

Function

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.

Request
  • limitinteger· uint32min 0

    The most items returned, the latest ones: 200 when absent, at most 1000.

  • panestringrequired

    Pane id of the agent, e.g. `%5`.

  • subagentstringrequired

    The sub-agent's id, from `agent.subagents[].id` in `tmux::sessions::list`.

Response
  • agentstringrequired

    Matcher id of that agent: `claude` or `codex`.

  • itemsobject[]required

    The latest items, oldest first, without the task.

    • at_msinteger· uint64min 0

      When the agent recorded it.

    • errorboolean

      The tool reported a failure (`tool_result` only).

    • kindone ofrequired
      one of (5)
      Variant 1
      valuestringenum user
      Variant 2
      valuestringenum text
      Variant 3
      valuestringenum thinking
      Variant 4
      valuestringenum tool_call
      Variant 5
      valuestringenum tool_result
    • textstringrequired

      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.

    • toolstring

      The tool's name, on `tool_call` and `tool_result` items.

  • pane_idstringrequired

    Pane id of the agent running the sub-agent.

  • promptstring

    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.

  • subagent_idstringrequired

    The sub-agent's id, as in `agent.subagents`.

  • truncatedbooleanrequired

    Older items were left out: past `limit`, or before the last 4 MiB of the file.

  • workingbooleanrequired

    The sub-agent is still in its agent's `subagents` list.

tmux::terminal::close

Function

Detach a console terminal's tmux client. The session keeps running.

Request
  • access_keystringrequired

    Credential from `open`.

  • terminal_idstringrequired

    Terminal handle from `open`.

Response
  • closedbooleanrequired

    False when the terminal was already gone.

tmux::terminal::open

Function

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.

Request
  • colsinteger· uint16requiredmin 0

    Terminal width in columns (2..=500).

  • output_function_idstringrequired

    Browser handler receiving output: `iii::tmux-ui::pty-output::console-<browser id>`.

  • rowsinteger· uint16requiredmin 0

    Terminal height in rows (2..=500).

  • sessionstringrequired

    Session id (`$5`) or exact name to attach to.

  • windowany of

    Window id (`@3`) or index to select before attaching.

    any of (2)
    Variant 1
    any of (2)
    Variant 1
    valueinteger· uint32min 0
    Variant 2
    valuestring
    Variant 2
    valuenull
Response
  • access_keystringrequired

    Short-lived credential required by every other call. Never persist it.

  • client_ttystring

    The tmux client's tty, as `list-clients` shows it.

  • session_idstringrequired

    Session the client attached to.

  • terminal_idstringrequired

    Terminal handle for the other calls.

tmux::terminal::redraw

Function

Ask tmux to repaint the console terminal's whole screen (refresh-client).

Request
  • access_keystringrequired

    Credential from `open`.

  • terminal_idstringrequired

    Terminal handle from `open`.

Response
  • okbooleanrequired

    Always true.

tmux::terminal::replay

Function

Re-send buffered output frames after a sequence, for gap repair.

Request
  • access_keystringrequired

    Credential from `open`.

  • after_sequenceinteger· uint64requiredmin 0

    Last sequence the page applied; frames after it are returned.

  • terminal_idstringrequired

    Terminal handle from `open`.

Response
  • framesobject[]required
    • datastringrequired
    • sequenceinteger· uint64requiredmin 0
  • next_sequenceinteger· uint64requiredmin 0
  • truncatedbooleanrequired

tmux::terminal::resize

Function

Resize a console terminal; also its heartbeat.

Request
  • access_keystringrequired

    Credential from `open`.

  • colsinteger· uint16requiredmin 0

    Width in columns (2..=500).

  • rowsinteger· uint16requiredmin 0

    Height in rows (2..=500).

  • terminal_idstringrequired

    Terminal handle from `open`.

Response
  • colsinteger· uint16requiredmin 0

    Width applied.

  • rowsinteger· uint16requiredmin 0

    Height applied.

tmux::terminal::switch

Function

Move only this console terminal's tmux client to another session (switch-client), optionally selecting a window there.

Request
  • access_keystringrequired

    Credential from `open`.

  • sessionstringrequired

    Session id (`$5`) or exact name to move this client to.

  • terminal_idstringrequired

    Terminal handle from `open`.

  • windowany of

    Window id (`@3`) or index to select there.

    any of (2)
    Variant 1
    any of (2)
    Variant 1
    valueinteger· uint32min 0
    Variant 2
    valuestring
    Variant 2
    valuenull
Response
  • session_idstringrequired

    Session the client now shows.

tmux::terminal::upload

Function

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.

Request
  • access_keystringrequired

    Credential from `open`.

  • datastringrequired

    The file, base64, any type, at most 12 MiB decoded.

  • mimestring

    Its type as the page knows it; the answer names what the bytes are when they are a known image.

  • namestringrequired

    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_idstringrequired

    Terminal handle from `open`.

Response
  • bytesinteger· uintrequiredmin 0

    Its size in bytes.

  • mimestringrequired

    Its type: what the bytes are when they are a known image, else the request's, else `application/octet-stream`.

  • pathstringrequired

    Absolute path of the new file, to paste into the terminal as text (no spaces in its name).

tmux::terminal::write

Function

Write base64 keyboard input to a console terminal's tmux client.

Request
  • access_keystringrequired

    Credential from `open`.

  • datastringrequired

    Base64 keyboard input, at most 64 KiB decoded.

  • terminal_idstringrequired

    Terminal handle from `open`.

Response
  • writteninteger· uintrequiredmin 0

    Bytes written to the tmux client.

tmux::ui-content

Function

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}).

Request
  • pathstringrequired

    The asset path from the observer's args (e.g. `state/page.js`).

Response
  • contentstringrequired

    The asset source, verbatim.

  • content_typestringrequired

    MIME type the console should serve the asset with.

tmux::windows::create

Function

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.

Request
  • commandstring

    Shell command to run instead of the default shell.

  • cwdstring

    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).

  • namestring

    Window name. No `:` or `.`.

  • remain_on_exitboolean

    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.

  • selectboolean

    Make it the session's current window (default true).

  • sessionstringrequired

    Session id (`$5`) or exact name.

Response
  • pane_idstringrequired

    Its first pane id.

  • session_idstringrequired

    Session id.

  • window_idstringrequired

    New window id, e.g. `@9`.

  • window_indexinteger· uint32requiredmin 0

    New window index.

tmux::windows::kill

Function

Kill a tmux window and every program running in its panes.

Request
  • sessionstringrequired

    Session id (`$5`) or exact name.

  • windowall ofrequired

    Window id (`@3`) or index.

    all of (1)
    Variant 1
    any of (2)
    Variant 1
    valueinteger· uint32min 0
    Variant 2
    valuestring
Response
  • killedbooleanrequired

    Always true.

tmux::windows::move

Function

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.

Request
  • afterany of

    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.

    any of (2)
    Variant 1
    any of (2)
    Variant 1
    valueinteger· uint32min 0
    Variant 2
    valuestring
    Variant 2
    valuenull
  • beforeany of

    Put it just before this window of `target_session` (id or index). Needs tmux 3.2 or later.

    any of (2)
    Variant 1
    any of (2)
    Variant 1
    valueinteger· uint32min 0
    Variant 2
    valuestring
    Variant 2
    valuenull
  • sessionstringrequired

    Session id (`$5`) or exact name of the session the window is in.

  • target_sessionstringrequired

    Session id (`$5`) or exact name of the session to move it to. Its own session reorders it, with `before` or `after`.

  • windowall ofrequired

    Window id (`@3`) or index.

    all of (1)
    Variant 1
    any of (2)
    Variant 1
    valueinteger· uint32min 0
    Variant 2
    valuestring
Response
  • session_idstringrequired

    Id of the session the window is in now.

  • source_session_closedbooleanrequired

    It was the last window of its session, so tmux closed that session.

  • window_idstringrequired

    Window id, the same as before the move.

  • window_indexinteger· uint32requiredmin 0

    Its index in that session now.

tmux::windows::rename

Function

Rename a tmux window.

Request
  • namestringrequired

    New name. No `:` or `.`.

  • sessionstringrequired

    Session id (`$5`) or exact name.

  • windowall ofrequired

    Window id (`@3`) or index.

    all of (1)
    Variant 1
    any of (2)
    Variant 1
    valueinteger· uint32min 0
    Variant 2
    valuestring
Response
  • namestringrequired

    New name.

  • window_idstringrequired

    Window id.

tmux::windows::select

Function

Make a window the current window of its session. Like tmux itself, every client attached to that session (your terminal included) switches to it.

Request
  • sessionstringrequired

    Session id (`$5`) or exact name.

  • windowall ofrequired

    Window id (`@3`) or index.

    all of (1)
    Variant 1
    any of (2)
    Variant 1
    valueinteger· uint32min 0
    Variant 2
    valuestring
Response
  • session_idstringrequired

    Session id.

  • window_idstringrequired

    Window id now current.

Search the registry

Find workers, kits and executables, or jump to a page.