Launch an AI CLI (claude, copilot, etc.) in a new tmux session with a visible Windows Terminal tab. Use for 'tmux', 'claude in tmux', 'tmux claude', 'tmux copilot', 'new claude terminal'.
Creates a tmux session running an AI CLI tool and opens it in a new Windows Terminal tab so it's immediately visible. Works from non-TTY environments (VS Code extension, Claude Code chat panel).
/tmux # Claude (default), auto-name, current directory
/tmux claude # Explicit: Claude Code
/tmux copilot # GitHub Copilot CLI
/tmux claude work # Named session "work"
/tmux claude work ~/other/proj # Named session in specific directory
| Position | Name | Default | Description |
|---|---|---|---|
| 1 | app | claude | App to run: claude, , or any command |
copilot| 2 | session-name | <app>-1 | tmux session name (auto-increments) |
| 3 | directory | current workspace | Working directory for the session |
| Shortcut | Resolves to |
|---|---|
claude | claude if on PATH, otherwise npx @anthropic-ai/claude-code |
copilot | copilot |
| anything else | run as-is |
bash -lc (login shell, full PATH)bash so the session stays alive for debuggingwt.exe to open a new Windows Terminal tab attached to that session./scripts/run.sh — Bash implementation./scripts/run.ps1 — PowerShell 7+ implementation| Command | What it does |
|---|---|
tmux list-sessions | List all sessions |
tmux attach -t name | Reattach to a session |
tmux kill-session -t name | Kill a session |
Ctrl+B D | Detach (inside session) |
tmux kill-server | Kill all sessions |