Anthropic opens Claude Code to internal Mods

Anthropic has introduced Mods for Claude Code, giving developers a way to alter the coding agent’s behaviour, interface and internal event handling through JavaScript or TypeScript functions running inside the product.

The system, released on October 1 with Claude Code version 2.1.287, extends the tool’s existing plugin framework. Mods can rewrite prompts before they reach the model, block or modify tool calls, approve or reject permission requests, redact information from tool output and replace or augment parts of Claude Code’s interface.

Anthropic said Mods are packaged inside plugins and work in both the Claude Code command-line interface and desktop application. Developers can write their own Mods or ask Claude Code to generate one, install it and reload it during an active session.

The approach gives developers substantially deeper control than Claude Code’s earlier hooks. Traditional hooks can trigger external actions at defined points, but Mods execute functions against events emitted by Claude Code itself. A Mod can run before or after an event, replace it entirely, or wrap an event with code that executes on both sides.

Events available to Mods include tool calls, permission requests and interface rendering. The mechanism can therefore be used for functions ranging from development safeguards to specialised displays. Anthropic’s examples include showing continuous integration and deployment status beside a conversation, requiring confirmation before commands alter production configuration, and recording tool activity for audit purposes.

The company has also moved some existing Claude Code functionality onto the new architecture. The built-in /diff feature, which displays uncommitted changes beside a session transcript, now operates as a Mod. Users can disable it through the plugin interface or replace it with their own implementation. Anthropic said it plans to shift more built-in capabilities to Mods over time, allowing users to retain a smaller core and add features selectively.

Anthropic’s published examples demonstrate how the same framework can support lightweight interface additions and stronger controls. A sample called Token Weather displays context-window usage above the prompt, while Blast Radius can stop a potentially risky shell command and show what it would affect before the user chooses whether to proceed. Replay Theater records edits made during a turn and allows developers to review them sequentially.

The flexibility also introduces a significant security consideration. Anthropic says Mods are not sandboxed and run with the same access to a computer as Claude Code. The company advises users to install Mods only from sources they trust, treating them in the same way as other code executed on their machines.

That warning is particularly relevant because a Mod can interact with prompts, tool calls, files, processes and network resources available through Claude Code. Code capable of changing or intercepting those operations could be useful for enforcing organisational policies, but an untrusted extension could also gain broad access within a developer’s working environment.

For organisations, Anthropic has added controls intended to preserve centrally managed restrictions. Team and Enterprise deployments, as well as machines using managed settings, load a built-in security Mod called sec-default first. It is designed to prevent user-installed Mods from overriding managed permission-denial rules and other protected organisational settings. Administrators can also control which plugin marketplaces users may access and can load their own Mods ahead of user extensions.

Multiple Mods can subscribe to the same event. Anthropic says they execute according to their loading order, with the first loaded Mod seeing an event first and receiving the resulting event last. That arrangement permits extensions from different developers to be stacked while giving administrators a mechanism to place protective controls at the outermost layer.

Mods require Claude Code 2.1.287 or later and are enabled by default in supported versions. The system writes version-specific TypeScript declarations for developers, an important detail because Anthropic cautions that the Mod programming interface can change between releases.



Notice an issue?

Arabian Post strives to deliver the most accurate and reliable information to its readers. If you believe you have identified an error or inconsistency in this article, please don't hesitate to contact our editorial team at editor[at]thearabianpost[dot]com. We are committed to promptly addressing any concerns and ensuring the highest level of journalistic integrity.


Loading next story…
Just in:
Binance bStocks holdings cross $1 billion within four months // Indonesia wildfire haze darkens skies, closes Timor schools // Copper extends losing streak as US inflation accelerates // De Beers Group and The Government of The Republic of Botswana Extend Partnership with Olympic Champion Letsile Tebogo as Global Ambassador // Google introduces Gemini 4 Argon to AI Studio // Houthi missile fragments injure expatriate in Riyadh // US Treasury yields surge after inflation exceeds forecasts // Vingroup Announces the Establishment of VERTA – A New Educational Model for a Generation Growing Up in the Age of AI // GFH Partners transfers Chicago logistics facility for $151 million // AI features in 84% of surveyed ransomware incidents // IMF projects Asia-Pacific expansion easing through 2027 // Dubai Holding plans additional water park at resort // Google and Singapore unveil private smartphone scam detector // Cybersecurity shares retreat as AI competition concerns emerge // SMS Tan Kiat How, Rosianna Silalahi and Glenda Gloria to speak at PRISM Summit 2026 // A Women-Led Dubai Holiday Homes Operator Grows 42-Fold In Six Months // Siam Paragon Bangkok International Fashion Week 2026 Unites Thai Designers to Drive the Future of Thailand’s Fashion Industry // Dell shares tumble as Barclays questions AI valuations // Flying Wedge displays prototype for autonomous combat programme // Discover Surprising Southern Taiwan: Taiwan Tourism Administration Teams Up with Airlines & Travel Platforms with Multi-Million Rewards for International Travelers //