alittlenerdy/claude-code-safety-hooks: Prevent AI agents from leaking secrets

github.com6 min read

Claude-code-safety-hooks is a collection of four dependency-free Python hooks designed to prevent AI agents from accidentally leaking secret values from environment files, command outputs, and browser sessions into persistent transcripts. The tools enforce security rules at the tool-call boundary, blocking unauthorized reads, credential pastes, and credential-revealing CLI commands while providing safe alternatives to the agent. Open article →

More on this topic