{"version":"2.1.257","anchor":"tool-definition-prompt-cache-key-gains-new-bits-for-query-so","canonical_anchor":"tool-definition-prompt-cache-key-gains-new-bits-for-query-so","heading":"Tool-definition prompt cache key gains new bits for query source and prompt trimming","tier":"internal","area":"Prompt Caching","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.257\/e\/tool-definition-prompt-cache-key-gains-new-bits-for-query-so","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.257","markdown":"### Tool-definition prompt cache key gains new bits for query source and prompt trimming\n\nThe tool-definition cache key now also reflects the query source and whether prompt trimming was applied.\n\nThe cache key used to reuse compiled tool definitions across turns now also factors in whether the query came from a particular source, adding a new \"K:\" prefix, and whether first-line pre-read or bash-first prompt trimming was applied. This joins the existing lean-prompt (\"L:\") and grep (\"G:\") bits already in the key.\n\n- Area: Prompt Caching\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5"}