From 3b1453a455a164cad52cabe1461ff4a43bba10a1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 22 Jan 2026 22:16:53 +0000 Subject: [PATCH 1/2] Initial plan From 11972aa94097e43532221c0061fe33e52df60ccb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 22 Jan 2026 22:24:50 +0000 Subject: [PATCH 2/2] Update create/update-agentic-workflow prompts to use runtime-import syntax Replace @./agentics/.md with {{#runtime-import agentics/.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> --- .github/aw/create-agentic-workflow.md | 2 +- .github/aw/update-agentic-workflow.md | 4 ++-- pkg/cli/templates/create-agentic-workflow.md | 2 +- pkg/cli/templates/update-agentic-workflow.md | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/aw/create-agentic-workflow.md b/.github/aw/create-agentic-workflow.md index 46f8e295788..161444b155f 100644 --- a/.github/aw/create-agentic-workflow.md +++ b/.github/aw/create-agentic-workflow.md @@ -304,7 +304,7 @@ safe-outputs: --- -@./agentics/.md +{{#runtime-import agentics/.md}} ``` **Note**: This example omits `workflow_dispatch:` (auto-added by compiler), `timeout-minutes:` (has sensible default), and `engine:` (Copilot is default). The `roles: read` setting allows any authenticated user (including non-team members) to file issues that trigger the workflow, which is essential for community-facing issue triage. diff --git a/.github/aw/update-agentic-workflow.md b/.github/aw/update-agentic-workflow.md index beeef734a5c..790362fe9f5 100644 --- a/.github/aw/update-agentic-workflow.md +++ b/.github/aw/update-agentic-workflow.md @@ -322,7 +322,7 @@ If no agentics file exists, edit the markdown body of the workflow file. ## Prompt Editing Without Recompilation -**Key Feature**: If the workflow uses runtime imports (e.g., `@./agentics/.md`), you can edit the imported prompt file WITHOUT recompiling the workflow. +**Key Feature**: If the workflow uses runtime imports (e.g., `{{#runtime-import agentics/.md}}`), you can edit the imported prompt file WITHOUT recompiling the workflow. **When to use this**: - Improving agent instructions @@ -331,7 +331,7 @@ If no agentics file exists, edit the markdown body of the workflow file. - Adding security notices **How to do it**: -1. Check if the workflow has a runtime import: `@./agentics/.md` +1. Check if the workflow has a runtime import: `{{#runtime-import agentics/.md}}` 2. If yes, edit that file directly - no compilation needed! 3. Changes take effect on the next workflow run diff --git a/pkg/cli/templates/create-agentic-workflow.md b/pkg/cli/templates/create-agentic-workflow.md index 46f8e295788..161444b155f 100644 --- a/pkg/cli/templates/create-agentic-workflow.md +++ b/pkg/cli/templates/create-agentic-workflow.md @@ -304,7 +304,7 @@ safe-outputs: --- -@./agentics/.md +{{#runtime-import agentics/.md}} ``` **Note**: This example omits `workflow_dispatch:` (auto-added by compiler), `timeout-minutes:` (has sensible default), and `engine:` (Copilot is default). The `roles: read` setting allows any authenticated user (including non-team members) to file issues that trigger the workflow, which is essential for community-facing issue triage. diff --git a/pkg/cli/templates/update-agentic-workflow.md b/pkg/cli/templates/update-agentic-workflow.md index beeef734a5c..790362fe9f5 100644 --- a/pkg/cli/templates/update-agentic-workflow.md +++ b/pkg/cli/templates/update-agentic-workflow.md @@ -322,7 +322,7 @@ If no agentics file exists, edit the markdown body of the workflow file. ## Prompt Editing Without Recompilation -**Key Feature**: If the workflow uses runtime imports (e.g., `@./agentics/.md`), you can edit the imported prompt file WITHOUT recompiling the workflow. +**Key Feature**: If the workflow uses runtime imports (e.g., `{{#runtime-import agentics/.md}}`), you can edit the imported prompt file WITHOUT recompiling the workflow. **When to use this**: - Improving agent instructions @@ -331,7 +331,7 @@ If no agentics file exists, edit the markdown body of the workflow file. - Adding security notices **How to do it**: -1. Check if the workflow has a runtime import: `@./agentics/.md` +1. Check if the workflow has a runtime import: `{{#runtime-import agentics/.md}}` 2. If yes, edit that file directly - no compilation needed! 3. Changes take effect on the next workflow run