{"rewrite":{"id":"r_98f8bb8addf70ce4c1778064","clusterId":"c_187c242f72270cc00aee47b9","slug":"anthropic-adds-mod-support-to-claude-code","model":"deepseek-v4-1-flash","headline":"Anthropic Adds Mod Support to Claude Code","summary":"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.","whyItMatters":"Mods are distributed as plugins and can be restricted by administrators on Team and Enterprise plans, where a built-in sec-default mod loads first to stop user mods from overriding permission denial rules.","webCardHtml":"\u003cp\u003eMods are bundled inside plugins, so administrators can control installation through the existing plugin management system on Team and Enterprise plans. In managed settings environments, a built-in mod called sec-default loads first and blocks user mods from overriding permission denial rules.\u003c/p\u003e\n\u003cp\u003eSome built-in Claude Code features are already implemented as mods. The /diff command for showing differences is one of them, and users can disable it or replace it. Anthropic says it plans to keep moving built-in features to mods, leaving a small core.\u003c/p\u003e\n\u003cp\u003eTwo limits matter on the client side. Mods work in the CLI and in the Code tab of the desktop app. In the VS Code extension, the mod processing runs but screen rendering is not supported.\u003c/p\u003e\n\u003cp\u003eMods can read and write files, read API keys placed in environment variables, and approve tool calls on their own, which is why Anthropic asks users to install only mods they trust. Intended uses include CI/CD status displays, confirmation prompts for commands that touch production environments, and audit logs.\u003c/p\u003e\n\u003cp\u003eA catalog of sample mods ships with the feature:\u003c/p\u003e","blueskyPost":"Claude Code mods run with the same privileges as the tool itself and are not sandboxed. Anthropic's own sample mods (Blast Radius, Token Weather, Replay Theater) ship as trusted code, so the install decision is the security model.","twitterPost":"Claude Code mods carry Claude Code's own privileges and aren't sandboxed. Trust in each mod is the only gate Anthropic left.","threadsPost":"Claude Code mods can intercept tool calls, prompt submissions, and screen rendering, and they run with the same privileges as Claude Code with no sandbox. Anthropic's guidance to install only trusted mods puts the security boundary at the user, not the runtime.","newsletterBlurb":"Anthropic shipped a modding system for Claude Code that lets TypeScript functions intercept and rewrite tool calls, prompts, and UI rendering. Three sample mods went out with it, and users can have Claude write new ones on request. The catch: mods are not sandboxed and carry the same privileges as Claude Code itself.","attributionJson":"[{\"source\":\"GIGAZINE\",\"url\":\"https://gigazine.net/news/20261002-claude-code-customize-mod/\",\"title\":\"Mod functionality arrives that lets you customize Claude Code to your liking\"},{\"source\":\"GameBusiness.jp\",\"url\":\"https://www.gamebusiness.jp/article/2026/10/03/28210.html\",\"title\":\"Claude Code adds support for extension 'mods' to customize UI and behavior; can be created by asking Claude to write them\"}]","lintFlagsJson":null,"lintHits":0,"costUsd":0,"inputTokens":11027,"outputTokens":1197,"status":"published","repairAttempts":0,"nextRepairAt":null,"factsAttemptedAt":1791072862,"createdAt":"2026-10-04T00:12:20.000Z","publishedAt":"2026-10-04T00:13:20.000Z","updatedAt":"2026-10-04T00:13:20.000Z"},"cluster":{"id":"c_187c242f72270cc00aee47b9","canonicalTitle":"Claude Codeを自分好みにカスタムできるMod機能が登場","representativeArticleId":"a_0f9653940854fdaf4fa4f6db","sourceCount":2,"writtenSourceCount":2,"writeAttempts":0,"isSolo":false,"entitiesJson":"{\"anime_titles\":[],\"manga_titles\":[],\"work_titles\":[\"Claude Code\"],\"studios\":[\"Anthropic\"],\"people\":[],\"type\":\"news\",\"domain\":\"other\",\"is_roundup\":false}","contentType":"news","status":"published","firstSeenAt":"2026-10-02T03:19:00.000Z","lastSeenAt":"2026-10-02T22:30:03.000Z","updatedAt":"2026-10-04T00:13:20.000Z"},"attribution":[{"source":"GameBusiness.jp","url":"https://www.gamebusiness.jp/article/2026/10/03/28210.html","title":"Claude Codeが拡張機能「mod」対応、UIや動作をカスタマイズ。Claude書かせて作成も"},{"source":"GIGAZINE","url":"https://gigazine.net/news/20261002-claude-code-customize-mod/","title":"Claude Codeを自分好みにカスタムできるMod機能が登場"}],"entities":{"anime_titles":[],"manga_titles":[],"work_titles":["Claude Code"],"studios":["Anthropic"],"people":[],"type":"news","domain":"other","is_roundup":false},"keyFacts":["Anthropic released the mod feature for Claude Code on version 2.1.287 or later, with no configuration required.","Claude Code mods are written in JavaScript or TypeScript, and users can ask Claude to write a mod from a plain-language description.","Anthropic's sample mods include Blast Radius, Token Weather, and Replay Theater.","Mods can be installed via the /plugin command and shared by publishing a GitHub repository as a marketplace.","On Team and Enterprise plans, the sec-default mod loads first to prevent user-installed mods from overriding permission denial rules."]}
