Skip to content

About

A local merge queue and Mac build farm for AI agents, with plugins for mobile and game development.

Topics

Resources

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Queuekeeper

Queuekeeper is a local merge queue and build coordinator for one developer working with AI coding agents. Like traditional merge queues, it shortens development time by batching changes and running them through the expensive test suites once, pushing to main only what passed. Unlike other merge queues, however, it understands how to manage local tools and devices efficiently, making it ideal for mobile app and video game developers.

queuekeeper-sizzle.mp4

The dashboard in 23 seconds. The video is also in this repository as assets/queuekeeper-sizzle.mp4.

Why another merge queue?

When several agents work in parallel, their builds and tests can still compete for the same Mac, editor or test device. Queuekeeper lets you give agents work across one or more projects without having to schedule each run yourself.

  • Give each run its turn. Queuekeeper starts jobs as build capacity opens up, including jobs that require local development platforms like Xcode, Android Studio, or Unity. It can also reserve a physical phone or tablet for one agent at a time and give a macOS UI test exclusive use of a Mac's desktop.
  • Reuse simulator setup. Xcode simulator and Android emulator pools give each run its own instance and reuse state from a template that has already completed its first boot. Agents can get to testing sooner without setting up a fresh simulator or emulator each time.
  • Let agents follow their own work. Agents can start builds, run tests and submit commits without prompts. Queuekeeper reports what passed, which tests failed, or when a machine problem prevented a verdict, with next steps the agent can act on.
  • Run on your own Macs. One Mac is enough to start. Add more when you need more capacity, and Queuekeeper automatically distributes jobs across Macs that can run them and have room.

Related tools compares Queuekeeper feature by feature with other merge queues, including other local queues for AI agents, and says where they are the better choice.

You direct AI agents, each in a worktree of one of your projects. They land commits with qk land and get verdicts back, and run builds and tests with qk run. Inside Queuekeeper, preflight checks refuse bad entries in seconds, each project's merge queue batches and tests entries, admission and placement share every Mac's slots, and plugins drive the platform tools. It runs lanes on your build farm of Macs, simulators, emulators, editors and phones, pushes only what passed to main of each project, and shows you its state on the dashboard and in notifications.

Getting started

Queuekeeper needs macOS, Python 3.14 or newer and Git. Each project needs an origin remote it can push to without a prompt and must allow changes to land directly on main; Queuekeeper does not integrate through pull requests. Start with one Mac and add more later if builds need it. You can do each step below yourself, following the user guide, or ask an agent to do it.

  1. Install once per Mac. Clone this repository into ~/Development/queuekeeper and run python3 tools/install-checkout.py. Keep the checkout: the installed qk command runs from it (details).
  2. Configure each project. Add a queuekeeper.json whose gate runs the project's checks, enable the plugins it needs, and resolve what qk doctor reports. Each project keeps its own gate and queue while sharing the Mac's capacity.
  3. Teach your agents. Run qk agents setup --guard in each project. It writes the agent instructions into AGENTS.md or CLAUDE.md, so agents land work with qk land --wait instead of pushing to main and run builds and tests through qk run or qk admit, and adds Claude Code hooks that report entries that came back when a session starts and refuse pushes to main. Installing qk alone does not change how agents work.
  4. Land the setup. Commit the configuration and agent instructions on a branch, then run qk land --wait and follow it to its result. The first landing uses the checks in the setup commit and creates main if the remote has none. Later landings use main's queue policy (details).
  5. Follow the work in the dashboard, through notifications, or with qk queue status.

Project configuration

queuekeeper.json is a project’s Queuekeeper configuration file. It lives at the root of a repository and defines the project’s plugins, named checks called lanes, and the lanes the merge queue runs.

In this iOS example, queue.preflight runs a quick lint check before an entry joins the queue. queue.lanes names the two checks a batch must pass before landing a code change. The gate lane runs unit tests, and ui-smoke runs a small set of UI tests for critical flows on an iPhone simulator. Each lane’s timeout is in seconds.

{
  "schemaVersion": 1,
  "name": "MyApp",
  "plugins": ["queuekeeper_apple"],
  "lanes": {
    "lint": {
      "command": ["scripts/lint.sh"],
      "timeout": 30
    },
    "gate": {
      "command": [
        "xcodebuild", "test",
        "-project", "MyApp.xcodeproj",
        "-scheme", "MyApp",
        "-destination", "platform=iOS Simulator,name=iPhone 17 Pro",
        "-only-testing:MyAppTests"
      ],
      "timeout": 1800
    },
    "ui-smoke": {
      "command": [
        "xcodebuild", "test",
        "-project", "MyApp.xcodeproj",
        "-scheme", "MyApp",
        "-destination", "platform=iOS Simulator,name=iPhone 17 Pro",
        "-only-testing:MyAppUITests/SmokeTests"
      ],
      "timeout": 900
    }
  },
  "queue": {
    "preflight": ["lint"],
    "lanes": ["gate", "ui-smoke"]
  }
}

An agent can set up queuekeeper.json for you using the build and test commands your project already runs.

For more details, see the project configuration guide.

