360 Secure SkillHub
360 安全技能中心

tmux-agent-control

该 Skill 用于接管或监控 tmux pane 中的交互式编码 agent:定位进程与 pane、读取终端状态、验证空闲,再通过粘贴缓冲发送完整指令并回读确认,最后要求新回合证据与回归验证。需要显式授权,且不负责启动 headless CLI。

分类:自动化
wxxb789
热度 0.00
最近更新 2026-11-21 05:31:35

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add wxxb789/hoa/tmux-agent-control
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
tmux-agent-control
description
Take over or monitor an interactive coding agent in a tmux pane. When asked to send the next prompt after the current turn, find the process and pane, read its terminal state and wait until the TUI is idle before sending the whole instruction. Not for launching a headless coding CLI.
metadata
{"revision":"5","areas":"software-development,work-management","targets":"runtime-agnostic","summary":"drive a live TUI agent in tmux: find the pane, prove idle, send one complete instruction","summary_zh":"在 tmux 中驱动运行中的 TUI agent:定位 pane、证明空闲、一次发出完整指令","kind":"entry"}

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.