• Sources: primary, docs, discussion
  • Summary: Mods are TypeScript functions that hook Claude Code events. They can rewrite prompts, block or retry tool calls, answer permission requests, and redact tool output. They run unsandboxed with the same machine access as Claude Code.
  • Why it matters: Installing a mod is equivalent to running untrusted code with full local access, except that on Team and Enterprise plans and on any machine with managed settings a built-in sec-default mod loads first and stops user-installed mods from overriding permission deny rules.
  • Follow-up: Whether mods widen the coding-agent sandbox-escape surface tracked since the 2026-07-20 Docker-socket and Cowork VM disclosures.