My agent ran prisma migrate reset. Here's the hook I wrote so it can't again

Chronological Source Flow
Back

AI Fusion Summary

pgbrake 0.2.0 introduces a Claude Code PreToolUse hook to prevent agents from executing destructive terminal commands. While previous versions focused on SQL writes, this update monitors Bash commands such as prisma migrate reset --force, drizzle-kit push --force, and alembic downgrade base. Upon detecting these actions, pgbrake creates a pg_dump snapshot if PGBRAKE_DSN is configured, then halts the process to request user confirmation. Setup is completed simply by running the pgbrake install-hook command.
Community Comments
Loading updates...
0