Marketplaces / vanillagreencom/kendex / block-bare-cd
block-bare-cd
Refuse a command with a line that is only a `cd`. Where the shell persists across tool calls (Claude Code) a bare cd re-roots every later command and every hook that judges the working directory, while instruction files and hook paths stay with the launch directory; a cd into a worktree inside the repository, Claude Code's default `.claude/worktrees/<name>/`, also loads that tree's instruction fil
hook · @ 8ee7099
Supported tools · not supported on:
- Antigravity: Antigravity is reached only by a hook that names it in its harnesses line; its payload is not the tool_input shape a hook written for the other tools reads
Install in kendex: kendex add --hook block-bare-cd after subscribing to vanillagreencom/kendex.
Open in app
No app yet? Download kendex.
This package carries no rendered README.