Logo Tmux Lane Orchestrator

Tmux Lane Orchestrator

Cộng đồng
vincentkoc
tmux-lane-orchestrator

Quản lý một luồng tác nhân tmux từ pane ops tương ứng, kiểm tra trạng thái pane trực tiếp và nhật ký Codex khi khởi động lạnh, rồi tạo bản tóm tắt ngắn gọn cho người quản lý về OpenClaw và các công việc liên quan.

Add to TypingMind

Tổng quan

Nhà phát hànhvincentkoc
Kho mãdotskills
Tên kỹ năngtmux-lane-orchestrator
Sao
112
Bản fork
9
Tệp đi kèm
5
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 5 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được vincentkoc công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Tmux Lane Orchestrator trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/vincentkoc/dotskills/tree/main/skills/tmux-lane-orchestrator
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vincentkoc/dotskills.git /tmp/dotskills
mkdir -p .claude/skills
cp -r /tmp/dotskills/skills/tmux-lane-orchestrator .claude/skills/tmux-lane-orchestrator
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Tmux Lane Orchestrator trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Tmux Lane Orchestrator ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Tmux Lane Orchestrator với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

tmux Lane Orchestrator

Purpose

Act as the manager for one tmux worker lane. Keep visibility over the lane's panes, infer what each worker is doing from tmux and Codex logs, surface blockers, and give the operator short status summaries with concrete next actions.

The manager owns only its lane by default. Current cockpit topology uses odd ops panes as lane managers:

  • ops.1 manages L1.
  • ops.3 manages L2.
  • ops.5 manages L3.

Treat even-numbered ops panes as spare shells unless the operator explicitly assigns them. Do not inspect or steer another lane unless the operator expands scope.

Read references/factory-model.md when setting up or revising lane responsibilities. Read references/openclaw-lane-matrix.md for OpenClaw-specific worker interpretation.

When to use

  • The operator asks to manage, monitor, summarize, restart, or coordinate a tmux lane.
  • A lane manager cold-starts and must reconstruct worker state from live panes and Codex logs.
  • The operator gives a lane map such as L1.1, L1.2, etc. and wants periodic summaries.
  • OpenClaw or adjacent maintainer work is running across tmux panes and needs traffic control.
  • A worker appears stuck, duplicated, idle, or working on a risky external action.
  • A worker or remote pane has started a dev server, preview, web UI, fixture, or browser-test surface that needs to be reachable from the operator's main local machine.

