{"name":"prompt.context","slug":"prompt-context","family":"setting","title":"Settings keys","noun":"settings key","description":"A new prompt.context hook event lets plugins add named context blocks to a prompt, capped at 32 blocks and 32000 characters.","description_source":"entry","described_by":{"version":"2.1.259","anchor":"new-functionhooks-event-promptcontext"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.319","builds":0,"mined_builds":159,"first_cited":{"version":"2.1.259","released_at":"2026-09-02 21:21:42","spans":5}},"aliases":[],"entries":[{"version":"2.1.286","anchor":"composer-gains-composedfromownwordsonly-and-a-promptcompose","heading":"Plugin hooks gain a prompt.compose method and an asUser option on submit","line":"Plugin hooks can now call a new prompt.compose method, and prompt.submit now accepts an asUser option that must be true or false","released_at":"2026-09-30 17:14:38","reason":"found in this entry's text"},{"version":"2.1.265","anchor":"uiinvalidate-now-supports-invalidating-commanddescribe","heading":"ui.invalidate now supports invalidating command.describe","line":"The ui.invalidate plugin operation can now also invalidate command.describe","released_at":"2026-09-08 19:05:16","reason":"found in this entry's text"},{"version":"2.1.259","anchor":"new-functionhooks-event-promptcontext","heading":"New functionHooks event: prompt.context","line":"A new prompt.context hook event lets plugins add named context blocks to a prompt, capped at 32 blocks and 32000 characters.","released_at":"2026-09-02 21:21:42","reason":"found in this entry's text, named in this entry"},{"version":"2.1.259","anchor":"new-pluginhook-events-promptcontext-and-sessionstart","heading":"New plugin\/hook events 'prompt.context' and 'session.start'","line":"Two hook events arrive: session.start fires on terminal session start, and prompt.context is registered but has no emitter here.","released_at":"2026-09-02 21:21:42","reason":"found in this entry's text, named in this entry"},{"version":"2.1.259","anchor":"plugin-ui-hooks-can-now-invalidate-on-promptcontext-not-ju","heading":"Plugin UI hooks can now invalidate on prompt.context, not just prompt.section","line":"Plugins can now invalidate prompt.context specifically through ui.invalidate, alongside ui.render and prompt.section.","released_at":"2026-09-02 21:21:42","reason":"found in this entry's text, named in this entry"},{"version":"2.1.259","anchor":"promptcontext-dispatch-hook-point","heading":"prompt.context dispatch hook point","line":"Computed prompt context blocks are forwarded through a registered prompt.context handler when one exists, alongside a session-bound extension point.","released_at":"2026-09-02 21:21:42","reason":"found in this entry's text, named in this entry"}],"entries_total":6,"docs":[{"source":"claude-code","path":"plugins\/mods\/admin","title":"Manage mods for your organization","documented":false},{"source":"claude-code","path":"plugins\/mods\/events","title":"React to events with a mod","documented":false},{"source":"claude-code","path":"plugins\/mods\/reference","title":"Mods reference","documented":false}],"docs_total":3,"gates":[],"related":[{"name":"prompt","slug":"prompt","description":"Auto-mode is stricter: text you asked Claude to review can't grant permission on your behalf."},{"name":"prompt.attachment","slug":"prompt-attachment","description":"New `prompt.attachment` hook lets plugins rewrite or remove text attached to a message"},{"name":"prompt.autocomplete","slug":"prompt-autocomplete","description":"A new `prompt.autocomplete` plugin hook lets plugins add completion rows under the prompt, including for desktop, mobile and VS Code composers"},{"name":"prompt.change","slug":"prompt-change","description":"The `prompt.change` hook runs when a plugin or the landing screen changes the prompt box, and stops itself if plugins keep refilling it"},{"name":"prompt.compose","slug":"prompt-compose","description":"Claude Code can now compare two versions of a changing schema and label the difference, such as text only or new live additions"},{"name":"prompt.edit","slug":"prompt-edit","description":"Plugins can now hook into 'prompt.attachment' to rewrite or drop attachment text before it reaches the model"},{"name":"prompt.fill","slug":"prompt-fill","description":"Plugins can now fill in or suggest text directly in the prompt input box via two new prompt.fill and prompt.suggest actions"},{"name":"prompt.md","slug":"prompt-md","description":"`plugin eval` warns when writing results inside a plugin's own directory could get picked up as plugin components"},{"name":"prompt.paint","slug":"prompt-paint","description":"A new plugin hook, `prompt.paint`, takes text and decorations and returns the text and cursor position to show in the prompt"},{"name":"prompt.read","slug":"prompt-read","description":"New plugin hook API lets plugins read the current text and cursor position in the prompt box"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/setting\/prompt-context","family_url":"https:\/\/changelogs.core-directive.com\/reference\/setting.json"}