Skip to content

Cannot install Duplicate Code Detector workflow #34004

@mountaindude

Description

@mountaindude

Following instructions on doc site Meet the workflows page.

I have initialized using gh aw... and the first command works:

gh aw add-wizard https://github.com/github/gh-aw/blob/v0.45.5/.github/workflows/code-simplifier.md

The second command fails though:

gh aw add-wizard https://github.com/github/gh-aw/blob/v0.45.5/.github/workflows/duplicate-code-detector.md

Getting a bunch of "Serena"-related errors.

🚀 Welcome to GitHub Agentic Workflows!

This tool will walk you through adding an automated workflow to your repository.

✓ Target repository: <redacted>
✓ Working directory is clean
ℹ Workflow specifies engine: codex

✓ Selected engine: copilot
✓ Using existing COPILOT_GITHUB_TOKEN secret in repository

The following workflow files will be added:
  • .github/workflows/duplicate-code-detector.md
  • .github/workflows/duplicate-code-detector.lock.yml

ℹ This workflow runs on a schedule.
✓ Schedule updated to: monthly


⚠ Built-in support for Serena has been removed. Import shared/mcp/serena.md instead:
  imports:
    - uses: shared/mcp/serena.md
      with:
        languages: ["go", "typescript"]
⚠ Built-in support for Serena has been removed. Import shared/mcp/serena.md instead:
  imports:
    - uses: shared/mcp/serena.md
      with:
        languages: ["go", "typescript"]
⚠ Command line --engine copilot overrides markdown file engine: codex
⚠ Built-in support for Serena has been removed. Import shared/mcp/serena.md instead:
  imports:
    - uses: shared/mcp/serena.md
      with:
        languages: ["go", "typescript"]
✗ .github/workflows/duplicate-code-detector.md:1:1: error: tools.serena: unknown tool name. The 'tools' section only accepts built-in tool names.

Valid built-in tools: agentic-workflows, bash, cache-memory, cli-proxy, comment-memory, edit, github, playwright, repo-memory, safety-prompt, startup-timeout, timeout, web-fetch, web-search.

If 'serena' is a custom MCP server, define it under 'mcp-servers' instead:
mcp-servers:
  serena:
    command: "node server.js"
    args: ["--port", "3000"]

See: https://github.com/github/gh-aw/blob/main/docs/src/content/docs/reference/tools.md

  tools.serena: unknown tool name. The 'tools' section only accepts built-in tool names.
  Valid built-in tools: agentic-workflows, bash, cache-memory, cli-proxy, comment-memory, edit, github, playwright, repo-memory, safety-prompt, startup-timeout, timeout, web-fetch, web-search.
  If 'serena' is a custom MCP server, define it under 'mcp-servers' instead:
  mcp-servers:
    serena:
      command: "node server.js"
      args: ["--port", "3000"]
  See: https://github.com/github/gh-aw/blob/main/docs/src/content/docs/reference/tools.md
✗ failed to add workflow
  failed to stage workflow files
  failed to stage files
  exit status 128

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions