{"version":"2.1.292","anchor":"new-plugin-hook-event-promptautocomplete","canonical_anchor":"new-plugin-hook-event-promptautocomplete","heading":"Plugins gain a prompt autocomplete hook event","tier":"use","area":"Plugins","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.292\/e\/new-plugin-hook-event-promptautocomplete","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.292","markdown":"### Plugins gain a prompt autocomplete hook event\n\nA new plugin event, `prompt.autocomplete`, is defined to let a plugin suggest completions while you type, though nothing raises it yet\n\n**Unclear.** It is not clear whether anything in Claude Code triggers this event yet, so plugins may not receive it.\n\n**What**\n\nPlugins add features to Claude Code and can react to events. A new event, `prompt.autocomplete`, now sits alongside `prompt.suggest`. It gives a plugin the text you have typed, where your cursor is, the word being completed and where that word starts. The plugin must reply with a list of suggestions. Each suggestion has a non-empty text and can have a label and a description.\n\nClaude Code can also now shorten over-long event arguments and results. `config.describe` and `command.describe` gain the same result shortening.\n\n**Why**\n\nThis is groundwork for letting plugins suggest completions as you type.\n\n- Area: Plugins\n- Names: `prompt.autocomplete`, `prompt.suggest`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}