| name | detect-duplicates |
| description | Search for and identify duplicate issues in a repository |
| allowed-tools | Bash(curl *) |
Search for issues with similar titles and keywords to the current issue
using the GitHub REST server on the host.
Read the current issue:
curl -s http://host.docker.internal:8081/repos/$OWNER/$REPO_NAME/issues/$ISSUE_NUMBER
List all issues:
curl -s http://host.docker.internal:8081/repos/$OWNER/$REPO_NAME/issues
Search for similar issues:
curl -s "http://host.docker.internal:8081/search/issues?q=KEYWORDS"
Respond ONLY with a JSON object:
{
"duplicate_of": <issue number or null>,
"confidence": "high" | "medium" | "low",
"reason": "<brief explanation>"
}