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
psof procps (almost every distribution installs it) and a readable/proc.
The package has no dependencies.
Install
npm install -g deployontimedotime-queue statusThis 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:
git clone https://github.com/Moezat220/deployontime.gitcd deployontime && npm linkTell your agents
In the folder of each project your agents work in, run:
dotime-queue setup # shows what it would add, and changes nothingdotime-queue setup --write # adds itIt 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:
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
dotime-queue run --label "shop-api: unit tests" -- npm test- The label's text before the colon is the project; limits and history are kept per project.
- Options go in front of the
--; everything behind it is the job's command. Input and output pass through as usual, andrunexits with the command's exit code. - While it waits,
runprints its position and what holds it.dotime-queue statusshows the whole line.
--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.
| Code | Meaning |
|---|---|
| the job's own | The job ran and ended by itself. |
| 0 | Also a test or lint job that was skipped because it already passed on this commit. |
| 2 | The command line was not understood, for example an unknown option. |
| 3 | Refused: the same check failed twice on unchanged code. Change the code or pass --after-fix "<note>". |
| 75 | Gave up waiting after --max-wait (60 minutes by default). |
| 124 | Stopped at the run limit. |
| 127 | The job's command could not be started. |
| 130 | Left 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:
{ "health": { "minFreeMemPct": 5, "minFreeDiskGB": 2 } }Every key is on the settings page.
Uninstall
npm uninstall -g deployontimerm -rf ~/.dotime # or the folder DOTIME_HOME namesIf you scheduled the reaper, also take it out of your scheduler.
Next steps
- Commands: every option of
run,status,passed,history,flakyandsetup. - Settings: every key, environment variable and state file.
- Troubleshooting: what to do for each exit code and a gate that stays shut.
- For coding agents: AGENTS.md (opens in a new tab) in the repository says the same in a few lines.