{"name":"state.set","slug":"state-set","family":"setting","title":"Settings keys","noun":"settings key","description":"Plugin hooks modules gain `$.state.get` and `$.state.set`, a versioned shared value store only a value's owner can write","description_source":"entry","described_by":{"version":"2.1.281","anchor":"plugin-state-store-for-the-hooks-module-runtime-stateget"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.336","builds":0,"mined_builds":175,"first_cited":{"version":"2.1.333","released_at":"2026-11-30 19:04:51","spans":1}},"aliases":[],"entries":[{"version":"2.1.333","anchor":"plugin-runtime-additions-stateget-stateset-lasts-backgr","heading":"Small additions to the plugin runtime and plugin skill details","line":"The plugin runtime gains a way to read stored state, a lasts option when saving it, and new name and summary fields for skills","released_at":"2026-11-30 19:04:51","reason":"found in this entry's text"},{"version":"2.1.333","anchor":"plugin-stateset-validation-hardened","heading":"Plugins writing shared state face an extra check","line":"When a plugin writes state through `state.set`, Claude Code now runs an extra check that can refuse the write with a reason","released_at":"2026-11-30 19:04:51","reason":"named in this entry, found in this entry's text"},{"version":"2.1.281","anchor":"plugin-state-store-for-the-hooks-module-runtime-stateget","heading":"Plugin state store for the hooks-module runtime ($.state.get \/ state.set)","line":"Plugin hooks modules gain `$.state.get` and `$.state.set`, a versioned shared value store only a value's owner can write","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text"},{"version":"2.1.281","anchor":"new-stategetstateset-handlers","heading":"New state.get\/state.set handlers","line":"New state.get and state.set handlers were added, with state.set recording steady and live timestamps","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text"}],"entries_total":4,"docs":[{"source":"claude-code","path":"changelog","title":"Claude Code changelog","documented":false},{"source":"claude-code","path":"plugins\/mods\/interface","title":"Draw in the interface with a mod","documented":false}],"docs_total":2,"gates":[],"related":[{"name":"state.json","slug":"state-json","description":"Background job files can be stored somewhere other than disk, but nothing switches that on yet."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/setting\/state-set","family_url":"https:\/\/changelogs.core-directive.com\/reference\/setting.json"}