A context-aware permission guard for Claude Code
We needed something like --dangerously-skip-permissions that doesn’t nuke your untracked files, exfiltrate your keys, or install malware.Claude Code's permission system is allow-or-deny per tool, but that doesn’t really scale. Deleting some files is fine sometimes. And git checkout is sometimes not fine. Even when you curate permissions, 200 IQ Opus can find a way around it. Maintaining a deny list is a fool's errand.nah is a PreToolUse hook that classifies every tool call by what it actually does, using a deterministic classifier that runs in milliseconds. It maps commands to action types like filesystem_read, package_run, db_write, git_history_rewrite, and applies policies: allow, context (depends on the target), ask, or block.Not everything can be classified, so you can optionally escalate ambiguous stuff to an LLM, but that’s not required. Anything unresolved you can approve, and configure the taxonomy so you don’t get asked again.It works out of the box with sane defaults, no config needed. But you can customize it fully if you want to.No dependencies, stdlib Python, MIT.pip install nah && nah installhttps://github.com/manuelschipper/nah
FL score
out of 100
Verdict
high confidence
Competition
6
competitors found, emerging market, funded players
Trend
No signal yet
A context-aware, deterministic permission guard for AI coding agents that addresses a critical and growing security vulnerability.
The pain
The gap
Build angle
Strengths
- Addresses a critical and growing security pain point in the AI agent space.
- Deterministic approach offers a clear advantage over unreliable LLM-based permissioning.
- Specific, narrow angle targeting a clear user need.
- Strong market signals for willingness to pay (significant funding in the space).
- Good initial MVP demonstrated by existing GitHub project.
Risks
- The 'deterministic classifier' is technically complex to build comprehensively and maintain for all possible tool calls and contexts.
- Highly competitive landscape with several well-funded players tackling AI security.
- Achieving widespread adoption might be challenging against established security vendors.
- Long-term solo scalability could be an issue for maintaining the classifier against evolving threats and agent capabilities.
Next steps
- Actively seek feedback from current 'nah' users and Claude Code developers regarding classifier accuracy and coverage.
- Validate the most critical security vulnerabilities users want to prevent with specific examples.
- Explore partnerships or integrations with existing AI agent frameworks to broaden reach and validate the pre-tool-use hook model.
- Investigate monetization models beyond the current open-source offering, focusing on team/enterprise features.
Fly Labs Method
Is the pain real, is there a gap, is it the right time, can one person build it.
- Problem clarity
- 27
- Solution gap
- 18
- Willingness to pay
- 22
- Buildability
- 9
High pain, clear gap with a narrow focus, strong payment signals, but the buildability for a truly comprehensive and 'out-of-the-box' solution by a solo builder is challenging.
Value Equation
Dream outcome and how likely it feels, against the time and effort it costs.
Strong market demand and value proposition in a growing market, but differentiation and implementation complexity are notable challenges.
One-Person Business
Curiosity pull, identity fit, and a path from free value to paid for a solo creator.
A clear, severe problem for a reachable audience with viable monetization, but the ongoing complexity of the 'deterministic classifier' makes it less simple for solo scaling.
Viral Frameworks
Hook strength, shareability, and how cheaply it can be tested.
Highly specific target audience and clear value proposition, with a viable business model, but dependent on the robustness of the deterministic classifier and competitive landscape.
Builder Lens
Evidence the problem exists, timing, defensibility, and a model that fits on a napkin.
Addresses a desperate and growing security problem for AI agents with a clear initial wedge, but needs more observed usage data.
Why this verdict
Five lenses, one composite. How scoring works
The angle
This weekend
- Actively seek feedback from current 'nah' users and Claude Code developers regarding classifier accuracy and coverage.
- Validate the most critical security vulnerabilities users want to prevent with specific examples.
- Explore partnerships or integrations with existing AI agent frameworks to broaden reach and validate the pre-tool-use hook model.
- Investigate monetization models beyond the current open-source offering, focusing on team/enterprise features.
Who is already there, emerging market
Permit.io provides fine-grained authorization for AI-powered applications, enforcing permissions across prompts, responses, actions, and data access, and integrates with emerging standards like MCP.
Pricing: Contact sales for pricing; offers a free tier for individual developers and small teams.
Corridor is purpose-built for securing AI-generated code, integrating directly with AI coding agents like Claude Code through hooks and MCP to provide real-time security feedback during code generation.
Pricing: Not publicly available, contact sales.
Snyk is an application security platform that includes SAST, SCA, and container security, and offers features to secure AI-generated code and integrate security into AI development practices.
Pricing: Free tier; Team plan from $25/month; Ignite plan for organizations with less than 50 developers at $1,260/year per contributing developer; Enterprise plan requires contacting sales.
Manifold is an AI Detection and Response (AIDR) platform designed to secure autonomous AI agents at runtime, defending endpoints from risks associated with rapid agent adoption.
Pricing: Not publicly available, contact sales.
Axiom aims to ensure AI-generated code is safe, secure, and accurate by using formal verification in Lean, providing mathematical certainty that code functions correctly and doesn't introduce vulnerabilities.
Pricing: Not publicly available, contact sales.
Knostic provides need-to-know access controls for large language models, preventing LLM-based enterprise applications from oversharing sensitive information through dynamic, context-aware data sharing.
Pricing: Not publicly available, contact sales.
What they charge
Recent news
Verifiable AI startup Axiom raises $200M to prove AI-generated code is safe to use
SiliconANGLE, March 12, 2026
Manifold Announces $8 Million Seed Funding Round to Secure Autonomous Endpoint AI Agents at Runtime
GlobeNewswire, March 18, 2026
Linux Foundation Announces $12.5M in Grant Funding to Advance Open Source Security
AIwire - HPCwire, March 20, 2026
Our latest investment in open source security for the AI era
Google Blog, March 17, 2026
Enhance AI security with Azure Prompt Shields and Azure AI Content Safety
Microsoft Azure Blog, June 05, 2025
Market signals
The market for securing AI-generated code and managing AI agent permissions is rapidly growing and receiving significant investment. The global AI code tools market is projected to reach $12.6 billion by 2028 and $70.55 billion by 2034, indicating a large and expanding market. Recent funding rounds, such as Axiom's $200M Series A and Manifold's $8M seed round, highlight investor confidence in solutions addressing AI security and trustworthy AI development.
What frustrates people
- Most existing AI frameworks provide tool calling but lack real permission boundaries, relying on unreliable LLM instructions.
- Traditional security tools are not designed for the semantic layer where prompt injection attacks occur.
- The speed of AI code creation is outpacing security review, leading to a glut of potentially insecure AI-generated code.
- Long or complex prompts can introduce ambiguity, making it harder to enforce security policies.
- AI filters are themselves susceptible to prompt injections, posing a challenge for comprehensive protection.
Semble – Code search for agents that uses 98% fewer tokens than grep
Hey HN! We (Stephan and Thomas) recently open-sourced Semble. We kept running into the same problem while using Claude Code on large codebases: when the agent can't find something directly, it falls back to grep, reading full files or launching subagents. This uses a lot of tokens, and often still misses the relevant code. There are existing tools for this, but they were either too slow to index on demand, needed API keys, or had poor retrieval quality.Semble is our solution for this. It combines static Model2Vec embeddings (using our latest static model: potion-code-16M) with BM25, fused via RRF and reranked with code-aware signals. Everything runs on CPU since there's no transformers involved. On our benchmark of ~1250 query/document pairs across 63 repos and 19 languages, it uses 98% fewer tokens than grep+read and reaches 99% of the retrieval quality of a 137M-parameter code-trained transformer, while being ~200x faster.Main features:- Token-efficient: 98% fewer tokens than grep+read- Fast: ~250ms to index a typical repo on our benchmark, ~1.5ms per query on CPU (very large repos may take longer)- Accurate: 0.854 NDCG@10, 99% of the best transformer setup we tested- MCP server: drop-in for Claude Code, Cursor, Codex, OpenCode- Zero config: no API keys, no GPU, no external servicesInstall in Claude Code with: claude mcp add semble -s user -- uvx --from "semble[mcp]" sembleOr check our README for other installation instructions, benchmarks, and methodology:Semble: https://github.com/MinishLab/sembleBenchmarks: https://github.com/MinishLab/semble/tree/main/benchmarksModel: https://huggingface.co/minishlab/potion-code-16MLet us know if you have any feedback or questions!
AI
Postgres extension for BM25 relevance-ranked full-text search
Last summer we faced a conundrum at my company, Tiger Data, a Postgres cloud vendor whose main business is in timeseries data. We were trying to grow our business towards emerging AI-centric workloads and wanted to provide a state-of-the-art hybrid search stack in Postgres. We'd already built pgvectorscale in house with the goal of scaling semantic search beyond pgvector's main memory limitations. We just needed a scalable ranked keyword search solution too.The problem: core Postgres doesn't provide this; the leading Postgres BM25 extension, ParadeDB, is guarded behind AGPL; developing our own extension appeared daunting. We'd need a small team of sharp engineers and 6-12 months, I figured. And we'd probably still fall short of the performance of a mature system like Parade/Tantivy.Or would we? I'd be experimenting long enough with AI-boosted development at that point to realize that with the latest tools (Claude Code + Opus) and an experienced hand (I've been working in database systems internals for 25 years now), the old time estimates pretty much go out the window.I told our CTO I thought I could solo the project in one quarter. This raised some eyebrows.It did take a little more time than that (two quarters), and we got some real help from the community (amazing!) after open-sourcing the pre-release. But I'm thrilled/exhausted today to share that pg_textsearch v1.0 is freely available via open source (Postgres license), on Tiger Data cloud, and hopefully soon, a hyperscalar near you:https://github.com/timescale/pg_textsearchIn the blog post accompanying the release, I overview the architecture and present benchmark results using MS-MARCO. To my surprise, we were not only able to meet Parade/Tantivy's query performance, but exceed it substantially, measuring a 4.7x advantage on query throughput at scale:https://www.tigerdata.com/blog/pg-textsearch-bm25-fu
AI
Consus (YC F24) – LLM gateway for companies handling sensitive data
Hey Hacker News! I'm Eric, the founder of Consus. We route all AI requests to ITAR restricted and controlled unclassified information (CUI) compliant infrastructure. Consus itself satisfies ITAR restrictions, and we recently completed our FedRAMP equivalency audit against the 410 FedRAMP High controls. FedRAMP High is the U.S. government’s strictest security baseline for cloud services handling sensitive unclassified data. A breach of this data could cause severe or catastrophic harm. Achieving FedRAMP equivalency, or authorization, is required before processing CUI information.Demo: https://youtu.be/6MYxJe6P4oYAerospace and defense is experiencing rapid growth. Unfortunately, most companies are struggling to use AI because of necessary data protections & compliance risk. These companies can move even faster if they could use the AI tools that most other industries take for granted.I spent most of my career prior to Consus in aerospace & defense. I launched national security payloads at SpaceX, and was an early employee at Castelion. I’ve watched first hand how compliance red-tape makes it difficult for companies to adopt new technologies and trust vendors that touch their sensitive data. For example, I worked with a satellite manufacturer that doesn’t allow any AI tools, even for non-sensitive work.Even as AI has become extremely useful over the past 9-12 months, I was surprised by how many aerospace & defense companies refused to touch it. They could see how it could be helpful, but they were scared about model providers training on their data, violating an ITAR rule, or risk losing new business because of a failed cyber assessment. These are all rational fears.There were a lot of ways to solve some/all of these problems, but we focused on building a compliant AI inference layer that can "plug" into any AI tool or workflow. Just as OpenRouter integrates with most tools, Consus can connect to tools like ChatGPT or Clau
AI
Questions about this idea?
FlyBot reads the scoring and gives you a second opinion on “A context-aware permission guard for Claude Code”.