What /add-dir does
Adds a working directory for file access in the current session. It provides path suggestions and runs DirectoryAdded hooks. Claude Code confirms the directory immediately if run while Claude is responding, allowing immediate access.
Syntax
/add-dirQuick drill
Three cards from the /cards deck. Open each to check your answer.
Which command adds a working directory for file access during the current session?
- Changes the current working directory.
- Lists all accessible directories.
- Adds a working directory for file access.
- Removes a directory from the session.
Show answer
/add-dir: Adds a working directory for file access.
Which command enables or disables the advisor tool, which consults a second model for guidance?
- Switches the primary active model.
- Configures secondary model settings.
- Displays current model usage statistics.
- Enables or disables the advisor tool.
Show answer
/advisor: Enables or disables the advisor tool.
Which command lists artifacts, then allows attaching, opening, or copying links?
- Exports session data as an artifact.
- Shares artifacts with other users.
- Lists and manages session artifacts.
- Deletes selected session artifacts.
Show answer
/artifacts: Lists and manages session artifacts.
Drill all 112 commands in /cards
Spaced repetition so the right command comes to mind in your terminal.