Problem
Two high-star repositories fail compilation with the same error in their duplicate-code-detector.md workflow:
tools.serena: unknown tool name. The 'tools' section only accepts built-in tool names.
Affected repos (2 of 20 in today's audit):
Both use the same workflow sourced from github/gh-aw/.github/workflows/duplicate-code-detector.md.
Root Cause
The workflow frontmatter contains:
tools:
serena: ['typescript']
serena is not a built-in gh-aw tool. It must be defined under mcp-servers: instead. This pattern likely existed in an older version of the template before the tools/mcp-servers distinction was clarified.
Proposed Codemod: tools-shorthand-to-mcp-servers
gh aw fix should detect tools: entries with non-built-in keys and migrate them:
Before:
tools:
serena: ['typescript']
After:
mcp-servers:
serena:
command: serena
args: ['--context', 'typescript']
Acceptance Criteria
Built-in Tool Names (for reference)
agentic-workflows, bash, cache-memory, edit, github, mount-as-clis, playwright, repo-memory, safety-prompt, startup-timeout, timeout, web-fetch, web-search
References:
Generated by Daily AW Cross-Repo Compile Check · ● 642.8K · ◷
Problem
Two high-star repositories fail compilation with the same error in their
duplicate-code-detector.mdworkflow:Affected repos (2 of 20 in today's audit):
Both use the same workflow sourced from
github/gh-aw/.github/workflows/duplicate-code-detector.md.Root Cause
The workflow frontmatter contains:
serenais not a built-in gh-aw tool. It must be defined undermcp-servers:instead. This pattern likely existed in an older version of the template before thetools/mcp-serversdistinction was clarified.Proposed Codemod:
tools-shorthand-to-mcp-serversgh aw fixshould detecttools:entries with non-built-in keys and migrate them:Before:
After:
Acceptance Criteria
gh aw fixdetectstools:entries with unknown (non-built-in) tool namesmcp-servers:with a best-effort command scaffoldcommandandargsvalues after migrationBuilt-in Tool Names (for reference)
agentic-workflows,bash,cache-memory,edit,github,mount-as-clis,playwright,repo-memory,safety-prompt,startup-timeout,timeout,web-fetch,web-searchReferences: