Where Coding-Agent Time Goes Between Model Calls: One Day of Gateway Timestamps
We split one day of agent activity into time spent in model calls and time between them. Model calls were 17.7% of active time in one harness and 7.5% in the other. Most gaps between calls lasted a few seconds, but a small set of long gaps, clustered at each harness’s tool wait limit, held most of the time.
A coding agent alternates between two states. Either it is waiting on a model response, or the model has asked for something, such as a shell command, a file edit or a test run, and the harness is carrying it out. Faster models shorten the first state only, so it helps to know how the time splits.
Our model gateway records the request time and end-to-end latency of every call. For two calls in a row in the same conversation, the time from the end of the first response to the next request is time spent outside the model: running tools, waiting on commands, or idle. We took the 24 hours from 1 November, 16:00 UTC, and looked at the two harnesses that do most of our agent work: an OpenAI model in a Codex-style harness (8,376 calls in 36 conversations) and an Anthropic model in Claude Code (4,821 calls in 35 conversations). Gaps longer than 30 minutes count as idle and are left out.
Show the data
| Codex-style | Claude Code | |
|---|---|---|
| <1 s | 0.3 | 0.1 |
| 1–5 s | 2.1 | 1.5 |
| 5–15 s | 1.6 | 1.5 |
| 15–60 s | 2.9 | 2.9 |
| 1–3 min | 5.2 | 5.3 |
| 3–10 min | 122.5 | 60.4 |
| 10–30 min | 11.8 | 22.3 |
Model calls were a minority of active time
In the Codex-style harness, model calls took 31.4 agent-hours and the gaps between them 146.3, so the model accounted for 17.7% of active time. In Claude Code the figures were 7.6 and 94 hours, 7.5%. The median call took 8 seconds in the first harness and 4.5 in the second.
Most gaps were short. The median gap was 2.2 seconds in the Codex-style harness and 3.7 in Claude Code, and 68% and 61% of gaps lasted under 5 seconds. Presumably those are reads, edits, searches and quick commands. The time was in the long tail:
- Codex-style harness. 1,534 gaps of 3 minutes or more, 18.6% of 8,265, held 134.3 hours, 92% of all between-call time.
- Claude Code. 583 gaps of 3 minutes or more, 12.9% of 4,531, held 82.7 hours, 88%.
Long gaps cluster at two lengths
The long gaps cluster at two lengths. In the Codex-style harness, 1,334 gaps fell between 295 and 310 seconds. They add up to 111.4 hours, 76% of that harness’s between-call time. In Claude Code, 303 gaps fell between 585 and 605 seconds, 50 hours and 53% of its between-call time.
Our inference: these lengths match how each harness waits on a long command. The Codex-style harness checks on a running command with a tool call that names a maximum wait, and 300 seconds is a value its agents use for long runs. Claude Code’s shell tool allows a command at most 10 minutes, and agents waiting for a build or deployment can block in a shell loop with a timeout just under that. A gap that ends at the limit then means the wait ran out, most likely because the command had not finished, and these gaps measure how long builds, CI runs and deployments kept agents waiting, in slices set by the limit. The metadata does not record which command was running, so we have not confirmed this gap by gap.
The answer depends on what counts as idle
Where idle starts is a choice, and the 300-second cluster makes the Codex-style figure sensitive to it. With a 5-minute cutoff, those gaps fall just outside it, and the model’s share rises to 54.8%. From 10 minutes upward, the share stays between 16.5% and 18.9%. Claude Code’s share ranges from 6.7% to 27.8% over the same cutoffs. We use 30 minutes so that waits on commands running up to half an hour count as active time.
What we would do with this
Our inference from this data, rather than measured results:
- Measure agent speed end to end before choosing a faster model. In this window a 2x faster model would have shortened the active time of these tasks by about 4 to 9%, while the long command waits stayed as they were.
- Look at the commands behind the long gaps. Builds, CI runs and deployments set most of the wall-clock time here, so caching, incremental builds and smaller test plans have more effect than prompt changes.
- Prefer waits that return when the command exits. Every return at a fixed limit costs a model call, and a wait that checks only periodically can add delay after the command finishes.
- Record tool spans at the gateway or harness. With the command name and duration on each gap, this split would no longer depend on inference from timestamps.
Limits of this account: one day from one development fleet, two harnesses with different models, tasks and prompts, so the two shares are not a comparison of the harnesses. Gaps include harness overhead and any time a person took to reply, and the idle cutoff is a choice. Calls without a conversation id, about a quarter of the window, are not included. Concurrent calls within a conversation, mostly subagents in Claude Code, were excluded rather than untangled. The cause of the long gaps is inference.