Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By AlexanderMattTurnerv2.71.4Apache-2.0In 1 marketplace
Blocks prompts with hidden Unicode or ANSI escapes and strips them from tool inputs and outputs. Says it runs locally and deterministically with no inference key read and no request sent out; a failing hook passes actions through with a warning by default.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Sanitization for everything flowing into and out of a Claude Code session: tool
inputs, tool outputs, and user prompts. Hook failures pass through with a loud
warning by default; AGENT_SANITIZER_FAIL_OPEN=0 makes them block instead, and
AGENT_SANITIZER_DISABLED_HOOKS stands individual hooks down.
/plugin marketplace add AlexanderMattTurner/agent-sanitizer
/plugin install agent-sanitizer@agent-sanitizer
/agent-sanitizer:enable-auto-update
The hooks run on any node >=22 the launcher can find — or, on the common platforms, on a self-contained binary a SessionStart hook provisions when no such node exists (see Configuration).
With AGENT_SANITIZER_SECRETS_ENABLED=1 set (the secret layer is off by
default — see Configuration), the first session after install
provisions the Python secret-redaction engine (agent-sanitizer[secrets]) into
the plugin's data directory. That needs uv or python3 on PATH; without
either, provisioning fails loudly and tool output reaches the model
unredacted — set AGENT_SANITIZER_FAIL_OPEN=0 to have it suppressed
instead.
Both SessionStart provisioners read that directory from CLAUDE_PLUGIN_DATA,
which Claude Code sets only for a hook it loaded from a plugin. A sandbox that
re-runs plugin hooks from its own root-owned settings tier leaves it unset, so
each provisioner skips: the redaction engine then runs from the shipped
dist/redactor/daemon.pyz and the hooks run on node, both under the same
never-silent posture.
Claude Code auto-updates Anthropic's own marketplaces by default and nobody else's, so an install of this one pins you to the release you added and later detector fixes never arrive. Claude Code ships no slash command for the toggle, so the plugin ships one — the third line of the install block above.
It flips autoUpdate on this marketplace's existing entry in Claude Code's
registry — the same bit the picker's Enable auto-update writes — and prints
the file it touched. It never creates the entry: with the marketplace not yet
added it says so and exits non-zero, as it does if a Claude Code release changes
the registry's shape. --disable puts it back. The picker route
(/plugin → Marketplaces → agent-sanitizer → Enable auto-update)
stays available and is the fallback the skill points you to.
Either way, updates are fetched in the background shortly after a session starts
and load on /reload-plugins or at the next launch. To pull a release by hand
instead:
/plugin marketplace update agent-sanitizer
/plugin update agent-sanitizer@agent-sanitizer
Fleet-wide, an administrator can enable it from managed settings rather than per user:
{
"extraKnownMarketplaces": {
"agent-sanitizer": {
"source": {
"source": "github",
"repo": "AlexanderMattTurner/agent-sanitizer"
},
"autoUpdate": true
}
}
}
7-day copy clicks
Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Indexed from
npx claudepluginhub alexandermattturner/agent-sanitizer --plugin agent-sanitizerplugin-dist