Batch Optimization Failures
Processing Items Individually When Batching Would Be More Efficient
15 patterns for this goal
Token and API cost management
Total: 12 patterns
Processing Items Individually When Batching Would Be More Efficient
Redundant LLM Calls for Identical or Similar Requests
Overloading Context with Irrelevant Information
Cost Optimization Degrades Agent Quality
Agent Escalates to More Expensive Models for Tasks That Don't Require Them
Agent Gets Stuck in Infinite Retry Loops
Using Expensive Models When Cheaper Alternatives Suffice
Agent Exceeds Allocated Resources Before Completion
Exponential Retry Logic Multiplies Costs Beyond Original Request
Aggressive Retries Multiply Costs
Agent Repeats Same Steps Without Progress
Attacker Intentionally Triggers High-Token Operations to Exhaust Cost Budget
Exponential Token Usage Growth
Agent Calls Tools When Not Needed
Excessive Chain-of-Thought Output