AgentMerge: a merge gate that lets agent-written PRs land without breaking main
The problem
Coding agents now open PRs faster than teams can review them. LinearB's 2026 benchmarks (8.1M PRs, 4,813 teams) show AI PRs merge within 30 days only 32.7% of the time versus 84.4% for manual PRs, and sit unopened 17.6 hours versus 3.4 hours. Organ, a company run by AI agents, reported 62 open agent PRs stalled at the merge stage in September 2026, and Anthropic reports over 30,000 merges a day. The bottleneck moved from writing code to absorbing it.
The idea
Why now
The agent-PR flood is a 2026 phenomenon, and the three pieces needed to gate it all shipped within weeks: worktree-isolated agent IDEs (ThinkRail), failure-triage investigation agents (QA Wolf), and calibrated small decision models for go/no-go judgments. Merge queues were built for human PRs; nobody has built the verification gate for agent PRs.
What it combines
ThinkRail's one-git-worktree-per-task isolation plus QA Wolf's lead-investigator failure triage plus Jev-style calibrated decision models plus Entire's agent-action trails: isolated execution, grouped failure diagnosis, a scored merge decision, and an auditable trail of what the agent did. The mix matters because ordering PRs (what queues do) is useless when the PRs themselves are unverified; verification is the missing layer.
MVP
Weekend scope: a GitHub App for one repo that, on PR open, spins a worktree, runs the test suite, posts a go/no-go comment with failure groups and evidence, and never merges. Deliberately skip auto-merge, multi-repo support, custom rules, and rebase automation.
How it makes money
The moat
Merge-queue incumbents cannot add verification without rebuilding: their engines assume PRs arrive reviewed and only need ordering, while verification needs isolated agent execution, failure triage, and calibrated decisions — a different system, not a feature. Their pricing is per-seat ordering; a verification gate priced on merges would also cannibalize the simple-queue story they sell. The per-repo failure-triage knowledge base compounds with use and is not portable.
Distribution
B2B SaaS sold to VP Engineering and platform teams at companies where agents author most PRs. Wedge: a GitHub App installed on one repo in advisory mode, proving precision on the team's own history, then expanding org-wide and flipping on enforce mode.
Why it wins
Mergify, Aviator, Graphite, and Trunk order and batch PRs that humans already reviewed; none of them re-verifies an agent PR in isolation, triages its failures, or scores whether it should merge. AgentMerge is the gate underneath the queue, not another queue.
Risks
Biggest risk: teams distrust an automated gate and keep it in advisory mode forever. The MVP de-risks this by reporting precision and recall against the team's own merged history before anyone enables enforcement.
Build it with
- JetBrains ThinkRail: agentic IDE where every agent task gets its own git worktreeOne git worktree per task is the isolation model for verifying each agent PR without touching main.
- QA Wolf AI Investigation: agents that triage failing tests before the suite finishesLead-investigator pattern for grouping failures by root cause instead of re-investigating each failure separately.
- Entire: former GitHub CEO's agent-first Git forge replaces pull requests with TrailsAgent-first forge replacing PRs with trails — the audit-trail model for what each agent did.
- Jev: TypeSafe AI's System One models for structured decisionsCalibrated decision layer for the go/no-go merge judgment with a confidence score attached.
Repo to start from
agentmerge — GitHub App that gates agent-authored PRs through isolated worktree verification, failure triage, and a calibrated merge decision.
Evidence
- AI pull requests need an owner: what LinearB's 2026 data says
- AI agent pull requests stall at merge due to conflicts
- Anthropic's 30,000-Merge Problem
- Mergify merge queue pricing
Get the week's best AI launches, plus 3 ideas worth building
One email every Saturday. Ranked by traction, not hype. Free.