/sttts-cmux-codex:cmux-codexfrom sttts-cmux-codex
Launches and manages loosely coupled cmux subagents — parallel interactive Codex sessions in cmux columns for user-given subtasks, using sttts-* branches and a codex-worktree wrapper.
Ships in sttts-cmux-codex. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill to launch a loosely coupled cmux subagent: a separate interactive Codex session in another cmux column for a subtask given by the user.
A cmux subagent is not a tightly managed in-process subagent. It is an independent Codex TUI session in another pane. Use it for parallel, loosely coupled work such as investigation, review, or a bounded implementation subtask that can run outside the parent agent's critical path.
Run from the repository that should own the subagent worktree:
${CLAUDE_PLUGIN_ROOT}/scripts/cmux-codex column --branch sttts-some-task --base origin/main -- "prompt for the cmux subagent"
Rules:
--branch is required and must start with sttts-.--base is required. Use --base origin/main unless the user gives another base.git fetch origin before resolving the base.origin/<branch> exists and the local branch does not, the local branch is created from origin/<branch>.${CLAUDE_PLUGIN_ROOT}/scripts/codex-worktree -w <branch> -- <prompt> there.codex-worktree exits, the helper closes the cmux surface automatically so finished subagent tabs do not remain open.The wrapper creates/reuses the standard worktree path:
.codex/worktrees/<branch>
Useful launch options:
--direction right|left|up|down # default: right
--model <model>
--profile <profile>
--sandbox <mode>
--add-dir <dir>
--no-focus # restore focus to the parent pane after launch
--dry-run # preview without fetch/branch/cmux actions
Ask for status from a cmux subagent:
${CLAUDE_PLUGIN_ROOT}/scripts/cmux-codex status sttts-some-task
Read recent output without focusing or attaching:
${CLAUDE_PLUGIN_ROOT}/scripts/cmux-codex tail sttts-some-task -n 120
Focus the cmux subagent pane:
${CLAUDE_PLUGIN_ROOT}/scripts/cmux-codex focus sttts-some-task
Gracefully close the cmux subagent:
${CLAUDE_PLUGIN_ROOT}/scripts/cmux-codex close sttts-some-task
Default close sends an interrupt/exit request and then lets codex-worktree finish normally. If the wrapper shows its deletion prompt, the surface stays open for that prompt; after the wrapper exits, the launch command closes the cmux surface automatically. close does not answer the cleanup prompt automatically and does not force-delete a worktree or branch by itself.
List known cmux subagents:
${CLAUDE_PLUGIN_ROOT}/scripts/cmux-codex list
If the branch argument is omitted for status/tail/focus/close, the helper uses the most recently launched cmux subagent.
sttts-* branch and a prompt; ask the user if either is missing.--base explicit. Prefer origin/main, after fetching origin.status before interrupting or closing a running cmux subagent.codex exec; this skill is for an interactive Codex TUI session in cmux.cmux CLI available on PATH, or pass --cmux-bin.codex CLI available on PATH, or set CODEX_BIN.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub sttts/skills --plugin sttts-cmux-codex