Feature request: slash command to list workspace directories
Resolved 💬 1 comment Opened May 20, 2026 by ayeryn Closed Jun 20, 2026
Problem
There's no way from inside a Claude Code session to see which directories are currently mounted in the workspace (primary cwd + any added via /add-dir).
/statusshows the cwd but doesn't list additional working directories./add-diris add-only — invoking it opens the "add directory" input, with no list of what's already mounted.- The only way to find out today is to manually
catthe relevantpermissions.additionalDirectoriesarrays out of.claude/settings.local.jsonand~/.claude/settings.local.json.
This is friction whenever:
- I switch sessions and forget what I previously added to a project.
- I want to confirm an inherited setting before running tools that traverse files.
- I'm debugging why a tool can't see a file I expected it to.
Proposed solution
Either:
- Add a
/list-dirs(or/dirs) slash command that prints the primary cwd plus all additional directories, with their source (project local settings, user settings, etc.). - Or extend
/statusto include a "Workspace directories" section. - Or extend
/add-dirso that invoking it with no input shows the currently mounted set above the input prompt.
Option 3 is the lowest-friction since /add-dir is already the discoverable surface for this concept.
Version
Claude Code 2.1.145, macOS.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