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.
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 anyway
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.
| Situation | Without a queue | With dotime-queue |
|---|---|---|
| Several agents start test suites | They all run at once | 2 run together (slots), more on a larger computer while the CPU has room; 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 |
| Why did a run fail? | Only a red exit code | Each 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-run | The run just vanishes | It is journalled once as lost, its slot is freed, and it never counts as a code failure |
| Dev servers left running | They keep using memory | An 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.
dotime-queue run --label "shop-api: unit tests" -- npm testSlots
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 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
Isolated runs
run --isolateruns a job in a git worktree of its own, on a new branch, so agents side by side never edit the same files.integratefast-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 addwith--everyor--cronstarts 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_statusqueue_passedqueue_historyqueue_runqueue_securityqueue_reviewqueue_releasequeue_jobqueue_cancel
A client with the MCP tasks extension, such as Claude Code, gets the result without polling; every other client polls queue_job.
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?
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.