A 60-line PreToolUse hook that stops Claude Code from editing your .env
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
HN · launched Jul 27, 2026 · 6 upvotes (top 71%) · 0 views
Niche: ai coding assistants · 151 launches, 10 in the last 7 days ▲ +43% · Explore this niche →
Category and tags
- Horizontal
- Dev tools
- Developer
- AI feature
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 151 launches in ai coding assistants →
Could you build this?
Yes A 60-line script that hooks into Claude Code's PreToolUse event to inspect file paths and block edits to `.env` files is a simple regex and exit code script.
Discussion
No comments on this launch.
Competitors
Other products that read as similar to this one : 1092 launches clear the similarity bar, closest 8 shown.
Attention rank: #808 of 1093 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 269 days after the earliest competitor.
- A Claude Code plugin that catch destructive Git and filesystem commands · hn · 2025-12-26 · 61 upvotes · similarity 0.59
- ContextSaver · github · 2026-09-16 · 23 upvotes · similarity 0.58
- Claude Reflect · hn · 2026-01-04 · 75 upvotes · similarity 0.57
- ship-the-result · github · 2026-09-14 · 11 upvotes · similarity 0.57
- Janus · github · 2026-09-25 · 114 upvotes · similarity 0.56
- jev-belay · github · 2026-09-18 · 17 upvotes · similarity 0.56
- jev-pruner · github · 2026-09-18 · 139 upvotes · similarity 0.56
- jev · github · 2026-09-17 · 13 upvotes · similarity 0.55
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.