Anthropic launches TypeScript mods for Claude Code
Start here
Anthropic launched a mods system for Claude Code, letting developers use JavaScript or TypeScript functions to hook events such as tool calls, user prompts, and UI rendering, rewrite prompts, add or remove interface elements, or replace built-in functionality; the built-in /diff has been changed to a mod. Mods are distributed with plugins, run with user privileges, and are not sandboxed; the official guidance is to install only from trusted sources, and enterprises can control which mods are allowed to load; Team and Enterprise plans and machines configured with managed settings load the sec-default mod first. In a test on Claude Code 2.1.287, the same prompt was run seven times in headless mode; in one run, a seven-line plugin and a Bash(touch:*) deny rule were loaded at the same time, and the result was that the file was created, the result JSON reported zero permission denials, and the debug log showed that the plugin returned allow and overrode the deny rule; the same result occurred when the plugin was installed normally via claude plugin install, while it was not reproduced under conditions such as --safe-mode.
Generated by AI from reports · Updated 2026-10-19
Latest developments
Progress timeline
- RedditReddit r/Anthropic· DiscussionWith the release of Claude mods, what is your favourite mods?(opens the original post in a new tab)
- RedditReddit r/Anthropic· DiscussionClaude Code CLI Mods - best thing since sliced bread!(opens the original post in a new tab)
- The DecoderClaude Code introduces Mods system, letting developers rewrite this AI coding tool from within
Anthropic released a plugin-style Mods system for Claude Code, essentially middleware running inside the tool, allowing developers to hook into events such as tool calls, user prompts, and UI rendering using JavaScript or TypeScript functions, customize panels, intercept tool calls, or integrate new commands; built-in features like /diff are already implemented by Mods. Mods run with user permissions and are not sandboxed; Anthropic advises installing only from trusted sources, and enterprises can control which Mods are allowed to load; the first official Mod plugin, "You Should Know", launches an independent agent that monitors Claude's output and surfaces important information that might otherwise be missed.
- DEV CommunityTests show Claude Code plugins can override user deny rules
AINews ran the same prompt seven times in headless mode on Claude Code 2.1.287 to test behavior when plugins and permission rules conflict. In one run, a seven-line plugin and a Bash(touch:*) deny rule were loaded together; the file was created, the result JSON reported zero permission denials, and debug logs showed that the plugin returning allow overrode the deny rule. The result was the same when the plugin was installed normally via claude plugin install, while under --safe-mode and disableAllHooks: true the deny rule still took effect. The author noted that cc-plugin-sec-default, which maintains deny rules, is only enabled with Team or Enterprise login or when managed settings exist; on Pro, Max, or API-key machines it logs not seated and steps aside.
- RedditReddit r/Anthropic· DiscussionYou can now mod Claude Code: - Change how it behaves - Customize the UI - Swap in your own features Write one with a few lines of TypeScript, or have Claude build it for you. Mods ship inside plugins, so you install them with /plugin in the CLI or desktop app.(opens the original post in a new tab)
- XX @ClaudeDevs· DiscussionYou can now mod Claude Code:(opens the original post in a new tab)
- ClaudeClaude Code introduces TypeScript mods that can rewrite prompts and replace built-in features
Anthropic has launched mods for Claude Code—using TypeScript functions to rewrite prompts, add or remove UI, or replace built-in features, now available in the CLI and desktop app, with the built-in /diff changed to a mod. Mods are distributed with plugins, have the same machine permissions as Claude Code, and are not sandboxed; the official recommendation is to install only from trusted sources. Team and Enterprise plans and machines configured with managed settings will load the sec-default mod first, blocking high-risk operations such as user-installed mods overriding permission denial rules.
Related discussion
- Older than 72 hours · Not included in the 72-hour figures
- RedditReddit r/AnthropicWith the release of Claude mods, what is your favourite mods?(opens the original post in a new tab)
- RedditReddit r/AnthropicClaude Code CLI Mods - best thing since sliced bread!(opens the original post in a new tab)
- XX @bchernyMods are absolutely insane. You can now customize Claude to work and look the way you want by just prompting it.(opens the original post in a new tab)
- RedditReddit r/AnthropicYou can now mod Claude Code: - Change how it behaves - Customize the UI - Swap in your own features Write one with a few lines of TypeScript, or have Claude build it for you. Mods ship inside plugins, so you install them with /plugin in the CLI or desktop app.(opens the original post in a new tab)
- XX @ClaudeDevsYou can now mod Claude Code:(opens the original post in a new tab)