1
0
Fork 0

feat: add tmux-orchestrate skill #4

Merged
aleksei merged 1 commit from feat/tmux-orchestrate into main 2026-11-04 13:06:23 +00:00
Owner

What

Adds a new tmux-orchestrate skill, modelled on herdr-orchestrate, for
splitting work between several coding agents in tmux.

Model

  • One child agent = one new window, inserted immediately after the parent
    window (new-window -a -t <parent>), so children appear to the right of the
    parent in creation order.
  • Each child window gets an explicit, randomly generated pi-XXXX name,
    unique across sessions. automatic-rename and allow-rename are disabled
    per child window so pi's terminal title cannot rename it; the parent window
    and all other windows are left untouched.
  • Panes/windows are addressed only by @N / %N IDs, never by name or index.
  • Children are launched with pi --tui-mode regular so capture-pane -S - can
    read scrollback.
  • Since tmux has no agent lifecycle API, each child signals completion with
    tmux wait-for -S <name>-done-<n>; the orchestrator blocks with
    timeout 600 tmux wait-for ... (exit 124 = timeout, not failure). A sentinel
    polling fallback is documented.
  • Cleanup closes only windows created by the orchestration; kill-server,
    kill-session, and touching the parent window are forbidden.

Notes

The skill is self-contained: there is no separate tmux skill to load. It
documents the environment check ($TMUX, $TMUX_PANE), pane readiness via the
π - <cwd> title, brief delivery through a temp file plus a one-line pointer,
and result verification before integration.

## What Adds a new `tmux-orchestrate` skill, modelled on `herdr-orchestrate`, for splitting work between several coding agents in tmux. ## Model - One child agent = one new window, inserted immediately after the parent window (`new-window -a -t <parent>`), so children appear to the right of the parent in creation order. - Each child window gets an explicit, randomly generated `pi-XXXX` name, unique across sessions. `automatic-rename` and `allow-rename` are disabled per child window so pi's terminal title cannot rename it; the parent window and all other windows are left untouched. - Panes/windows are addressed only by `@N` / `%N` IDs, never by name or index. - Children are launched with `pi --tui-mode regular` so `capture-pane -S -` can read scrollback. - Since tmux has no agent lifecycle API, each child signals completion with `tmux wait-for -S <name>-done-<n>`; the orchestrator blocks with `timeout 600 tmux wait-for ...` (exit 124 = timeout, not failure). A sentinel polling fallback is documented. - Cleanup closes only windows created by the orchestration; `kill-server`, `kill-session`, and touching the parent window are forbidden. ## Notes The skill is self-contained: there is no separate tmux skill to load. It documents the environment check (`$TMUX`, `$TMUX_PANE`), pane readiness via the `π - <cwd>` title, brief delivery through a temp file plus a one-line pointer, and result verification before integration.
aleksei deleted branch feat/tmux-orchestrate 2026-11-04 13:06:23 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
zoo/agent-skills!4
No description provided.