Dashboard

The dashboard is a web page of the queue and the build farm, served from your own Mac. It shows every project whose queue has run since the dashboard was turned on, all at once, and redraws itself as the queues change. The picker in its header narrows any tab to one project.

qk visibility enable dashboard
qk serve --open

Now shows one verdict on every queue, naming any project that needs a look, the day's totals, a row for each project, every round being tested, and every entry in progress and up next. New arrivals tested on top of the current batch are labeled Testing ahead. Its Flow map follows each entry from the agent that queued it, Claude, Codex or a person, through its project's queue and the round's gates to the Macs they run on and to main.

The dashboard's Now view across four projects: a one-sentence health verdict with a forecast and five signs, daily totals, an entry that came back and a flaky test needing attention, the Flow map with its dots moving from Claude, Codex and a person through each project's queue, the rounds' gates and two Macs to main, with two gates waiting for a Mac and an arc back to the agent whose entry came back, then four gates being tested and three entries up next, each tagged with its project.

Farm shows each Mac's slots, its load, and the work running and waiting on it, for every project. It also shows phone and tablet connections and reservations.

The dashboard's Farm tab: two Macs, each drawn as a laptop or desktop with a badge for its state, its slots in use, its CPU and memory, running and waiting work, plus an iPhone connection and reservation.

Trends sets the last 7 or 30 days against the ones before: landings per day, how often entries came back, gate times against each project's usual, and flaky tests. It also shows each project's day so far, today's lane runs on each Mac, when work lands by day and hour, and each lane's timing baseline against its recent passing runs.

The dashboard's Trends tab across four projects: landings per day, the share that came back, gate time against usual and flaky tests over the last 7 days against the 7 before; a row per project with today's landings, rounds and passing gate times; today's lane runs on two Macs; a grid of when work landed by day and hour over the last week; and each lane's p90 baseline and fail threshold drawn over its recent passing runs, with where a lane's history was marked stale.

Activity lists each round, newest first, with how each entry ended and a link to every lane's log, which opens in Logs with its failures marked.

The dashboard's Activity tab across four projects: three rounds being tested with their lanes' time so far, a hold and its resume, an entry that came back with the test that failed it and a flaky test a rerun passed, and rounds that landed, one of them a batch of two entries, each with its lanes and the commit it landed as.

See the user guide for details.

Notifications

Queuekeeper can tell you when a queue needs you, so you don't have to keep the dashboard open. It sends an alert when a queue holds for a cause only you can fix, when an entry comes back, and when a check finds a queue stuck. It sends each alert once. With the signed queue launcher, the check runs every two minutes, even with no session open.

qk visibility enable notify
qk notify set imessage to you@example.com   # also reach your phone
qk notify test --scheduled                  # prove the scheduled check reaches you

A Mac desktop with two Queuekeeper banners in its corner: lumen-ios's queue held for its owner because the remote refused its key, and an orbit-game entry that came back when its gate failed. Behind them, a terminal shows qk notify status with the banner and iMessage channels on, then the iMessage channel turned off and on again.

A macOS banner is on by default. An iMessage, a command of your own or a webhook (such as Slack's) can reach you away from your Mac. Each channel turns on and off by itself with qk notify enable and qk notify disable. Each kind of alert does too.

See the user guide for details.

Plugins

A plugin teaches Queuekeeper a platform. A project switches one on by listing its package in the plugins of its queuekeeper.json, such as "plugins": ["queuekeeper_apple"]. Omitting that key loads the core alone.

  • Apple lets agents build and test iOS and Mac apps without getting in each other's way. Each run gets its own simulator, reset from a warmed template in a fraction of a second; one build is tested on several device types at once; and agents take an iPhone or iPad in turn, with a run stopped before its reservation ends.
  • Android does the same for Android apps. Each run gets its own emulator, cloned from a warmed template, and one Gradle build's instrumented tests run on several emulators at once. Agents take an Android phone in turn, with Do Not Disturb set and confirmed over adb.
  • Mobile is what the Apple and Android plugins share: the record that reserves phones and tablets, bounded runs on them, the device pass, and which Mac reaches each device. Listing either platform brings it.
  • Unity runs a Unity project's editor unattended. It picks the editor the project pins, clears a project lock nothing holds, ends a batch run that has gone silent, and runs the project's tests.
  • Mac desktop handles a Mac's logged-in session when nobody is at it. Crash dialogs, notification banners, locked keychains and lapsed permissions are cleared, or the run is reported as unmeasured instead of failed. The mobile and Unity plugins build on it.

Documentation

  • User guide: setting up, landing changes, lanes and admission, the build farm, the agent interface, notifications and the dashboard, and troubleshooting.
  • Developer guide: how Queuekeeper works inside, the goals behind its scheduling, writing a visibility feature, and an index of the detailed reference guides.
  • Related tools: how Queuekeeper compares with other merge queues.
  • Contributing and security: reporting problems and sending changes.

License

Copyright 2026 Vocaro Technologies LLC

Apache License 2.0.

About

A local merge queue and Mac build farm for AI agents, with plugins for mobile and game development.

Topics

Resources

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages