Skip to content

Add gh aw init suggestion to upgrade-agentic-workflows agent#9155

Merged
pelikhan merged 2 commits intomainfrom
copilot/update-agent-workflow-instructions
Jan 6, 2026
Merged

Add gh aw init suggestion to upgrade-agentic-workflows agent#9155
pelikhan merged 2 commits intomainfrom
copilot/update-agent-workflow-instructions

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 6, 2026

The upgrade-agentic-workflows agent now prompts users to refresh agent and instruction files after upgrading workflows. Without this step, agents may reference outdated schemas or deprecated features from the previous gh-aw version.

Changes

  • Added step 3 "Refresh Agent and Instruction Files" to the verification workflow

    • Instructs running gh aw init after successful compilation
    • Updates all agent files (.github/agents/*.md) and instructions (.github/aw/github-agentic-workflows.md)
    • Preserves user configuration while applying latest templates
  • Updated PR template for successful upgrades

    • Added "Post-Upgrade Steps" section with gh aw init checkpoint
    • Expanded "Files Changed" to track updated agent files

Example

After upgrading workflows from v0.x to v1.0:

# Fix deprecated fields
gh aw fix --write

# Compile all workflows
gh aw compile

# Refresh agents and instructions to align with v1.0
gh aw init

Files modified:

  • .github/agents/upgrade-agentic-workflows.md
  • pkg/cli/templates/upgrade-agentic-workflows.md
Original prompt

The upgrade-agentic-workflows.agent.md prompt should suggest to run "gh aw init" again to refresh the agents and instruction files.


💡 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.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update agent workflow instructions to refresh agents Add gh aw init suggestion to upgrade-agentic-workflows agent Jan 6, 2026
Copilot AI requested a review from pelikhan January 6, 2026 18:27
@pelikhan pelikhan marked this pull request as ready for review January 6, 2026 18:31
@pelikhan pelikhan merged commit ab6bcbc into main Jan 6, 2026
3 checks passed
@pelikhan pelikhan deleted the copilot/update-agent-workflow-instructions branch January 6, 2026 18:31
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