{"version":"2.1.321","anchor":"tool-describe-hooks-can-carry-a-cache-breaker-and-placement","canonical_anchor":"tool-describe-hooks-can-carry-a-cache-breaker-and-placement","heading":"Plugin hooks that rewrite tool descriptions can also signal a cache reset","tier":"use","area":"Plugins","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.321\/e\/tool-describe-hooks-can-carry-a-cache-breaker-and-placement","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.321","markdown":"### Plugin hooks that rewrite tool descriptions can also signal a cache reset\n\nWhen a plugin hook rewrites a tool's description, Claude Code now also keeps the hook's cache-reset marker and whether the tool loads later\n\n**What**\n\nPlugins can use hooks, small programs that run at set moments, to rewrite the description Claude sees for a tool. Before, Claude Code only kept the new description and a note that it was rewritten. It now also keeps two more things from the hook's answer:\n\n- A cache-reset marker\n\n- Whether the tool is deferred, meaning its details load only when needed\n\n**Why**\n\nClaude Code reuses earlier parts of a request through a prompt cache. Plugin hooks that rewrite tool descriptions can now control when that cache is thrown away.\n\n- Area: Plugins\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}