Skip to content
New in 0.7.0A waiting job looks again as soon as a slot frees

Run multiple AI coding agents on one machine 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. Two run at once, more on a larger computer while the CPU has room. 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.
Preview of the coming live dashboard with example data
Coming next: the live dashboard, shown here with example data. It is not in the npm package yet. See the roadmap.

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 once2 run together (slots), more on a larger computer while the CPU has room; 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
Why did a run fail?Only a red exit codeEach failed run is journalled with a reason class (port, network, disk, memory, test, build, run limit, …), never its output text; dotime-queue reasons counts them
The computer restarted mid-runThe run just vanishesIt is journalled once as lost, its slot is freed, and it never counts as a code failure
Dev servers left runningThey keep using memoryAn optional reaper stops the idle ones

What it does not do (yet)

The queue runs and records the heavy commands your agents start. It does not judge your code. The direction is a factory where you define what “done” means and checks verify it automatically; those checks are not built yet.

  • No reviewer of its own and no performance review. dotime-queue review runs the review command you write and records its verdict; the queue does not check that a review took place
  • No security review of your code. dotime-queue security runs open scanners you install (gitleaks, npm audit or osv-scanner): it finds leaked keys and known-vulnerable packages, not other flaws
  • No deploy targets of its own. dotime-queue release runs the deploy, health check and rollback commands you write in dotime.release.json
  • It does not fix a failing test or decide what “done” means for your project
  • It does not retry a failure for you: it records why a run failed, so you can see which failures were real. The one exception: a run cut off by a restart can be started once more, with the MCP argument rerunIfLost

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 edits your repository only in an isolated run you ask for, and opens no network connection of its own.

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

    Jobs queue up first come, first served. 2 base slots always stay, or 1 on a computer with a CPU budget under 2 CPUs; on a computer with more than 5 cores a job may take an extra slot, up to half the cores, while the CPU has room. 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 flagged

    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

  • Isolated runs

    run --isolate runs a job in a git worktree of its own, on a new branch, so agents side by side never edit the same files. integrate fast-forwards your branch only after the check passed on the merged result.

    The line it prints

    dotime-queue: isolated in ~/.dotime/worktrees/shop-api-3fa9c2d1 on branch dotime/shop-api-rename-price-field-3fa9c2d1; integrate with: dotime-queue integrate 3fa9c2d1 -- <check>

  • Scheduled jobs

    dotime-queue schedule add with --every or --cron starts a job at set times through the same line and gate. A missed run is told once and runs once, never as a burst.

    The line it prints

    schedule 0a1b2c3d: "shop-api: suite", cron 0 2 * * *, no-skip, enabled; next: <date and time> CET; last: ran, exit 0

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_securityStarts the security check in the background and returns its id at once
  • queue_reviewStarts your own review command in the background and returns its id at once
  • queue_releaseStarts dotime-queue release in the background and returns its id at once
  • queue_jobA job's state; when finished, its exit code, outcome and last lines
  • queue_cancelTakes a waiting job out of the line or stops a running one

A client with the MCP tasks extension, such as Claude Code, gets the result without polling; every other client polls queue_job.

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: if you ran dotime-queue schedule install, first run dotime-queue schedule uninstall, and remove by hand a crontab line that install printed. Then npm uninstall -g deployontime, and 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?

Not your code. In your repository it reads: read-only git commands, and files to tell whether a check's code changed. Its own state (slots, journal, settings) lives in ~/.dotime. It writes in your repository only when you ask: setup --write adds the queue instruction to the project's agent files (without --write it only shows the change), and run --isolate adds a worktree and a branch, where only integrate moves your branch, by a fast-forward after the check passed. The commands you run through the queue do what they always do.

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.