Context Window Packing – Agent Patterns Catalog
An agent's context window has grown to exceed the model's maximum, causing calls to fail when content is naively concatenated or truncated. The team must implement a deliberate packing policy that scores items by recency…