Prompt Caching: Stop Paying for the Same Tokens Twice
Prompt caching reuses the prefill work for a repeated prefix, cutting cost and first-token latency. The whole technique comes down to one ordering rule.
ReadPractical writing for developers building with large language models — how they work, how to pick one, and how to keep the bill predictable.
Prompt caching reuses the prefill work for a repeated prefix, cutting cost and first-token latency. The whole technique comes down to one ordering rule.
ReadClever phrasing barely moves the needle. What actually improves agent output is what you put in front of it, in what order, with what constraints.
ReadAn agent that reads untrusted content can be instructed by it. The fix is not a better prompt — it is treating the model as an untrusted client.
ReadQuantization shrinks model weights to fewer bits so they fit in less memory. Here is how the formats differ, what accuracy you lose, and how to pick one without guessing.
ReadThe Qwen line is the only open family that spans 27B to 397B under Apache 2.0. A guide to choosing a size, reading its benchmarks, and self-hosting economics.
ReadLarge context windows were supposed to kill retrieval. They did not. Here is how the two actually compare on cost, accuracy and latency — and when to use each.
ReadToken buckets, jitter, retry budgets and circuit breakers for LLM APIs — how to stay under the limit instead of discovering it, and why naive retries amplify outages.
ReadReAct decides one step at a time. Plan-and-execute commits to a plan first. The choice changes cost, latency, recoverability and how failures look.
ReadReasoning models spend extra tokens working before they answer. Here is what that changes mechanically, which tasks it helps, and where it is just an expensive delay.
ReadConfigure Roo Code against an OpenAI-compatible base URL, then use API configuration profiles to give each mode its own model. Includes the tool-calling caveat.
ReadPutting a model call inside CI adds a non-deterministic network dependency to your build. How to keep it cheap, secret-safe on forks, and incapable of blocking a merge.
ReadRunning open weights on rented GPUs has a break-even volume. Here is how to compute yours from throughput and utilisation, and why most teams never reach it.
ReadShowing 697–708 of 731 articles