Show HN: A local merge queue for parallel Claude Code agents A developer released claude-code-merge-queue, a free local merge queue that serializes landings from parallel Claude Code agents to prevent push races and build flakiness. The tool runs entirely on the user's machine with zero cost, unlike GitHub's Merge Queue which requires Enterprise Cloud for private repos and charges per landing in Actions minutes. The local, zero-cost merge queue for parallel Claude Code agents. Several agents land, build, and test at the same time — this serializes it so push races, redundant heavy builds, and shared-resource test flakiness can't happen. npm install --save-dev claude-code-merge-queue or: pnpm add -D / yarn add -D / bun add -d npx claude-code-merge-queue init ⚙️ Configuration %EF%B8%8F-configuration 🆚 vs. GitHub's Merge Queue -vs-githubs-merge-queue 🧰 What's in the box -whats-in-the-box 🚨 The emergency hatch -the-emergency-hatch 🔍 Know the limits -know-the-limits 📄 License -license Everything lives in one file — see examples/claude-code-merge-queue.config.mjs /funador/claude-code-merge-queue/blob/main/examples/claude-code-merge-queue.config.mjs for every field with comments. The short version: export default { branchPrefix: "lane/", // lane/1, lane/2, ... worktreeSuffix: "-lane-", // ../your-repo-lane-1 portBase: 3000, // lane n gets portBase + n integrationBranch: "main", // where agents land — see below productionBranch: null, // set this for a two-stage model — see below protectedBranches: , // extra branches beyond the two above; most repos need none regenerableFiles: , // files a build tool rewrites — never block a rebase on these symlinks: ".env", ".env.local", "node modules" , buildOutputDirs: "dist", "build", ".next" , // preview never copies these onto your checkout checkCommand: "npm run check", // what actually gates a landing — see below checksRequired: true, // false = deliberately run with none; see below }; A malformed config empty branch names, a negative port, productionBranch equal to integrationBranch , ... fails loud with every problem listed, the moment any command loads it — not a mysterious failure three steps later. | GitHub Merge Queue | Claude Code Merge Queue | | |---|---|---| | Private repo | Enterprise Cloud only | Any plan, any repo | | Cost per landing | GitHub Actions minutes, every queue attempt | $0 — runs on your own machine | | Requires | A pull request | Nothing — direct rebase + push | Same idea — serialize landings, test before merge, keep history clean — run locally instead of in someone else's billed cloud. | Command | What it does | |---|---| claude-code-merge-queue hook worktree-create | A Claude Code WorktreeCreate hook. Plugs Claude Code Merge Queue's numbered lanes into Claude's native worktree creation. | claude-code-merge-queue build-lock --