Cmd. /add-dir
Add a working directory for file access in this session.
Key takeaways
- Add a working directory for file access in this session.
- Check the input surface and availability before using the examples below.
Purpose
Add a working directory for file access in this session.
/add-dir <path>Availability
| Field | Value |
|---|---|
| Input surface | Running CLI prompt |
| Kind | Built-in |
| Status | Current reference |
| Aliases | — |
| Documented minimum | Not specified |
| Reviewed against | 2026-09-22 · Claude Code 2.1.278 |
The installed command menu and account or organization settings determine availability.
Examples
/add-dir ../sharedEffects and persistence
Adds file access for this session; it does not load every project setting from the added directory.
Cautions
Grant only the directories the task needs; adding access does not import all configuration from that directory.