gtmux tmux 之上的 agent 指挥台 a command center on tmux
你在 tmux 里跑几个 coding agent——Claude Code、Codex、Gemini。gtmux 把「谁在等你、谁在干活、谁跑完了」放到一块雷达上,点一下跳到那个 pane;人不在电脑前,手机会在 agent 卡住的那一刻推你。一行命令装好,免费开源,没有账号。 You run a few coding agents in tmux — Claude Code, Codex, Gemini. gtmux puts who’s waiting on you, who’s working, and who’s done on one radar, and jumps you to the exact pane. Away from the desk, your phone gets pushed the moment an agent blocks. One line to install; free, open source, no account.
免费 · 开源 · 无账号 · 无遥测 · MIT free · open source · no account · no telemetry · MIT · GitHub
快速上手 Quick start
curl -fsSL https://raw.githubusercontent.com/chenchaoyi/gtmux/main/install.sh | bash
gtmux doctor 第一行装 CLI 和菜单栏 app;第二行体检并当场配好该配的——agent hook、set-titles、重启恢复——每一步先解释、问过你再动。就这两步。之后照常在 tmux 里干活,菜单栏和通知自己会亮。想在手机或别的电脑上用,再看下面的 pair。 Line one installs the CLI and the menu-bar app; line two health-checks and sets up the rest — agent hooks, set-titles, restore-after-reboot — explaining and asking before each change. That’s it. Work in tmux as usual; the menu bar and notifications light up on their own. To use it from a phone or another computer, see pair below.
Homebrew 也行:brew install chenchaoyi/tap/gtmux + brew install --cask chenchaoyi/tap/gtmux-app。 Homebrew works too: brew install chenchaoyi/tap/gtmux + brew install --cask chenchaoyi/tap/gtmux-app.
一套核心,五个入口 One core, five ways in
- gtmux CLI 基座,装在你的 Mac 上。tmux 里就地开雷达(
agents --watch)、跳 pane(focus)、派活(spawn)。 The base, on your Mac. Radar in place (agents --watch), jump to a pane (focus), dispatch work (spawn) — all inside tmux. - 菜单栏 app Menu bar 常驻 Mac 顶栏,一瞥知道谁在等你;⌘⌥G 呼出面板;agent 卡住时弹桌面通知,点一下跳过去。 Lives in the Mac menu bar — one glance shows who’s waiting; ⌘⌥G summons the panel; a desktop banner when an agent blocks, click to jump.
- iPhone app iPhone app 出门带着舰队:同一块雷达、往 pane 里回话、锁屏推送、灵动岛。远程管理,也能远程协作。 The fleet in your pocket: the same radar, replying into a pane, lock-screen push, Dynamic Island. Manage remotely — or collaborate remotely.
- 网页 Web 任何浏览器打开你的雷达和终端镜像,不装东西。发给协作者的访客链接也开在这里。 Any browser opens your radar and a terminal mirror, nothing to install. Guest links you hand a collaborator open here too.
- 别的电脑 Another computer
gtmux attach把 Mac 上的 tmux 会话原样接到眼前这台终端里,光标落在 agent 停下的地方。gtmux attachbridges a tmux session from your Mac into the terminal in front of you, cursor right where the agent left off.
五处读的是同一份状态:颜色、排序、谁在等你,永远对得上。 All five read the same state — colors, ordering, who’s waiting — so they never disagree.
gtmux agents — 5 agents · 1 waiting · 2 working · 2 idle
⏸ waiting Claude Code api:0.0 permission to run tests %7
⠿ working Claude Code web:0.0 refactor auth middleware %11
⠿ working Codex worker:0.0 add retry backoff %3
✳ idle Claude Code docs:0.0 update API reference %8 ✓ latest
✳ idle Gemini cli:0.0 fix flaky test %1
jump: gtmux focus %7 gtmux agents In the terminal: gtmux agents
核心能力 What it does
- 一眼看清整支舰队 See the whole fleet at once 每个 agent 一行,按状态标色:红=等你、青=在干活、绿=跑完、灰=空闲。等你的排最上面。不在 tmux 里的原生会话也感知得到(只读)。 One row per agent, color-coded: red = waiting on you, teal = working, green = done, gray = idle. The ones that need you sort to the top. Non-tmux sessions are sensed too, read-only.
- 一键跳到那个 pane Jump straight to the pane 看到红的,点它——那个终端窗口和 pane 直接到最前。不用在二十个窗口里翻。 Spot the red one, click it — that terminal window and pane come to the front. No digging through twenty windows.
- 该震才震 A buzz only when it matters agent 跑完或卡住的那一刻,手机和桌面各推一条;不需要你时一声不吭。点通知直达现场。 The moment an agent finishes or blocks, your phone and desktop get one push each; otherwise silence. Tap it and you’re there.
- 把自己的设备接进来 — pair Bring in your own devices — pair
gtmux pair印一个一次性配对码,三种用法:手机扫码、浏览器开链接、把那行gtmux attach粘到另一台终端。配上就是全权,走到哪管到哪,不用 VPN。gtmux pairprints one one-time code with three uses: scan it on the phone, open it in a browser, or paste thegtmux attachline into another terminal. Paired devices get full control, anywhere, no VPN. - 临时给协作者看 — share Hand a session to a collaborator — share
gtmux share生成一条受限、可撤销的访客链接:默认只读,按 pane 放开「能看」「能输入」。对方只碰你允许的会话,看完一撤,链接立刻死。gtmux sharemints a scoped, revocable guest link: read-only by default, with “can view” and “can type” opened per pane. They touch only what you allow; revoke and the link dies instantly. - agent 多了,交给中控 Too many agents? Hand it to HQ
gtmux hq起一个常驻参谋长:维护态势板、按轻重分诊事件、能自己派活收活,只在该你拍板时来找你。gtmux hqruns a standing chief-of-staff: it keeps a situation board, triages events by severity, dispatches and reclaims work itself, and comes to you only when the call is yours.
中控长什么样 What HQ looks like
中控不是转发通知的机器人,是一个常驻的参谋长 agent。它把每个会话在干什么、卡在哪写进态势板——自己的上下文被重置也不丢;事件按轻重记入账本,只在要紧时拍你;你纠正它一次(「这种小事别烦我」),它写进自己的章程,下次照做。 HQ isn’t a notification forwarder — it’s a standing chief-of-staff agent. It writes what every session is doing and where it’s stuck onto a situation board that survives its own context resets; events go into a severity-tagged ledger, and it taps you only when something matters; correct it once (“don’t ping me for routine finishes”) and it writes that into its own charter and follows it next time.
没用过 tmux? New to tmux?
tmux 是终端复用器:一个终端里开多个持久会话,终端关了、SSH 断了,里面跑的东西都还在。这正是挂长任务 agent 的理想底座——每个 agent 一个 pane,有名字、可恢复、断线不死。gtmux 不替代 tmux,只是在它上面加了「看清」和「指挥」这一层。我们推荐的组合:Ghostty + tmux + gtmux。 tmux is a terminal multiplexer: many persistent sessions inside one terminal, and whatever runs in them survives a closed window or a dropped SSH. That makes it the natural base for long-running agents — one pane each, named, resumable, disconnect-proof. gtmux doesn’t replace tmux; it adds the seeing-and-steering layer on top. Our recommended stack: Ghostty + tmux + gtmux.
延伸阅读:tmux 官方入门(Getting Started) · man tmux · tmux 源码仓库 Further reading: the official Getting Started · man tmux · the tmux repository
东西都留在你机器上 It all stays on your machine
算力、凭据、agent 全在你自己的 Mac 上。核心那圈「读状态、发按键」不经过任何服务器,也没有账号。只有你要从外面连进来时,流量才走一条隧道——托管的,或你自己搭的。代码全在 GitHub,MIT,可读可审可改。 Compute, credentials, agents — all on your own Mac. The core loop (read state, send keystrokes) touches no server, and there’s no account. Only when you reach in from outside does traffic cross a tunnel — hosted, or one you run yourself. The code is on GitHub, MIT: read it, audit it, change it.
接着读 Read next
- 文档 Docs 单页讲完:是什么、安装、看清与跳转、中控、远程与分享、命令一览。 One page: what it is, install, see & jump, HQ, remote & sharing, command reference.
- 指南 Guides 三个场景走一遍:看住一支舰队 · 让中控替你盯 · 从任意电脑接回会话。 Three walkthroughs: watch a fleet · let HQ watch for you · attach from any computer.
- CLI 参考 CLI reference 每条命令的完整参数与行为(GitHub)。 Every command, every flag (GitHub).
- 手机接入 Phone setup 配对、推送、隧道的手机侧细节(GitHub)。 Pairing, push, and tunnels from the phone side (GitHub).
- 疑难排查 Troubleshooting 真踩过的坑和修法,持续更新(GitHub)。 Real pitfalls and their fixes, kept current (GitHub).
目前面向 tmux + macOS。装了 hook 的 agent 都能显示;非 tmux 会话为只读感知。 隐私政策 · 支持 tmux + macOS today. Any agent that installs a hook shows up; non-tmux sessions are sensed read-only. Privacy · Support