Skip to content

Migrate dispatcher agent output to .agents/agents and clean up legacy .github/agents path#31371

Closed
Copilot wants to merge 2 commits intomainfrom
copilot/update-agentic-workflows-location
Closed

Migrate dispatcher agent output to .agents/agents and clean up legacy .github/agents path#31371
Copilot wants to merge 2 commits intomainfrom
copilot/update-agentic-workflows-location

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 10, 2026

✨ Enhancement

The init flow now writes the agentic-workflows dispatcher to the standard agent-agnostic location: .agents/agents/agentic-workflows.md. This also introduces migration cleanup so repositories stop carrying the legacy .github/agents dispatcher files.

What does this improve?
Moves dispatcher storage to the new canonical agent location and removes stale legacy dispatcher artifacts during fix/migration flows.

Why is this valuable?
Standardizes agent placement across tooling and prevents drift between old and new dispatcher paths.

Implementation approach:

  • Dispatcher write target moved

    ensureAgenticWorkflowsDispatcher now writes to:

    • .agents/agents/agentic-workflows.md
      instead of:
    • .github/agents/agentic-workflows.agent.md
  • Init/help text aligned with new path

    CLI init command documentation now references the new dispatcher location.

  • Download source migration with fallback

    Dispatcher download now prefers the new upstream file path and falls back to the legacy path for compatibility during transition.

  • Codemod/cleanup of legacy dispatcher files

    Legacy dispatcher files are now removed during cleanup/migration:

    • .github/agents/agentic-workflows.agent.md
    • .github/agents/agentic-workflows.agents.md
  • Cleanup behavior covered in existing codemod tests

    Legacy file deletion scenarios were added to codemod cleanup tests.

targetDir  := filepath.Join(gitRoot, ".agents", "agents")
targetPath := filepath.Join(targetDir, "agentic-workflows.md")

Copilot AI and others added 2 commits May 10, 2026 19:46
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Migrate dispatcher agent file to .agents/agents path Migrate dispatcher agent output to .agents/agents and clean up legacy .github/agents path May 10, 2026
Copilot AI requested a review from pelikhan May 10, 2026 19:52
@pelikhan pelikhan closed this May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants