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

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

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