Change how Claude Code works with mods (or ask Claude to write one)
Since October 1, Claude Code supports mods: small TypeScript functions that hook into its events. A mod can rewrite a prompt before it reaches the model, block or retry a tool call, redact secrets from tool output, or add buttons and panes to the terminal or desktop app. Mods ship inside plugins. They are not sandboxed and run with the same access as Claude Code, so only install ones from sources you trust.
Why it matters
You can change how Claude Code behaves with a few lines of TypeScript, including adding your own safety checks.
Who it's for
Developers and teams who want to customise or lock down Claude Code.
How to try it
- Run /plugin in the Claude Code CLI (or open the plugin directory in the desktop app) to browse plugins that include mods.
- Or ask Claude to build one for you, for example: "Write a mod that asks me to confirm before any command touches files under config/production, then install and hot-reload it."
- Built-in features like /diff are now mods too, so you can switch them off in /plugin or replace them with your own version.
- On Team and Enterprise plans, the built-in sec-default mod loads first and stops other mods from overriding your permission deny rules.
Plan & availability: Claude Code CLI and desktop app (since Oct 1, 2026). Mods aren't sandboxed, so install only trusted ones.
Source: @claudeai on claude.com ↗
Written by AgentStackList from the original post. Checked Oct 17, 2026. Features, plans and availability can change, so confirm on the source before you rely on it.
claude-codemodspluginscustomization
More Claude tricks
- Build slide decks with Claude Slides instead of hunting for templates · Oct 16
- Let Claude Code Review check every pull request · Oct 16
- Claude Mythos 5 designs more efficient quantum circuits · Oct 16
- Anthropic opens two new fellowships (deadline October 28) · Oct 15
Agent Stack Weekly · free
Get the week's best AI tricks
Limit and pricing changes, new MCP servers, and setup fixes for Claude Code, Codex, Cursor, Copilot and Antigravity.
No spam. Unsubscribe anytime. Read past issues