Skip to content

Getting started

Install the package, add one instruction to each project your agents work in, and their test runs and builds start taking turns.

On this page

Requirements

  • macOS or Linux (servers and desktops, x64 and arm64). Windows is not supported yet.
  • Node 22 or newer, and git 2.31 or newer.
  • On Linux, the ps of procps (almost every distribution installs it) and a readable /proc.

The package has no dependencies.

Install

Shell
npm install -g deployontimedotime-queue status

This puts dotime-queue and dotime-mcp on your path. The first line of dotime-queue status should read slots: 0 of 2 taken, 0 waiting.

On Linux, when the install stops with a permission error, your Node was installed for all users: use a Node from a version manager, or run npm config set prefix ~/.local and put ~/.local/bin on your path.

To work from the source instead, clone the repository and run npm link in its top folder:

Shell
git clone https://github.com/Moezat220/deployontime.gitcd deployontime && npm link

Tell your agents

In the folder of each project your agents work in, run:

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

It works in the top folder of the git repository. It adds the queue instruction to 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. The block says, in short:

The instruction
Start every test run, build and other heavy command through the queue:dotime-queue run --label "<project>: <task>" -- <command>

Agents that speak MCP can use the MCP server instead; setup --mcp prints its settings.

Your first run

Shell
dotime-queue run --label "shop-api: unit tests" -- npm test
  1. The label's text before the colon is the project; limits and history are kept per project.
  2. Options go in front of the --; everything behind it is the job's command. Input and output pass through as usual, and run exits with the command's exit code.
  3. While it waits, run prints its position and what holds it. dotime-queue status shows the whole line.
A new command gets the limit its kind has learned in that project, which can be as short as 10 minutes, or 30 minutes until the kind has five passed runs. For a long first run, pass --max-run <min>. See exit 124.

Exit codes

Tell your agents: 75, 124, 3 and 127 come from the queue, and none of them is a test failure of the code.

Exit codes of dotime-queue run
CodeMeaning
the job's ownThe job ran and ended by itself.
0Also a test or lint job that was skipped because it already passed on this commit.
2The command line was not understood, for example an unknown option.
3Refused: the same check failed twice on unchanged code. Change the code or pass --after-fix "<note>".
75Gave up waiting after --max-wait (60 minutes by default).
124Stopped at the run limit.
127The job's command could not be started.
130Left the line because of a signal.

On a small machine

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. dotime-queue status shows whether that gate is shut. Lower the limits in ~/.dotime/config.json:

~/.dotime/config.json
{ "health": { "minFreeMemPct": 5, "minFreeDiskGB": 2 } }

Every key is on the settings page.

Uninstall

Shell
npm uninstall -g deployontimerm -rf ~/.dotime        # or the folder DOTIME_HOME names

If you scheduled the reaper, also take it out of your scheduler.

Next steps

Written from the public repository's main branch and its queue manual.