💻 Claude Code now supports custom mods
In September, Anthropic confirmed: function hooks — TypeScript functions inside the Claude Code process — will become an official feature called “Claude Mods” and will ship within a week. Mods can hook into agent events, all the way to drawing UI over the prompt in the terminal.
🌍 The mechanism, which intercepts engine events and UI rendering, sets a new standard for plugins in terminal AI assistants and allows administrators to restrict system calls made by installed plugins.
👤 The feature is already available in early access: enable it with the flag CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 in builds 2.1.269+. The community has released games over the prompt, context and cost trackers. The API may change between releases.
Source 1: https://github.com/anthropics/claude-code/issues/91870 Source 2: https://github.com/anthropics/claude-code/tree/main/mods
