← All problems
Developer tools Observed November 12, 2026

Long coding-agent sessions leave their usage hard to explain

Two Codex users report that large cached contexts recur across tool-heavy sessions, while the quota meter does not tell them which steps or token classes account for the change.

What someone actually noticed

One Codex CLI user reports that their five-hour usage meter rose during a long document-and-tool session, even though most locally recorded input tokens were cached. They explicitly allow that accumulated context may explain the volume, but ask how cached input, output, reasoning, workspace selection, and other operations affect the displayed allowance. A later independent commenter adds a bounded example involving automatic reviews; neither establishes an incorrect server-side charge.

A different Codex user reports repeatedly large input contexts in long tool-heavy sessions and analyzes local request records, tool calls, and compaction cycles. Their report distinguishes high locally accounted context volume from a proven billing error, and asks for per-turn effective quota visibility. Both GitHub issues were still open when inspected; the first has a bot suggesting possible duplicates, not a maintainer-confirmed cause or fix.

An older Unicorne issue pointed to Headroom, whose product site describes trimming repeated material before it reaches an agent. That is a discovery clue for context overhead, not independent evidence of these users' quota experience. Compression and explaining an existing session's usage are different jobs.

Read the original signal: Codex GitHub issue and follow-up about cached input and quota visibility

Ways to solve it

Without new software, start a fresh session for a bounded task, compare the CLI's existing usage display before and after, and keep a manual note of model, tool activity, and context size. Use a sanitized support report when the meter still looks inconsistent; avoid assuming cached tokens are free.

If manual inspection cannot locate the expensive stretches, test a read-only local timeline on logs from consenting users. Keep it separate from compression and label estimates clearly; do not claim to reconstruct server-side quota charges from client records.

A small app you could build

Session Usage Trace

Prototype a local, read-only session report that aligns recorded token classes and context growth with tool turns and quota snapshots, without estimating an official bill or changing prompts.

Who might use it: Developers investigating unexpectedly large usage in long Codex sessions

  1. Import a user-selected local session log and redact prompt and tool-output bodies by default
  2. Chart per-request input, cached input, output, and context growth alongside tool-turn timestamps
  3. Allow manual quota snapshots and annotate that account-wide meters cannot be attributed to one turn
  4. Export an aggregate report without message text or account identifiers

What to verify before building

  • Check which current Codex session records expose per-request token classes and timestamps without needing to retain prompts, files, or identifiers.
  • Ask affected users whether a redacted timeline identifies an actionable restart or tool-loop pattern better than the built-in usage display and a manual log.
  • Compare local records with before-and-after quota snapshots across an isolated session; label any mismatch as unexplained rather than misbilling.
  • Review upstream diagnostics and competing context tools before building a parser that may duplicate an existing feature.

Reality check

Two reports do not establish prevalence, wrong quota accounting, or willingness to pay. Local telemetry cannot reveal the provider's private weighting, other-device activity, or the true per-turn contribution to an account-wide subscription meter. A format change or a native diagnostic could obsolete a log parser. Headroom already tackles context compression, but neither its marketing nor these reports proves that a separate usage trace would help users make better decisions.

An observation is not market validation. Check other reports and talk to the people who experience this before committing more than a tiny experiment.