← Back to Blog

How we use Coral’s resource queue across our machines

Our agents share a Mac, a Mac mini, a Linux box and a Windows box. The resource queue helps them find room to run tests without all piling onto the same computer.

An agent sends a Go test to a pool. The pool can select the Mac, a Mac mini or a Linux box. Output returns and the slot is released.
Our Go pool can use three machines. This diagram illustrates the route; it is not a live status view.

Built into the team’s workflow

The resource queue is part of Coral. Agents use it through the coral-board command, and Coral’s shell hook can claim a slot when a test command matches a resource’s rules. The claim carries the agent and its task, so the run stays connected to the work it belongs to.

The same queue appears in Coral’s Queue tab. Open Resources to see which resources have free slots, who holds them and who is waiting. A pool claim shows the machine it was granted. We can see where a test landed without asking the agent to report it separately.

A claim for the work

We give each machine a limited number of slots. An agent claims a slot before a heavy test run and gives it back when the run ends. Other agents can see what is in use.

When the slots are full, the agent joins a line. It does not need to keep asking someone whether the machine is free. The queue uses task priority and waiting time to decide whose turn comes next.

Two occupied test slots and one waiting test. When a run ends, the next claim can take the free capacity.
A two-slot resource admits two held claims. Other agents wait in one line.
Coral Queue tab, Resources view, for an invented browser pool. Two of two slots are in use by the Tester and Designer agents, each showing the time left on its claim. The Reviewer waits in place 1 for 4 minutes and the Writer in place 2 for 1 minute.
The same two-slot idea in Coral’s Queue tab, using invented data. Two agents hold the pool, with the time left on each claim. Two more are waiting, in first and second place.

Ask for capacity, not a particular computer

Our Go tests use a pool made up of the Mac, a Mac mini and a Linux box. The pool matches what the test needs against what each machine is set up to offer, then picks an available machine with the lowest recent use.

The machines share their slots with the pool. A run claimed directly on a machine still counts, so the pool does not treat that slot as free.

For matching Go commands, Coral’s hook handles the claim. A remote run uses a copy of the agent’s worktree. Its output comes back to the agent, and the slot is released when it finishes.

Follow one Go test

An agent changes the server code and starts its Go tests. The command matches our Go pool. Instead of joining the Mac’s line, the claim can take a slot on a Mac mini or a Linux box.

The pool matches what the test needs against what each machine is set up to offer. Our Linux box has Go but no Chrome, so it can take this test without being offered browser work. A pool’s recent-use score accounts for its members’ slots and weights; it does not simply pick the first machine in a list.

On a remote grant, Coral sends a copy of the worktree to a fresh run folder. The command runs there, and its output and exit status return to the agent. That lets the agent read a failure and fix it in its own worktree. When the command ends, the run folder is removed and the slot goes back.

Agents start from the worktree root so the copy includes the files the test needs. They cannot rely on dependencies or caches from their normal checkout being present on the other machine.

Where our tests run now

WorkWhere it runs
Go package testsThe Mac, a Mac mini or a Linux box, through the Go pool
Browser testsThe Mac by default; a Mac mini through an explicit pool claim
Frontend static checksThe Mac by default; a Mac mini through an explicit pool claim
Windows checksA Windows box, claimed and run manually

Browser tests and frontend static checks need dependencies installed in their fresh run folder. We include that step when claiming those pools. Their automatic routing stays on the Mac for now.

See what is running, and what is waiting

Invented Coral resource queue with Go tests on Linux and a Mac mini, browser checks on two Macs with two agents waiting, an idle static-check resource and a Windows installation check. Each claim has work and task context.
Resources in Coral’s Queue tab, using invented data. Go tests run on two machines, browser checks fill a pool with two more agents waiting, static-check slots are free, and a Windows check is running. The notes, tasks and goals identify each piece of work.

The Queue tab groups entries by resource and shows how many slots are in use. Each entry names the agent and its state. A running claim shows the lease time left; a waiting claim shows its place in line and how long it has waited. Notes explain the run, and task, goal and team context help us find the work behind it.

On the local queue, we can open the agent, task or goal to check the context. The person running the team can move a waiting entry to the front, move it up or down, or remove an entry. Coral also marks a holder that has been stuck at a prompt or idle long enough to notify the Orchestrator. A queue entry is useful when it explains why work is waiting.

When linked computers are available, the computer picker lets us inspect their queues too. Those views are read-only; changes happen in that computer’s own Coral. If a computer stops answering, Coral keeps the last queue it read and says when it was read, so old information is not mistaken for an empty queue.

Keep the claim with the command

We claim and run in the same tool call. That keeps a slot tied to the work instead of reserving it in one call and trying to use it later. For an explicit pool run, Coral renews the lease while the command runs and releases the slot at the end.

This only works when the team uses the queue. A test started over SSH without a claim can consume a machine’s capacity without appearing in its slots. Manual runs need claims too, including checks on a Windows box.

A lightweight step toward CI

This is not as complete as a full CI setup. The queue coordinates capacity and runs commands; it does not give us a clean, repeatable test environment or enforce the checks required to merge a change. Our machines still need the right tools, and agents still need to run the right tests.

It does give us some of the same practical benefits with much less setup: tests spread across machines, agents get results back, and everyone can see what is running or waiting. We can use computers we already have without first building a separate CI service. We keep full CI for the checks and release gates that need those stronger guarantees.

Keep work moving

The queue gives our agents a shared view of capacity. Pools let Go runs use another machine without waiting for a slot on the Mac. Explicit claims let us send browser and static checks to a Mac mini too.

We still choose the right kind of machine for the job. A Linux box without Chrome takes Go tests. A Windows box handles Windows checks. The queue keeps those choices visible while the agents get on with their work.

Routing snapshot: November 30, 2026. Diagrams use illustrative states and generic machine names.