published Aug 25, 2026, 2:24 PM · updated Aug 26, 2026, 2:58 AM
Workflow Failure
Workflow: Dead Code Removal Agent
Branch: main
Run: https://github.com/github/gh-aw/actions/runs/32859123378
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
Engine Failure: The copilot engine terminated unexpectedly.
Last agent output:
{"type":"assistant.message","timestamp":"2026-08-25T14:36:10.002Z","data":{"content":""}}
{"type":"tool.execution_start","timestamp":"2026-08-25T14:36:10.005Z","data":{"toolName":"bash","mcpServerName":"","command":"whoami"}}
{"type":"tool.execution_complete","timestamp":"2026-08-25T14:36:10.071Z","data":{"toolName":"bash","mcpServerName":"","success":true,"result":{"content":"<error: No such file or directory (os error 2)>\n<shellId: 31 completed with exit code 1>","detailedContent":"<error: No such file or directory (os error 2)>\n<shellId: 31 completed with exit code 1>","contents":[{"type":"shell_exit","shellId":"31","exitCode":1,"outputTruncated":false,"cwd":"/home/runner/work/gh-aw/gh-aw","outputPreview":"<error: No such file or directory (os error 2)>\n"}]}}}
{"type":"assistant.message","timestamp":"2026-08-25T14:36:14.269Z","data":{"content":"The bash tool is completely broken and cannot be recovered in this session. Since `create_pull_request` requires git operations (branch creation, commit, push) that I cannot perform, I must report this incomplete state via `noop`."}}
{"type":"tool.execution_start","timestamp":"2026-08-25T14:36:14.270Z","data":{"toolName":"task","mcpServerName":""}}
{"type":"subagent.started","timestamp":"2026-08-25T14:36:14.303Z","data":{"agentName":"general-purpose","agentDisplayName":"General Purpose Agent","toolCallId":"toolu_01DFw9UbWcMZdgwYg66YfsW2"}}
[copilot-sdk-driver] [sdk-driver] error: Execution failed: Error: No model available. Check policy enablement under GitHub Settings > Copilot
{"type":"subagent.completed","timestamp":"2026-08-25T14:36:14.441Z","data":{"agentName":"general-purpose","toolCallId":"toolu_01DFw9UbWcMZdgwYg66YfsW2"}}
{"type":"tool.execution_complete","timestamp":"2026-08-25T14:36:14.484Z","data":{"toolName":"task","mcpServerName":"","success":false}}
{"type":"subagent.completed","timestamp":"2026-08-25T14:36:14.494Z","data":{"agentName":"general-purpose","toolCallId":"toolu_01DFw9UbWcMZdgwYg66YfsW2"}}
Action Required
Assign this issue to an agent to debug and fix the issue.
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/github/gh-aw/actions/runs/32859123378
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 dead-code-remover failure in https://github.com/github/gh-aw/actions/runs/32859123378
Tip
Stop reporting this workflow as a failure
To stop a workflow from creating failure issues, set report-failure-as-issue: false in its frontmatter:
safe-outputs:
report-failure-as-issue: falseGenerated from Dead Code Removal Agent · copilot · 75.4 AIC · ◷
- expires on Aug 26, 2026, 2:38 AM UTC