coding-agent
Installation
SKILL.md
Coding Agent
Orchestrate Codex CLI and Claude Code as background assistants via tmux.
Spawn agents liberally — if a task can be done independently by another agent, delegate it.
Session Management
Use remain-on-exit on so the pane persists after the process exits — output stays capturable.
| Operation | Command |
|---|---|
| Start | tmux new-session -d -s NAME -c DIR "cmd" \; set remain-on-exit on |
| Read output | tmux capture-pane -t NAME -p -S - (full scrollback) |
| Check status | tmux display-message -t NAME -p '#{pane_dead}' → 1 if exited |
| Exit code | tmux display-message -t NAME -p '#{pane_dead_status}' |
| Send raw | tmux send-keys -t NAME "y" (no Enter) |
| Send Ctrl-C | tmux send-keys -t NAME C-c |
| Kill | tmux kill-session -t NAME |
Related skills