Skip to content
New on mainFlaky-check flag and MCP results without polling

Let your coding agents share one computer without overloading it.

DeployOnTime's machine queue is one waiting line for the heavy jobs on your computer: test suites, builds, end-to-end runs. At most two run at once, each starts only when the machine has room, and a job that hangs is stopped at its time limit.

  • macOS and Linux
  • Node 22 or newer
  • No dependencies
  • Open source, AGPL-3.0
Terminal
dotime-queue run --label "shop-api: unit tests" -- npm testdotime-queue: in line: position 2, 3 min waited, wait limit 60 min; no free slot: 2 of 2 taken, by "shop-api: e2e" and "docs-site: build"dotime-queue run --label "shop-api: unit tests" -- npm testdotime-queue: skipped: "shop-api: unit tests" already passed on commit 0a1b2c3d (12 min ago); --no-skip runs it anyway
Example output, shortened. Every line follows the message format in the queue manual.

Three agents can mean three full test suites at once

Coding agents each start their own test runs and builds. Memory and CPU run out, tests that pass on their own start timing out, and an agent then “fixes” code that was never broken. Each agent sees only its own run, so neither you nor the agents can see the real cause.

What changes with the queue
SituationWithout a queueWith dotime-queue
Several agents start test suitesThey all run at onceAt most 2 run together (slots); the rest wait their turn
The computer is already busyNew jobs pile onJobs wait while CPU, memory or disk is short, or the battery is low
A job hangsIt can run until someone noticesIt is stopped at its time limit, with everything it started (exit 124)
A check keeps failing on the same codeAn agent may keep re-running itA third try is blocked for up to 6 hours (exit 3) until the code changes or --after-fix is given
This commit already has a green runIt may run againA test or lint check that already passed on the same clean commit, in the same folder, is skipped (exit 0); --no-skip runs it anyway
Where did the time go?No recorddotime-queue history totals waits and results per project
Dev servers left runningThey keep using memoryAn optional reaper stops the idle ones

One command in front of every heavy job

Agents start their test runs, builds and end-to-end runs through the queue. Only commands started this way are queued: the queue never edits your repository and opens no network connection.

Shell
dotime-queue run --label "shop-api: unit tests" -- npm test
  • Slots

    Jobs queue up first come, first served. Only 2 hold a slot at the same time by default; the rest wait in line, at most 60 minutes, then leave with exit 75, which is not a test failure.

    The line it prints

    dotime-queue: in line: position 2, 3 min waited, wait limit 60 min; no free slot: 2 of 2 taken

  • Health gate

    Before a job starts, the queue looks at CPU load, free memory, free disk and, on battery, the charge. By default a job waits below 20% free memory or 10 GB free disk. A running job is never stopped because the computer got busy.

    The line it prints

    dotime-queue: in line: position 1, 0 min waited, wait limit 60 min; disk too low: 7.4 GB free, 10 GB needed

  • Run limits

    Each job runs under a limit learned from earlier passed runs of the command, or of its kind in that project: 1.5 times their 90th percentile once there are five, 30 minutes before that. At the limit the job and everything it started are stopped.

    The line it prints

    dotime-queue: timed out: exit 124, stopped after 30 min

  • Fail-stop

    When the same check failed twice in a row on unchanged code, a third run is refused for up to 6 hours, until the code changes or --after-fix "<note>" is given.

    The line it prints

    dotime-queue: refused: exit 3; same check failed twice on unchanged code: "shop-api: unit tests"

  • Passed checks are skipped

    A test or lint check that already passed on the same clean commit, in the same folder, with the same command, is not run again. It exits 0 at once and takes no slot.

    The line it prints

    dotime-queue: skipped: "shop-api: unit tests" already passed on commit 0a1b2c3d (12 min ago); --no-skip runs it anyway

  • Flaky checks are flaggedOn main, next release

    A check that both passed and failed on the same clean commit gets an advisory line after a failed run. It changes no exit code; dotime-queue flaky lists them.

    The line it prints

    dotime-queue: flaky: this check passed and failed on the same commit 3 times in 14 days, last 2 h ago; the failure may not come from your change

  • Nested runs

    A job that runs the queue itself, such as an npm test script that calls dotime-queue run, takes no slot and skips the gate, because its outer job was already let through. At most 2 run at once under one job.

    The line it prints

    dotime-queue: nested: inside "shop-api: ci", pid 48712

The same queue, as tools for MCP clients

dotime-mcp is an MCP server on standard input and output, installed next to the command. Jobs it starts share the slots, the gate and the journal with the shell.

  • queue_statusThe slots, the line and the gate, as dotime-queue status prints them
  • queue_passedWhether this check already has a pass stamp on this commit
  • queue_historyWaits and results per project, for 1 to 365 days
  • queue_runStarts a job in the background and returns its id at once
  • queue_jobA job's state; when finished, its exit code, outcome and last lines

A client with the MCP tasks extension, such as Claude Code, gets the result without polling; every other client polls queue_job. Tasks support is on main and comes with the next release.

Claude Code
claude mcp add --transport stdio dotime-queue -- dotime-mcp
Any MCP client: server settings
{  "mcpServers": {    "dotime-queue": { "command": "dotime-mcp" }  }}
Without installing first
"command": "npx", "args": ["-y", "-p", "deployontime", "dotime-mcp"]

Measured: four agents start the same suite at once

On a Mac, 4 agents start the same test suite at the same moment, asking for twice the CPU there is. Through the queue at most 2 suites run together. After a failure an agent waits 5 to 30 s and runs the suite again, up to 8 runs in all. Three runs each way.

Tests that failed on the first try
Through dotime-queue0 of 400in every run
Started directly400 of 400, in every run
Time until every agent had a green run
Through dotime-queue57 to 58 sin every run
Started directly373 s in one run; in the other two, some agents were still red after 8 runs (447 s and 469 s)
Suite runs
Through dotime-queue4one per agent
Started directly25 to 32

The code under test never changes, so every failure comes from the busy computer. The suite is a stand-in, not a real project, and your numbers will differ with your machine and your tests.

Install in three steps

  1. Step 1: Install the package

    npm install -g deployontime

    Puts dotime-queue and dotime-mcp on your path. macOS or Linux, Node 22 or newer, git 2.31 or newer.

  2. Step 2: Tell your agents

    dotime-queue setup --write

    Run it in each project. It adds the queue instruction to AGENTS.md, CLAUDE.md and .claude/CLAUDE.md between markers. Without --write it only shows what it would change.

  3. Step 3: Watch the line

    dotime-queue status

    Agents now start heavy commands with dotime-queue run. status shows the slots, the line and whether the gate is open.

To remove it: npm uninstall -g deployontime, then delete ~/.dotime.

Questions

Does it work with my coding agent?

Yes, with any agent that can run a shell command. There is no plugin; the agent only needs the one instruction that dotime-queue setup adds to its project files.

Does it change my code or my files?

No. In your repository it only reads: read-only git commands, and files to tell whether a check's code changed. Its own state (slots, journal, settings) lives in ~/.dotime.

Does it run on Linux or Windows?

Linux, yes: the queue and the reaper work on Linux servers and desktops, x64 and arm64, and the tests run on macOS and Linux in CI. On Linux the readings come from /proc and /sys, desktop notices go through notify-send, and the optional scheduled-job report, which reads macOS launchd jobs, is not available yet. Windows: not yet.

What does the AGPL license mean for me?

Using the queue on your own computer does not put your projects under this license. Its conditions apply when you pass this code on, changed or not, and when you let others use a changed version of it over a network.

Start with one command

Free and open source. Your code, your journal and your settings stay on your computer.