Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add hooks/sungmin-cho/deep-suite/pre-tool-usegit clone --depth 1 https://github.com/Sungmin-Cho/deep-suiteWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/hooks/sungmin-cho/deep-suite/pre-tool-use)<a href="https://agentmods.dev/hooks/sungmin-cho/deep-suite/pre-tool-use"><img src="https://agentmods.dev/badge/hooks/sungmin-cho/deep-suite/pre-tool-use.svg" alt="Measured on agentmods" height="20"></a>Grade E, and why
PreToolUse scanned grade E with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the commands this hook runs, not an audit. A hook is shell that executes on your machine at the event it names, which is why every command in it is printed with what was found.
Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
"if": "Bash(curl * | sh*)" Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
"if": "Bash(rm -rf *)" Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
"command": "${CLAUDE_PROJECT_DIR}/scripts/denylist-guard.sh curl-pipe-shell", How it starts
The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.
{
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PROJECT_DIR}/scripts/denylist-guard.sh force-push",
"if": "Bash(git push --force *)"
},
{
"type": "command",
"command": "${CLAUDE_PROJECT_DIR}/scripts/denylist-guard.sh force-push",
"if": "Bash(git push --force)"
},
{
"type": "command",
"command": "${CLAUDE_PROJECT_DIR}/scripts/denylist-guard.sh force-push",
"if": "Bash(git push -f *)"
},
{
"type": "command",
"command": "${CLAUDE_PROJECT_DIR}/scripts/denylist-guard.sh force-push",
"if": "Bash(git push -f)"
},
{
"type": "command",
"command": "${CLAUDE_PROJECT_DIR}/scripts/denylist-guard.sh hard-reset-remote",
"if": "Bash(git reset --hard origin/*)"
},
{
"type": "command",
"command": "${CLAUDE_PROJECT_DIR}/scripts/denylist-guard.sh rm-rf",
"if": "Bash(rm -rf *)"
},
{
"type": "command",
"command": "${CLAUDE_PROJECT_DIR}/scripts/denylist-guard.sh sql-destructive",
"if": "Bash(* DROP TABLE *)"
},
{
"type": "command",
"command": "${CLAUDE_PROJECT_DIR}/scripts/denylist-guard.sh sql-destructive",
"if": "Bash(* TRUNCATE *)"
},
{
"type": "command",
"command": "${CLAUDE_PROJECT_DIR}/scripts/denylist-guard.sh kubectl-destructive",
"if": "Bash(kubectl delete *)"
},
{
"type": "command",
"command": "${CLAUDE_PROJECT_DIR}/scripts/denylist-guard.sh kubectl-destructive",
"if": "Bash(kubectl drain *)"
},
{
"type": "command",
"command": "${CLAUDE_PROJECT_DIR}/scripts/denylist-guard.sh npm-publish",
"if": "Bash(npm publish*)"
},
What else settings.json configures
This page is one entry in a file that holds 4. Installing the file brings all of them; each is measured and scanned on its own page.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 74 lines scan E 6ebde4ef6eb5
PreToolUse is a hook published in the GitHub repository Sungmin-Cho/deep-suite (8 stars, last pushed yesterday), licensed MIT. Its token cost is not measured: a hook is shell that never enters the context. A static security scan graded it E with 3 findings (downloads and executes remote code, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other hooks, from other repositories
PreToolUse
Runs before the agent uses a tool for Bash, Edit and Write tool calls, executing dangerous-actions-blocker.sh via bash. From FlorianBruniaux/claude-code-ultimate-guide.
SessionStart
Runs when a session starts, executing rtk-baseline.sh. From FlorianBruniaux/claude-code-ultimate-guide.
PreToolUse
Runs before the agent uses a tool for Write, Edit, Bash, Agent, Task, SendMessage and TaskStop tool calls, running bash (3 commands). From modu-ai/moai-adk.
StopFailure
Runs on the StopFailure event for rate_limit, authentication_failed, oauth_org_not_allowed, billing_error and max_output_tokens tool calls, running bash. From modu-ai/moai-adk.
Stop
Runs when the agent finishes a response, running bash (8 commands). From modu-ai/moai-adk.
SubagentStop
Runs when a subagent finishes, running bash (2 commands). From modu-ai/moai-adk.