Skip to content

Use {{#runtime-import}} macro syntax in workflow templates#11391

Merged
pelikhan merged 2 commits intomainfrom
copilot/update-runtime-import-syntax
Jan 22, 2026
Merged

Use {{#runtime-import}} macro syntax in workflow templates#11391
pelikhan merged 2 commits intomainfrom
copilot/update-runtime-import-syntax

Conversation

Copy link
Contributor

Copilot AI commented Jan 22, 2026

The workflow creation templates were using @./ syntax for file imports, but the canonical syntax is the {{#runtime-import}} macro.

Changes

  • create-agentic-workflow.md: Updated example workflow to use {{#runtime-import agentics/<workflow-id>.md}}
  • update-agentic-workflow.md: Updated documentation references to use macro syntax

Both templates updated in .github/aw/ and pkg/cli/templates/.

Example

Before:

<!-- Edit the file linked below to modify the agent without recompilation. -->
@./agentics/<workflow-id>.md

After:

<!-- Edit the file linked below to modify the agent without recompilation. -->
{{#runtime-import agentics/<workflow-id>.md}}

The @./ syntax is syntactic sugar that converts to {{#runtime-import}} internally, but using the explicit macro syntax provides clarity and consistency with the documented feature.

Original prompt

Review the create-agentic-workflow.md prompt and make sure it uses the runtime-import syntax . NOT THE @filename.


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

…yntax

Replace @./agentics/<workflow-id>.md with {{#runtime-import agentics/<workflow-id>.md}}
in both create and update workflow prompt templates. The runtime-import macro syntax
is the preferred method for including external files at runtime.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update create-agentic-workflow.md to use runtime-import syntax Use {{#runtime-import}} macro syntax in workflow templates Jan 22, 2026
Copilot AI requested a review from pelikhan January 22, 2026 22:25
@pelikhan pelikhan marked this pull request as ready for review January 22, 2026 22:39
@pelikhan pelikhan merged commit 1325442 into main Jan 22, 2026
@pelikhan pelikhan deleted the copilot/update-runtime-import-syntax branch January 22, 2026 22:39
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