{"version":"2.1.309","anchor":"cdchdirpushd-command-check-new-helper","canonical_anchor":"cdchdirpushd-command-check-new-helper","heading":"New check for cd, chdir and pushd commands","tier":"notice","area":"Bash Safety","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.309\/e\/cdchdirpushd-command-check-new-helper","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.309","markdown":"### New check for cd, chdir and pushd commands\n\nClaude Code now checks cd, chdir and pushd commands for allowed flags, at most one folder, and no stack-rotation arguments\n\n**Unclear.** It is not clear what Claude Code does with a command this check rejects.\n\n**What**\n\nClaude Code has a new check for shell commands that change the current folder. A command that is not `cd`, `chdir` or `pushd` counts as simple. For those three commands, the check accepts only:\n\n- the flags `-q`, `-s`, `-L` and `-P`\n\n- at most one folder to move to\n\nIt rejects arguments like `+1` or `-1`, which rotate the folder history kept by `pushd`.\n\n**Why**\n\nThis is likely to make Claude Code stricter about which folder-change commands it lets run without asking, or which ones it keeps track of.\n\n- Area: Bash Safety\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}