claude-code - 💡(How to fix) Fix Feature request: slash command to list workspace directories

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

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

  • /status shows the cwd but doesn't list additional working directories.
  • /add-dir is 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 cat the relevant permissions.additionalDirectories arrays out of .claude/settings.local.json and ~/.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:

  1. 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.).
  2. Or extend /status to include a "Workspace directories" section.
  3. Or extend /add-dir so 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.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING