Update duplicate code workflow to target copilot SWE agent#1338
Merged
Update duplicate code workflow to target copilot SWE agent#1338
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
pelikhan
approved these changes
Oct 7, 2025
Copilot
AI
changed the title
[WIP] Update duplicate code detection workflow for Copilot agent
Update duplicate code workflow to target copilot SWE agent
Oct 7, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Updated the duplicate code detection workflow prompt to be specifically targeted at GitHub Copilot as an SWE agent. The changes transform the workflow from a conversational "you are an agent" style to a professional, task-oriented format that provides clear, actionable instructions suitable for automated remediation.
Key Changes
1. Professional Tone and Structure
Transformed the workflow from conversational to direct, imperative language:
Before:
After:
2. Copilot Assignment
Added automatic assignment to @copilot in the issue template and guidelines:
And in the operational guidelines:
This ensures created issues are automatically assigned to the copilot agent for potential automated fixes.
3. Enhanced Implementation Checklist
Improved the issue template checklist from generic "Next Steps" to a comprehensive "Implementation Checklist" with SWE-specific tasks:
4. Refined Section Headers
Reorganized headers to be more action-oriented and professional:
Mission→TaskCurrent Context→ContextAnalysis Process→Analysis WorkflowDetection Guidelines→Detection ScopeImportant Notes→Operational GuidelinesTool Usage Strategy→Tool Usage Sequence5. SWE-Specific Language
Updated terminology throughout to target SWE agents:
Testing
.lock.ymlcontains updated prompt with @copilot assignmentImpact
This change makes the duplicate code detection workflow more suitable for GitHub Copilot as an automated SWE agent, with clear instructions for creating issues that can be automatically remediated by assigning them to @copilot. The professional tone and structured format align with how SWE agents process and act on instructions.
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.