Skip to content

Update claude-code-settings.json: add CwdChanged and FileChanged hook events#5576

Merged
github-actions[bot] merged 1 commit intoSchemaStore:masterfrom
aswiniverse:feat/claude-code-add-cwdchanged-filechanged
Apr 14, 2026
Merged

Update claude-code-settings.json: add CwdChanged and FileChanged hook events#5576
github-actions[bot] merged 1 commit intoSchemaStore:masterfrom
aswiniverse:feat/claude-code-add-cwdchanged-filechanged

Conversation

@aswiniverse
Copy link
Copy Markdown
Contributor

Summary

Add two new hook event definitions to the Claude Code settings schema that are already supported by Claude Code:

  • CwdChanged: Hooks that run when the working directory changes. Provides cwd (new directory) and previous_cwd. Matchers are ignored; fires on every directory change.
  • FileChanged: Hooks that run when a watched file is created, modified, or deleted. Supports filename matchers. Provides file_path and file_event_type (created, modified, deleted).

Reference

… events

Add two new hook event definitions that are supported by Claude Code:

- CwdChanged: fires when the working directory changes, providing
  cwd and previous_cwd
- FileChanged: fires when a watched file is created, modified, or
  deleted, with filename matcher support

Reference: https://code.claude.com/docs/en/hooks
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for the PR!

This section of the codebase is owned by @domdomegg, @bogini, and @ant-kurt - if they write a comment saying "LGTM" then it will be merged.

@domdomegg
Copy link
Copy Markdown
Contributor

LGTM

@github-actions github-actions bot merged commit a276028 into SchemaStore:master Apr 14, 2026
6 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

Merging because @domdomegg is a code-owner of all the changes - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants