# PR first look

One comment on each new pull request: what it changes in three lines, risky spots by file and line, missing tests, questions for the author.

Requires GitHub, through Composio.

## Install

No one has run this against real GitHub accounts through Composio yet. Its eval cases use stand-ins.

```sh
npx @parcha/agentrun template install github:Parcha-ai/agentrun-templates/templates/pr-first-look@9ed9ff98e3130d3dce065743e8c60bb13e84f646 --trust
```

Or open `<your AgentRun address>/#/templates/install?src=github%3AParcha-ai%2Fagentrun-templates%2Ftemplates%2Fpr-first-look%409ed9ff98e3130d3dce065743e8c60bb13e84f646`. Pinned to commit 9ed9ff98e3130d3dce065743e8c60bb13e84f646.

### Install with your agent

Copy this prompt into your coding agent:

```text
Help me install the PR first look template on my existing AgentRun.

Pinned template source: github:Parcha-ai/agentrun-templates/templates/pr-first-look@9ed9ff98e3130d3dce065743e8c60bb13e84f646
Read the template and its instructions: https://github.com/Parcha-ai/agentrun-templates/tree/9ed9ff98e3130d3dce065743e8c60bb13e84f646/templates/pr-first-look

Ask for my AgentRun address or local installation directory if you do not already know it. Confirm which instance to use before making changes.
Read https://agentrun.ai/SKILL.md and inspect the installed version's template install help. Use the installation workflow that version supports.
Review this template's setup, instructions and requested tools with me, then install the pinned version on that instance with the settings and permissions I approve. Do not start a second instance or redeploy my existing one.
If this version cannot install templates, explain what is missing and the supported next step. Verify the result and tell me how to run the installed agent.
```

## What it does

Leaves one comment on each new pull request in your GitHub repository within minutes of it being opened, before a reviewer gets to it. The comment says what the PR changes in three lines, points at the risky spots by file and line, names the changes that came with no test, and asks the author the questions a reviewer would. It reads the diff up to a size you set and says which files it skipped. It never approves, requests changes or merges, and leaves drafts and bot PRs alone unless you say otherwise. Connects through Composio's GitHub toolkit. The comment waits for your OK unless you pick Never for approvals at install; it stays held to your repository either way.

- Skill `first-look`: Write one first-look comment on a new GitHub pull request through Composio's GitHub tools. Read the PR and its diff up to a line cap, say what it changes in three lines, point at risky spots by file and line, name changed code that came with no test, and ask the author what a reviewer would. Never approve, request changes or merge. Use for the pull-request-opened trigger and for "first look at PR #N".

## What starts it

- A GitHub event through Composio: pull request created. At most 3 at once.
- By hand, any time: from the console, the API or the CLI.

## Inputs

| Name | Type | Required | What it is |
| --- | --- | --- | --- |
| `pr_number` | integer, at least 1 | no | Look at one pull request by hand. Leave it out on the trigger's runs: the event names the pull request. Example: `512`. |

### Setup, filled in once at install

| Name | Type | Required | What it is |
| --- | --- | --- | --- |
| `owner` | string | yes | The GitHub account or organization that owns the repository, like Parcha-ai. |
| `repo` | string | yes | The repository's name without the owner, like agentrun. |
| `skip_drafts` | boolean | no | Leave draft pull requests alone (true unless you set it). A draft marked ready later does not fire again: run it by hand with its number. Default: `true`. |
| `skip_bots` | boolean | no | Leave pull requests opened by bots alone, such as Dependabot and Renovate (true unless you set it) Default: `true`. |
| `max_diff_lines` | integer, 100 to 6000 | no | The most changed lines it reads from one pull request; files past it are named as skipped. 1500 unless you set it. Default: `1500`. |

## What it needs

- Harness: pi, claude-agent, codex
- Model: balanced tier, medium effort
- Tools: read
- Composio GitHub tools: GITHUB_GET_A_PULL_REQUEST, GITHUB_LIST_PULL_REQUESTS_FILES, GITHUB_LIST_ISSUE_COMMENTS, GITHUB_CREATE_AN_ISSUE_COMMENT. Reads the new pull request, its changed files and its comments, and posts one comment on it. Every call is held to the repository you set. It has no tool that reviews, approves, labels, closes or merges.
- Computer: Wherever your AgentRun puts a new agent
- Keys: A model key
- Learning: on

## Sample output

No sample output ships with this template yet.

## Tested

Passes 7 of 7 eval cases on pi, 7 of 7 on Claude Code and 7 of 7 on Codex. Live by hand on a real pull request (2026-11-20, pi): passed, read-only. The server denied the comment, so nothing was posted.

7 eval cases: docs-only, draft-skipped, injection-in-diff, large-diff-cap, looked-on-page-2, over-300-files, risky-auth-change.

## Source

- Package: https://github.com/Parcha-ai/agentrun-templates/tree/9ed9ff98e3130d3dce065743e8c60bb13e84f646/templates/pr-first-look
- Publisher: Parcha-ai
- Author: Parcha Labs
- Version: 0.1.0
- License: Apache-2.0
- Category: Engineering
- Page: https://marketplace.agentrun.ai/templates/pr-first-look/
