Control an interactive tmux agent
Monitor an existing TUI; use gdd-route-omp or the supported headless route
for unattended one-shot work. Sending, starting a new session, or restarting
an agent needs explicit authority. Do not send into a shared composer or
start a second writer in the same checkout.
- Find the intended live agent by process, matching cwd, repo and its tmux pane. The pane PID can be its parent shell: establish the relationship to the actual agent. Record the pane ID and PID, not just the session name.
- Capture visible state and verify a clean composer, no modal, no busy indicators and stable captures across a real interval. Check current harness state for exit, restart, retry or continuation; an unchanged redraw is not proof of idle. If any evidence is unavailable, monitor without sending.
- Re-resolve the same pane identity before pasting and again before Enter. Paste the complete instruction, read the composer back, and submit only on an exact match. For multiline text use an authorized, uniquely named tmux paste buffer and bracketed paste, not literal newlines in send-keys. Never auto-dismiss a modal. If either send fails, leave the state intact and report it; do not retry into a draft or an uncertain turn.
- Save captures and command statuses. After submission require new turn evidence and a return to verified idle. Inspect output, actual changes and the repo's gates before calling the task done. Compare per-item claims with aggregate results and verify alleged baseline failures separately.
For one-line submissions use watcher configuration. For Linux and OMP-specific diagnostics or restart recovery, read harness internals.
