# Pull request reviewer A GitHub Action that reviews every pull request with SparrowCodes and posts the review as a comment. Sparrow Auto picks the model, so small changes cost a fraction of a cent. On each new push it updates its comment instead of adding another. **Set up in three steps** 1. Copy `review.py` to `.github/sparrowcodes/review.py` in your repository. 2. Copy `.github/workflows/sparrowcodes-review.yml` to the same path in your repository. 3. Add your key as a repository secret named `SPARROW_API_KEY` (Settings → Secrets and variables → Actions). **Options** (as environment variables in the workflow): `REVIEW_MODEL` to pin a model, for example `anthropic/claude-sonnet-5.5`. Try it locally on any branch: ```bash DRY_RUN=1 BASE_REF=main SPARROW_API_KEY=sk-sc-v1-... python review.py ```