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

# Agent PRs open against your deploy branch

> Why the Mintlify agent and automations open pull requests against your deploy branch, and how to send changes to a different branch.

When the Mintlify agent or an automation opens a pull request, it targets the deploy branch configured for your project (usually `main`). This is the branch Mintlify builds your live site from, so PRs land there by default and publish on merge.

If you want changes to go somewhere else, the control depends on how the run was started.

## Agent runs in Slack, the editor, or the dashboard

For a single agent run, name the branch you want in the prompt. The agent creates the pull request against the branch you name, or pushes commits directly to it when the branch already exists. For example:

* "Open the PR against the `staging` branch."
* "Push these commits to `docs-refresh`."

See [Send messages to the agent](/docs/agent/slack) for the Slack flow and [Choose how the agent publishes changes](/docs/agent/index#choose-how-the-agent-publishes-changes) for the workspace-level review process setting that decides between opening a PR and pushing directly to your deploy branch.

## Automations

Automations always open their pull requests against the deploy branch. There is no per-automation setting to target a different base branch. If you need automation output to land on a non-production branch, point the deployment itself at that branch in [Git Settings](https://app.mintlify.com/settings/deployment/git-settings), or use a separate deployment for that branch and run the automation there.

To stop automation PRs from merging without review, set the automation's update mode to **Modify and wait for review** on its configure page. See [Update mode](/docs/automations/manage#update-mode).

## Related settings

* [Choose how the agent publishes changes](/docs/agent/index#choose-how-the-agent-publishes-changes) — pull request vs. direct push, and how branch protection interacts with each.
* [Git Settings](https://app.mintlify.com/settings/deployment/git-settings) — change the deploy branch or the docs subdirectory the deployment builds from.


## Related topics

- [Automations overview](/docs/automations/index.md)
- [GitHub](/docs/deploy/github.md)
- [GitLab](/docs/deploy/gitlab.md)
