ワンクリックで
tmux
Provides canonical tmux session patterns for persistent REPLs, bounded command execution, and parallel worker fan-out.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Provides canonical tmux session patterns for persistent REPLs, bounded command execution, and parallel worker fan-out.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Runs core mu operator workflows for bounded investigation, CLI-first state operations, and session handoffs. Use when general mu execution or state-management guidance is needed.
Meta-skill for core mu operating primitives. Routes to mu, programmable-ui, memory, tmux, and code-mode based on task shape.
Produces clear, argument-driven technical prose. Use when drafting or reviewing systems papers, design docs, READMEs, PR descriptions, error messages, API references, or other technical communication.
Builds and debugs mu_ui UiDocs with schema-valid payloads, interaction wiring, and status/snapshot verification.
Runs cross-store memory retrieval and index maintenance workflows with bounded filters and timeline anchors. Use when querying prior context or repairing memory index health.
Defines compositional control-flow policies for orchestration DAGs (for example review-gated retry loops) using protocol-preserving transitions.
| name | tmux |
| description | Provides canonical tmux session patterns for persistent REPLs, bounded command execution, and parallel worker fan-out. |
Use this skill when other workflows need durable shell state, long-lived REPLs, or parallel worker sessions.
This is a transport/runtime primitive skill. It does not define task semantics; it defines how to run sessions reliably.
One logical task scope per session
Create-or-reuse, do not assume
tmux has-session before creating.Bound command passes
Prefer explicit ownership
Keep it simple
tmux is a substrate; avoid extra protocol complexity unless the task requires it.List and inspect:
tmux list-sessions
Create or reuse a shell session:
session="mu-shell-main"
tmux has-session -t "$session" 2>/dev/null || tmux new-session -d -s "$session" "bash --noprofile --norc -i"
Attach for manual inspection:
tmux attach -t "$session"
Send one command pass and wait for a marker:
session="mu-shell-main"
token="__MU_DONE_$(date +%s%N)__"
tmux send-keys -t "$session" "echo start && pwd && ls" C-m
tmux send-keys -t "$session" "echo $token" C-m
for _ in $(seq 1 80); do
out="$(tmux capture-pane -pt "$session" -S -200)"
echo "$out" | grep -q "$token" && break
sleep 0.05
done
printf "%s\n" "$out"
Use this same pattern for REPL sessions (python3 -q, node, sqlite3, etc.).
Spawn one session per independent unit of work:
run_id="$(date +%Y%m%d-%H%M%S)"
for work_id in a b c; do
session="mu-worker-${run_id}-${work_id}"
tmux new-session -d -s "$session" "bash -lc 'echo START:${work_id}; sleep 1; echo DONE:${work_id}'"
done
Inspect recent output from all workers:
for s in $(tmux list-sessions -F '#S' | grep '^mu-worker-'); do
echo "=== $s ==="
tmux capture-pane -pt "$s" -S -60 | tail -n 20
done
Kill one session:
tmux kill-session -t "$session"
Kill owned worker set by prefix:
for s in $(tmux list-sessions -F '#S' | grep '^mu-worker-20260224-'); do
tmux kill-session -t "$s"
done
Quick diagnostics checklist:
tmux list-sessions (does session exist?)tmux capture-pane -pt <session> -S -200 (what actually happened?)code-mode: tmux-backed REPL persistence and context engineering loopsexecution: tmux fan-out for parallel worker executionheartbeats / crons: schedule bounded passes that dispatch into tmux workersPersistent REPL continuity
Bounded pass completion
Parallel worker fan-out