Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 16, 2026

Create Issue Duplication Detection Workflow

  • Create workflow file .github/workflows/issue-duplication-detector.md
  • Configure workflow to trigger on schedule (every 5 minutes) for batch processing
  • Set up read-only permissions (no write access)
  • Configure GitHub tools for reading issues
  • Configure bash tools with full access (all commands allowed)
  • Configure safe-outputs for add-comment (max: 10 for batch mode)
  • Write clear prompt for AI agent to detect duplicates
  • Update to batch-process recent issues instead of per-event triggering
  • Merge main branch and recompile workflow
  • Compile workflow with gh aw compile issue-duplication-detector
  • Verify compiled lock file was generated
Original prompt

Create an agentic workflow to detect issue duplication. If detected, comment on the issue that was duplicated and suggest next step. Do not modify issues and do not allow agent to have write permissions.

Custom agent used: create-agentic-workflow
Design agentic workflows using GitHub Agentic Workflows (gh-aw) extension with interactive guidance on triggers, tools, and security best practices.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Copilot AI changed the title [WIP] Add agentic workflow for issue duplication detection Add issue duplication detector agentic workflow Jan 16, 2026
Copilot AI requested a review from Mossaka January 16, 2026 19:22
@Mossaka
Copy link
Collaborator

Mossaka commented Jan 16, 2026

@copilot

Note that responding to every issue with an agentic workflows creates an unbounded $$$ spent that could be abused. If you can batch the analyzis in sets of 5 minutes windows, you get a guaranteed upper bound on $$$ and also natural batching of requests.

Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jan 16, 2026

@copilot

Note that responding to every issue with an agentic workflows creates an unbounded $$$ spent that could be abused. If you can batch the analyzis in sets of 5 minutes windows, you get a guara...

Changed to batch processing with a 5-minute scheduled window. The workflow now:

  • Runs every 5 minutes via cron schedule instead of on every issue event
  • Processes all issues updated in the last 10 minutes in a single batch
  • Limits cost to at most 12 runs per hour with natural batching
  • Increased max comment limit to 10 to handle multiple issues per batch

Commit: 4c6d0bf

Copilot AI changed the title Add issue duplication detector agentic workflow Add issue duplication detector agentic workflow with batch processing Jan 16, 2026
Copy link
Collaborator

@Mossaka Mossaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot allow all bash tools

Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jan 16, 2026

@copilot allow all bash tools

Changed bash tool from "date *" to "*" to allow all bash commands.

Commit: 4eee925

Copilot AI requested a review from Mossaka January 16, 2026 19:33
@pelikhan
Copy link
Contributor

@copilot merge main and recompile

Copilot AI and others added 2 commits January 20, 2026 17:52
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jan 20, 2026

@copilot merge main and recompile

Merged main branch and recompiled the workflow.

Merge commit: 2763d07
Recompile commit: 3c964b5

Copilot AI requested a review from pelikhan January 20, 2026 17:54
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