published Aug 24, 2026, 12:41 PM · updated Aug 25, 2026, 5:04 AM
Q Workflow Optimization Report
Request
Comment on issue #55389 (PR Triage Agent report) requested: "use mai flash model to reduce cost".
Changes Made
pr-triage-agent (.github/workflows/pr-triage-agent.md)
- Added
model: copilot/mai-code-1-flash-pickerto theengine:block. - Previously the workflow used the Copilot engine's default model with no explicit
modeloverride, which resolves to a more expensive default.copilot/mai-code-1-flash-pickeris already used across ~30 other lower-cost/high-frequency workflows in this repo (e.g.artifacts-summary.md,issue-arborist.md,metrics-collector.md) as the standard cost-optimized model choice. - This workflow runs on a
schedule: every 6hcron, so switching to the cheaper flash model directly reduces recurring AI-credit cost for this automation.
Expected Improvements
- Recurring per-run AI credit cost for
pr-triage-agentshould drop, sincemai-code-1-flash-pickeris a lower-cost model tier than the previous default.
Validation
Compiled successfully using the local gh-aw compile binary:
- ✅ pr-triage-agent
Note: .lock.yml is not included in this PR; it will be regenerated automatically after merge.
- Fixes #55389
Warning
Protected Files — Push Permission Denied
This was originally intended as a pull request, but the patch modifies protected files. A human must create the pull request manually.
Protected files
The push was rejected because GitHub Actions does not have workflows permission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission.
Create the pull request manually
# Download the patch from the workflow run
gh run download 32727642327 -n agent -D /tmp/agent-32727642327
# Create a new branch
git checkout -b gh-aw/pre-created/32727642327-1 main
# Apply the patch (--3way handles cross-repo patches)
git am --3way /tmp/agent-32727642327/aw-q-pr-triage-agent-flash-model.patch
# Push the branch and create the pull request
git push origin gh-aw/pre-created/32727642327-1
gh pr create --title '[q] Use mai-code-1-flash-picker model in pr-triage-agent to reduce cost' --base main --head gh-aw/pre-created/32727642327-1 --repo github/gh-awWarning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
proxy.golang.org
To allow these domains, add them to the network.allowed list in your workflow frontmatter:
network:
allowed:
- defaults
- "proxy.golang.org"See Network Configuration for more information.
🎩 Equipped by Q · copilot · auto · 27.6 AIC · ⌖ 9.04 AIC · ⊞ 12.1K · ◷
Comment /q to run again
- expires on Aug 26, 2026, 4:41 AM UTC-08:00