Add squad-game-planner daily agentic workflow - #50055
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
…on job Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done in 4e3b2b0 (commit hash may differ after push):
|
PR Triage: #50055
Draft PR adding a new daily agentic workflow (1905 lines added, no deletions). Non-critical, low urgency.
|
|
@copilot the squad shared agentic workflow should be self contained with all scripts inlined. No separate file |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done — removed |
|
@copilot refactor the agentic worfklow in the "game" part and the "squad" configuration part (to be imported). Split in 2 .md file |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done — split into |
| - name: Install Squad CLI | ||
| run: | | ||
| set -euo pipefail | ||
| npm install -g "@bradygaster/squad-cli@0.11.0" |
| - name: Checkout repository for Squad bootstrap | ||
| uses: actions/checkout@v7.0.1 |
…ze engine/tools/network Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot keep working |
| engine: | ||
| id: copilot | ||
| agent: squad | ||
| copilot-sdk: true |
There was a problem hiding this comment.
In copilot, you can remove these frontmatter entries since gh-aw doesn’t need any CLI when it’s running as part of copilot. It only needs to be installed in the activation-job.
There was a problem hiding this comment.
Done — removed copilot-sdk: true from the engine config in commit 4f9... (see latest push). --agent squad runs through the standard Copilot CLI harness without the SDK sidecar; Squad CLI install/init stays confined to the activation job.
|
@copilot Apply pull-request review comments from Pelican. |
…quad Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Note
Copilot could not run the full agentic suite for this review because it was automatically requested on a bot-authored pull request. Request a review from Copilot under Reviewers to retry with the full agentic suite. Improved support for bot-authored pull requests is coming soon.
Adds a new Agentic Workflows “Squad Game Planner” scheduled workflow that boots a Squad team during activation, then uses the restored team state to generate and file a daily game concept plan as tracked issues.
Changes:
- Add
squad-game-plannerworkflow source (.md) and compiled lock workflow (.lock.yml). - Introduce a shared
shared/squad.mdcomponent to bootstrap Squad in activation and restore state in the agent job. - Update action pin data to include
actions/create-github-app-token@v2.
Show a summary per file
| File | Description |
|---|---|
| pkg/workflow/data/action_pins.json | Adds a pin entry for actions/create-github-app-token@v2. |
| pkg/actionpins/data/action_pins.json | Mirrors the new actions/create-github-app-token@v2 pin entry. |
| .github/workflows/squad-game-planner.md | Defines the new scheduled Squad planning workflow behavior, permissions, tools, and safe outputs. |
| .github/workflows/squad-game-planner.lock.yml | Compiled workflow used by GitHub Actions / gh-aw execution. |
| .github/workflows/shared/squad.md | Shared component to initialize Squad during activation and restore state for the agent job. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 4/5 changed files
- Comments generated: 4
- Review effort level: Lite
| permissions: | ||
| contents: read | ||
| issues: read | ||
| pull-requests: read | ||
| copilot-requests: write |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| with: | ||
| if-no-files-found: ignore | ||
| include-hidden-files: true | ||
| name: squad-state | ||
| path: | | ||
| .squad | ||
| .github/agents/squad.agent.md | ||
| retention-days: 1.0 |
| _GH_AW_CHROOT_JSON=$(jq -c --arg src "${RUNNER_TEMP}/gh-aw" --arg user "$(id -un)" --argjson uid "$(id -u)" --argjson gid "$(id -g)" --arg home "${RUNNER_TEMP}/gh-aw/home" '.chroot={"binariesSourcePath":$src,"identity":{"user":$user,"uid":$uid,"gid":$gid,"home":$home}}' "${RUNNER_TEMP}/gh-aw/awf-config.json") || { echo "chroot config patch failed" >&2; exit 1; } | ||
| printf '%s\n' "$_GH_AW_CHROOT_JSON" > "${RUNNER_TEMP}/gh-aw/awf-config.json" | ||
| printf '%s\n' "$_GH_AW_CHROOT_JSON" > "${RUNNER_TEMP}/gh-aw/awf-config.json" | ||
| fi |
| "actions/create-github-app-token@v2": { | ||
| "repo": "actions/create-github-app-token", | ||
| "version": "v2", | ||
| "sha": "fee1f7d63c2ff003460e3d139729b119787bc349" | ||
| }, |
|
🎉 This pull request is included in a new release. Release: |
Adds a daily agentic workflow that uses Squad multi-agent planning to design a new game concept and file the plan as tracked, expiring GitHub issues.
Workflow
.github/workflows/squad-game-planner.md(+ compiled.lock.yml), triggered onschedule: dailyandworkflow_dispatchcopilotwithagent: squadandcopilot-sdk: true— Squad orchestrates its own sub-agents heavily, so the Copilot SDK sidecar is enabledcontents: read,issues: read) pluscopilot-requests: writefor Copilot to authenticate with${{ github.token }}Squad bootstrap
.github/scripts/setup-squad.shinstalls a pinned release (@bradygaster/squad-cli@0.11.0) via npm and runssquad init --preset default(idempotent) to scaffold.squad/and.github/agents/squad.agent.mdsteps:block (Node.js setup + this script) so the repo is fully initialized before Copilot launches with--agent squadIssue lifecycle
safe-outputs.create-issuelabels every issuesquad:plan, usesgroup: trueto file a parent issue with linked sub-issues per workstreamexpires: 1auto-closes issues after one dayclose-older-issues: truecloses issues from the previous run so the tracker only reflects the latest plan