> Switchyard: the page at https://switchyard.so/compare/github-merge-queue as markdown. Every page is listed at https://switchyard.so/llms.txt

Compare

# Switchyard and GitHub's merge queue

Both keep a busy main branch passing its checks. They are alternatives for the merge step, not layers: Switchyard does not use GitHub's merge queue. This page says what each does, when GitHub's merge queue is the better choice, and when Switchyard is.

Checked on 24 November 2026. Every claim about GitHub links GitHub's own documentation.

## GitHub's merge queue

It merges pull requests into a busy branch. Each pull request added to the queue is tested with the latest version of the target branch and the pull requests already in the queue, and merged when the required checks pass. [GitHub: about merge queues](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue#about-merge-queues).

## Switchyard

It gives each coding agent its own task, warns two tasks when their work overlaps while they are still working, tests submitted tasks together in a merge queue, and merges them on main when the checks pass and the rules allow. [Introduction](/docs/introduction).

## What the two have in common

- Both test a change with the latest main and the changes ahead of it before it merges, so what merges is what was tested.
- Both merge in order, and take out a change whose checks fail so that the changes behind it can go on.
- Both can use checks that run on GitHub Actions.
- Both land work on a protected main on GitHub.

## Side by side

| What | GitHub's merge queue | Switchyard |
|---|---|---|
| Who can use it | Any public repository owned by an organization. Private repositories only where the organization uses GitHub Enterprise Cloud. [GitHub: who can use this feature](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue). | A GitHub repository you administer, once the Switchyard App is installed on it, or a repository hosted by Switchyard. Repositories up to 3 GB on Launch and 8 GB on Scale and Enterprise. [Connect a GitHub repository](/docs/connect-github). |
| Where it starts | At a pull request. Someone with write access adds it to the queue with Merge when ready, once it has passed its required checks, or earlier, and GitHub then adds it when the requirements are met. [GitHub: about merge queues](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue#about-merge-queues) and [GitHub: merging a pull request with a merge queue](https://docs.github.com/en/pull-requests/how-tos/merge-and-close-pull-requests/merging-a-pull-request-with-a-merge-queue). | Before a pull request exists. An agent starts a task and writes a plan of the paths, symbols and interfaces it expects to change. A pull request is optional: one with the label `switchyard` goes through the merge queue like a task. [Pull requests in the merge queue](/docs/pull-requests). |
| When two changes overlap | After the queue groups a pull request with the target branch and the changes ahead of it, a pull request with failed required checks or conflicts with the base branch is removed from the queue. [GitHub: failing CI](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue#failing-ci). | Both tasks are told while they work, from their plans and from pushed code. Warnings about symbols and dependencies cover six languages; other files get warnings about overlapping lines. Each warning has one suggestion. [Tradeoffs](/docs/tradeoffs#code-aware-warnings-cover-six-languages). |
| What one build tests | One pull request: the queue makes a temporary branch with the target branch, the pull requests ahead of it and that pull request. Merge limits group the merges to the base branch, not the builds. [GitHub: how merge queues work](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue#how-merge-queues-work). | A batch: main plus up to 32 submitted tasks, in order, as one test build. Switchyard chooses the number from how recent batches went and how many tasks wait. [Limits](/docs/limits#checks-and-the-merge-queue). |
| Builds at the same time | From 1 to 100, the queue's build concurrency setting. [GitHub: managing a merge queue](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue#managing-a-merge-queue). | One batch at a time on a project that follows a GitHub repository. Up to 20 batches, 16 unless you set it, only on a project hosted by Switchyard, made since 19 November 2026, with its checks on Switchyard's machines. [Write rules and checks](/docs/rules#share-the-merge-queue-fairly). |
| When checks fail | The pull request is removed from the queue, and the temporary branch of the pull request behind it is made again without it. [GitHub: failing CI](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue#failing-ci). | A failed check runs once more before any task is blamed. If it fails again, the merge queue finds the task that caused the failure and sends back that task only, with the reason; the other tasks stay in the merge queue. The extra runs are billed. [How a task reaches main](/docs/task-lifecycle#what-sent-back-means). |
| When a change conflicts with main | The pull request is removed from the queue. [GitHub: failing CI](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue#failing-ci). | Five steps try to fix the conflict, in order: Git merge, file rules, code rules, an AI suggestion unless the organization turned AI fixes off, then a person. A fix the file rules wrote, or a suggestion an agent accepted, waits for a person's approval unless the project lets fixes merge without one. A task whose conflict stays is sent back. [Fix a conflict](/docs/conflicts). |
| Flaky tests | A setting, only merge non-failing pull requests. Turned off, a pull request that failed its required checks can be merged in a group whose last pull request passed them. [GitHub: managing a merge queue](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue#managing-a-merge-queue). | The one more run before any task is blamed. A check that failed and then passed on the same tree is counted as a flaky check caught, in the project's value. [Concepts](/docs/concepts#value). |
| Where checks run | On GitHub Actions or your own CI provider. A GitHub Actions workflow must use the `merge_group` event. [GitHub: configuring CI for merge queues](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue#configuring-continuous-integration-ci-workflows-for-merge-queues). | On Switchyard's machines: a new machine for each check, with no secrets, billed per second, minimum one minute per job. Or on your own GitHub Actions, which Switchyard waits for. A pass on exactly the same code is reused, not run again. [Write rules and checks](/docs/rules#step-2-add-a-check). |
| Moving a change ahead | An option to jump to the top of the queue, which causes a full rebuild of all in-progress pull requests. [GitHub: jumping to the top of the queue](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue#jumping-to-the-top-of-the-queue). | Three lanes: hotfix, priority and normal. A project admin makes a task a hotfix, and a batch whose checks have started is never stopped for one. [Move a task ahead in the merge queue](/docs/merge-lanes). |
| How it lands | By merge, rebase or squash, the queue's merge method setting. [GitHub: managing a merge queue](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue#managing-a-merge-queue). | One push to main for a batch. Where main is protected, one pull request for each batch, at the commit that passed the checks. A merge commit, or a rebase when the rules require linear history; a squash only when nothing else is allowed. [When main is protected](/docs/connect-github#when-main-is-protected). |
| Price | Part of GitHub and, for private repositories, of GitHub Enterprise Cloud. GitHub's pricing page lists Enterprise at $21 per user a month. [GitHub: pricing](https://github.com/pricing). | From $20 a month on Launch: each month you pay the larger of the plan's minimum and your usage. The first week is $1, and the card is taken before work starts. Agents, tasks, merges and people are not metered. [Pricing](/pricing). |
| Who you trust | Nobody new: a repository administrator turns the merge queue on in the branch protection of the base branch. [GitHub: managing a merge queue](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue#managing-a-merge-queue). | A second company. The Switchyard App has write access to contents, pull requests, checks and workflows, Switchyard keeps a copy of the repository in its own Git store, and the service is new. [Security and trust](/docs/security#who-can-reach-what). |

## Choose GitHub's merge queue when

- Your repository is public and owned by an organization, or your organization already uses GitHub Enterprise Cloud. The queue is there, with no second vendor and no GitHub App to give write access.
- Your changes are pull requests that people open and review, and a build for each pull request is affordable.
- You want many builds at once: its build concurrency goes up to 100. On a project that follows a GitHub repository, Switchyard tests one batch at a time.
- Your checks already run on GitHub Actions, and adding the `merge_group` event is all you want to change.
- You do not want a new company between your agents and main. Switchyard is new.

## Choose Switchyard when

- Several agents work on one repository and collide before any pull request exists. Tasks, plans and warnings are for that stage.
- A build for each change is the cost or the wait. One test build covers a batch of up to 32 tasks when it passes, and a pass on the same code is reused. A batch that fails costs the second run and the runs that find the task.
- A failed or conflicted change should go back to the agent that wrote it, with the reason, after the conflict steps have tried to fix it.
- Your repository is private and your organization does not use GitHub Enterprise Cloud.
- You want the merge queue to run the checks itself, on machines billed by the second.
- Your agents should do the work themselves, through plain Git, the yard CLI, MCP or the REST API.

## Why we built it this way

Switchyard was built for one case: several coding agents changing one repository at the same time. Each choice below follows from that case, and each has a cost that this page names.

### One build for a batch

Agents submit many small changes close together, so the merge queue tests main plus up to 32 submitted tasks as one build. When the build passes, one run of the checks has covered all of them. When it fails, the failed check runs once more, the task that broke the batch is found and sent back, and those extra runs are billed. A batch saves check time only while most batches pass. The [limits](/docs/limits#checks-and-the-merge-queue) page has the numbers.

### Warnings before a pull request

Two agents can start on the same function minutes apart. If the first check comes at the merge, both have already done the work. So each task says what it will touch in a plan, Switchyard merges main with every active task again as tasks push, and both tasks hear about an overlap while they are still working, each with one suggestion. [Concepts](/docs/concepts#warning) defines a plan, a warning and the merge preview.

### Checks on our machines

A test build is a commit the merge queue makes, main plus the batch, so the queue needs somewhere to run the checks on it. Switchyard can run them itself: each check on a new machine, with the test build checked out and no credential from Switchyard, billed for the time its command runs. Because it keeps each result by the content of the tree, a tree that already passed is not run again. A check can wait for your own GitHub Actions instead, and then you pay your CI provider and not Switchyard. [Write rules and checks](/docs/rules#use-tests-on-github-actions) has both ways.

### Its own Git store

Every task is its own copy of the repository, and a push's commits are stored before Git is told that the push succeeded. Switchyard keeps them in a Git store of its own, one for each project, so tasks keep pushing, planning and being tested while GitHub does not answer; merges on a followed repository wait until it does. The cost is a second copy of your code with a new company. On a project that follows a GitHub repository, GitHub still holds main. The [architecture](/docs/architecture#your-code) page says how it is kept.

## Using both

Switchyard does not use GitHub's merge queue. A main that requires GitHub's merge queue needs the Switchyard App as a bypass actor on its ruleset, and Switchyard then pushes tested work straight to main. [When main is protected](/docs/connect-github#when-main-is-protected) has the steps.

## Sources

Checked on 24 November 2026. Products change: if a line here is out of date, [tell us](/contact). We have not measured Switchyard against GitHub's merge queue, so this page makes no claim about which is faster.

- [GitHub Docs: managing a merge queue](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue)
- [GitHub Docs: merging a pull request with a merge queue](https://docs.github.com/en/pull-requests/how-tos/merge-and-close-pull-requests/merging-a-pull-request-with-a-merge-queue)
- [GitHub: pricing](https://github.com/pricing)
- [Switchyard docs](/docs/introduction) and [pricing](/pricing), for every line about Switchyard
