Merge queue for AI coding agents.

Claude Code, Codex and Cursor agents open pull requests faster than main can take them. Merget resolves the merge conflicts between them, so your agents keep building.

Keep your agents. Keep your Git workflow.

Claude Code, Codex, Cursor and other coding agents keep working in their git worktrees, pushing branches and opening pull requests. Merget works from GitHub, with a plugin and MCP server for agents that need the queue’s context.

Parallel agents, one main.

Worktrees keep agents out of each other’s files. Their branches still meet at merge time. These guides cover the setup for each agent and what to do when the branches collide.

To set up an agent, paste this into it:

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

Plugin and MCP server

Claude Code, Codex, GitHub Copilot, Cursor, Devin, Kiro and Google Antigravity use the Merget plugin; other clients connect over MCP. See agent setup.

Resolve known conflicts directly. Bring in an agent when the fix needs judgment.

Resolved directly

  • Supported conflicts with a known shape.
  • Handled deterministically, without an agent.
  • Repeatable for every case it covers.
  • Validated before the change moves on.

Sent to an agent

  • Harder cases that need judgment.
  • The agent uses a model, in Queue and Autonomous modes only.
  • The result faces the same validation.
  • Ambiguous or failed results stop for a person.

Independent groups don’t wait for each other.

Conflicting pull requests resolve against the code they will join. Groups that do not collide run alongside them.

Candidates

Symbol index

Merget finds pull requests that touch connected symbols, then verifies which pairs conflict.

In order

Predicted target

Inside a group, Merget resolves each pull request against the expected result of the pull requests ahead of it.

Side by side

Parallel groups

Groups with no verified conflicts can resolve at the same time.

Capacity

Bounded workers

Worker and memory limits set how many groups run at once.

Resolve the conflict. Keep your merge requirements in control.

Merget runs your required checks on the prepared result, follows your review rules and rechecks the actual target before landing. Resolving a conflict does not by itself make a pull request ready to merge.

Stale work is checked again, and a fix that fails its checks comes back to a person.

Compare the automation modes

Parallel coding agent FAQ. Resolution, order and control.

Which conflicts are resolved without an agent?

Merget resolves supported conflicts with known shapes deterministically and uses agent assistance for harder cases. See the resolution benchmark and try it on your own pull requests in Advisory mode.

What does an agent see when it resolves a conflict?

The repair agent has a complete repository checkout. It can read files and run commands; code it reads and conflict context may be sent to a model service. Advisory mode makes no model requests.

Does an agent’s fix skip review?

No. An agent’s fix goes through the same validation, required checks and reviews as any other change.

What happens when the target branch moves?

Merget compares prepared work with the new target. If an assumption no longer holds, the work is prepared again.

How much runs at once?

Independent groups run within worker and memory limits. Conflicting pull requests inside one group resolve in queue order.

Do I have to change how my agents work?

No. Agents keep pushing branches and opening pull requests on GitHub. No label, comment or enqueue command is needed, and stacked pull requests work without a stacking tool.

How do I connect my coding agent to Merget?

Paste the setup prompt on this page into the agent, or install the Merget plugin. It gives the agent the queue’s findings, order and status through an MCP server. See agent setup.

How do I try it?

Sign up and connect one repository; it starts in Advisory mode. To talk through your agents and merge volume first, book a call.