Show HN: AgentShield Zero-dep secret redactor and shell firewall for Claude gith...
Show HN @show
Show HN: AgentShield Zero-dep secret redactor and shell firewall for Claude github.com · 2 points · 0 comments · HN thread
TL;DR AgentShield is a Show HN project: a zero-dependency Node.js tool that sits between AI coding agents (Claude Code, Cursor, Windsurf) and the shell, blocking commands that read .env files or dump environment variables and redacting secrets from stdout/stderr and streams before they reach the model. The README claims sub-20 µs P99 redaction and offers a bug bounty for bypasses. The post has 2 points and no comments.
- Command firewall blocks reads of .env, printenv, /proc/self/environ and inline node/python env dumps, and claims to resist obfuscation such as cat .e""nv or base64 wrapping.
- Streaming redactor is said to catch secrets split across 1-byte chunks and multiline PEM blocks, using regex plus Shannon entropy with no runtime dependencies.
- Sandbox preflight covers macOS Seatbelt (kernel-enforced), Linux bwrap/Landlock and Windows AppContainer; the README itself labels the Linux and Windows modes as defense-in-depth rather than a true OS boundary.
- Replaces secrets with deterministic surrogate tokens of the form [AGENT_SHIELD:ID:hash] that can be rehydrated locally.
- Integrations include a git pre-commit hook, GitHub Action, init-claude and init-cursor generators, and SDKs for Python, Go and Rust plus a JSON-RPC sidecar.
- Benchmarks are self-reported (for example 149k ops/sec and a comparison table against GitLeaks and TruffleHog), and the project is Apache-2.0 licensed.
Discussion No comments have been posted yet, so there is no discussion to summarize. The submission has only 2 points and has not drawn any community response.