Dev.to
5/9/2026

shk: A Local-First Security Guardrail CLI for AI Coding Agents
Short summary
shk is a local-first CLI for scanning secrets and PII before sharing context with AI coding agents like Claude Code, Cursor, and Codex. It offers secret masking, managed hooks for audit/blocking, and Git/CI integration through a single policy file. Install via curl/PowerShell and run 'shk init' followed by 'shk scan .' to secure your AI workflows.
- •Pre-commit security scanner designed for AI coding agent workflows, not just Git commits
- •Integrated hooks for Claude Code, Cursor, and Codex with audit and blocking modes
- •Single policy file with CLI masking, managed hooks, and GitHub Actions support
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



