Fetch, analyze, reproduce, and minimize GitHub issue reproductions. Use when asked to check if an issue reproduces, minimize a repro, analyze a bug report, or scrub/triage an issue for reproducibility.
Fetch a GitHub issue, evaluate whether it has a reasonable repro, check if it still reproduces, and systematically minimize the repro to the smallest possible self-contained script.
Assume the current environment is correct and run python directly. Only use
conda run -n <env> for version bisection (step 5a) where you need to
temporarily use a different environment. Use the Bash tool's timeout
parameter to enforce timeouts when running repro scripts.
gh issue view <NUMBER> --repo pytorch/pytorch to fetch the issue bodygh issue view --comments <NUMBER> --repo pytorch/pytorch to fetch commentspython <script> to run repro scriptsgh issue comment <NUMBER> --repo pytorch/pytorch --body <BODY> to commentgh issue edit <NUMBER> --repo pytorch/pytorch --add-label <LABEL> to add labelsMultiple gh issue edit flags can be combined in a single command (e.g.
). Prefer batching
edits into one command to minimize API calls and reduce the chance of
auto-subscribing to notifications.
--add-label "bug,help wanted" --add-assignee "@me"Modifying an issue (commenting, adding labels) auto-subscribes you to
notifications. Use tools/stale_issues.py to save and restore subscription