/plugin marketplace add gruckion/claude-code-cwd-tracker/plugin install gruckion-cwd-tracker@gruckion/claude-code-cwd-trackerDefined in hooks/hooks.json
{
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/cwd-notify.sh",
"timeout": 5
}
],
"matcher": "Bash"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "rm -f /tmp/claude-cwd-state && echo '✓ CWD Tracker loaded: Working directory changes will be tracked'"
}
],
"matcher": "startup"
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": false
},
"typeStats": {
"command": 2
},
"eventStats": {
"PostToolUse": 1,
"SessionStart": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 1,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 1
}
}