衝浪阿北 · 片中筆記

Claude Code 一關視窗就死?幫 AI agent 蓋個家:tmux / herdr 基本教學 + ssh 遠端實錄

2026-10-18 · 4:50

同樣用 Claude Code,為什麼有人一天出三個功能,你還在等它跑完?我自己踩過很多次:差別不在模型,在 agent 住在哪。
這集我把自己每天在用的配置實錄給你看:一台不關機的 Linux + tmux(或 herdr),視窗關了 agent 不會死,一次養好幾顆。

⏱ 章節

  1. 0:00 開場:關掉終端,agent 還在跑
  2. 0:16 為什麼你比別人慢
  3. 0:52 都什麼年代了,為什麼還用 tmux
  4. 1:23 原理:為什麼不會死
  5. 2:05 tmux 基本教學:開 session / 分割 / 離開 / 接回
  6. 2:41 另一個選擇:herdr
  7. 3:27 ssh 連回去
  8. 3:53 piermux:自己刻一個 GUI
  9. 4:29 收尾

⌨️ 片中指令

tmux new -s work        開一個叫 work 的 session(new = new-session 的簡寫)
Ctrl-b 然後 %           左右分割
Ctrl-b 然後 d           離開,agent 在背景繼續跑
tmux ls                 列出所有 session
tmux attach -t work     接回 work
herdr:
curl -fsSL https://herdr.dev/install.sh | sh
herdr                   進去 / 接回
Ctrl-b 然後 v           切一格新的
Ctrl-b 然後 q           離開

🔗 連結

piermux(我自己寫的,MIT):https://github.com/kirinchen/piermux
herdr:https://github.com/herdrdev/herdr
tmux:https://github.com/tmux/tmux

#tmux #ClaudeCode #AIagent

有問題、想看下一集拍什麼?👉 留言區見