PreToolUse

PreToolUse is a hook for coding agents from dbc-oduffy/coordinator-claude. Its token cost is not measured, scanned C, original, no licence file.

A pre-tool hook that runs Python commands before an agent uses several tools, including shell commands, editing, writing, and workflow actions. A hook is an automatic step triggered by another action.

In plain words
What is it for?
Use it to run the listed Python commands before the agent performs supported tool actions.
Why use it?
It provides a place to perform checks or preparation before those tool calls run.

Hook

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the coordinator plugin — 39 skills, 16 commands, 38 agents, 9 hooks shipped together

One of 9 entries in hooks.json — they are configured in one file and arrive together.

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add dbc-oduffy/coordinator-claude
Claude Code
/plugin install coordinator

Or install coordinator, the plugin that ships this one along with the rest of its 39 skills, 16 commands, 38 agents, 9 hooks.

Wrote 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.

agentmods badge for PreToolUse

README.md
[![agentmods](https://agentmods.dev/badge/hooks/dbc-oduffy/coordinator-claude/pre-tool-use.svg)](https://agentmods.dev/hooks/dbc-oduffy/coordinator-claude/pre-tool-use)
Your own site
<a href="https://agentmods.dev/hooks/dbc-oduffy/coordinator-claude/pre-tool-use"><img src="https://agentmods.dev/badge/hooks/dbc-oduffy/coordinator-claude/pre-tool-use.svg" alt="Measured on agentmods" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan C 1 finding. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Security

Grade C, and why

PreToolUse scanned grade C with 1 finding 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 today.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

"_comment": "PRETOOLUSE-BASH FAN-IN (state/audits/2026-08-16-doe-hook-consolidation-feasibility.md, this dispatch) -- the single PreToolUse(Bash|PowerShell) entrypoint, replacing the three standalone registrations that u
hooks/hooks.json · 255 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

Changes

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.

  1. today Changed · +12 lines eb0c18ca3754
  2. 2d ago Changed · +17 lines a18861ed421e
  3. 5d ago First seen · 226 lines scan C fd4f93302dac

Subscribe to this mod's changes

PreToolUse is a hook published in the GitHub repository dbc-oduffy/coordinator-claude (5 stars, last pushed yesterday), with no licence file. Its token cost is not measured: a hook is shell that never enters the context. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.