A Squad-powered GitHub issue triage system — fetches real open issues from any repo using the gh CLI and triages them with a team of AI specialists.
| Agent | Role | What It Does |
|---|---|---|
| Issue Classifier | Categorisation | Bug / Feature Request / Question / Enhancement / Documentation. Severity: Critical / High / Medium / Low |
| Duplicate Detector | Deduplication | Compares issues to each other, flags likely duplicates with evidence |
| Triage Advisor | Action Planner | Recommends: Fix Now / Schedule / Needs Info / Close as Duplicate / Won't Fix. Suggests team routing |
| Summary Reporter | Dashboard | Severity counts, duplicate pairs, top-5 priority list, trend analysis |
- Node.js ≥ 20
- GitHub CLI (
gh) — Install, then authenticate:gh auth login
- GitHub Copilot — installed and authenticated:
npm install -g @github/copilot copilot auth login
npm install
npm start # runs: npx tsx index.tsThe app will:
- Check that
ghis installed and authenticated - Ask which repo to triage (auto-detects from git remote)
- Fetch the 5 most recent open issues using
gh issue list - Send them to the four-agent triage squad
- Stream back a complete triage with classification, duplicates, action plan, and dashboard
This sample never modifies issues — it only reads and analyses. Safe to run against any repo you have access to.
- Auto-label issues based on classification results
- Comment triage notes directly on each issue via
gh issue comment - Assign issues based on code ownership (CODEOWNERS file)
- Run on a schedule to triage new issues every morning
- Track triage history to measure backlog health over time
The app uses the Squad SDK (@bradygaster/squad-sdk) to connect to GitHub Copilot with a multi-agent configuration defined in squad.config.ts. The gh CLI handles all GitHub API communication — no tokens or API keys needed beyond your existing gh authentication.
| File | Purpose |
|---|---|
index.ts |
Main orchestration — banner, repo detection, issue fetch, squad session |
squad.config.ts |
Four agent definitions with detailed charters, routing rules, ceremonies |
issue-fetcher.ts |
GitHub CLI integration — gh validation, repo detection, issue fetching |
package.json |
Dependencies: squad-sdk, tsx, typescript |