# GitHub PR Code Review

Fetches a GitHub pull request and returns adaptive, file-by-file code review feedback.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).



<DocsBaseSwitcher base="eve" agent="github-review" />

<AgentPreview
  agent="github-review"
  framework="eve"
  inputFields="[
  {
    name: &#x22;url&#x22;,
    label: &#x22;Pull request URL&#x22;,
    placeholder: &#x22;https://github.com/owner/repo/pull/123&#x22;,
    type: &#x22;text&#x22;,
  },
]"
/>

## Summary [#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 [#install]

```bash
npx shadcn@latest add https://agentcn.vercel.app/r/eve/github-review.json
```

## Composition [#composition]

```text
agent/
├── agent.ts          # Agent definition (model + config)
├── instructions.md   # Adaptive, file-by-file review instructions
└── tools/
    └── fetch_pr.ts   # Fetches PR metadata + changed files
```

## Customization [#customization]

* **Tune the depth thresholds.** Edit `instructions.md` to change how review depth
  scales with PR size.
* **Skip more files.** Add glob patterns for generated or vendored paths.
* **Post back to GitHub.** Add a tool that creates a review via the GitHub API
  instead of replying in chat.
* **Swap the model.** Edit `agent/agent.ts`.
