Skip to main content
Glama

DeployOnTime is an open-source autonomous software factory in the making for building with AI coding agents: several agents working side by side today; tests, reviews and security checks, safe live releases and AI orchestration next. It is published one part at a time, and the first part, the machine queue, works on its own.

Ready to use today: the machine queue (macOS and Linux). It lets several coding agents share one computer without overloading it. The next parts are on the roadmap.

The problem

Coding agents each start their own test runs and builds. Three agents on one computer can mean three full test suites at once: 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.

Related MCP server: synco-mcp

What you get

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

How it works

The queue is a command that agents put in front of their heavy commands:

dotime-queue run --label "shop-api: unit tests" -- npm test
  1. Turn. The job takes the next free slot, or waits its turn.

  2. Health. Has the computer room for it? Before it starts, the queue looks at CPU load, free memory, free disk and, on battery, the charge.

  3. Limit. It runs under a time limit learned from earlier passed runs: first the command's own, then those of its kind of job in the project, once either has five; before that, 30 minutes. A new command that takes longer than what its kind has learned (which can be as short as 10 minutes) needs --max-run <minutes>.

  4. Record. Its wait, run time and result go into a journal that later runs and history use.

Only commands started through the queue are queued. A command an agent runs directly, such as a plain npm test, is not. The queue never edits your repository; it keeps its state in ~/.dotime.

Measured

On a Mac, 4 agents start the same test suite at the same moment. Each suite runs 5 threads (100 timed tests) and holds 2 GB, and the Mac has half as many cores as the 4 suites have busy threads, so started together they ask for twice the CPU there is; through the queue at most 2 suites run together (its default of 2 slots). A test fails when it takes more than 1.6 times as long as when one suite runs by itself, so this setup shows what doubling the load does; a looser timeout or a lighter load would narrow the gap. After a failure an agent waits 5 to 30 s (the same random waits both ways) and runs the suite again, up to 8 runs in all. Three runs each way:

Started directly

Through dotime-queue

Tests that failed on the first try

400 of 400, in every run

0 of 400, in every run

Time until every agent had a green run

373 s in one run; in the other two, some agents were still red after 8 runs (447 s and 469 s)

57 to 58 s

Suite runs

25 to 32

4

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. To run it yourself (it keeps every core busy for about half an hour; it uses a temporary state folder and repository):

node bench/run.mjs

Anyone can also run it on GitHub's macOS runner: in Actions, pick "Benchmark (manual)" and press Run workflow. It is not one of the required checks and only starts by hand. The runner is smaller than the Mac above, so the settings are scaled to it by the same rule (about twice as many busy threads as cores; less memory per thread only if 400 MB would not fit in half the RAM); the runner's cores and memory are recorded in the results. Every run uploads all its results (the raw JSON, the full output and the queue journals) as one artifact named benchmark-results, whatever they show.

Install

Requirements: macOS or Linux, Node 22 or newer, git 2.31 or newer. The package has no dependencies.

npm install -g deployontime    # puts dotime-queue and dotime-mcp on your path
dotime-queue status

To work from the source instead: git clone https://github.com/Moezat220/deployontime.git, then npm link in its top folder.

A job waits while the computer is short of room: by default below 20% free memory or 10 GB free disk, and while the CPU is overloaded. On a small machine, dotime-queue status shows whether that gate is shut, and the limits can be lowered in ~/.dotime/config.json, for example { "health": { "minFreeMemPct": 5, "minFreeDiskGB": 2 } }.

Then tell your agents to use it. In the folder of each project they work in, run:

dotime-queue setup           # shows what it would add, and changes nothing
dotime-queue setup --write   # adds it

It works in the top folder of the git repository. It adds the queue instruction to the project's AGENTS.md, CLAUDE.md and .claude/CLAUDE.md, between a begin and an end marker, or creates AGENTS.md when there is none; a second run updates that block and leaves the rest of each file alone. --mcp also prints the settings for the MCP server. The block says, in short:

