Building a triage bot for my issue backlog
- Started
- July 2025
- Built with
- TypeScript, Claude Agent SDK
- Source
- GitHub (opens in a new tab)
Like a lot of open-source maintainers, I was underwater. Hundreds of open issues on QuickAdd, feature requests stacked up for years, and a steady “I should get to that” guilt that never quite turned into work.
The slow part was never the fix. It was the reading. Every issue meant loading the repository back into my head: is it still relevant, where would it live, which code paths does it touch. I wanted something to do that pass for me.
How it works
The bot runs Claude Code through its SDK, once per issue, with the whole repository available. It searches for the relevant code, checks whether the feature already exists, finds duplicates by reading the code instead of matching titles, and names the files a fix would touch. Every run ends in the same plain-text report:
=== TRIAGE ANALYSIS START ===
SHOULD_CLOSE: No
LABELS: enhancement, UI/UX, good-first-issue
CONFIDENCE: High
ANALYSIS:
This feature request for dark mode is valid and aligns with
modern application standards. The codebase already has a
theming system in src/themes/base.ts that could be extended.
=== TRIAGE ANALYSIS END ===I skim the report, decide, and move on. Processing an issue dropped to about five minutes.
Decisions
One issue per run. I didn’t think an agent let loose on the whole tracker with one prompt would work. Injecting each issue’s context deterministically, and handling one issue at a time, did.
Plain text over a schema. I considered a structured-output pass after each analysis and decided against it. The report was easy to skim as it was.
Safe to rerun. A metadata file records which issues are triaged, so a run skips them unless you pass --force. When I hit rate limits, I ran it again and it picked up where it stopped.
What happened
I resolved 85 issues over one weekend, 57 of them on the Friday, and by the 21st had closed 111 that month, without trying very hard. The analysis was useful about eight times out of ten. The rest I worked out myself.
History
- Summer 2025
Hundreds of open issues, some of them years old, and a guilt loop instead of a plan.
- July 31, 2025
First commit. One Claude Code SDK run per issue, with the repository in context and a plain-text report out.
- August 1–3, 2025
85 issues resolved over a weekend, 57 of them on the Friday. An inbox for working through the reports came the same weekend.
- August 21, 2025
111 issues closed that month so far. Wrote it up in Using AI agents to do months of work in a weekend.
- October 2025
Moved to the Claude Agent SDK. Added a terminal inbox, a choice between Claude Code and Codex, and triage across several projects.