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

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 …es during a session | Reload environment variables per directory | | `FileChanged` | No | Yes | A watched file is modified, created, or deleted | Reload configuration when project files change | | `Di… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …" | "WorktreeRemove" | "InstructionsLoaded" | "CwdChanged" | "FileChanged" | "MessageDisplay"; ``` ### `HookCallback` Hook callback function type. ```typescript theme={null} type HookCall… Hooks reference Claude Code CLI · in the page hooks …eeRemove, Notification, ConfigChange, InstructionsLoaded, CwdChanged, FileChanged, and DirectoryAdded as standalone async events, PreModelSwitch as a standalone sequential event that runs before a req… Automate actions with hooks Claude Code CLI · in the page hooks-guide …wever it changes, including when a `Bash` command rewrites it, use a [FileChanged](/docs/en/hooks.md#filechanged) hook instead. > [!NOTE] > > The Bash examples on this page use `jq` for JSON parsing.… Week 13 · March 23–27, 2026 Claude Code CLI · in the page whats-new/2026-w13 …s.d/` drop-in directory for layered policy fragments`CwdChanged` and `FileChanged` hook events for direnv-style setupsAgents can declare `initialPrompt` in frontmatter to auto-submit a first turn`Ctrl…
Feedback