Examples
Create a task with an inline description
gh agent-task create "<task description>"
Create a task from a markdown file
gh agent-task create -F task-desc.md
Post-creation
Print both the session URL and the PR URL (strip /agent-sessions/... from the session URL).
Example:
Polling for completion
Once Copilot starts working, poll in the background until Copilot finishes:
bash .claude/skills/copilot/poll.sh {owner}/{repo} {pr_number}