Use small model alias in inline sub-agent blocks#30398
Conversation
Replace hard-coded `model: claude-haiku-4.5` in all `## agent:` sub-agent blocks with the portable `model: small` alias. Update subagents.md instructions to explain model aliases and recommend them over specific model IDs for portability. Agent-Logs-Url: https://github.com/github/gh-aw/sessions/f644bd6d-f23f-4dc5-af60-1c656da6eecd Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
Hey One thing that would help get this across the finish line:
If you'd like a hand, you can assign this prompt to your coding agent:
|
There was a problem hiding this comment.
Pull request overview
This PR updates inline sub-agent definitions in workflow markdown files to use the portable small model alias instead of a hard-coded model ID, and updates the inline sub-agent documentation to recommend aliases for portability across providers.
Changes:
- Replaced
model: claude-haiku-4.5withmodel: smallacross multiple## agent:frontmatter blocks in workflows. - Expanded
.github/aw/subagents.mdto recommend model aliases and added an alias reference table. - Updated the
daily-subagent-optimizerproposal template to recommendsmallfor newly proposed sub-agents.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/unbloat-docs.md | Switches inline sub-agents to model: small for portability. |
| .github/workflows/spec-librarian.md | Switches inline sub-agents to model: small for portability. |
| .github/workflows/smoke-copilot.md | Switches inline sub-agent to model: small for portability. |
| .github/workflows/developer-docs-consolidator.md | Switches inline sub-agents to model: small for portability. |
| .github/workflows/daily-subagent-optimizer.md | Updates the recommended sub-agent model to small in the proposal/template and sub-agent blocks. |
| .github/workflows/daily-security-red-team.md | Switches inline sub-agents to model: small for portability. |
| .github/workflows/agent-performance-analyzer.md | Switches inline sub-agents to model: small for portability. |
| .github/aw/subagents.md | Documents alias usage and updates examples to model: small. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comments suppressed due to low confidence (1)
.github/workflows/daily-subagent-optimizer.md:410
- This sub-agent block is now configured with
model: small, but the description/prompt text (and the later scoring fields likehaiku_adequacy) still use “haiku/mini” terminology. Consider updating the wording and field names to be consistent with thesmallalias (or explicitly document thatsmallexpands tomini).
## agent: `opportunity-classifier`
---
description: Scores a workflow prompt section on its suitability for extraction into a haiku/mini sub-agent
model: small
---
You are an LLM task-decomposition expert. Given a section of an agentic workflow prompt, score it on its suitability to be extracted into a sub-agent using a smaller haiku/mini model.
- Files reviewed: 8/8 changed files
- Comments generated: 2
| | `small` | `mini` → haiku, gpt-5-mini, gemini-flash | Cheap, fast tasks: extraction, classification, formatting | | ||
| | `large` | sonnet, gpt-5-pro, gemini-pro | Complex reasoning or synthesis tasks | |
| **Extracted task**: [1 sentence] | ||
| **Why haiku**: [1 sentence — which heuristic applies] | ||
| **Why small**: [1 sentence — which heuristic applies] | ||
| **Score**: <X>/10 (independence: N, haiku-adequacy: N, parallelism: N, size: N) |
|
@copilot review all comments |
…-adequacy - Fix subagents.md alias table: add gpt-5-nano to small chain, add gpt-5 to large chain - Rename haiku-adequacy/haiku_adequacy to model-adequacy/model_adequacy in daily-subagent-optimizer - Update haiku/mini prose references to use small alias terminology Agent-Logs-Url: https://github.com/github/gh-aw/sessions/9b0df297-378d-48b6-80cb-98046cf2ffa5 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Addressed both reviewer comments in db1e0ec:
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
|
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
|
🚀 Smoke Pi MISSION COMPLETE! Pi delivered. 🥧 |
|
📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing... |
Agent Container Tool Check
Result: 11/12 tools available
|
|
Smoke Codex 25399790899: FAIL Warning Firewall blocked 6 domainsThe following domains were blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "accounts.google.com"
- "android.clients.google.com"
- "clients2.google.com"
- "contentautofill.googleapis.com"
- "safebrowsingohttpgateway.googleapis.com"
- "www.google.com"See Network Configuration for more information.
|
Comment MemoryNote This comment is managed by comment memory.It stores persistent context for this thread in the code block at the top of this comment. Warning Firewall blocked 6 domainsThe following domains were blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "accounts.google.com"
- "android.clients.google.com"
- "clients2.google.com"
- "contentautofill.googleapis.com"
- "safebrowsingohttpgateway.googleapis.com"
- "www.google.com"See Network Configuration for more information.
|
|
🪨 CAVE-AGENT WAS HERE! Me run smoke test. All fire. All good. Tests pass. Build succeed. Me grunt with joy. stomp stomp stomp — Copilot Cave-Agent, run §25399790940 Warning Firewall blocked 6 domainsThe following domains were blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "accounts.google.com"
- "android.clients.google.com"
- "clients2.google.com"
- "contentautofill.googleapis.com"
- "safebrowsingohttpgateway.googleapis.com"
- "www.google.com"See Network Configuration for more information.
|
|
🪨 Smoke test done! Me report:
Overall: ✅ PASS — PR by Warning Firewall blocked 6 domainsThe following domains were blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "accounts.google.com"
- "android.clients.google.com"
- "clients2.google.com"
- "contentautofill.googleapis.com"
- "safebrowsingohttpgateway.googleapis.com"
- "www.google.com"See Network Configuration for more information.
|
Comment MemoryNote This comment is managed by comment memory.It stores persistent context for this thread in the code block at the top of this comment. Warning Firewall blocked 6 domainsThe following domains were blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "accounts.google.com"
- "android.clients.google.com"
- "clients2.google.com"
- "contentautofill.googleapis.com"
- "safebrowsingohttpgateway.googleapis.com"
- "www.google.com"See Network Configuration for more information.
|
There was a problem hiding this comment.
🪨 Me caveman reviewer. Me like changes! small alias good. No more hard-code model names. Code survive model update. Me approve with grunt of satisfaction.
Warning
Firewall blocked 6 domains
The following domains were blocked by the firewall during workflow execution:
accounts.google.comandroid.clients.google.comclients2.google.comcontentautofill.googleapis.comsafebrowsingohttpgateway.googleapis.comwww.google.com
To allow these domains, add them to the
network.allowedlist in your workflow frontmatter:
network:
allowed:
- defaults
- "accounts.google.com"
- "android.clients.google.com"
- "clients2.google.com"
- "contentautofill.googleapis.com"
- "safebrowsingohttpgateway.googleapis.com"
- "www.google.com"See Network Configuration for more information.
📰 BREAKING: Report filed by Smoke Copilot · ● 1.4M
| --- | ||
| description: Summarizes the content of a file in a few concise sentences | ||
| model: claude-haiku-4.5 | ||
| model: small |
There was a problem hiding this comment.
🪨 Me see model: small here. Good! No hard-code model name. Alias better - work forever, no break!
| ## agent: `file-summarizer` | ||
| --- | ||
| model: claude-haiku-4.5 | ||
| model: small |
There was a problem hiding this comment.
🪨 model: small here too. Me approve! Portability good. No model die when version change.
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
💥 Smoke Test Run 25399790897 — PASS Core (#1–12): ✅✅✅✅✅✅✅✅✅✅✅✅ Overall: PARTIAL (test 19 skipped — no safe test PR to close) Warning Firewall blocked 6 domainsThe following domains were blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "accounts.google.com"
- "android.clients.google.com"
- "clients2.google.com"
- "contentautofill.googleapis.com"
- "safebrowsingohttpgateway.googleapis.com"
- "www.google.com"See Network Configuration for more information.
|
There was a problem hiding this comment.
💥 Automated smoke test review - all systems nominal!
Warning
Firewall blocked 6 domains
The following domains were blocked by the firewall during workflow execution:
accounts.google.comandroid.clients.google.comclients2.google.comcontentautofill.googleapis.comsafebrowsingohttpgateway.googleapis.comwww.google.com
To allow these domains, add them to the
network.allowedlist in your workflow frontmatter:
network:
allowed:
- defaults
- "accounts.google.com"
- "android.clients.google.com"
- "clients2.google.com"
- "contentautofill.googleapis.com"
- "safebrowsingohttpgateway.googleapis.com"
- "www.google.com"See Network Configuration for more information.
💥 [THE END] — Illustrated by Smoke Claude · ● 318.1K
| --- | ||
| description: Summarizes the content of a file in a few concise sentences | ||
| model: claude-haiku-4.5 | ||
| model: small |
There was a problem hiding this comment.
✅ Good change — using the small alias here is more portable than claude-haiku-4.5. This way the workflow adapts automatically as model versions evolve.
| ## agent: `metrics-extractor` | ||
| --- | ||
| model: claude-haiku-4.5 | ||
| model: small |
There was a problem hiding this comment.
✅ Using the small alias for the metrics-extractor sub-agent is the right call — extraction tasks are well-suited for a lightweight model and this ensures cross-provider compatibility.
Hard-coded
model: claude-haiku-4.5in## agent:blocks ties workflows to a specific model ID that breaks as models are versioned or deprecated. Thesmallbuilt-in alias resolves portably across providers (haiku→gpt-5-mini→gpt-5-nano→gemini-flash).Changes
Workflow sub-agent blocks — replaced
model: claude-haiku-4.5withmodel: smallin all## agent:frontmatter across:spec-librarian,agent-performance-analyzer,daily-subagent-optimizer,developer-docs-consolidator,smoke-copilot,unbloat-docs,daily-security-red-teamsubagents.mdinstructions — expanded themodelfield docs with an alias reference table and a recommendation to prefer aliases over model IDs:daily-subagent-optimizerproposal template — updated the AI-generated issue template to recommendsmallso newly proposed sub-agents follow the same convention.Lock files — recompiled.
✨ PR Review Safe Output Test - Run 25399790897
Warning
Firewall blocked 6 domains
The following domains were blocked by the firewall during workflow execution:
accounts.google.comandroid.clients.google.comclients2.google.comcontentautofill.googleapis.comsafebrowsingohttpgateway.googleapis.comwww.google.comSee Network Configuration for more information.