HERDR HANDBOOK · VI
Multi-machine
Quản lý Local, VPS dev và build server trong cùng một Herdr window, đồng thời route CLI tới từng machine.
1. Local + nhiều máy trong một cửa sổ
Herdr Client ├─ Local → local server ├─ Build machine →
remote Herdr server └─ Dev VPS → remote Herdr server
Mỗi máy có server/session/process riêng. Mất kết nối một máy không làm các máy khác dừng.
2. Add machine
# SSH phải hoạt động trước
ssh workbox
# Lưu profile
herdr machine add workbox --label "Build machine"
# Dùng named remote session
herdr machine add workbox --label "Agents" --remote-session agents
herdr machine list
herdr machine status
3. Switch trong UI
Sidebar hiển thị Local và các saved machines. Chọn machine/workspace để chuyển context. Process ở các máy khác vẫn chạy.
4. Gửi CLI command tới saved machine
herdr --machine "Build machine" agent list
herdr --machine "Build machine" pane list
herdr --machine "Build machine" agent prompt w1:p1 "review this change"
herdr --machine "Build machine" worktree create --cwd /srv/project --branch review
5. Quy tắc an toàn
-
--machinedùng label/id của saved profile, không phải arbitrary hostname. - Pane/workspace IDs là riêng cho từng server.
- Removing machine profile không tự stop remote session.
- Herdr không lưu password/private key SSH trong profile machine.