---
title: "Building a triage bot for my issue backlog"
author: "Christian Bager Bach Houmann"
description: "Why I built claude-github-triage, how it reads every GitHub issue against the whole codebase, and the weekend it helped me resolve 85 issues."
url: "https://bagerbach.com/projects/claude-github-triage/"
---

# Building a triage bot for my issue backlog

- Started: July 2025
- Built with: TypeScript, Claude Agent SDK
- Source: [GitHub](https://github.com/chhoumann/claude-github-triage)

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:

```text
=== 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.

Issues closed per month in QuickAdd’s tracker, June 2021 to August 21, 2025: Jun 2021 23, Jul 2021 10, Aug 2021 5, Sep 2021 4, Oct 2021 6, Nov 2021 2, Dec 2021 1, Jan 2022 4, Feb 2022 7, Mar 2022 2, Apr 2022 3, May 2022 0, Jun 2022 0, Jul 2022 0, Aug 2022 2, Sep 2022 0, Oct 2022 1, Nov 2022 8, Dec 2022 2, Jan 2023 2, Feb 2023 14, Mar 2023 16, Apr 2023 19, May 2023 9, Jun 2023 1, Jul 2023 1, Aug 2023 0, Sep 2023 1, Oct 2023 1, Nov 2023 3, Dec 2023 1, Jan 2024 0, Feb 2024 4, Mar 2024 0, Apr 2024 1, May 2024 1, Jun 2024 1, Jul 2024 2, Aug 2024 1, Sep 2024 0, Oct 2024 0, Nov 2024 8, Dec 2024 0, Jan 2025 1, Feb 2025 7, Mar 2025 4, Apr 2025 0, May 2025 4, Jun 2025 12, Jul 2025 11, Aug 2025 111.

## 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](https://bagerbach.com/blog/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.
