Live preview
FlueOutput will stream here when you run the agent.
Summary
The GitHub PR Code Review Agent reviews a pull request and returns actionable feedback. It fetches the PR's files and patches, adapts its depth to the diff size, and reports bugs, security issues, and style notes grouped by file — ending with an approve / request-changes recommendation. Reach for it to triage reviews or give contributors fast first-pass feedback.
Install
$ pnpm dlx shadcn@latest add https://agentcn.vercel.app/r/flue/github-review.json
Composition
agents/
└── github-review.ts # Chat review agent
workflows/
└── github-review.ts # pr-review workflow → typed Review
tools/
└── fetch-pr.ts # Fetches PR metadata + changed filesCustomization
- Reshape the review. Edit the
Reviewvalibot schema (add line numbers, suggested patches). - Tune depth + skips. Adjust the agent instructions for size thresholds and ignored paths.
- Post back to GitHub. Add a tool that creates a review via the GitHub API.
- Swap the model. Use Sonnet for depth or Haiku for speed.