Borrowing it
Nothing to install: this file belongs to gvkhosla/compound-engineering-pi. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/gvkhosla/compound-engineering-pi/main/.claude/commands/triage-prs.mdgit clone --depth 1 https://github.com/gvkhosla/compound-engineering-piWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/gvkhosla/compound-engineering-pi/triage-prs)<a href="https://agentmods.dev/commands/gvkhosla/compound-engineering-pi/triage-prs"><img src="https://agentmods.dev/badge/commands/gvkhosla/compound-engineering-pi/triage-prs.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00024 | $0.01620 |
| Opus 5 | $0.00012 | $0.00810 |
| Sonnet 5 | $0.00005 | $0.00324 |
| Haiku 4.5 | $0.00002 | $0.00162 |
Grade A, and why
triage-prs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to triage-prs — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 194 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Triage Open Pull Requests
Review, label, and act on all open PRs for a repository using parallel review agents. Produces a grouped triage report, applies labels, cross-references with issues, and walks through each PR for merge/comment decisions.
Step 0: Detect Repository
Detect repo context:
- Current repo: !
gh repo view --json nameWithOwner -q .nameWithOwner 2>/dev/null || echo "no repo detected" - Current branch: !
git branch --show-current 2>/dev/null
If $ARGUMENTS contains a GitHub URL or owner/repo, use that instead. Confirm the repo with the user if ambiguous.
Step 1: Gather Context (Parallel)
Run these in parallel:
-
List all open PRs:
gh pr list --repo OWNER/REPO --state open --limit 50 -
List all open issues:
gh issue list --repo OWNER/REPO --state open --limit 50 -
List existing labels:
gh label list --repo OWNER/REPO --limit 50 -
Check recent merges (to detect duplicate/superseded PRs):
git log --oneline -20 main
Step 2: Batch PRs by Theme
Group PRs into review batches of 4-6 based on apparent type:
- Bug fixes - titles with
fix,bug, error descriptions - Features - titles with
feat,add, new functionality - Documentation - titles with
docs,readme, terminology - Configuration/Setup - titles with
config,setup,install - Stale/Old - PRs older than 30 days
Step 3: Parallel Review (Team of Agents)
Spawn one review agent per batch using the Task tool. Each agent should:
For each PR in their batch:
- Run
gh pr view --repo OWNER/REPO <number> --json title,body,files,additions,deletions,author,createdAt - Run
gh pr diff --repo OWNER/REPO <number>(pipe tohead -200for large diffs) - Determine:
- Description: 1-2 sentence summary of the change
- Label: Which existing repo label fits best
- Action: merge / request changes / close / needs discussion
- Related PRs: Any PRs in this or other batches that touch the same files or feature
- Quality notes: Code quality, test coverage, staleness concerns
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 194 lines · 24 tokens per session scan A 3b41fcab5d4c
triage-prs is a command published in the GitHub repository gvkhosla/compound-engineering-pi (51 stars, last pushed 4mo ago), licensed MIT. It adds 24 tokens to every session and 1,620 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to triage-prs, differing in 0 lines, and is treated as a copy.
Other commands, from other repositories
mr-description-creator
Generate and apply MR/PR description directly via gh or glab CLI (project).
coderabbit-review
Handle CodeRabbit AI review cycles after creating a PR.
code-review
Code review — local uncommitted changes or GitHub PR (pass PR number/URL for PR mode).
worktree-cleanup
A command for removing a Git worktree, which is a separate working folder linked to the same repository, after its pull request is merged.
quick-commit
A quick Git command for committing and pushing a small code change. Git is the tool that records code versions and sends them to a shared repository.
status
The state of play, computed fresh: branch, dirty files, the active sprint, open work, index freshness.