Skip to content

You've hit your session limit: the whole fleet dies at once, uncommitted work included

Subagents share a single quota. When it runs out they all stop together, along with the session driving them, and the uncommitted work does not say how far it got.

Error message
You've hit your session limit

Also searched as: "all my subagents stopped at the same time in the middle of the work"

In short

Symptom
Several subagents launched in parallel fail within the same minute, all on the same limit message, and the orchestrator then shows that message itself instead of answering. On resume, the working trees hold dozens of modified files, sometimes without a single commit, and nothing says which workstream was finished.
Real cause
Every agent in a session, and every session open at the same time, draws on the same five-hour quota window. The quota does not cut off one agent: it closes the window, so everything running in it, at the same instant. An agent that is cut off does not report back: its state exists only on disk, and only if it wrote it there.
Fix
Ask each agent to commit in steps, never in one final block, so that a cut costs only the step in progress. On resume, take inventory before relaunching (commits, pending files, build), then freeze a checkpoint and relaunch from it with a resume prompt.
Prevention
The quota is a shared resource of the fleet, not a per-agent limit. Write every prompt so that the delegated work can stop at any second without losing more than one step.

The answer, in three lines

Every agent in a fleet draws on one single quota window. When it runs out, it does not cut off the greediest agent: it cuts off everything that is running within the same minute, the subagents as well as the orchestrator, meaning the session that launches them and follows their work.

An agent that is cut off does not report back. What it did exists only on disk, and only if it wrote it there: two agents cut off on 3 September 2026 left 69 and 74 modified files, and zero commits.

Watching the quota is therefore not enough: you have to write prompts that survive a cut.

The official Claude Code documentation explains what the message means (which allocation is exhausted, when it resets, how to wait or resume), on its errors page. This entry does not copy it. It covers what the documentation does not say: the state in which a fleet that has been cut off leaves its working trees, and how to start again from there.

The symptom

The same message arrives in three forms, and it is the second one that brings everything to a halt.

Agent "…" failed: Agent terminated early due to an API error:
You've hit your session limit · resets 2:40pm (Europe/Paris)
(error type rate_limit, HTTP 429, …)

This is the failure notification of each subagent. It arrives in clusters: on 17 September 2026 at 00:05, Paris time, nine subagents spread over three sessions received it within ten seconds, and a fourth session saw its orchestrator go down in the same interval.

You've hit your session limit · resets 12:30am (Europe/Paris)

This is the orchestrator itself. Instead of handling the failures, it shows the same limit, because it lives in the same window. In one session, woken by each failure notification and then by each relaunch, it repeated the message nine times in the same window.

You've hit your monthly spend limit · raise it at … · your session limit resets 1:10am

This is the monthly cap variant, seen on 19 September 2026. The mechanism is the same.

The wrong diagnosis

This reasoning rests on two assumptions, both false:

  1. the limit would be individual, and the other agents would keep going when one hits it. In reality it belongs to the account's five-hour window, and every open session shares it;
  2. an agent that is cut off would resume where it stopped. In reality, resuming relaunches the orchestrator, not the subagents: none of them restarts on its own. In the traces reviewed, no agent that was cut off was resumed; all were replaced, by a new agent or by the orchestrator.

What is actually happening

One quota, not N quotas

On 3 September 2026 at 19:36, two separate sessions, opened on two unrelated workstreams, each lost a subagent within the same half-minute, on the same message and with the same reset time. The account has only one window.

This is common. Over the period reviewed, eleven five-hour windows were exhausted, and six of them cut off at least two sessions at once.

The orchestrator does not see its agents fall

On the night of 2 to 3 September 2026, at 00:01, an orchestrator launches three read-only audits, one every twenty seconds. Each launch answers "Async agent launched successfully".

The first audit dies fifteen seconds after it starts. The next two die on their first call, less than a second after being launched. Their failure notifications are queued, and the orchestrator will only read them at the end of its turn. So it launched two agents into a quota that was already exhausted, on the strength of a successful launch acknowledgement.

It shows its own limit two minutes later. The window reopens at 4:10, and the resume happens at 9:47: three audits launched, and zero reports.

The partial state is unreadable

On 3 September 2026 at 14:08, two interface redesign agents go down together, sixteen minutes after being launched. On resume, the inventory shows:

TreeFiles modified or createdCommitsBuild
screen redesign690clean
admin hygiene740clean

