Skip to content

Add codemod to delete legacy agent files from .github/agents/#11654

Merged
pelikhan merged 4 commits intomainfrom
copilot/delete-old-agent-files
Jan 24, 2026
Merged

Add codemod to delete legacy agent files from .github/agents/#11654
pelikhan merged 4 commits intomainfrom
copilot/delete-old-agent-files

Conversation

Copy link
Contributor

Copilot AI commented Jan 24, 2026

Extends the delete-old-agents codemod to remove four additional legacy files that were migrated from .github/agents/ to .github/aw/:

  • create-agentic-workflow.md
  • setup-agentic-workflows.md
  • update-agentic-workflows.md
  • upgrade-agentic-workflows.md

Changes

  • pkg/cli/copilot-agents.go: Added four files to deleteOldAgentFiles() deletion list
  • pkg/cli/copilot_agents_test.go: Added test coverage for non-.agent.md file deletion

Usage

gh aw fix --write

Output when files exist:

Removed old agent file: .github/agents/create-agentic-workflow.md
Removed old agent file: .github/agents/setup-agentic-workflows.md
Removed old agent file: .github/agents/update-agentic-workflows.md
Removed old agent file: .github/agents/upgrade-agentic-workflows.md

The codemod follows the existing pattern for .agent.md files and is already documented in the fix command help text.

Original prompt

Add codemod to delete old agent files:

.github/agents/create-agentic-workflow.md
.github/agents/setup-agentic-workflows.md
.github/agents/update-agentic-workflows.md


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits January 24, 2026 12:48
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 [WIP] Add codemod to delete old agent files Add codemod to delete legacy agent files from .github/agents/ Jan 24, 2026
Copilot AI requested a review from pelikhan January 24, 2026 12:58
"create-agentic-workflow.md",
"setup-agentic-workflows.md",
"update-agentic-workflows.md",
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot also upgrade-agentic-workflows.md in That folder

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added upgrade-agentic-workflows.md to the deletion list in 5be30eb.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan marked this pull request as ready for review January 24, 2026 13:21
@pelikhan pelikhan merged commit 8f1f2d2 into main Jan 24, 2026
@pelikhan pelikhan deleted the copilot/delete-old-agent-files branch January 24, 2026 13:22
Copilot AI restored the copilot/delete-old-agent-files branch January 24, 2026 13:22
Copilot AI requested a review from pelikhan January 24, 2026 13:22
Copilot stopped work on behalf of pelikhan due to an error January 24, 2026 13:22
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