Follow Discord
Sweep 23 Nov 2026 · 19:13Z Build v2.1.331 548 read Stable v2.1.323 Latest v2.1.330 Next v2.1.331 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.331 ·

/add-dir trims the path you type and refuses paths with a lost ending

/add-dir now trims the path you type before looking it up and refuses a path whose last part would otherwise be dropped

Use it now Improvements
JSON All of v2.1.331
Use it nowTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
Slash CommandsArea: what it touches
ImprovementsKind: in v2.1.331,
What probably matters to youSection of the release

Unclear Which paths are now refused, and what message you see when that happens, is not stated.

What

/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.

The lookup is also told to refuse a path whose final part would be dropped, instead of quietly accepting a shorter path.

Why

This should stop a cut-off or mangled path from being added without you noticing, so the directory you get is the one you meant.

Read from
Names in the bundle/add-dir
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhich paths are now refused, and what message you see when that happens, is not stated.

See this entry in the whole of v2.1.331 →

Feedback