Checkpoints that never touch your branch
How PaneScale snapshots a working copy byte for byte without moving HEAD, the index or any branch — and why rewinding refuses to overwrite your edits.
Why the Token Guardian shows “not reported” instead of a guess — and how real budgets stop runs instead of turning numbers red.
It would have been easy to show a token number for every agent. Count the characters in and out, divide by four, done. The dashboard would look complete. It would also be wrong in ways that matter.
Agents don’t send what you see. They send system prompts, tool definitions, file contents they read, previous turns, cached context. A character count of the visible terminal misses most of it. Estimates can be off by a factor of ten, and not consistently in one direction.
A budget built on an estimate is worse than no budget: it stops a run that was fine, or lets through one that wasn’t.
It is worth spelling out what a single agent turn contains, because it explains why the visible conversation is a poor proxy:
| Part of a turn | Visible in the terminal? | Typical share |
|---|---|---|
| System prompt and tool definitions | No | Large and repeated every turn |
| Files the agent read | Partly — usually just the file name | Often the biggest part of a coding turn |
| Previous turns of the conversation | Scrolled away | Grows with every turn |
| Output of commands the agent ran | Sometimes collapsed | Large for test runs and builds |
| What you typed | Yes | Small |
| What the agent wrote back | Yes | Small to medium |
Caching changes the cost of repeated parts but not the fact that they are sent. Anthropic’s guidance on context engineering describes the context window as a budget that every file read and every tool result draws from — which is exactly why a long coding session costs far more than its visible text suggests.
The consequence: two turns that look identical on screen can differ in usage by an order of magnitude, depending on what the agent read along the way. Only the agent itself knows the real number.
Some CLIs report their usage. Claude Code includes it in the final result event of every turn; Codex reports it when a turn ends. When an agent runs through PaneScale’s runner, those events are parsed as they stream — so the Guardian sees real numbers while the work is happening.
For CLIs that don’t report usage, the Guardian says exactly that: not reported. It is a less impressive dashboard and a more trustworthy one.
The same rule applies to subscription limits. The percentage left in each limit window and its reset time come from the provider’s own data, read locally — never computed from a guess about what the plan allows.
A daily budget per engine is only useful if crossing it changes something. In PaneScale it does:
Claude Code and Codex start with five million tokens per day each. That is generous for interactive work and tight enough to catch a runaway night. Adjust it to your subscription.
There is a difference between the two engines worth knowing. Claude Code streams its usage during the turn, so a task budget can stop it live. Codex reports at the end of a turn, so the Guardian stops it after the turn that crossed the line and blocks the next attempt. Both stop; one is a little more precise.
The most expensive failure mode isn’t a big task — it is a small task repeated forever. An agent edits a file, a check fails, it makes the same edit again, the check fails again. Each round looks reasonable on its own.
The Guardian looks for repeated identical work and pauses the run when it sees a loop. Sometimes repetition is legitimate — a migration touching similar files, for example. Mark that event Not a loop and the run continues.
“Loop” covers more than one shape, so the Guardian has several rules, each with a threshold you can change:
| Rule | What it catches | Default |
|---|---|---|
| Same error | The same command failing with identical output | 3 times |
| Token spike | Usage per minute far above normal | 250,000 tokens per minute |
| Output flood | A run printing megabytes of output | 20 MB in two minutes |
| Stall | No output and no file changes | 900 seconds |
| Repeated command / no progress | The same action again without moving forward | — |
Unattended runs — the autopilot, routines — are stopped when a rule fires; attended ones such as chats are paused and you decide. Every triggered rule is listed afterwards, and the share you marked as false alarms tells you whether a threshold is too tight.
The temptation to fill every cell is real. An empty field looks like a missing feature, and a number — any number — looks like progress. But a number on a dashboard is a promise that someone measured it. When nobody did, the honest display is the one that says so. That is a small design decision with a large consequence: when the Guardian shows a number, you can act on it.
A budget that stops good work is as annoying as one that lets bad work through. Three steps get you to a sensible number:
Revisit the numbers when your plan changes or your way of working does. A budget is a statement about what normal looks like; it should change when normal does.
These three words get mixed up, and the difference matters:
Usage tells you what happened, limits tell you what is left, and budgets decide what is allowed. A good setup uses all three.
How PaneScale snapshots a working copy byte for byte without moving HEAD, the index or any branch — and why rewinding refuses to overwrite your edits.
Starting a coding CLI takes seconds. Pre-warmed sessions hide that wait — here is how we do it without eating your memory.
Teammates in PaneScale remember. Here is why everything they remember is passed as context and never as instructions — and why that matters for safety.