Courseiva

Arrange a request for prompt caching

Claude Developer · Claude Architect · about 4 minutes

Prompt caching matches the request prefix exactly (tools, then system, then messages), so any change invalidates everything after it. Sort each part of a support-bot request: before the cache breakpoint (stable) or after it (changes per request).

  • Tool definitions, in a fixed order
  • System prompt with the support policies
  • The 40-page product manual
  • The current date and time
  • The customer's latest question
  • A per-request tracking ID