[aw] Primer API Review exceeded max AI credits
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
Research direction
Inspect .github/workflows/primer-api-review.md and the linked Actions run first. Check the configured model, max-ai-credits limit, and provider authentication against the reported failures; done means the Primer API Review workflow completes successfully without the same model, credit, or authentication errors.
Written by the indexing model from the issue text.
Description
Workflow Failure
Workflow: Primer API Review
Branch: main
Run: https://github.com/primer/react/actions/runs/35580962225
[!WARNING]
Invalid or Unsupported Model: The agent failed because the configured model name is invalid, unknown, or unavailable for this engine/account.
This is a configuration issue, not a transient error — retrying will not help.
How to fix this
Specify a valid model for the selected engine in the workflow frontmatter:
---
engine: copilot
model: gpt-5-mini
---
To find valid models, check your engine/provider documentation (for Copilot see supported models).
If the error text is No model available. Check policy enablement under GitHub Settings > Copilot, the model is not disabled in the workflow but by Copilot policy. Enable the model under GitHub Settings > Copilot > Policies for the org/repo, or pick a model that is already enabled. This can also be triggered by a subagent (task tool) dispatch requesting a model that the policy does not allow, even when the main agent's model is enabled.
[!WARNING]
AI Credits Budget ExceededThe workflow hit the configured
max-ai-creditsguardrail. Used1Kof1Kmax (over by10.1).
Increase the limit
Update max-ai-credits in your workflow frontmatter:
max-ai-credits: 2000
Tips for reducing AI credit usage
- Review the cost optimization guidance.
- Reduce unnecessary model or tool calls in the prompt.
- Trim large inputs or excess context that does not change the outcome.
- Split large tasks across smaller runs when possible.
[!WARNING]
Engine Failure: Thecopilotengine terminated unexpectedly.
Last agent output:
Check your COPILOT_PROVIDER_API_KEY, COPILOT_PROVIDER_API_KEY_COMMAND, or COPILOT_PROVIDER_BEARER_TOKEN.
Changes +0 -0
Duration 16m 15s
Tokens ↑ 19.9m (19.0m cached) • ↓ 439.8k
Resume copilot --resume=4dd36fd7-e660-4c01-8497-62c7ceac24dc
Authentication failed with provider at http://172.30.0.30:10002 (HTTP 403).
Check your COPILOT_PROVIDER_API_KEY, COPILOT_PROVIDER_API_KEY_COMMAND, or COPILOT_PROVIDER_BEARER_TOKEN.
Changes +0 -0
Duration 0s
Resume copilot --resume=11daa582-ad09-4edc-b045-643b64a37890
Action Required
Assign this issue to an agent to debug and fix the issue.
Optimize token consumption
This failure was triggered by a guardrail limit (max-ai-credits). Use this prompt with any coding agent (GitHub Copilot, Claude, Gemini, etc.) to analyze token usage and reduce costs:
Optimize the agentic workflow token consumption using https://raw.githubusercontent.com/github/gh-aw/main/optimize.md
The workflow run is at https://github.com/primer/react/actions/runs/35580962225
Debug with any coding agent
Use this prompt with any coding agent (GitHub Copilot, Claude, Gemini, etc.):
Debug the agentic workflow failure using https://raw.githubusercontent.com/github/gh-aw/main/debug.md
The failed workflow run is at https://github.com/primer/react/actions/runs/35580962225
Manually invoke the agent
Debug this workflow failure using your favorite Agent CLI and the agentic-workflows prompt.
- Start your agent
- Load the
agentic-workflowsskill from.github/skills/agentic-workflows/SKILL.mdor https://github.com/github/gh-aw/blob/main/.github/skills/agentic-workflows/SKILL.md - Type
debug the agentic workflow primer-api-review failure in https://github.com/primer/react/actions/runs/35580962225
[!TIP]
Stop reporting this workflow as a failure
To stop a workflow from creating failure issues, set
report-failure-as-issue: falsein its frontmatter:safe-outputs: report-failure-as-issue: false
Generated from Primer API Review · copilot · 1K AIC · ◷
- expires on Sep 28, 2026, 9:20 AM UTC
- Dominant language
- TypeScript
- Stars
- 3.9k
- Forks
- 680
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 56
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from primer/react
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
[aw] Detection Runs Openagentic-workflows
Difficulty 1/5 Under an hour Newbie friendliness 10/100
-
agentic-workflows
Similar issues
-
Browser Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
getsentry/sentry-javascript#24577 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
agilepathway/label-checker#640 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·
-
agentic-workflows
Difficulty 1/5 Under an hour Newbie friendliness 85/100
githubnext/rig#534 ·
-
automation missing-model model-sync provider:pioneer
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
anomalyco/models.dev#7701 ·