3 minute read

Every few months a thread makes the rounds arguing that switching from a vendor CLI to a minimal agent harness stretches your subscription twice as far because the system prompt is smaller.

I wanted that to be true, so I checked my own numbers.

Across a seven-day local sample of 34,269 recorded requests across 698 sessions (5.94B raw tokens on Claude, 2.23B on Codex), median request size was 300,521 tokens on Claude and 128,613 tokens on Codex. Shaving 3,000 tokens of harness scaffolding off every single request in that week would have reduced raw volume by 0.88% on Claude and 2.28% on Codex. And because 5.85B of Claude’s 5.94B tokens were cache reads, breaking prompt cache alignment in the process can easily make net allowance burn worse, not better.

If you want to stop running out of quota on Thursday, system prompt golf is the wrong sport.

The seven leaks that actually eat a weekly plan

When I built the waste audit (npm run waste) in aispend.live to scan deduplicated turn logs across Claude Code, Codex, and Antigravity, almost all preventable burn clustered into seven concrete patterns:

  1. Context gravity (>150k streaks): Long threads that stay open across three unrelated features. Even at a 90%+ cache hit rate, replaying 220,000 tokens per turn for forty turns drains rolling subscription windows fast.
  2. Codex’s 272k 2x cliff: Above roughly 272k input tokens on OpenAI models, input quota weight doubles. One un-checkpointed marathon session costs two sessions’ worth of weekly allowance.
  3. /fast and xhigh on 200-token edits: Leaving /fast (2x–8x weight) or xhigh reasoning active while fixing CSS padding or renaming variables.
  4. Subagent spawns late in a fat thread: Spawning three subagents when the parent thread is already at 190k tokens copies that history into every child’s first cache write. In my local logs, subagents accounted for ~92% of Claude tokens and ~68% of Codex tokens.
  5. Cold-cache gaps: Returning to a large thread just after a 5-minute cache TTL expires, paying full fresh-input weight repeatedly instead of batching work or compacting first.
  6. Zero-output retry & tool loops: Identical failing grep or test commands repeating three or four times before anyone notices.
  7. Paid surplus dying at reset: Babysitting a subscription at 11% remaining while another subscription sits at 78% twelve hours before its weekly reset wipes the slate clean.

Native CLI vs. Pi Guard: an honest rule of thumb

Once you measure those seven leaks, the question “Should I work in the native CLI or route through Pi Guard?” stops being ideological and becomes mechanical.

Native CLIs win when you have clear headroom on a single tool. Native Antigravity /swarm and /teamwork have first-class workspace integration; native Codex and Claude Code maintain tight prompt-cache prefixes with zero bridge translation overhead. Wrapping a healthy 75%-remaining subscription in a bridge buys you nothing.

Pi Guard wins in three specific situations:

  • Fragmented tight quotas: When Claude is at 16%, Codex is at 21%, and AGY is at 24%, no single native CLI can finish a long afternoon uninterrupted. Pi Guard stitches them together automatically, saving a local Markdown handoff when one window hits zero and continuing on the next—and never silently buying paid API fallback.
  • Unchecked tool output & context bloat: Pi Guard archives oversized shell/search output above 16,000 characters before the model ever sees the replay, blocks the third identical tool call automatically, and compacts history at 120k tokens.
  • Unattended /goal runs: Overnight runs hit five-hour burst caps or text-disguised bridge quota refusals. Pi Guard detects those walls, marks the window exhausted, and reroutes without waiting until morning.
1
2
3
4
5
# Inside pi-guard: inspect live pacing, switch work profiles, or check waste
/guard autopilot
/guard teamwork
/guard waste
/guard role implementor

Strict savings accounting

Pi Guard’s accounting rule is deliberately skeptical: shortening a 48,000-character test log down to 16,000 characters records 32,000 net removed characters, but estimated tokens avoided is still zero until a subsequent completed request in the same task actually replays that shortened history (removedChars / 4 credited once, with any compaction overhead logged right beside it).

That keeps the Surface Verdict inside npm run check -- --live honest: stay native when surplus and cache favor native, and route through Pi Guard when fragmentation or context bloat makes automatic trimming and failover cheaper.

Details

Published: