Prompt Caching (Keeping Context Hot)
Normally, changing a single character at the end of a prompt forces the model to re-prefill the entire context. In agent loops, context is constantly changing as tool results get appended. We partitioned the context: keeping tool definitions and system prompts in a cached prefix, and only processing the new tool results in the suffix.
→ Result: Prefill time dropped from 4.2s to 0.3s.