Both trees built, and the work was not lost. But nothing said whether it was finished, and the orchestrator had to freeze it by hand before relaunching.

The other case is worse. The same day, at 23:42, six subagents of one session go down within 33 seconds. On resume, the orchestrator finds three workstreams in the repository, in three states: guides that seem finished, animation building blocks written but not used by the screens, and a server half set up, on a platform that the research running in parallel had just ruled out. The agent that had made that choice died before writing down why.

The fix

Step 1: Commit in steps, and say so in the brief

The two agents of 3 September at 14:08 were allowed to commit, but their prompt did not say when. The resume prompt added one line: commit in steps, not in one final block, so that a new interruption costs nothing.

The same day at 19:36, the limit cut off a third agent, launched with that line. On resume, six commits were in place, and a single file was pending. The orchestrator froze that file, and the resume agent started again from a clean tree.

A cut then costs only the step in progress, and not the whole workstream.

Step 2: Take inventory before relaunching

On resume, it is tempting to relaunch straight away. Here is the order that worked:

  1. for each tree, count the commits above the base and the pending files;
  2. run the build on each one;
  3. freeze whatever builds in a checkpoint commit named as such, adding paths one by one;
  4. relaunch with a resume prompt: the starting commit, what is already done, and an explicit ban on redoing it.

Without step 1, nothing stops the relaunched agent from redoing the work or overwriting it. Without step 3, a second cut resets the counter to zero.

Step 3: Have the decision written down before the execution

Committing more often does not rescue the server set up on the wrong platform: the choice was on disk, but its justification was nowhere. An agent that makes an architecture decision writes it down before coding, in a file in the workstream. If it is cut off afterwards, it at least leaves the reason for what it did.

Prevention

Two practical consequences follow. First, launching more agents does not change the size of the window: it only increases the number of workstreams exposed when it closes. Second, the orchestrator cannot act as a safety net, since it goes down at the same instant. The only net that holds is the one each agent has laid down on disk itself.

Why this matters with agents

A human sharing a budget with others feels the limit coming. An agent does not: it works flat out until it is refused, with no transition. A fleet of parallel agents therefore turns one interruption into N simultaneous interruptions, on N workstreams in different states.

Resuming brings back the orchestrator, with its memory of the conversation. In the traces reviewed, the subagents did not come back. On 17 September 2026, the three orchestrators that had lost agents, resumed within the minute, all did the same thing: note that the agent was dead, then take over its work themselves. One of them found eight files modified by the vanished agent, with no commit, and had to reread the diff to find out where it had got to.

What this entry does not cover

This entry does not measure the effect of parallelism on how fast the window runs out. Ten agents probably empty a window faster than one, but no comparison at equal load was made, and this entry does not claim it.

It does not put a figure on the cost of an exhausted window either: on a quota-based subscription there is no invoice to reread. What can be measured is what the entry shows: how many agents die, when, and what they leave behind.

The queuing of notifications during an orchestrator turn is observed on a single case. Its exact behaviour in the harness, meaning the software that runs the agents, is not documented here.

Automatic resume and resuming a subagent, which the official documentation describes, were not tried here. The harness version was not recorded in the traces: this entry does not say those resumes fail, only that, in the traces reviewed, no agent that was cut off was resumed.

Where this entry comes from

Transcripts of coding-agent sessions, from 21 August to 23 September 2026, across several personal repositories. Domain terms have been replaced with their structural equivalent: the mechanism is intact, and the products are not recognisable.

The messages quoted are the harness's own, copied verbatim. The figures come from a scripted recount, done for this entry on 23 September 2026:

  • a subagent is counted if it ends on an API error message of the limit type: 38 out of 555 subagent files (6.8%), in 11 sessions, of which 34 on the session limit, 3 on the monthly cap and 1 on a generic rate refusal;
  • an exhausted window is a distinct pair (limit type, reset time) among the refused-quota records: eleven, all of five hours, from 2 to 19 September 2026.

An earlier sweep of the same corpus, with its own scripts, arrives at 42 out of 605 and the same eleven windows; the gap comes from a session folder excluded from the notebook. Every scene described was reread in its transcript: the times, file counts and commit counts are those of the original command output.


This entry is part of a notebook of 27 production failures hit between February and September 2026. Some are public and free: see the notebook.

The others are published as they are written, along with the modules and their exercises, as part of the paid product. In that product, the modules are in English; the exercises and the other entries are in French. Nothing on this page is a teaser for it.

Related notes

The method that handles this kind of failure