Pace your agents

A long Claude Code run that hits a rate limit halfway loses its place. Pacer's skill and pacer command turn that into a pause: save the work, wait, resume.

A stop signal, not a budget

Pacer tells an agent when to stop and when to start again. It does not tell it what to take on: usage never picks the model, how many subagents to run, or what to leave out. Those are decided on the task's merits.

Set it up

  • The skill: install it from Pacer's Settings. It updates when Pacer does.
  • The command: a Homebrew install puts pacer on your PATH. With the download, use Settings → Integrations → Command line. While the skill is installed, ~/.claude/skills/pacer/pacer always works too.
  • Make it the default for long runs with one line in your CLAUDE.md:
@~/.claude/skills/pacer/pacing.md

Paste the line, not the text it points to: the file ships inside Pacer and is replaced when Pacer updates, so it never needs re-pasting. Settings → Integrations has a copy button.

How a run uses it

  1. Before each wave of subagents, the orchestrator runs pacer gate --model opus (the model the wave will use). Exit 0 is go; exit 10 is pause.
  2. Every subagent runs pacer status, which only reads the verdict the gate wrote. One read of Pacer serves a hundred subagents.
  3. On a pause, work in progress is committed, a resume list is written, and pacer wait runs in the background.
  4. When wait exits, there is room again: the window reset, or the session moved to a login with room. The run picks up from its resume list.
$ pacer gate --model opus
pace: GO.
$ pacer gate --model opus
pace: PAUSE — this login is at its limit until Thu 6:39 PM. Checkpoint, then run `pacer wait` in the background: it resumes then.
$ pacer wait
pace: room is back — the limit reset. Resume.

Gate-only and informed

Gate-only is the default inside a Claude Code session: gate, status and wait say go, pause or resume and what ends a pause, with no percentages, so usage can't steer an agent's plan. Informed adds the numbers. It is the default in a terminal, where a person is reading.

# gate-only
pace: GO.
# informed
pace: GO — 5h 40%, 7d 32% (safe limit 5h 96%, 7d 99%).

To choose, the first of these that is set wins:

  1. --pacing gate or --pacing informed on one command;
  2. PACER_PACING, your own setting: for a repo, "env": {"PACER_PACING": "informed"} in .claude/settings.json; for one launch, PACER_PACING=informed claude;
  3. pacer mode informed (or gate, or clear) for the current session.

Seeing the numbers

pacer report shows every window for the account you're on. A whole number is Anthropic's reading; a decimal is Pacer's estimate since that reading.

$ pacer report
5h         15.6% est · read 15% 1m ago · +33%/h now (+0 avg) · resets in 4h 48m  (Thu 6:39 PM)
7d           81% used · +7%/h now (+2 avg) · resets in 3d 16h  (Mon 5:59 AM)
Fable        99% used · +8%/h now (+2 avg) · full in 6h 24m · resets in 3d 16h

now is the rate over the last half hour; avg is a longer average, shown only when the two disagree. A gap between them means you are in a burst.

Name the model

A per-model cap, such as a weekly Fable limit, only stops work that uses that model. So pass the model a wave will run: pacer gate --model opus. The 5-hour and weekly windows always apply. In a session running one model, pacer works it out; in a fan-out with several models, the orchestrator should name each.

Several logins

A window belongs to one login, not to your Mac. When another login has room, a pause says so, and switching to it ends the pause. If an account switcher is running and tells Pacer about itself, pacer wait resumes as soon as it moves you.

Commands

CommandWhat it does
pacer report Every window for the account this session is signed into, then a line about your other logins.
pacer accounts Every login: its plan, the sessions drawing on it, its windows, and whether it has room.
pacer sessions Where the live Claude Code sessions are, with their branches.
pacer json The same as report, for scripts.
pacer gate Read Pacer once and write a verdict for this run: go (exit 0) or pause (exit 10).
pacer status Read that verdict: a file read, cheap enough for every subagent. A stale one is re-gated, by one reader for all.
pacer wait Block until there is room again, then exit 0. Exit 20 when the reset is further out than a wait sleeps through (6 hours).
pacer safecap The limit gate applies to each window, one per line, for scripts.
pacer mode Show the pacing mode and where it came from, or set it for this session.
pacer feedback "…" Report a wrong verdict or a missing flag to Pacer’s issue tracker, scrubbed of paths and names. --local keeps it on your Mac.

Exit codes

CodeMeaning
0 Go (gate, status) or resume (wait).
10 Pause. Dispatch nothing new; checkpoint.
20 wait: the reset is beyond --max-wait. Checkpoint and stop.
3 status: the verdict is unknown or stale. Proceed, and say so.
2 No Pacer on this Mac. No signal, not no budget: proceed ungated.
4 Misconfigured, usually a token set in Pacer but not in PACE_TOKEN. The run is unpaced: tell the user.
1 A --window that matches nothing.

Every flag and every number is explained in the skill's reference.

Outside Claude Code

pace-guard.sh, beside the skill, waits until there is room and then starts claude with your arguments. Use it to wrap an unattended run from your own terminal:

~/.claude/skills/pacer/pace-guard.sh -p "keep working on the migration"