Skip to content
EventPast event

Anthropic launches TypeScript mods for Claude Code

3 reports3 reporting sourcesLatest report

Start here

AI overview

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

2 developments
  1. · 1 report
    Claude Code plugins can override user deny rules
    DEV Community: Tests show Claude Code plugins can override user deny rules
  2. · 2 reports
    Anthropic launches TypeScript mods for Claude Code
    Claude: Claude Code introduces TypeScript mods that can rewrite prompts and replace built-in features

Progress timeline

Oct 3
  1. The Decoder
    Claude 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.

  2. DEV Community
    Tests 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.

Oct 1
  1. Claude
    Claude 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

Total 5 items