Automated issue triage: auto-label new issues (area/ + kind/ + good first issue suggestion)
What
Automated first-pass triage for issues: when an issue is opened, label it from a small, fixed taxonomy so it is immediately findable, and surface a good first issue for newcomers.
Why
- We have ~700 open issues, and almost all carry only
bug/enhancementfrom the template.good first issueexists but is effectively unused, so a newcomer has no obvious place to start. - Maintainers spend real time on the same first-pass reads: "is this a bug or a question, which area, is it beginner-friendly".
- This is now routine for production-grade open-source projects, and the economics just changed: classifier models are extremely fast and cheap. TypeSafe's System One model returns a typed decision in ~100 ms and bills input tokens only, and the fast tier of every provider is comparable. Scoring every issue costs almost nothing.
Proposal
On issues: opened / reopened:
- Stamp
status/need-triageso nothing is lost. - One classifier call picks
area/*andkind/*from a fixed allowlist. - Apply those, set
status/bot-triaged, removestatus/need-triage. good first issueis only suggested in a comment (plusstatus/gfi-suggested) for a maintainer to confirm. A wrong beginner task is worse than none.
Failure is fail-open: no key, timeout, or bad output means no labels and the issue
keeps status/need-triage. It cannot mislabel.
Label fields
area/*: extract, build, analyze, query, export, cli, install, watch, llm, ci, docs, otherkind/*: bug, feature, docs, question, refactor, performance, otherstatus/*: need-triage, bot-triaged, gfi-suggested
Existing labels (bug, enhancement, good first issue, ...) stay as they are.
Model
Runs on TypeSafe System One (Jev) — typed choice/noul questions where the
options are the allowlist, so the model cannot emit a label we did not define. An
ordered TRIAGE_MODEL list lets it fall back to any OpenAI-compatible model
(OpenAI, Gemini, ...), so a rate-limited provider never blocks triage. The model is
configurable; a default is picked and everything can be changed later.
Rollout
Started in a fork and verified with real issues. Then a TRIAGE_DRY_RUN canary:
the bot comments the proposed labels and changes nothing, so maintainers can review
a batch before it goes live. Rollback is just unsetting the variable.
An implementation PR is on the way.
Thanks for opening this issue, @nothariharan. A maintainer will take a look soon.
If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.
To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.