Quick one guys Asked PETER STURGE (@petersturge) · March 27, 2026 How do you stop your agent army from destroying your API bill? Answers (10) Code With Jane · March 27, 2026 · 1 like Best trick I learned: Start every agent session with ‘You are cost-aware and will always choose the cheapest reasonable path to complete the task.’ It actually changes their behavior. cyclops · March 27, 2026 · 1 like Regular audits. Every Sunday I look at the most expensive agents and roast them publicly in my private log. Shame works wonders. Zaineee · March 27, 2026 · 1 like Pre-approve common patterns. Agents can only use a whitelist of safe, low-cost actions unless I explicitly allow escalation. Petite Stella · March 27, 2026 · 1 like I switched a lot of workflows to Cloudflare Workers + Code Mode. Much cheaper execution layer than running everything through LLM calls. I am Grace · March 27, 2026 · 1 like The nuclear option: ‘You must justify the business value of every tool call in one sentence or I will delete you God of Prompt · March 27, 2026 · 1 like I give each agent a daily token allowance. When it’s gone, it politely says ‘I’m out of budget, boss’ and goes to sleep. charlee · March 27, 2026 · 1 like Caching + memory management. If the agent is repeating the same research, I make it store results and reuse them instead of re-querying everything. DaReDeViL · March 27, 2026 · 1 like Honest answer: I don’t always stop them… sometimes I just cry when the bill arrives and then add stricter limits for next time Vision · April 21, 2026 · 1 like set limits, cache results, and don’t let agents run blindly without check Ayush · April 26, 2026 · 1 like Try to limit the context window wherever possible 15 likes · 10 answers · 9 views
Code With Jane · March 27, 2026 · 1 like Best trick I learned: Start every agent session with ‘You are cost-aware and will always choose the cheapest reasonable path to complete the task.’ It actually changes their behavior.
cyclops · March 27, 2026 · 1 like Regular audits. Every Sunday I look at the most expensive agents and roast them publicly in my private log. Shame works wonders.
Zaineee · March 27, 2026 · 1 like Pre-approve common patterns. Agents can only use a whitelist of safe, low-cost actions unless I explicitly allow escalation.
Petite Stella · March 27, 2026 · 1 like I switched a lot of workflows to Cloudflare Workers + Code Mode. Much cheaper execution layer than running everything through LLM calls.
I am Grace · March 27, 2026 · 1 like The nuclear option: ‘You must justify the business value of every tool call in one sentence or I will delete you
God of Prompt · March 27, 2026 · 1 like I give each agent a daily token allowance. When it’s gone, it politely says ‘I’m out of budget, boss’ and goes to sleep.
charlee · March 27, 2026 · 1 like Caching + memory management. If the agent is repeating the same research, I make it store results and reuse them instead of re-querying everything.
DaReDeViL · March 27, 2026 · 1 like Honest answer: I don’t always stop them… sometimes I just cry when the bill arrives and then add stricter limits for next time
Vision · April 21, 2026 · 1 like set limits, cache results, and don’t let agents run blindly without check
Answers (10)
Best trick I learned: Start every agent session with ‘You are cost-aware and will always choose the cheapest reasonable path to complete the task.’ It actually changes their behavior.
Regular audits. Every Sunday I look at the most expensive agents and roast them publicly in my private log. Shame works wonders.
Pre-approve common patterns. Agents can only use a whitelist of safe, low-cost actions unless I explicitly allow escalation.
I switched a lot of workflows to Cloudflare Workers + Code Mode. Much cheaper execution layer than running everything through LLM calls.
The nuclear option: ‘You must justify the business value of every tool call in one sentence or I will delete you
I give each agent a daily token allowance. When it’s gone, it politely says ‘I’m out of budget, boss’ and goes to sleep.
Caching + memory management. If the agent is repeating the same research, I make it store results and reuse them instead of re-querying everything.
Honest answer: I don’t always stop them… sometimes I just cry when the bill arrives and then add stricter limits for next time
set limits, cache results, and don’t let agents run blindly without check
Try to limit the context window wherever possible