| name | launch-copilot-terminal |
| description | Launch a new terminal running Copilot CLI with a requested title, color label, and working directory. Supports macOS iTerm2/Terminal.app and Windows Terminal, prompt-driven sessions, existing-session resume, explicit terminal selection, and new/current window targeting. |
| compatibility | Requires macOS with iTerm2 or Terminal.app and Bash, or Windows with Windows Terminal and PowerShell 5.1+; Copilot CLI must be on PATH. |
Launch Copilot Terminal
Use this skill when the user asks to launch, open, spawn, or start a new Copilot CLI terminal/session/window with a title, color, working directory, and initial prompt, or to resume an existing session in a new terminal.
Behavior
- Launches Windows Terminal on Windows. On macOS,
terminal=auto uses Terminal.app to avoid surprising
iTerm2 Automation prompts; terminal=iterm2 and terminal=terminal select explicitly. The macOS
helper also accepts iterm, terminal2, and terminal.app aliases.
- By default the session opens in a separate window;
window=current opens a tab in the current window.
- In prompt mode, starts Copilot CLI with
copilot -i <prompt> so the prompt is submitted into an interactive session.
- In resume mode, starts Copilot CLI with
copilot --resume <session> to reattach to an existing session interactively (no prompt is submitted).
- Sets the terminal title. Windows uses a real tab color; macOS includes the requested color as a title
label (for example,
[green] Implementation).
- Uses an explicitly provided working directory; if none is provided, use the current working directory.