---
title: "Prefix Caching"
description: "1 posts about Prefix Caching, summarised, each linking to the original."
---

# Prefix Caching
> 1 posts about Prefix Caching, summarised, each linking to the original.

## Articles

### [Making open models work for long-horizon agentic workloads](https://yomu.fyi/post/making-open-models-work-for-long-horizon-agentic-workloads.md)
- Company: [Together AI](https://yomu.fyi/company/together-ai.md)
- Published: Nov 16, 2026
- Type: Explainer

Coding agents resend the entire conversation history on every turn, creating a pattern of large input and small output. Prefix caching avoids recomputing earlier tokens, but it is fragile: any change near the top of the prompt invalidates the cache for everything after it. The harness must avoid re-rendering dynamic system prompts or inserting tool definitions at the top, and must instead add new content at the end. The inference engine must route each turn to the same GPU that holds the cached KV pairs from the previous turn. Together AI and Ollama document the specific responsibilities of each side to keep long agent sessions fast and cost-effective.
