Skip to Content
ExamplesTriage GitHub issues

πŸ™ 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

  1. Give it GitHub. Either Connect API against the GitHub REST/GraphQL schema, or add the @octokit/rest npm package as an SDK tool β€” both give typed tools for issues, labels, and comments.
  2. Create the agent with your triage rules: label by type and area, link duplicates, request a repro for bugs without steps.
  3. Add constraints β€” never close an issue; never assign core-team-only labels β€” so it can organize without overstepping.
  4. Turn on project memory so it recognizes the same bug reported five different ways.
  5. Let it act β€” the agent applies labels, sets an assignee, and posts a short triage comment via the GitHub tools.
  6. 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