Start every test run, build and other heavy command through the queue:
dotime-queue run --label "<project>: <task>" -- <command>
A test or lint run that prints "skipped:" already passed on this exact commit and exits 0; add --no-skip in front
of the -- only to run it again on purpose. Exit 75 means the job gave up waiting for a slot, 124 that it hit
its run limit, 3 that the same check already failed twice on unchanged code.

A coding agent that opens this repository finds what it needs in AGENTS.md.

You do not need to tell agents to call dotime-queue passed first: run checks for a pass by itself, in the same folder, with the same label, command and code. --no-skip on an outer job also reaches the checks it runs through the queue.

The text before the colon in a label is the project name; limits and history are kept per project.

To remove it: npm uninstall -g deployontime, delete ~/.dotime, and take the reaper out of your scheduler if you added it.

Every command, flag, exit code and setting is in the queue manual.

Use with an MCP client

dotime-mcp is an MCP server on standard input and output that offers the queue to agents as tools. It has no dependencies either, and the install puts it on your path next to dotime-queue. Add one entry to your client's MCP server settings:

{
  "mcpServers": {
    "dotime-queue": { "command": "dotime-mcp" }
  }
}

Clients differ in where that file lives and in how its top level is named; see your client's documentation. Without installing it first, "command": "npx", "args": ["-y", "-p", "deployontime", "dotime-mcp"] fetches the package and starts the server. From a clone that was not linked, use "command": "node", "args": ["<path to the clone>/mcp/server.mjs"]. To use another state folder, add "env": { "DOTIME_HOME": "<absolute path of the folder>" }, as for the command. A relative path is taken from the folder the server starts in, and its jobs are handed that absolute path.

Tool

Arguments

What it gives

queue_status

none

The lines of dotime-queue status, with the slot and line counts as fields

queue_passed

match, cwd

The stamp or no-stamp line of dotime-queue passed, with stamp as true or false

queue_history

days (1 to 365, default 7)

The lines of dotime-queue history

queue_run

label, command (a list of words), cwd, kind, maxRunMin, noSkip, afterFix

Starts dotime-queue run in the background and returns a job id at once

queue_job

jobId, tailLines (0 to 500, default 40)

starting, waiting, running, finished or lost; for a finished job its exit code and outcome (ran, skipped, refused, timed-out, gave-up and the others), and the last lines of its output

cwd is an absolute path to an existing folder; without it, the folder the server was started in is used. The label is "<project>: <task>". The command is a list of words and never goes through a shell. A job from queue_run waits and runs under the same rules as one started from the shell, in a process group of its own, and keeps running when the server exits. Its output and pid files are kept in mcp-jobs/ in the state folder for 7 days, and at most 200 finished jobs are kept. --priority and --max-wait are not offered: such a job waits at most the usual 60 minutes. Each waiting job costs two Node processes, so queue_run refuses a new job while 20 that it started still wait or run; mcpMaxJobs in the queue's config.json sets that number. Every tool result has the readable lines as text, then the same fields as JSON text, and the fields in structuredContent.

The shell commands keep working as before; both share the same state folder, slots and journal. The server speaks MCP revision 2026-07-28 (no handshake: each request names its version in _meta, and server/discover lists the versions) and 2025-11-25 and earlier (opened with initialize).

FAQ

Yes, with any agent that can run a shell command. There is no plugin; the agent only needs the instruction above.

No. Only commands started with dotime-queue run are queued, held back or limited. Two optional extras look wider, and only if you schedule them: the reaper (idle dev servers) and the scheduled-job report (your own scheduled jobs).

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.

When you schedule it, it stops dev servers of your user account that sit idle anywhere on the computer, including ones started outside the queue. A trial run with --dry lists the servers it would stop and stops none, and a keep pattern protects the servers you want left alone. See the reaper.

