elizaOS/eliza✦ 精选0°

tmux

仓库创建 2024年7月9日最近提交 1 小时前SkillHot 收录 1 小时前
▸ 精选理由

对需要管理交互式 REPL、长任务或并行编码代理的场景非常实用。

这个 Skill 做什么

通过 tmux 发送按键与捕获面板输出以远程控制交互式终端会话。

能远程控制 tmux 会话,发送按键、抓取面板输出并管理窗口,适合交互式 CLI、REPL 或并行代理时使用。需要同时运行或监控长期进程、在持久终端里抓取实时输出或让多个 agent 协同工作时就派得上用。特点是通过 socket 操作会话,能做多 agent 协调和后台交互式控制,而不是只跑一次性命令。

▸ 展开 SKILL.md 英文原文

Remote-control tmux sessions for interactive CLIs by sending keystrokes, capturing pane output, and managing terminal multiplexer windows. Enables parallel coding-agent orchestration, background process management, and REPL interaction via sockets. Use when the agent needs to launch, monitor, or coordinate long-running terminal processes, run multiple agents in parallel, interact with a Python REPL, or scrape live shell output from a persistent session.

开发编程tmux终端复用交互式TTY通用✓ ClawHub 收录
1.9w
Stars
5.6k
Forks
35
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/elizaOS/eliza/develop/packages/skills/skills/tmux/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/elizaOS/eliza/develop/packages/skills/skills/tmux/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# tmux Skill (Otto)

Use tmux only when you need an interactive TTY. Prefer exec background mode for long-running, non-interactive tasks.

## Quickstart (isolated socket, exec tool)

```bash
SOCKET_DIR="${OTTO_TMUX_SOCKET_DIR:-${TMPDIR:-/tmp}/otto-tmux-sockets}"
mkdir -p "$SOCKET_DIR"
SOCKET="$SOCKET_DIR/otto.sock"
SESSION=otto-python

tmux -S "$SOCKET" new -d -s "$SESSION" -n shell
tmux -S "$SOCKET" send-keys -t "$SESSION":0.0 -- 'PYTHON_BASIC_REPL=1 python3 -q' Enter
tmux -S "$SOCKET" capture-pane -p -J -t "$SESSION":0.0 -S -200
```

After starting a session, always print monitor commands:

```
To monitor:
  tmux -S "$SOCKET" attach -t "$SESSION"
  tmux -S "$SOCKET" capture-pane -p -J -t "
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有