Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

5 pages for directoryadded.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Intercept and control agent behavior with hooks Claude Code CLI · in the page agent-sdk/hooks …ted, or deleted | Reload configuration when project files change | | `DirectoryAdded` | No | Yes | A working directory is added during a session | Install dependencies for a repository added mid-sessi… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …ed" | "Elicitation" | "ElicitationResult" | "ConfigChange" | "DirectoryAdded" | "WorktreeCreate" | "WorktreeRemove" | "InstructionsLoaded" | "CwdChanged" | "FileChanged" | "Message… Commands Claude Code CLI · in the page commands …twork-path), such as `\\server\share`. After a successful add, your [`DirectoryAdded` hooks](/docs/en/hooks#directoryadded) run. When you run it while Claude is responding, Claude Code asks you to con… Hooks reference Claude Code CLI · in the page hooks …ation, ConfigChange, InstructionsLoaded, CwdChanged, FileChanged, and DirectoryAdded as standalone async events, PreModelSwitch as a standalone sequential event that runs before a requested model swit… Automate actions with hooks Claude Code CLI · in the page hooks-guide …seful for reactive environment management with tools like direnv | | `DirectoryAdded` | When a working directory is added mid-session via `/add-dir` or the SDK `register_repo_root` control request | |…
Feedback