{"name":"additionalContext","slug":"additionalcontext","family":"setting","title":"Settings keys","noun":"settings key","description":"Prompt-expansion hooks can keep your original prompt text out of the block message.","description_source":"entry","described_by":{"version":"2.1.238","anchor":"prompt-expansion-hooks-can-hide-the-original-prompt-from-a-b"},"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.163","released_at":"2026-06-04 17:56:01","spans":3}},"aliases":[],"entries":[{"version":"2.1.299","anchor":"hooks-can-return-permissiondisplay","heading":"Hooks can return display details for a permission prompt","line":"Hooks can now return `permissionDisplay` in their output, next to `additionalContext`, to supply details for a permission prompt","released_at":"2026-10-14 00:23:19","reason":"found in this entry's text, named in this entry"},{"version":"2.1.292","anchor":"hook-systemmessage-and-additionalcontext-now-wrapped-before","heading":"Hook messages and added context are processed before reaching the model","line":"Text from a hook's systemMessage and additionalContext now goes through an extra processing step before the model sees it","released_at":"2026-10-06 17:10:31","reason":"found in this entry's text"},{"version":"2.1.275","anchor":"large-hook-additionalcontext-entries-can-now-be-persisted-to","heading":"Large hook additionalContext entries can now be persisted to disk instead of truncated inline","line":"Oversized hook context is now saved to a file instead of being cut off","released_at":"2026-09-17 20:20:31","reason":"found in this entry's text, named in this entry"},{"version":"2.1.251","anchor":"new-premodelswitch-and-postmodelswitch-hooks","heading":"New PreModelSwitch and PostModelSwitch hooks","line":"New PreModelSwitch and PostModelSwitch hooks let you gate or annotate every model change.","released_at":"2026-08-28 15:34:26","reason":"named in this entry, found in this entry's text"},{"version":"2.1.238","anchor":"prompt-expansion-hooks-can-hide-the-original-prompt-from-a-b","heading":"Prompt-expansion hooks can hide the original prompt from a block message","line":"Prompt-expansion hooks can keep your original prompt text out of the block message.","released_at":"2026-08-20 18:01:54","reason":"found in this entry's text"},{"version":"2.1.199","anchor":"hook-additionalcontext-structured-json-output","heading":"Hook additionalContext: Structured JSON Output","line":null,"released_at":"2026-07-02 17:33:48","reason":"found in this entry's text"},{"version":"2.1.163","anchor":"subagentstop-hook-event","heading":"SubagentStop Hook Event","line":null,"released_at":"2026-06-04 17:56:01","reason":"found in this entry's text"},{"version":"2.1.163","anchor":"stop-hook-output-schema-with-additionalcontext","heading":"Stop Hook Output Schema with additionalContext","line":null,"released_at":"2026-06-04 17:56:01","reason":"found in this entry's text"},{"version":"2.1.118","anchor":"posttoolbatch-hook-event","heading":"PostToolBatch Hook Event","line":null,"released_at":"2026-04-22 23:48:56","reason":"found in this entry's text"}],"entries_total":9,"docs":[{"source":"claude-code","path":"agent-sdk\/hooks","title":"Intercept and control agent behavior with hooks","documented":false},{"source":"claude-code","path":"agent-sdk\/modifying-system-prompts","title":"Modifying system prompts","documented":false},{"source":"claude-code","path":"agent-sdk\/python","title":"Agent SDK reference - Python","documented":false},{"source":"claude-code","path":"agent-sdk\/typescript","title":"Agent SDK reference - TypeScript","documented":false},{"source":"claude-code","path":"context-window","title":"Explore the context window","documented":false},{"source":"claude-code","path":"glossary","title":"Glossary","documented":false},{"source":"claude-code","path":"hooks","title":"Hooks reference","documented":false},{"source":"claude-code","path":"hooks-guide","title":"Automate actions with hooks","documented":false},{"source":"claude-code","path":"monitoring-usage","title":"Monitoring","documented":false},{"source":"claude-code","path":"whats-new\/2026-w23","title":"Week 23 \u00b7 June 1\u20135, 2026","documented":false}],"docs_total":10,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/setting\/additionalcontext","family_url":"https:\/\/changelogs.core-directive.com\/reference\/setting.json"}