Skip to main content
reopt Handbook
reopt Handbook
Claude Code Command MasterLabels and command selectionHow to read a detail guideComplete command listTerminal CLI Commands and Flags

Task guides

Core command basicsStarting and resuming workSkills and Custom CommandsAutomation and Web CommandsOperations and Safety CommandsCustom commands and skillsMCP connections and commands

Conversation and context

Cmd. /add-dirCmd. /backgroundCmd. /compactCmd. /contextCmd. /copyCmd. /exportCmd. /forkCmd. /importCmd. /initCmd. /memoryCmd. /recapCmd. /renameCmd. /resumeCmd. /rewindCmd. claude purge

Planning and execution

Cmd. /autofix-prCmd. /batchCmd. /desktopCmd. /goalCmd. /loopCmd. /planCmd. /remote-envCmd. /scheduleCmd. /tasksCmd. /teleportCmd. /workflows

Review and verification

Cmd. /code-reviewCmd. /runCmd. /run-skill-generatorCmd. /security-reviewCmd. /simplifyCmd. /verify

Models and settings

Cmd. /claude-apiCmd. /configCmd. /effortCmd. /fastCmd. /modelCmd. /output-styleCmd. /update-config

Permissions and integrations

Cmd. /agentsCmd. /hooksCmd. /ideCmd. /mcpCmd. /permissionsCmd. /pluginCmd. /reload-pluginsCmd. /reload-skillsCmd. /sandboxCmd. /skillsCmd. /web-setup

Status and diagnostics

Cmd. /debugCmd. /diffCmd. /doctorCmd. /fewer-permission-promptsCmd. /release-notesCmd. /team-onboarding

Display and input

Cmd. /colorCmd. /focusCmd. /keybindingsCmd. /powerupCmd. /statuslineCmd. /terminal-setupCmd. /themeCmd. /tui

Account and usage

Cmd. /upgradeCmd. /usageCmd. /usage-credits

Legacy

Cmd. /costCmd. /pr-commentsCmd. /reviewCmd. /statsCmd. /ultrareviewCmd. /vimCmd. /approved-toolsCmd. /commandsCmd. /extra-usageCmd. /settingsCmd. /tagCmd. /todos

Verification and history

Current verification scopeHandbook updatesRelease coverage historyEarlier verification recordsCommand change history
Handbook›Claude Code Command Master›Cmd. /add-dir
한국어KOEnglishEN

Cmd. /add-dir

Add a working directory for file access in this session.

Written and reviewed by Eric Han · Co-founder & CTO, reopt

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

FieldValue
Input surfaceRunning CLI prompt
KindBuilt-in
StatusCurrent reference
Aliases—
Documented minimumNot specified
Reviewed against2026-10-23 · Claude Code 2.1.308

The installed command menu and account or organization settings determine availability.

Examples

/add-dir ../shared

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

Official sources

  • Commands
  • Permissions

Complete command list · Verification scope

Related docs

Cmd. /reload-skills

Re-scans on-disk skill and command directories and refreshes session availability.

Cmd. /release-notes

Displays selected release notes in the transcript without adding them to model conversation context.

Mastering CLAUDE.md

Claude Code Complete Guide · Design project memory that Claude Code can actually follow.

Cmd. /cd

Codex Command Master · Track the 0.149.0 working-directory commands and verify their live behavior in the installed slash-command help.

Cmd. /goal

Codex Command Master · Set, inspect, pause, resume, or clear a persistent long-running task goal.

MCP connections and commands

Choose the commands for mcp connections and commands and follow their availability rules and concrete examples.

Cmd. /background

Detach the current session as a background agent (/bg).

On this page

PurposeAvailabilityExamplesEffects and persistenceCautionsOfficial sources