II.
HookSurface overview
Reference · livehook-surface:claude.cwd-changed
CwdChanged (Claude Code) overview
Fires when the working directory changes (e.g. via cd command). Has access to CLAUDE_ENV_FILE for reactive environment management. Always fires (no matcher).
Attributes
eventName
CwdChanged (Claude Code)
displayName
CwdChanged (Claude Code)
kind
native
originVendor
Anthropic
direction
post
blocking
false
family
observer
payloadSchema
type
object
required
- hook_event_name
- previous_cwd
- cwd
properties
hook_event_name
type
string
const
CwdChanged
previous_cwd
type
string
cwd
type
string
description
Fires when the working directory changes (e.g. via cd command). Has
access to CLAUDE_ENV_FILE for reactive environment management.
Always fires (no matcher).
Outgoing edges
None.
Incoming edges
exposes1
- agent-runtime-impl:claude-code.runtime@1.x·AgentRuntimeImplClaude Code Runtime (1.x)
maps_hook1
- hook-mapping:claude-cwd-changed·HookMapping