> ## Documentation Index
> Fetch the complete documentation index at: https://predev.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Agents: start with https://docs.pre.dev/agents.md, which has complete recipes, plan access, polling rules, errors and limits.
> Authenticate with the workspace API key (pdk_…) from Integrations → Built-in, sent as Authorization: Bearer <key>.
> REST API: https://api.pre.dev (OpenAPI: https://docs.pre.dev/api-reference/openapi.json). AI Gateway: https://api.pre.dev/v1, OpenAI-compatible (OpenAPI: https://docs.pre.dev/api-reference/ai-gateway.openapi.json).
> pre.dev MCP server: npx -y @predotdev/mcp setup adds it to every local coding agent with every pre.dev tool plus the user's own Chrome; the hosted server is https://api.pre.dev/mcp. Search these docs over MCP at https://docs.pre.dev/mcp.

# Pull requests and merges

> Review session changes and choose how they enter your repository.

Connect the project to GitHub to use hosted branch and pull-request workflows. A session's work can be reviewed as a diff and integrated through the session controls or a requested PR workflow.

## Request a reviewable change

State the target branch and review behavior in the task:

```text theme={null}
Implement CSV export on a feature branch. Run the relevant checks
and open a pull request against main. Leave the PR open for review.
Include the behavior change, verification, and any known limitations.
```

Review the code, check results, and preview evidence. Request corrections in the relevant session so the agent works against the right branch and context.

## Merge into Main

A web session's **Merge into Main** action creates a GitHub PR and merges it automatically when the change is clean. It is an integration action, so inspect the session before confirming it; the menu asks you to click again to confirm.

If conflicts occur, ask the agent in Main to resolve them, or resolve them in GitHub, then verify the result. The PR URL and session status show the outcome. Repository permissions and branch rules can prevent a merge.

## Keep the checkout current

When changes land outside pre.dev, use the available **Refresh from GitHub** action to synchronize the hosted code. Check the selected branch and any local changes before refreshing or starting another build.

Direct agent work, sprint workflows, and session merges do not all use identical commit behavior. Specify restrictions that matter to the task and enforce branch protection in the repository where appropriate.

See [GitHub connections](https://predev.mintlify.site/coding-agent/projects/github-integration.md), [parallel sessions](https://predev.mintlify.site/coding-agent/building/sessions-and-parallel-agents.md), and [verification](https://predev.mintlify.site/coding-agent/building/acceptance-criteria.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.