No. Agents share one queue only when they use the same state folder on the same computer. An agent in a container or a virtual machine sees a different process list, so it must not share the folder: it gets a queue of its own.

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. The manual lists the differences. Windows: not yet.

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.

Roadmap

The machine queue is complete and usable on its own. These parts come next, in this order:

Next

What it will do

Release engine

Validate an agent's pull request with tests, reviews and security checks, then deploy it as a safe live release (stages 03 and 04 in the banner)

Install and quickstart

Set everything up with one command, with a trial mode that changes nothing

Docker

Run the queue in containers

Orchestration

Plan the work and hand it out to several coding agents (stage 02 in the banner)

Tests

From the repository's top folder:

npm test

License

Copyright (C) 2026 Moezat220 · AGPL-3.0-only

Available Tools

5 tools
queue_historyQueue historyA
Read-only

Totals of the queue journal per project: jobs, failures, skips and time spent waiting. The same as dotime-queue history --days <n>.

Inputs: days.

queue_jobJob stateA
Read-only

The state of a job started with queue_run: starting, waiting, running, finished or lost (its runner ended without a result). For a finished job: the exit code and the outcome from the queue journal (ran, skipped, refused, timed-out, gave-up, left, stopped, could-not-start). Also the last lines of its output.

Inputs: jobId (required), tailLines.

queue_passedPass stampA
Read-only

Looks up the pass stamp of a folder: the newest clean run on its current commit whose label or command contains match. The same as dotime-queue passed --match <text> --cwd <dir>.

Inputs: match (required), cwd.

queue_runRun a job through the queueA
Destructive

Starts a heavy command (a test suite, a build) through the queue and returns at once with a job id; poll queue_job for its state and output. The job waits for a free slot and an open health gate, runs in a process group of its own under a run limit, and keeps running if this server exits. A test or lint check that already passed on the same clean commit is skipped (outcome skipped) unless noSkip is true. The command is a list of words and is never read by a shell. Job records are kept for 7 days.

Inputs: label (required), command (required), cwd, kind, +3 more.

queue_statusQueue statusA
Read-only

Shows the queue: taken and free slots, running and waiting jobs, and whether the health gate is open. The same lines as dotime-queue status.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool targets a clearly distinct object: queue_status covers the whole queue's health and slots, queue_job covers one job's state/output, queue_history covers aggregate journal totals, queue_passed looks up a pass stamp, and queue_run launches a job. The run/job pair (start vs. poll) is explicitly linked in the descriptions, so the boundary is obvious rather than ambiguous.

    Naming Consistency4/5

    All five tools share the `queue_` prefix in snake_case, giving a strong predictable family. The suffixes mix categories (nouns status/job/history, past participle passed, verb run), which is a minor deviation but still readable and non-confusing.

    Tool Count5/5

    Five tools exactly match the domain: enqueue a job, inspect that job, inspect the queue, inspect historical totals, and query pass stamps. Nothing is redundant or missing for a thin wrapper over the CLI.

    Completeness4/5

    The lifecycle is covered end to end: submit (queue_run), poll (queue_job), queue health (queue_status), reporting (queue_history), and skip/pass verification (queue_passed). There is no tool to cancel or stop a running job, even though a 'stopped' outcome is referenced, which is a minor but noticeable gap.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      agent-mq is a message queue that enables AI coding agents to communicate with each other across sessions and machines. Agents can send messages, delegate tasks, and coordinate work — all through MCP tools. Supports Claude Code, Cursor, Codex, OpenClaw, and any MCP-compatible tool. UUID-based authentication with per-user data isolation. Self-hostable with Docker.
      7
      2
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables multiple AI coding agents to coordinate on a shared software project by registering, claiming tasks, declaring file intents, publishing structured change reports, and handing off context, with a local dashboard showing state in near real time.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Lets coding agents inspect fleet health, file and investigate bugs, request coordinated restarts, and claim, release, and resolve tickets in a shared incident queue without touching processes directly.
      MIT