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.
npm i -g deployontimedotime-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 anywayThree 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.
| Situation | Without a queue | With dotime-queue |
|---|---|---|
| Several agents start test suites | They all run at once | At most 2 run together (slots); the rest wait their turn |
| The computer is already busy | New jobs pile on | Jobs wait while CPU, memory or disk is short, or the battery is low |
| A job hangs | It can run until someone notices | It is stopped at its time limit, with everything it started (exit 124) |
| A check keeps failing on the same code | An agent may keep re-running it | A 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 run | It may run again | A 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 record | dotime-queue history totals waits and results per project |
| Dev servers left running | They keep using memory | An 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.
dotime-queue run --label "shop-api: unit tests" -- npm testSlots
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 flakylists 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 testscript that callsdotime-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_statusqueue_passedqueue_historyqueue_runqueue_job
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 mcp add --transport stdio dotime-queue -- dotime-mcp{ "mcpServers": { "dotime-queue": { "command": "dotime-mcp" } }}"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.
- Through dotime-queue0 of 400
- Started directly400 of 400, in every run
- Through dotime-queue57 to 58 s
- Started directly373 s in one run; in the other two, some agents were still red after 8 runs (447 s and 469 s)
- Through dotime-queue4
- Started directly25 to 32
Install in three steps
Step 1: Install the package
npm install -g deployontimePuts
dotime-queueanddotime-mcpon your path. macOS or Linux, Node 22 or newer, git 2.31 or newer.Step 2: Tell your agents
dotime-queue setup --writeRun it in each project. It adds the queue instruction to
AGENTS.md,CLAUDE.mdand.claude/CLAUDE.mdbetween markers. Without--writeit only shows what it would change.Step 3: Watch the line
dotime-queue statusAgents now start heavy commands with
dotime-queue run.statusshows the slots, the line and whether the gate is open.
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.