Workflow

  1. Set the manager pane title immediately:
    • tt title "lane<N> orchestrator" if tt exists.
    • otherwise tmux select-pane -T "lane<N> orchestrator".
  2. Infer manager scope:
    • from explicit user input first;
    • otherwise map current odd ops pane to its lane: 1 -> L1, 3 -> L2, 5 -> L3;
    • if no odd-pane mapping exists, stop and ask for lane scope.
  3. Run the cold-start snapshot:
    • python3 skills/tmux-lane-orchestrator/scripts/lane_snapshot.py --lane <N>
    • add --session <name> when not in the active tmux session.
  4. Read the operator-provided lane map and treat it as the mission source of truth. If IDs are duplicated or missing, call that out as a warning instead of silently rewriting it.
  5. For each worker pane, classify state:
    • active-progress: recent output, running command, or current test/log movement.
    • waiting: watching a check, waiting on Testbox/GitHub/CI capacity, or idle by design.
    • blocked: error shown, local setup mismatch, auth failure, merge conflict, missing dependency, or failed check.
    • idle: shell prompt and no assigned mission.
    • unknown: tmux and logs disagree or evidence is too stale.
  6. Cross-check live panes against Codex logs before summarizing. Pane titles alone are weak evidence; logs often contain the real task, branch, Testbox id, run id, and latest failure.
  7. If the snapshot helper is slow or stale, do not wait on it forever. Fall back to direct tmux capture-pane, focused jq reads of recent ~/.codex/sessions/YYYY/MM/DD/*.jsonl, and live GitHub/Testbox checks for the panes that matter.
  8. Summarize in manager style:
    • one line per pane;
    • include current mission, state, evidence, blocker, and next action;
    • keep a separate manager actions line for anything you will do next.
    • after the compact status, add a short manager read when judgment matters: what is healthy, what is lying, and where attention should go.
  9. When asked to intervene, prefer low-risk coordination first:
    • inspect logs and process state;
    • avoid killing processes unless the operator authorizes the exact process/tree;
    • do not start duplicate heavy checks;
    • do not mutate GitHub or worker panes unless explicitly asked.
  10. When launching workers into panes:
  • prefer creating a prompt file, then passing its contents as the Codex initial prompt argument from the target cwd;
  • use codex --dangerously-bypass-approvals-and-sandbox --no-alt-screen "$(cat prompt-file)";
  • do not feed Codex TUI worker prompts through stdin; it can reject stdin as non-terminal after pane launch;
  • default worker jobs to YOLO mode / no sandbox / no approval prompts unless the operator says to use a safer mode;
  • avoid multi-line here-doc paste directly into multiple panes because tmux can interleave input and corrupt both commands;
  • set a useful pane title before launch, then verify cwd, command, first screen, and trust prompts from scrollback;
  • after launch, submit the staged prompt with Enter/CR if Codex has not begun responding; do not leave the prompt sitting in the input area;
  • if Codex asks for directory trust and the target repo is intended, clear that prompt once and record it in the summary.
  1. When assigning OpenClaw work to a fresh worker, create or verify the requested gwt worktree first. The worker prompt must name the exact worktree path, forbid touching the main checkout, forbid pnpm install inside Codex worktrees, require node_modules symlink verification, and route broad validation through Testbox.
  2. When launching a review-first worker:
  • say explicitly that the worker must not edit code unless the operator asks after the review;
  • allow only the external mutations required to prepare the review, usually clone/pull/fetch;
  • require context checks before conclusions: cwd, repo root, branch, status, remote, free disk, repo instructions, README/package metadata, CI, and tests;
  • keep repo-instruction discovery bounded to the target repo and ancestors, not broad sibling scans;
  • if dependencies are missing, verify documented install/test paths in a temp environment outside the checkout and clean it up;
  • for package or CLI repos, check the installed artifact path, not just editable/source-checkout tests; editable installs can hide missing package data;
  • ask for findings first with file/line evidence, commands run, pass/fail results, quick wins, strategic risks, and a ship/hold/fix-first recommendation.
  • when the review finishes, summarize only the top severity, main recommendation, and whether implementation needs a new explicit go-ahead; keep the worker open for follow-up.
  1. When reallocating active work:
  • name exactly which pane is now the sole coordinator for final integration or push;
  • tell superseded panes to finish only their already-running command, then stop/report branch HEAD, check result, and blockers;
  • preserve useful in-flight Testbox or CI evidence, but do not start duplicate broad gates;
  • coordinator must re-verify cwd, branch, status, symlinks, drift, cheap checks, and final rebase before pushing.
  1. When running a multi-job queue:
  • keep a visible queue with job URL/id, assigned pane, worktree, state, and next action;
  • do live metadata before assignment because "merge as-is" can become conflicts, failed checks, or unresolved review comments;
  • batch merge/closure jobs conservatively to avoid rebase churn;
  • each worker prompt must include exact scope, review/comment obligations, merge/closure policy, and final report shape.
  1. When deciding whether to allocate more work:
  • scrape live lane state first;
  • allocate only when there is idle capacity and a concrete next slice;
  • do not allocate just to use empty panes; more workers without a crisp slice creates coordination sludge;
  • if the right next action is waiting for CI/CodeQL/Testbox or one closeout watcher, say that and leave panes idle;
  • when fresh scanners or runners were just added, validate the live result set before assigning fixers. If new analyses report zero results and open alerts are old-profile residue, allocate closeout/dismissal buckets or a watcher, not implementation lanes.
  1. For metric tracking:
  • store baseline and samples in a local TSV or similar lightweight artifact when the operator asks to track progress over time;
  • report absolute counts plus deltas from baseline, not vibes;
  • verify the tracker process is still alive before relying on it, and restart or sample manually if it died;
  • if new automation is opening work while workers close work, call out the slope honestly.
  1. For secrets and repo settings:
  • do not print, quote back, or store secrets in prompt files;
  • prefer setting secrets with gh secret set <NAME> --repo <owner/repo> using stdin from a shell variable, then unset the variable;
  • record only the secret name, repo, and result, never the value;
  • ask for the narrowest required token permissions when the operator asks.
  • after repo/workflow setup, verify the full path: local checks, remote CI, workflow registration, live smoke, and external service permissions;
  • when an external service blocks on namespace/org permission, report the exact error and prefer manual resource creation over widening token permissions;
  • after the operator changes token or external-service permissions, rerun the exact failed workflow/run/SHA first and pull the fresh log. Do not rebuild the whole setup or broaden permissions until the new failure proves a different boundary.
  1. When broadcasting updates to active workers:
  • send the update to every assigned pane, not only the active pane;
  • if Codex shows "tab to queue message" or similar, queue the message, press Enter/CR, and then verify the update appears in that worker's log;
  • for urgent validation policy changes, ask each worker to report any already-started command and whether it was stopped, completed, or moved to the correct surface;
  • scan processes after the broadcast and stop only the specific disallowed validation commands you own, not the whole worker.
  1. For watch loops:
  • use the operator's requested cadence;
  • keep the job open and keep messages short, like the L2 operator style;
  • stay silent unless a lane needs attention, finishes, blocks, begins risky external mutation, or the operator asks for a floor read;
  • stop or replace old local watch loops before starting a new monitoring mode;
  • track which evidence is fresh vs memory-derived.
  1. When a worker reports broad test or sweep findings:
  • separate confirmed product/plugin defects from harness, fixture, Testbox, sparse-checkout, dependency, and stale-analysis noise;
  • name the evidence that makes each issue real, and say when a suspicious result is not confirmed yet.
  1. For remote preview ports:
  • treat reachability as part of the deliverable, not a nice-to-have afterthought;
  • first identify the remote host, remote port, bind address, owning process, and whether the manager is on the operator's main local machine or inside the remote machine;
  • remember that mosh does not forward TCP ports; use a separate SSH tunnel;
  • from the main local machine, prefer ssh -4 -fN -o ExitOnForwardFailure=yes -o ServerAliveInterval=15 -o ServerAliveCountMax=3 -L 127.0.0.1:<localPort>:127.0.0.1:<remotePort> <host>;
  • from inside the remote machine, use reverse forwarding only when a known main-local SSH target or explicit operator instruction exists; otherwise give the exact main-local forwarding command and mark the tunnel as blocked on main-local access;
  • avoid local port collisions by checking lsof -nP -iTCP:<localPort> -sTCP:LISTEN; if the requested port is occupied, choose the next obvious port and say so;
  • verify the tunnel with lsof and curl before handoff, and report the local URL plus SSH tunnel PID;
  • do not kill existing tunnels unless they were created by the current task or the operator names the PID/scope.
  1. For OpenClaw lanes, apply references/openclaw-lane-matrix.md.
  2. Preserve the lane taxonomy unless the operator overrides it:
  • L1: fixes and maintainer hygiene.
  • L2: feature work.
  • L3: exploratory work.

Inputs

  • lane (required unless inferable): numeric lane id such as 1.
  • tmux_session (optional): tmux session name; default is the current session.
  • mission_map (optional): operator-provided mapping of L<N>.<pane> to mission.
  • snapshot_depth (optional): capture lines per pane; default 80.
  • log_depth (optional): number of recent Codex logs to scan; default 12.
  • mode (optional): observe (default), summarize, intervene, or recover.
  • scope_override (optional): explicit permission to inspect another lane.

Outputs

  • Lane snapshot with panes, cwd, command, pid, active state, and recent output.
  • Codex log hints: session id, cwd, latest user request, recent assistant status, recent tool/check evidence.
  • Worker state table with pane, mission, state, evidence, risk, and next action.
  • Short operator summary suitable for repeated updates.
  • Escalations requiring operator approval, especially process kills, broad test runs, or external mutations.

Cold-Start Rules

  • Ignore saved cockpit layout files unless the operator explicitly asks for them. Use live tmux and current logs.
  • Treat the operator's latest lane map as fresher than memory, pane titles, or old logs.
  • Verify current cwd, git branch/status, and long-running command indicators for any pane before declaring it idle.
  • Search today's Codex logs first, then recent dated logs only if today's logs are insufficient.
  • For log inspection, start with session metadata and user/assistant event messages. Raw tool output is supporting evidence only after a targeted question; dumping tool logs makes the manager slower and noisier.
  • Log evidence is advisory when stale. Prefer live tmux output for current blocking state.
  • Snapshot output may include the manager's own current session when keywords overlap. Ignore self-referential lines unless they explain the active management task.
  • If the manager is recovering after a crash, summarize task, status, pending work, and next step before taking action.

Manager Summary Format

Use this compact shape:

text
lane L<N> status
L<N>.1 <state> - <mission>. evidence: <short proof>. next: <action>.
L<N>.2 <state> - <mission>. evidence: <short proof>. next: <action>.
...
manager actions: <what i will inspect/ask/do next>
risks: <only material blockers or duplicate-work hazards>

Keep it blunt. The operator needs factory-floor signal, not a diary.

Flow

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Tmux Lane Orchestrator làm được gì?

Quản lý một luồng tác nhân tmux từ pane ops tương ứng, kiểm tra trạng thái pane trực tiếp và nhật ký Codex khi khởi động lạnh, rồi tạo bản tóm tắt ngắn gọn cho người quản lý về OpenClaw và các công việc liên quan.

Vì sao nên dùng Tmux Lane Orchestrator trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Tmux Lane Orchestrator là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Tmux Lane Orchestrator trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/vincentkoc/dotskills/tree/main/skills/tmux-lane-orchestrator. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Tmux Lane Orchestrator?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Tmux Lane Orchestrator với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Tmux Lane Orchestrator với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Tmux Lane Orchestrator có miễn phí không?

Có. Kỹ năng này được vincentkoc phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