Claude Code Mods: Examples, Risks, Control
Claude Code mods explained: panes, commands and tool call rules, installed as plugins, running without a sandbox, and how admins control them.
Read the articleOctober 27, 2026 · 17 min read
Claude Code mods can be useful in a tax firm, for example as a warning before client data goes into a prompt, as a display of client number and deadline, as an audit trail, or as an extra approval before anything is sent. These are ideas, not a proven toolkit. Mods turn risky because they run without a sandbox with the user's privileges, see every prompt and therefore every piece of client text, and, without managed settings or a Team or Enterprise sign-in, can even override deny rules. In Germany, tax advisors are also bound by professional secrecy under § 203 of the Criminal Code (StGB). A firm that uses Claude Code with client data should therefore control mods centrally: managed settings, only its own mods, no mods from arbitrary folders. And the actual protection of client data does not belong in a mod, but in a data lock in front of the AI provider and in user permissions.
I work with Claude Code every day and also build AI employees for clients, among them a tax advisory firm; I describe that case in AI Agents for Tax Firms: A Real Case. Mods have only existed since October 1, 2026, and I have not built or tested one of my own yet. The technical facts here come from Anthropic's documentation, retrieved on October 26, 2026. The ideas are my own thinking, clearly marked as ideas. Everything about Claude is collected on my Claude page. I explain the basics in Claude Code Mods: Examples, Risks, Control.
In a tax firm, almost every prompt is client text: a tax assessment, a payslip, a question about a receipt. According to Anthropic, a mod is a plugin whose code runs inside Claude Code itself. The docs list what a loaded mod can reach: it can read and write files anywhere the user can, start programs and make network requests, read environment variables and settings including keys, see and rewrite every prompt and every tool call, approve a call before anyone is asked, and trigger model calls on the firm's account. Plus this sentence: "Mods aren't sandboxed."
For a firm this means: whoever installs a mod gives its code the same view of client data as they have themselves. That is why mods are worth more than a shrug as a developer toy; they belong in the rules you already have for software with access to client data.
All four are ideas, not built and not tested. They rest on the capabilities Anthropic describes in its docs. Whether they hold up day to day only a trial will show.
| Idea | How it could work technically | Limit |
|---|---|---|
| Early warning for client data | A mod checks submitted prompts and tool results for patterns such as tax IDs or client numbers and asks before they go to the model. Anthropic's own announcement names redacting secrets from tool output as an option. | Runs in the program on the machine and can be switched off. Useful as a warning, not sufficient as protection. |
| Status line with client number or deadline | A mod shows a line under the prompt with the client being worked on and the next deadline. | Display only. Whatever is there ends up in screenshots and shared screens, so use a number, not a name. |
| Pane with an audit trail | A mod lists beside the transcript which tool calls ran, which were approved and which were refused. | Not a tamper-proof log. A mod's storage sits with the user and can be changed. |
| Approval before sending | A mod holds calls that send an email or upload data and asks the person, the way Anthropic's sample mod blast-radius holds risky shell commands. |
Where nobody sits at the screen, as with an AI employee running unattended, there is nobody to ask. There the boundary has to sit in the user permissions. |
I know that last limit from the case above: there, the AI employees work with their own DATEV user without filing or payment rights. A boundary in user permissions holds even when a program on the machine wants something else.
Mods from outside sources. Anthropic runs a community catalog of third-party plugins that their authors submitted, and writes about other providers' catalogs: "Anthropic doesn't review third-party marketplaces." A third-party mod sees every prompt, so every piece of client text, and can pass data on through network requests or programs it starts.
Deny rules that do not hold. Without managed settings and without a Team or Enterprise sign-in, the built-in guard sec-default does not load. Then, per the docs: "the mod can approve a call that a deny rule refuses or a PreToolUse hook blocked." A firm working on Pro, Max or an API key without managed settings does not have this guard.
The mod's own calls. Even with the guard, permission rules only cover Claude's tool calls. "With Read(.env) denied, a mod can still read that file with $.fs.read or start a program that does." The same goes for a folder of client files you blocked with a deny rule.
Model calls on the firm's account. A mod can call a model itself. Per the docs, these calls use the session's credentials, so they run on the firm's plan or key.
Up front: this isn't legal advice, it's a pointer to the rules you should know before client data goes into an AI system. The rules below are German and EU law.
§ 203 StGB. For tax advisors, unauthorized disclosure of third-party secrets is a criminal offense under § 203(1) no. 3 of the German Criminal Code. Under § 203(3) sentence 2, they may disclose secrets to other persons involved in their work, but only to the extent this is necessary for using those persons' services. Under § 203(4) sentence 2 no. 1, a professional is also liable if they did not ensure that an involved person was bound to secrecy and that person then discloses a secret without authorization.
§ 62a StBerG. For service providers, the German Tax Advisory Act requires: access to confidential facts only as far as the service requires, careful selection, a contract in text form with a confidentiality obligation, and for services abroad only where secrecy protection there is comparable. What § 62a(5) means for services tied to a single engagement, and what the professional code says about AI in a firm, is in Accounting Firm Automation: Where AI Fits.
GDPR. Art. 28(1) requires processors that provide "sufficient guarantees" for appropriate technical and organizational measures, and Art. 28(3) a contract binding them to instructions. Among the possible measures, Art. 32(1) explicitly names "the pseudonymisation and encryption of personal data", along with "a process for regularly testing, assessing and evaluating" their effectiveness.
My view as an operator, not a lawyer: the author of a third-party mod has neither been selected as a service provider nor bound to confidentiality, and there is no contract with them. Still, their code sees every prompt. Whether and when that is a disclosure within the meaning of § 203, I cannot judge. Settle that before installation, not after. What applies to contract and training at the AI provider itself is in Claude Privacy and GDPR: What Applies, and how I decide in general which data an AI may see is in AI and Privacy: What the AI Gets to See.
What follows is my recommendation as a hypothesis, derived from Anthropic's admin docs. How you put it in place at your firm is something we'll look at together; whether it holds up under professional rules is for your chamber or your data protection adviser.
sec-default guard also load for sessions on an API key or through a cloud provider. With Team or Enterprise it also loads through the sign-in. Managed settings come as a file, through device management or from the claude.ai admin console.allowManagedModsOnly as an option of the guard stops users' mods from running; allowManagedHooksOnly also blocks hooks from users' own settings.disableSideloadFlags rejects --plugin-dir and --plugin-url at startup and does not load mods Claude writes during a session.strictKnownMarketplaces decides which marketplaces anything can be installed from.PreToolUse hooks from managed settings run before any mod.I would not set the option allowModsToOverrideDenyRules in a firm: it explicitly lets users' mods approve calls that a deny rule refuses. What else sets Team and Enterprise apart is in Claude Enterprise or Team: Cost and GDPR. How deny rules, sandbox and hooks work together is in Claude Code Security: Permissions and Sandbox.
A mod sits in the program on the machine. Anthropic itself says that even an organization's guard mod is not a hard boundary: "A session can run without your mod." If the thread running the installed mods crashes three times, Claude Code unloads every mod that is not built in, and with --safe-mode a session starts without them. A mod meant to protect client data protects only while it runs.
That is why I place the protection of client data in two other places. The first is user permissions, as described above. The second is a principle I call a data lock: client data is pseudonymized before it reaches the model, outside the machine, between the firm and the AI provider. Names and other details that point to a person are replaced with placeholders before a request goes to Claude; the mapping stays on our server in Germany. The data lock works with Claude Code and the AI employees built on it. Pseudonymization is the first measure Art. 32(1)(a) GDPR names; it does not make data anonymous, but separates it from the information needed to re-identify it, which under the definition in Art. 4(5) GDPR is kept separately. So the GDPR still applies to pseudonymized data.
A mod can complement a data lock, for example as an early warning right in front of the person, but it cannot replace one. Other routes for client data are Claude through AWS Bedrock in EU regions and open models on your own hardware, described in Claude on AWS Bedrock: EU, GDPR and Cost and Local AI and Privacy: Cloud or Server?.
The same questions arise wherever § 203 StGB applies. Lawyers, notaries and auditors are listed in the same number as tax advisors (para. 1 no. 3), doctors and dentists in para. 1 no. 1. What this means for lawyers, from § 43e BRAO to invented citations, is covered in AI for Lawyers in Germany: What Works. Medical and dental practices also handle health data, whose processing Art. 9(1) GDPR prohibits in principle, subject to the exceptions in Art. 9(2). The technical answers above apply there just the same. What this means for a dental practice office is covered in AI for Dentists: Office Work, Not Diagnosis. What this means for therapists, including HIPAA in the US, is covered in Claude Code for Therapists: HIPAA and Privacy.
Technically yes; there is no general legal answer. Relevant in Germany are, among others, § 203 StGB, § 62a StBerG and the GDPR. A firm's own reviewed mod under managed settings is a different case from a third-party mod from an unreviewed catalog.
Yes, if its code does that. Per the docs, a mod can see every prompt, read files, make network requests and start programs, with the user's privileges. Permission rules cover Claude's tool calls, not the mod's own calls.
Against Claude's file tools and the file commands Claude Code recognizes in the shell, yes. Per the docs, it does not cover commands that read files without naming them, such as a grep -r run from the folder that holds the files, or scripts that open files themselves; that is what the sandbox is for. Against a mod it does not hold: without managed settings or a Team or Enterprise sign-in, a mod can approve a refused call, and even with the guard it can read the folder itself. So block users' mods with allowManagedModsOnly.
It can warn, but not protect reliably. A mod runs in the program on the machine and drops out with --safe-mode or after three crashes. Pseudonymization therefore belongs in a data lock outside the machine, between the firm and the AI provider.
Managed settings on every machine where Claude Code runs with client data, with allowManagedModsOnly and disableSideloadFlags. Then no user mods run, and the built-in guard loads.
First check how Claude Code is signed in at your firm: Team or Enterprise via /login, or Pro, Max and API keys. In the second case, without managed settings, the protective layers from this article are missing. Then have your specialist answer the question about third-party mods before anyone installs one. How DATEV and AI employees come together technically is in DATEV Integration: 3 Routes, Costs and Setup. And how I set up approvals, user rights and reviewer roles for my AI employees is what I show in my community AI Employee Framework.
Claude Code mods explained: panes, commands and tool call rules, installed as plugins, running without a sandbox, and how admins control them.
Read the articleClaude Code security: permission modes, allow and deny rules, sandbox, hooks, secrets, prompt injection, MCP servers and Claude's security reviews.
Read the article
Kevin Welter
Developer, IT architect, author of technical books (Kubernetes, cloud infrastructures) and speaker. Runs his business with an AI workforce of fifteen AI employees and shows solo business owners in his community how to hire their first AI employee.
Your first AI employee up and running within an hour
Join the community$5/month founding price, first 50 members