Restricts file modification permissions to a specific directory to prevent accidental edits to unrelated code.
Directory Freeze acts as a safety boundary for Claude Code by locking file editing capabilities to a user-defined directory path. It is particularly useful during debugging or module-specific refactoring, ensuring that the AI agent doesn't inadvertently modify files outside the intended scope. By intercepting Edit and Write operations, it provides a hard block on out-of-bounds changes, allowing developers to work with confidence in complex, multi-module repositories without worrying about unintended side effects.
主な機能
01Hard-blocks Edit and Write operations outside the allowed path
02Seamless activation via natural language commands like 'freeze' or 'lock down edits'
03Session-persistent boundary via local state tracking
04Lightweight integration that does not interfere with Read or Bash tools
05Automated boundary resolution using absolute paths and trailing slash protection
060 GitHub stars
ユースケース
01Refactoring a legacy directory while keeping other stable modules untouched
02Debugging a specific module without risking side effects in the rest of the codebase
03Onboarding an AI agent to a massive repository by narrowing its focus to one component