5:55Your Agent Is Wasting Tokens and You Don't Know It
Erik Hanchett shares five ways to reduce token use in AI agents: cache prompts, choose models based on task difficulty, store or summarize large tool results, cap tool loops, and trim conversation history. He demonstrates the ideas with AWS Strands Agents and describes its sliding window conversation manager. He recommends using observability tools to inspect tool usage and iteration counts, then improving agent efficiency. Trimming history can save tokens, though it means older messages are no longer included unless summarized.