Index of every page on this site: llms.txt
All skills
vincentkoc avatar

/tmux-agent-lane-orchestrator

@b0e14f5
by Vincent Kocvincentkoc/dotskills111 stars
9
Run it yourself

Monitor and coordinate one tmux agent lane, reconstruct worker state from panes and recent Codex logs, classify progress and blockers, and produce concise manager summaries. Use when multiple coding-agent workers run in tmux windows named L1, L2, and similar lane identifiers.

Use this Skill: https://skilld.dev/gh/vincentkoc/dotskills/tmux-agent-lane-orchestrator

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈77 tokens for metadata: the name and description. ≈993 when used: this file. ≈949 more on demand in 2 files.

Description uses 3.8% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈307 characters, or 3.8%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

tmux Agent Lane Orchestrator

Purpose

Turn a tmux window of coding-agent workers into a visible, auditable lane with clear state and next actions.

When to use

  • Monitor or summarize a tmux worker lane.
  • Reconstruct worker state after a manager cold start.
  • Detect duplicated, idle, waiting, blocked, or risky work.
  • Coordinate several coding-agent panes without mutating them blindly.

Workflow

  1. Establish lane scope.
    • Prefer an explicit lane number.
    • Otherwise infer it from a current tmux window named L<number>.
    • Do not inspect other lanes unless the operator expands scope.
  2. Capture lane state.
    • Resolve this loaded skill's directory, then run python3 <skill-root>/scripts/lane_snapshot.py --lane <number>. Do not resolve the helper from the worker repository cwd.
    • Add --session <name> outside the active tmux session.
    • Linux inference requires a native Codex executable and bounded, structured argv matching codex resume UUID or codex exec resume UUID exactly. Other argument forms stay unknown. Flat ps text cannot establish identity.
    • macOS reads executable paths only. Without a separately verified binding, it reports unknown and the next action. Pass --thread L<number>.<pane>=<thread-id> only from independent evidence. A declaration still requires an unambiguous descendant Codex PID.
    • Add --json for machine-readable output.
    • Add --cursor-file <path> only when bounded incremental state is wanted; the helper writes no persistent state by default.
    • Records larger than the smaller of --log-bytes and --total-log-bytes are skipped through their next newline. The cursor reports discarding_record while skipping; later events resume.
  3. Cross-check panes and logs.
    • Pane titles alone are weak evidence.
    • Resolve pane ID to shell PID, descendant Codex PID, exact thread ID, the state-database rollout path, and the newest turn.
    • Shared cwd and generic terms such as CI, failed, or running never establish ownership.
    • Missing or conflicting identity is unknown, never a restore target.
  4. Classify each pane.
    • Use the newest exact turn and changing event/tool/token counters.
    • A completed turn after an earlier error is completed, not blocked.
    • Report bounded bytes read and truncation with the state.
    • Include the evidence and next action, not only the label.
  5. Intervene conservatively.
    • Inspect before steering.
    • Avoid duplicate heavy checks.
    • Do not kill or mutate another pane without explicit scope.
    • Prefer reversible actions and targeted commands.
  6. Summarize in manager style.
    • One line per pane: mission, state, evidence, blocker, next action.
    • Add one short manager judgment about where attention belongs.

Read references/factory-model.md when designing lane responsibilities or escalation policy.

Inputs

  • tmux session name.
  • Lane number or L<number> window.
  • Optional capture depth and per-rollout/total log byte limits.
  • Optional exact pane/thread declarations and bounded cursor path.
  • Optional operator-provided worker mission map.

Outputs

  • Current pane ID, shell PID, descendant agent PID, exact thread, and rollout snapshot.
  • Per-pane state classification with evidence.
  • Per-file and total log bytes read, cursor mode, and truncation status.
  • Concise manager summary and safe next actions.

Flow

stateDiagram-v2
    [*] --> ResolveOneLane
    ResolveOneLane --> CaptureAndMatchIdentity
    CaptureAndMatchIdentity --> ReportUnknown: missing or conflicting identity
    CaptureAndMatchIdentity --> ClassifyNewestTurn: identity matched
    ClassifyNewestTurn --> ReportLane: observation only
    ClassifyNewestTurn --> TargetedIntervention: exact scope authorized
    TargetedIntervention --> VerifyAndReport
    ReportUnknown --> [*]
    ReportLane --> [*]
    VerifyAndReport --> [*]

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The tmux Agent Lane Orchestrator is a monitoring utility designed to snapshot and summarize the state of agents running in tmux panes. It includes built-in redaction for common secrets (API keys, tokens) and private IPs to protect user privacy. No malicious behavior, network exfiltration, or unauthorized command execution was detected.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at b0e14f5. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 weeks ago
metadata
{
  "source": "https://github.com/vincentkoc/dotskills"
}

README badge

README badge for vincentkoc/dotskills/tmux-agent-lane-orchestrator