AI-powered OSS issue triage
Astro cuts open GitHub issues from 250 to under 10 with AI triage agents ViteConfTL;DW
- Astro reduced open issues from 250 to zero by building AI agents with state machines using GitHub labels and automated triage workflows.
- AI agents changed issue filing algebra: low-effort automated bug reports now scale with tool adoption, not user base size.
- Agent skill is a markdown file documenting triage steps: reproduce, diagnose (check code/tests/docs), determine if actual bug, then attempt fix.
- Use isolated subagents for each triage step writing to report.md to prevent agent bias and ensure independent critical evaluation.
- State machine workflow: issue filed → triage-needed label → bot runs skill → fix-pending → preview release via pkg.pr.new → user tests → auto pull request (15-20 minutes).
- Agent failures signal codebase problems: opaque abstractions, missing code comments, insufficient tests. Fix root causes to improve automation.
- Real example: descriptive comment above unclear if-condition stopped bot from repeatedly making wrong fix; comments improve bot reasoning.
- Decouple automation into separate GitHub Action repository for testable, isolated development; deploy via Cloudflare Worker for instant updates.
- Start small with local agent skill; smaller projects may not need full CI workflow, just local issue triage and manual fixes.
- Flue framework: open-source, model-agnostic, event-driven platform for AI agents; works with GitHub, Slack, cron jobs, any event source.
TL;DW
- Astro reduced open issues from 250 to zero by building AI agents with state machines using GitHub labels and automated triage workflows.
- AI agents changed issue filing algebra: low-effort automated bug reports now scale with tool adoption, not user base size.
- Agent skill is a markdown file documenting triage steps: reproduce, diagnose (check code/tests/docs), determine if actual bug, then attempt fix.
- Use isolated subagents for each triage step writing to report.md to prevent agent bias and ensure independent critical evaluation.
- State machine workflow: issue filed → triage-needed label → bot runs skill → fix-pending → preview release via pkg.pr.new → user tests → auto pull request (15-20 minutes).
- Agent failures signal codebase problems: opaque abstractions, missing code comments, insufficient tests. Fix root causes to improve automation.
- Real example: descriptive comment above unclear if-condition stopped bot from repeatedly making wrong fix; comments improve bot reasoning.
- Decouple automation into separate GitHub Action repository for testable, isolated development; deploy via Cloudflare Worker for instant updates.
- Start small with local agent skill; smaller projects may not need full CI workflow, just local issue triage and manual fixes.
- Flue framework: open-source, model-agnostic, event-driven platform for AI agents; works with GitHub, Slack, cron jobs, any event source.
Matthew Phillips details how Astro replaced manual issue triage with a skill-based AI pipeline that reproduces bugs, validates them, and opens PRs when fixes are confirmed—orchestrated as a GitHub Actions state machine using labels. Ships as a reusable action and the generalizable Flue framework.
