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 wombat9000v1.0.0In 1 marketplace
Prevents Claude from accessing dependency directories to save tokens
Run automatically on Claude Code events. Claude doesn't decide.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
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.
Prevents Claude from accessing dependency directories to save tokens and improve performance.
The Dependency Blocker plugin automatically blocks Claude Code from reading or executing bash commands that access common dependency and build directories. This prevents token waste when Claude attempts to search through large directories like node_modules, .git, dist, or build.
cd into excluded directories&&, ||, ;, and | operators$(...) or backticks)<(...) or >(...))>, <, >>, <<)/plugin install dependency-blocker@wombat9000-marketplace
By default, the following directories are blocked (critical bloat offenders that cause massive token waste):
node_modules - Can contain 100k+ dependency files.git - Entire repository historyvendor - PHP/Go/Ruby dependencies (like node_modules)target - Rust/Java compiled artifactsdist - Minified/compiled/bundled outputbuild - Compiled artifacts and assets.venv - Python virtual environment (entire stdlib + packages)venv - Python virtual environment (alternate name)These package managers and build tools are trusted to manage their own directories:
These file access commands are validated for excluded directory references:
To add more directories to the exclusion list, edit the EXCLUDED_DIRS array in all validation scripts:
scripts/bash-validate.sh, scripts/read-validate.sh, scripts/glob-validate.sh, and scripts/grep-validate.sh:
EXCLUDED_DIRS=(
"node_modules"
".git"
"vendor"
"target"
".venv"
"venv"
"dist"
"build"
# Add your own directories here:
# "__pycache__"
# ".pytest_cache"
# "coverage"
)
In scripts/bash-validate.sh, you can also customize:
Trusted Tools (always allowed):
TRUSTED_TOOLS=(
"npm" "yarn" "pnpm" "cargo" "make"
"python" "go" "ruby" "java" "gradle" "maven" "pip"
# Add your build tools here
)
Checked Commands (validated for excluded directories):
CHECKED_COMMANDS=(
"ls" "cat" "grep" "find" "head" "tail"
"less" "more" "tree" "du" "stat" "file"
"wc" "diff" "sort" "uniq" "cut" "awk" "sed"
"rg" "ag" "ack"
# Add commands to validate here
)
The plugin uses a SessionStart hook for proactive context provision and four PreToolUse validation hooks that intercept operations before tool execution:
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.
npx claudepluginhub wombat9000/claude-plugins --plugin dependency-blockerPlugins from other owners that cover similar ground