[Skip to content](/content/solutions/ci-surges/index.html#main)

CI surges

# Keep CI fast when everyone pushes at once.

Coding agents open pull requests all day. Jobs run on your own machines first and go to hosted
runners when your machines are busy, so jobs don't wait in a queue.

[Get started with GitHub](https://app.relayrunner.dev/)$`npx relayrunner connect`Copy command

**Last 10 minutes** 14 jobs · 0 waiting

- **agent/fix-retry-logic · test** PR #611
Mac mini

- **agent/add-rate-limits · test** PR #612
Office workstation

- **main · build** push 4e8e89c
Ada's MacBook Pro

- **agent/upgrade-deps · test** Every machine busy, sent to the next step
Blacksmith

- **agent/upgrade-deps · lint** Optimized check, no runner needed✓ Passed in 3s

## Jobs use your machines first and hosted runners only when they're busy.

1. ### Connect what you have

Run `npx relayrunner connect` on the Mac mini, the old laptop and the home
    server. More machines means more jobs at once.

2. ### Send extra jobs to hosted runners

When every machine is busy, the next job goes straight to GitHub-hosted or a faster
    provider instead of waiting behind the others.

3. ### Set a limit on hosted minutes

Set a minutes limit on GitHub. Past it, jobs fail fast with the reason, and your agent can
    retry later.

## See which machines are busy and which jobs are waiting.

The Runners page shows every job running and queued right now, and tells you when a machine
goes offline with jobs waiting for it.

## Run lint checks without a runner.

PR title checks and lint finish in seconds but still bill a whole minute and wait for a
runner. Run them as optimized checks and they never need one.

[How optimized checks work →](/content/docs/concepts/optimized-checks/index.html)

On a runner **1 min**

billed for a 6 second lint job, plus time in the queue

Optimized check **0 min**

starts right away, no runner needed

## Common questions

Can bot and agent jobs use my machines?

Yes, when you share a machine with anyone in the workspace. A machine you keep for yourself
only takes your own jobs.

Which hosted providers can take the overflow?

GitHub-hosted, or a provider like Blacksmith, Depot or Namespace on your own account. See
[all providers](/content/docs/runners/providers/index.html).

Can my coding agents check on CI?

Yes. Connect the [MCP server](/content/docs/reference/mcp/index.html) and your agent can see runs,
failures and waits for a runner. Where you allow it, it can change the runner order too.

What if a machine goes offline mid-job?

Turn on [automatic retries](/content/docs/concepts/routing/index.html#automatic-retries) and the job
runs again on the next free runner in your order.

How do I see where time goes?

The Performance page shows how long each job takes on each runner and how long it waited for
one. If waits grow, connect another machine or move a provider up.

Do I need to edit my workflows to change the order?

No. You add relays once with `npx relayrunner init`, then change the order in the
dashboard. See [Routing](/content/solutions/routing/index.html).

## Connect your machines.

Connect a machine, then route your jobs. Hosted runners take the jobs your machines can't.

1. 1\. Turn this computer into a runner

`$ npx relayrunner connect --share anyone`Copy

2. 2\. In your repo, pick the jobs to route

`$ npx relayrunner init`Copy
