Claude Code launches Mods: customize UI, intercept dangerous commands via prompt

AI寒武纪 · wechat · 2026-10-02

Claude Code introduced a Mods system that lets you patch its UI, interaction logic and internals like game mods—write a few lines of TypeScript or just ask Claude to write one and hot-reload it. Boris Cherny: no reason everyone should face an identical Claude.

Three official demo Mods:

How it works: Mods are TS/JS modules that hook Claude Code events like middleware, with three powers—Observe (record), Rewrite (mutate data), Answer (intercept). Mods run with full system privileges and no sandbox; an internal sec-default Mod guards team permission rules, and admins get controls.

The post includes a full tutorial building an 80-line TokenWeather: directory layout, plugin., ui.render hook, and persisting data via $.state across hot reloads.

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 →