When should you use it?
- Your agent bills keep rising
- You run many long sessions
- You are weighing local hardware
Not for: Light occasional use; Teams without usage data
What do you need, and what do you get?
You need
- Usage logs
- Session list
- Price sheet
You get
- Input versus output breakdown
- Cache hit rate
- Session habits to change
How does it work, step by step?
- Pull usageExport a week of token counts by session.
- Split input and outputCompare how much is reread context.
- Check cache hitsFind sessions where long idle gaps forced full rereads.
- Adjust habitsClose idle sessions or compact context before breaks.
- Price localEstimate whether local inference would pay back.
The prompt
Our own prompt, inspired by Roark66 on Hacker News and written to work in Claude Code and Custom agent. Values in lime are placeholders.
Fill in the blanks (optional; the copied prompt uses your values)
From my usage export {usage_file}, total input and output tokens per session for the past week. Estimate the cached share and flag sessions where idle gaps longer than {cache_window} likely caused full rereads. Suggest three habit changes and estimate the savings for each.
Inspired by Roark66 on Hacker News: Comment in JetBrains reports revenue growth, net financial loss for 2025. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.
What can go wrong?
- Idle gaps longer than the cache window reset costs.
- Huge contexts magnify every miss.
- Hardware math must include power and your time.
Our take
Most people watch output length when the money is going to input. Roark66's numbers make the point starkly: the reread context dwarfs what the model writes. You do not need local GPUs to act on this. Look at cache hits per session, notice where a coffee break reset a huge context and triggered a full rebill, and compact or close sessions before stepping away for longer than the cache window. Prefer smaller, focused sessions over one giant context that must be reloaded often. If you run many long sessions every day, pricing a local setup against cloud spend is fair, but count electricity, hardware wear and your own upkeep time honestly. Ask your provider for usage exports that split input, output and cache hits, since the dashboard summary alone can hide the pattern. Merging, deploying and deleting stay with a person regardless of where the model runs. A five-minute cache means even a short walk can erase savings.
Where the time goes back: You find the expensive habits in your agent use before they hit the bill.
FAQ
Why does input dominate?
Why local?
Source and credit
Inspired by Roark66 on Hacker News. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.
- Inspired by
- Comment in JetBrains reports revenue growth, net financial loss for 2025
- Creator
- Roark66 on Hacker News
- Published on
- Hacker News
- Original date
- Oct 7, 2026
- License
- Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
- Originally for
- Custom agent
- AI dry run
- Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends, bookings or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails. - Verified
- Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.
Are you the creator? Claim or correct this page.