{"version":"2.1.331","anchor":"add-dir-path-handling-refuses-dropped-name-ends","canonical_anchor":"add-dir-path-handling-refuses-dropped-name-ends","heading":"\/add-dir trims the path you type and refuses paths with a lost ending","tier":"use","area":"Slash Commands","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/add-dir-path-handling-refuses-dropped-name-ends","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### `\/add-dir` trims the path you type and refuses paths with a lost ending\n\n`\/add-dir` now trims the path you type before looking it up and refuses a path whose last part would otherwise be dropped\n\n**Unclear.** Which paths are now refused, and what message you see when that happens, is not stated.\n\n**What**\n\n`\/add-dir` adds a working directory that Claude Code may read and write during the current session. It now removes extra spaces from the start and end of the path you type before looking it up. Before, the path was used exactly as typed.\n\nThe lookup is also told to refuse a path whose final part would be dropped, instead of quietly accepting a shorter path.\n\n**Why**\n\nThis should stop a cut-off or mangled path from being added without you noticing, so the directory you get is the one you meant.\n\n- Area: Slash Commands\n- Names: `\/add-dir`\n- Tier: Use it now\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}