{"name":"CwdChanged","slug":"cwdchanged","family":"hook","title":"Hook events","noun":"hook event","description":"When the working directory changes, for example when Claude executes a `cd` command. Useful for reactive environment management with tools like direnv","description_source":"docs","described_by":{"doc":"claude-code\/hooks","title":"Hooks reference"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.308","builds":0,"mined_builds":149,"first_cited":{"version":"2.1.229","released_at":"2026-08-12 19:28:48","spans":1}},"aliases":[],"entries":[{"version":"2.1.229","anchor":"hooks-are-handed-a-session-object-instead-of-reading-globals","heading":"Hooks are handed a session object instead of reading globals","line":"Hooks now get an explicit session with id, working directory and project root instead of guessing from globals.","released_at":"2026-08-12 19:28:48","reason":"found in this entry's text"},{"version":"2.1.83","anchor":"cwdchanged-and-filechanged-hooks","heading":"CwdChanged and FileChanged Hooks","line":null,"released_at":"2026-03-24 22:16:47","reason":"found in this entry's text"}],"entries_total":2,"docs":[{"source":"claude-code","path":"hooks","title":"Hooks reference","documented":true},{"source":"claude-code","path":"agent-sdk\/hooks","title":"Intercept and control agent behavior with hooks","documented":true},{"source":"claude-code","path":"agent-sdk\/typescript","title":"Agent SDK reference - TypeScript","documented":false},{"source":"claude-code","path":"hooks-guide","title":"Automate actions with hooks","documented":false},{"source":"claude-code","path":"whats-new\/2026-w13","title":"Week 13 \u00b7 March 23\u201327, 2026","documented":false}],"docs_total":5,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/hook\/cwdchanged","family_url":"https:\/\/changelogs.core-directive.com\/reference\/hook.json"}