Add upgrade-agentic-workflows custom agent to init command#9032
Add upgrade-agentic-workflows custom agent to init command#9032
Conversation
|
@copilot update with latest version of maintainer.md |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…ds step Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot when the custom agent runs in github copilot cloud, it does not have access "gh aw" but it has access to the github-agentic-workflows mcp server. In general, refer to command like "fix" , "compile" and explain that it might have to use the mcp tools |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Updated the agent to support GitHub Copilot Cloud environments. Commands are now referenced generically ( |
|
@copilot there is no "version" tool in the mcp so just ignore that |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot this is not meant as conversation with user |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Removed all conversational elements. The agent now provides direct instructions for automated execution, matching the maintainer.md workflow style. Removed "Starting the Conversation" section, "Writing Style" guidance, example interactions, and user-facing prompts. Changes in commit c56c9a0. |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Adds a custom agent that provides direct instructions for upgrading workflows to the latest gh-aw version, handling breaking changes, compilation errors, and automated output generation. The agent supports both CLI and GitHub Copilot Cloud environments.
Changes
New agent template (
pkg/cli/templates/upgrade-agentic-workflows.md)fixtool to fix deprecated fieldsmaintainer.mdworkflow in githubnext/agenticsfixandcompilecommands (no status or validation flags)Integration into init command
gh aw initensureUpgradeAgenticWorkflowAgent()functionTest coverage
Usage
gh aw init # Creates .github/agents/upgrade-agentic-workflows.mdThen in GitHub Copilot Chat:
The agent provides direct instructions for changelog review, automatic codemod fixes, recompilation, and error resolution. It can be executed automatically without user interaction.
Environment Support
agentic-workflowsMCP tool for commands (fix,compile)gh awcommands directly (gh aw fix,gh aw compile)The agent automatically adapts its instructions based on the execution environment, ensuring it works seamlessly in both contexts. The workflow is streamlined to use only essential commands without optional features like status checks or validation flags.
Files Modified
pkg/cli/commands.go- Added embedded templatepkg/cli/copilot-agents.go- Added ensure functionpkg/cli/init.go- Integrated into init flowpkg/cli/init_command.go- Updated documentationpkg/cli/compile_campaign.go- Fixed unrelated staticcheck warningOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.