<!-- Quickstart | Merget Docs · https://merget.ai/docs/quickstart -->

# Quickstart

Sign in, connect GitHub, turn on a repository and see Merget check your first pull request.

Start with one repository. A repository starts in Queue mode unless you choose another when you turn it on; choose Advisory mode to read findings and the suggested merge order before allowing Merget to change branches or merge pull requests.

Tip

Let your agent do this. Paste this prompt into Claude Code, Codex, Cursor or any other coding agent (see [Install in your coding agent](https://merget.ai/docs/coding-agents)). You need no Merget account first: signing in when your agent asks creates one (choose Create account). The agent installs Merget's tools and takes you through steps 2 to 6, handing you the ones that are yours: those that happen in your browser, and connecting GitHub, which an organization owner does on the page the agent links to:

```
Fetch and execute the instructions to set me up for Merget from https://sema.merget.ai/agent-setup/prompt.md
```

Select Onboard your agent to Merget on Merge Queues to copy the same prompt directly. See [Onboard your agent](https://merget.ai/docs/agents#onboard).

## Before you begin

You need access to a Merget organization and to the GitHub repository you want to connect. An organization owner connects the GitHub App. Enabling and configuring a repository requires Maintain or Admin access to it on GitHub.

If the dashboard says No access to Merget, contact support at [support@merget.ai](mailto:support@merget.ai). See [Help and support](https://merget.ai/docs/help).

## 1. Sign in

Open the dashboard and complete Merget sign-in. Choose your organization if you belong to more than one. If automatic sign-in does not continue, use Sign in with Merget.

Your organization opens on Home. Its setup card shows the next step; once repositories are enabled, Home also shows queue activity, delivery insights and recent runs. See [Dashboard tour](https://merget.ai/docs/dashboard) and [Sign in and organizations](https://merget.ai/docs/sign-in).

If automatic sign-in pauses, use Sign in with Merget to continue.

What to look for

- Sign-in normally opens automatically. Use the button to continue if it pauses.
- Use your Merget account, then choose an organization you can access.

## 2. Connect GitHub

On Home, choose Set up Merget (or Connect GitHub, if your GitHub account is not linked yet). Both open the [setup page](https://merget.ai/docs/github-app#setup-page), whose one button links your GitHub account if needed and installs the Merget GitHub App. You can also start from Settings › GitHub.

On GitHub, choose the account that owns your repositories and select which repositories the App may access.

Complete installation. GitHub sends you back to the setup page. If prompted, choose Verify with GitHub to confirm your account.

Tick the repositories to turn on, keep Queue or choose another mode, and click Turn on.

If the App is already installed, choose Already installed? Connect it and connect the existing installation. See [Install the GitHub App](https://merget.ai/docs/github-app).

Tip

Let your agent guide you. Connecting GitHub is the organization owner's step, which an agent never takes: with the setup prompt pasted, your agent gives you a link to the setup page for the repository it works in. One button there connects GitHub and turns that repository on in Queue mode; the agent waits, and picks up once you are done.

Illustration: connect the GitHub App, choose its repository access, then enable repositories in Merget.

What to look for

- In the intended Merget organization, an owner opens Settings, then GitHub, then Add GitHub organization.
- On GitHub, choose the account and repository access, review permissions and install the Merget App. Additional verification may be requested.
- Return to Repositories in Merget. The linked repositories start turned off; enable each one you want to use.

## 3. Enable a repository

Open Repositories. Choose All or Disabled if needed, find your repository, and turn on its Enabled switch.

Choose the mode in the dialog that opens. Queue, tagged Recommended and selected to start with, runs Merget's merge queue. To try out Merget's analysis first, without Merget changing any code, click Show 2 other modes and choose Advisory; steps 5 and 6 of this guide describe a repository that starts there. Click Turn on.

Click Configure on that repository's row.

Check Target branch. Leave it empty to use the repository's default branch. Click Save if you changed a setting; otherwise close the drawer.

See [Enable repositories](https://merget.ai/docs/repositories) and [Repository settings](https://merget.ai/docs/repository-settings).

Tip

Let your agent do this. Ask, for example, "Enable Merget on acme/payments." A repository the agent turns on starts in Queue mode unless you name another: the agent says what Queue mode lets Merget do and asks before it turns the repository on; say "in Advisory mode" to start there instead. The agent needs the permission to change repository settings, and you need Maintain or Admin on the repository in GitHub.

Repositories is where you choose what Merget watches.

What to look for

- Turning a repository on the first time asks for its automation mode.
- Configure opens the settings drawer for that row; mode, target and policy changes are saved there.

## 4. Open a pull request

Open a non-draft pull request against the target branch, mark a draft ready for review, or push to an existing pull request. Merget adds it to the queue automatically; no label or comment command is needed.

On GitHub, look for the check named Merget. In the dashboard, open the repository from either Table or Board on Merge Queues. Use Include empty queues to find a quiet enabled repository; use Clear filters first if a search or another filter is hiding it.

Read merge order from the list; use the map to inspect relationships.

What to look for

- Position is shown beside every pull request. Readiness appears beneath its title.
- Switch the left pane between Merge order and Git tree. Select a pull request to open its details.

## 5. Read the result

GitHub: open the Merget check. In Advisory mode it reports what was found and concludes Neutral, or fails when a finding blocks. In Queue mode it reports the preparation and the pull request's place in the queue: Success when it may proceed, Action required while it waits, Failure when it is blocked. Details opens the run. See [The Merget check](https://merget.ai/docs/pr-check#conclusions).

Queue: select a pull request in Merge order to open its details. Read Advisory status or Merge eligibility first, then Related pull requests. Expand Analysis & findings or Preparation details as needed. Advisory pull requests read Suggested order, or Blocked when a finding blocks.

Run: read Outcome, then Findings. Advisory repositories show a File report grouped by file. Use Search findings or files and the outcome filter to narrow it down. Open a finding to compare What was detected with Merget outcome.

See [Findings](https://merget.ai/docs/findings) and [Run history and details](https://merget.ai/docs/run-history).

The run page separates the outcome from the evidence behind it.

What to look for

- The header identifies the pull request, analyzed commits and final outcome.
- Each count is what the analysis detected, the same as in Runs; the line beneath says how many Merget resolved and how many remain.
- Finding dispositions distinguish fixed findings from remaining work. Read Detection and resolution below to review changes.

## 6. Turn on more automation when ready

If you started in Advisory, or want Merget to merge by itself, in Configure › Automation mode choose:

Queue to have Merget prepare pull requests and publish fixes while you choose when to merge.

Autonomous to have Merget also merge ready work automatically.

Click Save. If [GitHub permission change required](https://merget.ai/docs/repositories#github-permission-change-required) appears, a GitHub installation administrator must approve Contents: write through Update permissions on GitHub. Then click Try again. The repository keeps its current mode until the permission is granted.

Queue and Autonomous repositories show a Findings explorer on run pages, with a selectable list and the chosen finding's details. The repository queue's Needs you tab collects work that needs a person. Open Now in the queue header for current progress when it is available, or the Queue status control for Plan status and protection details.

Tip

Let your agent do this. Ask, for example, "Is acme/payments ready for Queue mode?" The agent reads what each mode needs from GitHub and tells you what is missing; approving a GitHub permission change stays your step.

Configure opens a drawer for one repository.

What to look for

- Simple starts with Enable Merget and the automation mode, then the target branch. Scroll down for the merge method.
- Queue comes first, tagged Recommended. Choose it, Advisory or Autonomous, then use Save at the bottom.

## 7. Set up CI and merging

Before relying on automated preparation and batching:

Make relevant workflows run on pushes to `merget/queue/**`. See [Batching](https://merget.ai/docs/batching#make-ci-run-on-batch-branches).

Keep the required checks and reviews your team needs. A ready batch can report that no CI ran when no checks are required; readiness is not proof of a successful build.

Optionally require the Merget check in GitHub to keep manual merges in queue order. See [Branch protection](https://merget.ai/docs/branch-protection).

You can now explore [the queue workspace](https://merget.ai/docs/repository-queue), [connect coding agents](https://merget.ai/docs/agents), or [add teammates](https://merget.ai/docs/team).

Home brings the organization's queue, delivery and recent work together.

What to look for

- Merge Queue summarizes repository readiness and links to active queues.
- Open a repository from Merge Queue or a recent run to inspect its details.
- The delivery overview summarizes the selected period; Analytics provides more detail.

## Follow setup from Home

The banner on Home guides you through nine milestones: connect GitHub, choose a plan, connect an agent, add teammates, enable repositories, open a first pull request, review the merge queue, explore the code graph, and view analytics. It shows the next incomplete step and a button that opens the relevant page.

Onboard your agent to Merget copies the setup prompt for your coding agent. Prompt your agent appears on the team and repository steps; adding teammates still needs an organization owner in the dashboard. If you work alone, choose Skip, I'm a solo dev on the team step.

Progress reflects completed setup and visits, so copying a prompt alone does not finish connecting an agent. You can open any dashboard section from the sidebar while setup is in progress.
