Kept agent helpers cost 35% less than fresh subagents over 20 coding tasks

halilagin80 · reddit · 2026-11-29

A controlled benchmark in Claude Code (Opus 5.5 high effort, 1,000-line Node.js app, 20 sequential feature tasks, 3 paired runs) found that keeping 3 long-lived helper sessions alive costs 35% less pooled than spawning fresh subagents per task ($108 vs $167), with per-task savings settling at 35–42% from task 6 onward.

Why: fresh helpers rebuild system prompts and re-read code each task, paying 3x more cache writes (9.4M vs 3.1M tokens); kept helpers also extend existing code rather than re-implementing it, writing 19% fewer lines. All runs passed acceptance checks.

The catch: a 70-minute pause (beyond the 1-hour cache lifetime) cut the advantage from 35% to 6%—keep helpers alive only for related tasks arriving within an hour. Limitations: only 3 pairs (interval 13–57%), one codebase, one model/harness; the author discloses he built the kept-helper harness. Paper and Apache-2.0 harness (a Go agentic dev environment with persistent per-pane sessions) are published for replication.

Original post →

More from coding & agent

coding & agent channel →