From ec0685e1d9364a8cc62bb780ae78f4688ce43a6b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Jan 2026 05:29:22 +0000 Subject: [PATCH 1/2] Initial plan From f86fa9f617348241be04b7290072f740936f65fc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Jan 2026 05:35:16 +0000 Subject: [PATCH 2/2] Add noop safe output guidance to create-agentic-workflow.md files Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/aw/create-agentic-workflow.md | 8 ++++++++ pkg/cli/templates/create-agentic-workflow.md | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/.github/aw/create-agentic-workflow.md b/.github/aw/create-agentic-workflow.md index 8a1610eb03..bbe54a4a9e 100644 --- a/.github/aw/create-agentic-workflow.md +++ b/.github/aw/create-agentic-workflow.md @@ -263,6 +263,7 @@ Based on the parsed requirements, determine: - Creating issues → `safe-outputs: create-issue:` - Commenting → `safe-outputs: add-comment:` - Creating PRs → `safe-outputs: create-pull-request:` + - **No action needed** → `safe-outputs: noop:` - **IMPORTANT**: When the agent successfully completes but determines nothing needs to be done, use `noop` to signal completion. This is critical for transparency—it shows the agent worked AND that no output was necessary. - **Daily reporting workflows** (creates issues/discussions): Add `close-older-issues: true` or `close-older-discussions: true` to prevent clutter - **Daily improver workflows** (creates PRs): Add `skip-if-match:` with a filter to avoid opening duplicate PRs (e.g., `'is:pr is:open in:title "[workflow-name]"'`) - **New workflows** (when creating, not updating): Consider enabling `missing-tool: create-issue: true` to automatically track missing tools as GitHub issues that expire after 1 week @@ -276,6 +277,7 @@ Based on the parsed requirements, determine: - `timeout-minutes:` - Has sensible defaults, only specify if user needs custom timeout - Other fields with good defaults - Let compiler use defaults unless customization needed 8. **Prompt Body**: Write clear, actionable instructions for the AI agent + - **IMPORTANT**: Include guidance for agents to call the `noop` safe output when they successfully complete work but there's nothing to be done (e.g., no issues to triage, no PRs to create, no changes needed). This is essential for transparency—it proves the agent worked and consciously determined no action was necessary. ### Step 3: Create the Workflow Files (Two-File Structure) @@ -321,6 +323,12 @@ You are an AI agent that . +## Safe Outputs + +When you successfully complete your work: +- If you created/modified resources: Use the appropriate safe output (e.g., `create-issue`, `add-comment`, `create-pull-request`) +- **If there was nothing to be done**: Call the `noop` safe output with a clear message explaining that you completed the analysis but no action was necessary. This is important for transparency—it signals that you worked successfully AND consciously determined no output was needed. + ## [Additional sections as needed for the specific workflow] diff --git a/pkg/cli/templates/create-agentic-workflow.md b/pkg/cli/templates/create-agentic-workflow.md index 8a1610eb03..bbe54a4a9e 100644 --- a/pkg/cli/templates/create-agentic-workflow.md +++ b/pkg/cli/templates/create-agentic-workflow.md @@ -263,6 +263,7 @@ Based on the parsed requirements, determine: - Creating issues → `safe-outputs: create-issue:` - Commenting → `safe-outputs: add-comment:` - Creating PRs → `safe-outputs: create-pull-request:` + - **No action needed** → `safe-outputs: noop:` - **IMPORTANT**: When the agent successfully completes but determines nothing needs to be done, use `noop` to signal completion. This is critical for transparency—it shows the agent worked AND that no output was necessary. - **Daily reporting workflows** (creates issues/discussions): Add `close-older-issues: true` or `close-older-discussions: true` to prevent clutter - **Daily improver workflows** (creates PRs): Add `skip-if-match:` with a filter to avoid opening duplicate PRs (e.g., `'is:pr is:open in:title "[workflow-name]"'`) - **New workflows** (when creating, not updating): Consider enabling `missing-tool: create-issue: true` to automatically track missing tools as GitHub issues that expire after 1 week @@ -276,6 +277,7 @@ Based on the parsed requirements, determine: - `timeout-minutes:` - Has sensible defaults, only specify if user needs custom timeout - Other fields with good defaults - Let compiler use defaults unless customization needed 8. **Prompt Body**: Write clear, actionable instructions for the AI agent + - **IMPORTANT**: Include guidance for agents to call the `noop` safe output when they successfully complete work but there's nothing to be done (e.g., no issues to triage, no PRs to create, no changes needed). This is essential for transparency—it proves the agent worked and consciously determined no action was necessary. ### Step 3: Create the Workflow Files (Two-File Structure) @@ -321,6 +323,12 @@ You are an AI agent that . +## Safe Outputs + +When you successfully complete your work: +- If you created/modified resources: Use the appropriate safe output (e.g., `create-issue`, `add-comment`, `create-pull-request`) +- **If there was nothing to be done**: Call the `noop` safe output with a clear message explaining that you completed the analysis but no action was necessary. This is important for transparency—it signals that you worked successfully AND consciously determined no output was needed. + ## [Additional sections as needed for the specific workflow]