可在同级终端中执行任意命令文本
原文依据:3 处Skill 指示把一段字符串交给 `herdr pane run`,Herdr 会自动发送命令并按回车。文档没有在此步骤要求显示最终命令或为修改性命令再次确认。
若任务内容、复制的命令或目标面板选择有误,命令会以该终端的用户权限运行,可能修改文件、启动服务或使用终端可访问的凭据。
这是实际操作指令,不只是说明或警告。`pane run` 会把给定文本作为 shell 命令并自动按回车;示例本身仅运行测试,但接口可接受其他命令。Skill 只要求用户明确要求使用 Herdr,并未要求在执行每条可能修改文件或环境的命令前再次展示和确认。因此,若代理选用了破坏性或范围过大的命令,可能影响同一工作目录中的文件或进程;用户可要求只运行预先列出的命令并禁止修改性命令。
Read the new pane ID from `.result.pane.pane_id`, then run and inspect the command:```bashherdr pane run <returned-pane-id> "just test"herdr pane wait-output <returned-pane-id> --match "test result" --timeout 120000herdr pane read <returned-pane-id> --source recent-unwrapped --lines 120````pane run` atomically sends command text and Enter. `pane wait-output` searches the selected snapshot immediately, so output that already exists can match. Use `--match <text>` for a literal substring or `--regex <pattern>` for a Rust regular expression. Omitting `--timeout` allows an indefinite wait.查看另外 2 个位置
name: herdrdescription: "Control Herdr, a terminal multiplexer for coding agents. Use only when the user explicitly mentions Herdr or asks to use Herdr to inspect or control panes, tabs, workspaces, commands, or another agent. Do not use merely because a task could benefit from a background terminal, delegation, or parallel work. Requires HERDR_ENV=1."---`pane run` atomically sends command text and Enter. `pane wait-output` searches the selected snapshot immediately, so output that already exists can match. Use `--match <text>` for a literal substring or `--regex <pattern>` for a Rust regular expression. Omitting `--timeout` allows an indefinite wait.