Search the documentation
6 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
…| | `FileChanged` | No | Yes | A watched file is modified, created, or dele…
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, and MessageDisplay as a display-only event that runs while assistant m…
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#filechanged) hook instead. <Note> The Bash examples on this page use `jq` for JSON parsing. Install…
Plugins reference
Claude Code CLI · in the page
plugins-reference
…| | `FileChanged` | When a watched file changes on disk. The `matcher` field specifies which filenames to watch…
Week 13 · March 23–27, 2026
Claude Code CLI · in the page
whats-new/2026-w13
…red policy fragments</div> <div><code>CwdChanged</code> and <code>FileChanged</code> hook events for direnv-style setups</div> <div>Agents can declare <code>initialPrompt</code> in frontmatter…