Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 5, 2026

All prompt files in .github/aw/ are now fetched on-demand from GitHub rather than stored in the repository.

Changes

  • Added deleteAgenticWorkflowPromptFiles() in pkg/cli/copilot-agents.go

    • Deletes all .md files in .github/aw/
    • Called by gh aw fix --write
  • Created delete-aw-md-files codemod

    • Registered in GetAllCodemods()
    • Added test coverage in codemod_delete_aw_md_files_test.go
  • Removed 11 prompt files from .github/aw/:

    • agentic-chat.md
    • create-agentic-workflow.md
    • create-shared-agentic-workflow.md
    • debug-agentic-workflow.md
    • github-agentic-workflows.md
    • orchestration.md
    • projects.md
    • serena-tool.md
    • test-dispatcher.md
    • update-agentic-workflow.md
    • upgrade-agentic-workflows.md
  • Removed file existence checks from fix command

    • Removed all ensure* function calls that were checking for .md files in .github/aw/
    • These files are downloaded on-demand and no longer need to be verified

The init command already only checks for file existence via ensurePromptFileExists() - it downloads agentic-workflows.agent.md but doesn't write prompt files.

Usage

gh aw fix --write  # Deletes all downloaded prompt files
Original prompt

Create a codemod that deletes .github/aw/*.md files since these files are now downloaded from github.

Make sure that the compiler does not write a .md file in the init command and that .github/aw/getting-agentic-workflows.md is the source of truth.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits February 5, 2026 06:38
- Created deleteAgenticWorkflowPromptFiles function
- Added delete-aw-md-files codemod to registry
- Updated fix command to call the new deletion function
- Added tests for the new codemod
- Updated test expectations for 17 codemods
- Deleted 10 .md files from .github/aw/ (keeping github-agentic-workflows.md)

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove obsolete markdown files from .github/aw directory Delete .github/aw/*.md files now downloaded from GitHub Feb 5, 2026
Copilot AI requested a review from pelikhan February 5, 2026 06:44
@pelikhan
Copy link
Contributor

pelikhan commented Feb 5, 2026

@copilot also delete github-agentic-workflows.md as part of the codemod

All .md files in .github/aw/ are now downloaded from GitHub on demand.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 5, 2026

@copilot also delete github-agentic-workflows.md as part of the codemod

Done in commit ea44ccf. The codemod now deletes all 11 .md files in .github/aw/, including github-agentic-workflows.md.

@pelikhan
Copy link
Contributor

pelikhan commented Feb 5, 2026

@copilot do not download GitHub-agentic-workflows.md

These files are now downloaded from GitHub on demand and should not be checked or updated by the fix command.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 5, 2026

@copilot do not download GitHub-agentic-workflows.md

Done in commit 3c4cc1b. Removed all ensure* function calls from the fix command that were checking for .md files in .github/aw/. These files are now downloaded from GitHub on demand and the fix command no longer tries to update or verify them.

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