Anthropic Adds Mod Support to Claude Code
Anthropic released a mod feature for its AI coding tool Claude Code on Claude Code v2.1.287 or later, available in both the CLI version and the desktop app. Mods are small functions written in JavaScript or TypeScript that can intercept tool calls, prompt submissions, and screen rendering, then inspect, rewrite, or take over that content. They differ from the older hooks system because mods can stay resident in a session and keep state. Anthropic shipped three sample mods: Blast Radius lists affected files before a command such as rm -rf runs, Token Weather shows the remaining context window as weather, and Replay Theater plays back Claude's file operations with diffs. Users can ask Claude itself to write a mod in plain language, and the change applies without restarting the session. Because mods run with the same privileges as Claude Code and are not sandboxed, Anthropic says users should install only ones they trust.