New internal edit_hook system lets settings be edited to add, replace, or remove hooks
Claude Code has gained a full internal editor for hook configuration (hooks are commands Claude Code can run automatically at certain points, such as before or after a tool call). It can add, replace, or remove a hook entry; validates the operation against the event, matcher, and source (user, project, or local settings file) it targets; checks whether managed settings policy blocks the edit; and writes the change back to the right settings file. It also assembles a summary of configured hooks, including which are disabled and which are editable, and accounts for "safe mode" and "bare mode" states.
This lays the groundwork for a hooks management interface, so hooks could eventually be added, changed, or removed without hand-editing settings files directly.
Whether a user-facing UI or command already exposes this editor, or it is purely internal plumbing so far, isn't shown by the evidence.