Skip to content

GitHub Action

Copilot Swarm provides a reusable composite action for running in any repo’s CI pipeline.

  1. Create a Copilot CLI token: Organization SettingsDeveloper SettingsPersonal Access Tokens (Classic) → select copilot scope
  2. Add as repository secret: COPILOT_CLI_TOKEN
name: Copilot Swarm
on:
issues:
types: [labeled]
jobs:
swarm:
if: github.event.label.name == 'run-swarm'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: urbanisierung/copilot-swarm/action@main
env:
COPILOT_CLI_TOKEN: ${{ secrets.COPILOT_CLI_TOKEN }}
with:
command: run
prompt: ${{ github.event.issue.body }}
InputDefaultDescription
commandrunCommand: run, plan, analyze, review, finish
promptTask description (inline)
prompt-filePath to a file containing the prompt
plan-filePath to a plan file
resumefalseResume from last checkpoint
sessionSession ID
run-idRun ID for review mode
verbosefalseEnable verbose output
versionlatestVersion of @copilot-swarm/core
primary-modelPrimary model override
review-modelReview model override
OutputDescription
output-dirPath to the .swarm output directory
run-idThe run ID of this execution
- uses: urbanisierung/copilot-swarm/action@main
with:
prompt-file: docs/feature-spec.md
jobs:
implement:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: urbanisierung/copilot-swarm/action@main
env:
COPILOT_CLI_TOKEN: ${{ secrets.COPILOT_CLI_TOKEN }}
with:
command: run
prompt: "Add dark mode toggle to the settings page"
- uses: actions/upload-artifact@v4
if: always()
with:
name: swarm-output
path: .swarm/