π Triage and label GitHub issues
Stack β Trigger: schedule (poll) or GitHub webhook β agent API Β· Models: your choice Β· Tools: GitHub API or @octokit/rest (npm) Β· Mode: single agent + constraints Β· Memory: project Β· Output: labels, assignee, dedup comment
Who itβs for β maintainers whose issue tracker is a swamp. What it does β reads each new issue, labels it (bug / feature / question / needs-repro), links likely duplicates, routes it to the right area owner, and asks for a reproduction when a bug report is missing one.
Build it
- Give it GitHub. Either Connect API against the GitHub REST/GraphQL schema, or add the
@octokit/restnpm package as an SDK tool β both give typed tools for issues, labels, and comments. - Create the agent with your triage rules: label by type and area, link duplicates, request a repro for bugs without steps.
- Add constraints β never close an issue; never assign core-team-only labels β so it can organize without overstepping.
- Turn on project memory so it recognizes the same bug reported five different ways.
- Let it act β the agent applies labels, sets an assignee, and posts a short triage comment via the GitHub tools.
- Trigger it β run it on a schedule to sweep new issues, or have a GitHub webhook call the agentβs API on
issues.opened.
Make it yours
- Add a repo-search tool so it can link the PR or commit that likely fixed a regression.
- Escalate suspected security reports to a private channel instead of labeling in the open.
- Promote a good triage run to a skill so other repos reuse the rubric.
Uses β DevOps Β· GitHub Β· Constraints Β· Memory