Hacker ApprovedDepartments

nah Claude Code permission guard

Hacker Approved

Permission guard in Developer tools

Classifies Claude Code commands by what they actually do and blocks destructive ones, so you can skip most prompts. Critics say it cannot cover every context.

Classifies Claude Code commands by what they actually do and blocks destructive ones, so you can skip most prompts. Critics say it cannot cover every context.

11 people gave an opinion

recommend it
10
criticize it
1
approval share
91%
Each figure is one person. RecommendsCriticizes

Recommended in 5 of 13 months

  1. November 2025: not recommended
  2. December 2025: not recommended
  3. January 2026: not recommended
  4. February 2026: not recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: not recommended
  9. July 2026: not recommended
  10. August 2026: recommended
  11. September 2026: recommended
  12. October 2026: not recommended
  13. November 2026: not recommended (month in progress)

Why it carries the badge

  • 10 people recommend itNeeds 10 or more, met.
  • 10 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 5 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Safety net for autonomous agent runs

    “You get the same uninterrupted flow as --dangerously-skip-permissions but with nah as your safety net”

    Comment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

    “I feel better doing that more autonomously with nah as a safety net”

    Comment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

    “it's a guardrail for a trusted but mistake-prone agent”

    Comment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”
  • Catches destructive commands and secret reads

    “blocks catastrophic agent actions like filesystem destruction, secrets exfiltration, and git disasters.”

    Comment from 9 Aug 2026 in “Ask HN: What are you working on? (August 2026)”

    “nah does guard some of this - reading .env or ~/.aws/credentials gets flagged”

    Comment from 13 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

    “Even when buried in a longer chain, nah flags it.”

    Comment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”
  • Deterministic layer handles most inputs

    “the deterministic layer handled about 95% of inputs with zero latency/tokens”

    Comment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

    “The deterministic layer first → LLM only for edge cases is the right call”

    Comment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”
  • Well-designed, no-dependency code

    “Smart design, and the no-dependency stdlib approach is the right call for security tooling.”

    Comment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

    “Regardless, this looks like a well thought out project, and I love the name!”

    Comment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

    “nah was built with this method and I am very happy with the code quality”

    Comment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

What people warn about

Each mark is one comment

  • Cannot cover every possible context

    “it will just be a maintenance nightmare to account for _all_ possible contexts”

    Comment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”
  • Not a complete fix for risk

    “Won't close it 100% (a sandbox is the answer to that) but gets a lot better.”

    Comment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

What people recommend instead

The same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

nah Claude Code permission guard compared with 1 alternative
ProductRecommendCriticizeApprovalMonthsOwnedBadge
nah Claude Code permission guardThis page10191%5—Approved
Claude Code permission guard7464%1——

What people said

24 of the 28 comments that mention it, newest first. Each links to the original comment.

“is resilient to an adversarial agent that tries to remove the guard”

RecommendsComment from 17 Sep 2026 on Hacker News

“Love the vibe of the website!”

RecommendsComment from 9 Aug 2026 in “Ask HN: What are you working on? (August 2026)”

“blocks catastrophic agent actions like filesystem destruction, secrets exfiltration, and git disasters.”

RecommendsComment from 9 Aug 2026 in “Ask HN: What are you working on? (August 2026)”

“A better permissions layer for coding agents.”

RecommendsComment from 11 May 2026 in “Ask HN: What Are You Working On? (May 2026)”

“nah is a context aware permission layer that clasifies commands based on what they actually do”

RecommendsComment from 27 Apr 2026 in “An AI agent deleted our production database. The agent's confession is below”

“nah does guard some of this - reading .env or ~/.aws/credentials gets flagged”

RecommendsComment from 13 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

“it's a guardrail for a trusted but mistake-prone agent”

RecommendsComment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

“the semantic classification approach (what does this tool call actually do, not what is it named) is much more robust”

RecommendsComment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

“The deterministic layer first → LLM only for edge cases is the right call”

RecommendsComment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

“Smart design, and the no-dependency stdlib approach is the right call for security tooling.”

RecommendsComment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

“the immutable log file fits well with nah”

RecommendsComment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

“nah was built with this method and I am very happy with the code quality”

RecommendsComment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

“the deterministic layer handled about 95% of inputs with zero latency/tokens”

RecommendsComment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

“nah catches both of these out of the box.”

RecommendsComment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

“the composition rules approach makes a lot of sense, will give it a try”

RecommendsComment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

“Which is pretty great imo.”

MixedComment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

“container handles OS boundaries, and nah adds the semantic layer”

RecommendsComment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

“Won't close it 100% (a sandbox is the answer to that) but gets a lot better.”

MixedComment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

“I feel better doing that more autonomously with nah as a safety net”

RecommendsComment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

“nah guards this at multiple layers”

RecommendsComment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

“Even when buried in a longer chain, nah flags it.”

RecommendsComment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

“it will just be a maintenance nightmare to account for _all_ possible contexts”

CriticizesComment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

“You get the same uninterrupted flow as --dangerously-skip-permissions but with nah as your safety net”

RecommendsComment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

“Regardless, this looks like a well thought out project, and I love the name!”

MixedComment from 12 Mar 2026 in “Show HN: A context-aware permission guard for Claude Code”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.