cyberneticlibrary

Block destructive commands outside projects

project-boundarypluginsetup L23,035
davepoon/buildwithclaude
What it does

Prevent destructive commands outside project scope

Best for

Protecting system files when an LLM agent has shell access

Inputs
  • · Project directory path
Outputs
  • · Blocked non-project rm/delete/reset commands
  • · Allowed in-project refactoring ops
Preconditions

Project boundary configured, working directory set

Failure modes

Symlinks outside boundary, misconfigured project root, user bypasses with sudo

Trust signals
  • · Safety-first design
  • · MIT license
  • · destructive-commands keyword