JavaScript Agent Compression: Cost per Success vs. a 7× GPU Claim
Fewer prompt tokens do not automatically mean cheaper completed tasks. This walkthrough separates a reported, unverified up-to-7× GPU output headline from the metric a JavaScript agent benchmark should measure: total spend across all evaluated runs divided by independently verified successes. The video shows where compression belongs in the agent loop, how to account for failed runs and compression calls, and why a baseline must not silently summarize on context overflow. The percentage example is illustrative, not measured benchmark output. The source specifies a harness and accounting approach; it reports no executed production-provider experiment establishing compression's effectiveness. Full write-up: https://hackyjs.com/posts/benchmarking-per-step-context-compression-in-javascript-agents-cost-per-successful-task-vs-a-7-gpu-output-clai