Claude Code Ships Mods: JS Modules to Reshape UI, Block Risky Commands, Replay Diffs

xiaohu · x · 2026-10-02

Claude Code now enables Mods by default (v2.1.287+): JavaScript/TypeScript modules that can rewrite built-in behavior or even render custom UI. A Mod is essentially a hook packaged inside a Plugin, running in-session and subscribing to events.

Three official examples:

Anthropic's own /diff panel and AGENTS.md support are already implemented as Mods that users can disable or replace via /plugin, with more built-ins migrating to Mods over time.

Related event: Claude Code Launches Mods: Rewrite Behavior and UI with a Few Lines of TypeScript(26 posts)→

Original post →

More from coding & agent

coding & agent channel →