{"name":"env.set","slug":"env-set","family":"setting","title":"Settings keys","noun":"settings key","description":"Plugins and hooks gain new permission scopes: session.usage, settings.read, env.get, env.set","description_source":"entry","described_by":{"version":"2.1.267","anchor":"new-pluginhook-capability-scopes-sessionusage-settingsr"},"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.267","released_at":"2026-09-09 18:25:42","spans":1}},"aliases":[],"entries":[{"version":"2.1.299","anchor":"plugin-hook-modules-managed-policy-restrictions-and-new-ses","heading":"Plugin hook modules get more events and organization policy limits","line":"Plugin hook modules can respond to more events, while plugins people install themselves face limits where an organization manages Claude Code","released_at":"2026-10-14 00:23:19","reason":"found in this entry's text"},{"version":"2.1.299","anchor":"plugin-runtime-mods-gain-uilog-envget-envset","heading":"Plugins gain entries for logging and environment variables","line":"The plugin runtime's list next to tool.register and tool.list now also includes ui.log, env.get and env.set","released_at":"2026-10-14 00:23:19","reason":"found in this entry's text"},{"version":"2.1.267","anchor":"new-pluginhook-capability-scopes-sessionusage-settingsr","heading":"New plugin\/hook capability scopes: session.usage, settings.read, env.get, env.set","line":"Plugins and hooks gain new permission scopes: session.usage, settings.read, env.get, env.set","released_at":"2026-09-09 18:25:42","reason":"found in this entry's text, named in this entry"},{"version":"2.1.267","anchor":"plugin-api-gains-fsreadwritelist-rename-plus-new-settings","heading":"Plugin API gains fs.read\/write\/list rename plus new settings.read, env.get, env.set","line":"Claude Code's plugin API renames its file actions and adds settings.read, env.get and env.set","released_at":"2026-09-09 18:25:42","reason":"found in this entry's text"},{"version":"2.1.267","anchor":"pluginhook-capability-namespace-gains-session-and-env-acces","heading":"Plugin\/hook capability namespace gains session and env access","line":"Hooks and plugins can now access session usage stats and read\/write environment variables","released_at":"2026-09-09 18:25:42","reason":"found in this entry's text"},{"version":"2.1.267","anchor":"plugin-hook-system-gains-matcherargument-shape-validation-a","heading":"Plugin hook system gains matcher\/argument-shape validation and size-limited ui.message data","line":"Plugin hooks now get validation errors for malformed matchers, disallowed edits, and oversized ui.message data","released_at":"2026-09-09 18:25:42","reason":"found in this entry's text"}],"entries_total":6,"docs":[{"source":"api","path":"managed-agents\/self-hosted-sandboxes","title":"spawn.sh: called once per claimed work item","documented":false},{"source":"api","path":"managed-agents\/self-hosted-sandboxes-reference","title":"self-hosted-sandboxes-reference","documented":false},{"source":"claude-code","path":"changelog","title":"Claude Code changelog","documented":false},{"source":"claude-code","path":"plugins\/mods\/admin","title":"Manage mods for your organization","documented":false},{"source":"claude-code","path":"plugins\/mods\/troubleshoot","title":"Troubleshoot a mod","documented":false}],"docs_total":5,"gates":[],"related":[{"name":"env","slug":"env","description":"Set [environment variables](https:\/\/code.claude.com\/docs\/en\/env-vars.md#in-settings-files) for every session and its subprocesses"},{"name":"env.get","slug":"env-get","description":"Plugins and hooks gain new permission scopes: session.usage, settings.read, env.get, env.set"},{"name":"envHooksPath","slug":"envhookspath","description":null},{"name":"environment","slug":"environment","description":"Bridge sessions re-check local auto-mode environment settings before spawning when the work item requests one"},{"name":"environmentQuery","slug":"environmentquery","description":null}],"url":"https:\/\/changelogs.core-directive.com\/reference\/setting\/env-set","family_url":"https:\/\/changelogs.core-directive.com\/reference\/setting.json"}