Cutting tool-output bloat in practice: one plugin reduced AWS Strands history from ~252K to ~9K tokens
pub.towardsai.net 21 hours ago 3 ● 2 sources
AWS Strands reruns of fixes initially kept about 252,000 tokens of agent history after eight log fetches. The plugin change stored large outputs externally using short IDs and reduced the chat context to about 9,000 tokens. Repeat calls were capped, so the agent’s loop behavior became more controlled and the chat stayed smaller.