-
Notifications
You must be signed in to change notification settings - Fork 34
Add upgrade-agentic-workflows custom agent to init command #9032
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@copilot update with latest version of maintainer.md |
Co-authored-by: pelikhan <[email protected]>
Co-authored-by: pelikhan <[email protected]>
…ds step Co-authored-by: pelikhan <[email protected]>
|
@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 <[email protected]>
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 <[email protected]>
|
@copilot this is not meant as conversation with user |
Co-authored-by: pelikhan <[email protected]>
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 <[email protected]>
Co-authored-by: pelikhan <[email protected]>
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.