{"version":"2.1.311","anchor":"mods-new-promptpaint-hook-method","canonical_anchor":"mods-new-promptpaint-hook-method","heading":"Plugins get a new hook for drawing on the prompt input","tier":"use","area":"Plugins","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.311\/e\/mods-new-promptpaint-hook-method","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.311","markdown":"### Plugins get a new hook for drawing on the prompt input\n\nA new plugin hook, `prompt.paint`, takes text and decorations and returns the text and cursor position to show in the prompt\n\n**Unclear.** Whether ordinary third-party plugins can use `prompt.paint`, or only managed ones, is not known.\n\n**What**\n\nThe list of hooks that plugins can use gains `prompt.paint`. A hook is a point where a plugin can step in and change what Claude Code does. This one checks the text and decorations it is given and returns whether anything was drawn, the text, and the cursor position.\n\n**Why**\n\nIt gives plugins a way to decorate the box where you type your prompt.\n\n- Area: Plugins\n- Names: `prompt.paint`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}