X-11Cache-aware Context Layout
Order the window by how often each part changes, because a prompt cache is a prefix match and the first mutation invalidates everything after it.
Further reading
- Effective context engineering for AI agents Anthropic Engineering, 2025
- Effective harnesses for long-running agents Anthropic Engineering, 2025