Skip to content

Import custom agents when importing workflows#160

Merged
pelikhan merged 5 commits intomainfrom
copilot/update-import-workflow-prompt
Feb 17, 2026
Merged

Import custom agents when importing workflows#160
pelikhan merged 5 commits intomainfrom
copilot/update-import-workflow-prompt

Conversation

Copy link
Contributor

Copilot AI commented Feb 17, 2026

The import-workflow prompt imports workflows from other repositories but doesn't handle custom agents referenced by those workflows.

Changes

  • Added Step 3: Detects custom agent references via engine.agent field and imports array, fetches .agent.md files from source repository .github/agents/ directory
  • Updated Step 4: Preserves custom agent references in imported workflow frontmatter
  • Updated Step 8: Includes custom agent files in PR and lists them in description

Implementation Details

Custom agents can be referenced two ways:

# Via engine.agent field
engine:
  agent: technical-doc-writer  # → .github/agents/technical-doc-writer.agent.md

# Via imports array  
imports:
  - .github/agents/my-agent.agent.md

The workflow now checks both locations, fetches referenced files from the source repository, and saves them to .github/agents/ in the target repository.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v0.45.3
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v0.45.3 --jq .object.sha (http block)
  • https://api.github.com/user
    • Triggering command: /usr/bin/gh gh api user --jq .login (http block)

If you need me to access, download, or install something from one of these locations, you can either:


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

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update import workflow to include referenced custom agents Import custom agents when importing workflows Feb 17, 2026
Copilot AI requested a review from pelikhan February 17, 2026 04:42
@dsyme dsyme marked this pull request as ready for review February 17, 2026 12:44
@pelikhan pelikhan merged commit 768a8ec into main Feb 17, 2026
1 check passed
@pelikhan pelikhan deleted the copilot/update-import-workflow-prompt branch February 17, 2026 22:12
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.

3 participants

Comments