A durable job queue for your machines and your coding agents.
curl -fsSL https://raw.githubusercontent.com/espetro/coordinate/main/install.sh | sh
coordinate daemon &
coordinate service install # systemd user unit / launchd agent instead of a shell &
coordinate enqueue --shell -- 'pnpm test && pnpm build'
coordinate status
coordinate events --followmacOS and Linux use install.sh; mise users can mise use -g github:espetro/coordinate. Windows (best-effort): irm https://raw.githubusercontent.com/espetro/coordinate/main/install.ps1 | iex.
coordinate service install sets up the daemon as a user-level service (systemd user unit on Linux, launchd agent on macOS; Windows is not supported yet), so it starts on login and survives PATH changes. service status and service uninstall manage it. See the command reference.
- Enqueue in 5 ms and drain 69 jobs per second on a 6-core VPS.
- The daemon idles at 5.9 MB, and the whole tool is one 4 MB binary.
- 10,000 parked jobs take 3 MB of disk and no process.
- Jobs are SQLite rows. A crash or a reboot expires a lease, and the job runs again.
- Per-machine and per-repo caps, named slots, priorities, retries, deadlines and an event stream.
| Measured on the same 6-core VPS | coordinate | Rivet | Restate |
|---|---|---|---|
| Idle memory | 5.9 MB | 128 MB | 532 MB |
| 10,000 parked jobs | 3 MB on disk | 1,489 MB of memory | not run (851 MB at 1,000) |
Every number comes from a result file in benchmarks/.
- Architecture
- Benchmarks
- Agent skill: copy it into your agent's skills directory
- Extension skill: building on the event stream (
forward --exec,events --follow) - Contributing
coordinate only bounds work that goes through the queue. To get agents to enqueue instead of spawning processes ad hoc:
-
Give them the skill — copy
skills/coordinate/SKILL.mdinto your agent's skills directory (e.g.~/.agents/skills/coordinate/). It teaches when to queue vs. stay interactive, plus every verb. -
Add one rule to your agent's global instructions (e.g.
~/.claude/CLAUDE.md,AGENTS.md):All background/headless agent sessions and batch jobs on this machine MUST be enqueued as
coordinatequeue jobs (coordinate enqueue), never spawned ad hoc — queue caps are the device OOM control. Only interactive, user-watched work may run outside the queue. -
Hard enforcement — for agent CLIs with hooks (Claude Code, devin),
scripts/coordinate-guardis a PreToolUse hook that blocks spawning agent CLIs outside a queue job (jobs exportCOORDINATE_JOB_ID; the hook allows the spawn only when it is set). See.agents/docs/enforcement.mdfor the full spectrum from instruction-level to OS-level.
- scriptc — the TypeScript-to-binary compiler coordinate is built with
- cutils —
@cutils/sqliteand@cutils/cli, the scriptc-compilable packages under the hood - cauce — sibling single-binary tool for agents
Apache-2.0. Copyright 2026 Joaquin Terrasa & contributors.
