Skip to content
Projects

Building a triage bot for my issue backlog

Started
July 2025
Built with
TypeScript, Claude Agent SDK

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.

Aug 2025 111 closed 2021 to 2025
Issues closed per month in QuickAdd’s tracker, June 2021 to August 21, 2025. Each filled lozenge is five issues, an open one the remainder.

History

  1. Summer 2025

    Hundreds of open issues, some of them years old, and a guilt loop instead of a plan.

  2. July 31, 2025

    First commit. One Claude Code SDK run per issue, with the repository in context and a plain-text report out.

  3. 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.

  4. 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.

  5. October 2025

    Moved to the Claude Agent SDK. Added a terminal inbox, a choice between Claude Code and Codex, and triage across several projects.

Search and commands

Keyboard shortcuts

Go to

gh Home
gb Writing
gp Projects
gl Books
gt Tools
ga About
gn Newsletter

Move

jk Next / previous item, or scroll
hl Left / right in the book grid
[] Previous / next section
du Half page down / up
gg First item, or the top
G Last item, or the bottom
↵ Open focused item
⌘↵ Open in new tab

Search

/ Search: books filter or palette
: Commands
⌘K Command palette
? This panel
esc Close, cancel, or leave a field