SShortSingh.
Back to feed

How Claude Code's allow, ask, and deny permissions actually work together

0
·4 views

Claude Code's permission system uses three rule lists — allow, ask, and deny — evaluated in a fixed order where deny always wins, regardless of how specific an allow rule is. Rules are sourced from multiple settings files including project-level and user-level configs, with deny overriding across all scopes. Common pitfalls include glob patterns that match unintended commands, wrapper-stripping behavior that can bypass rules, and compound shell commands where each segment must be independently authorized. Bare tool-name denials remove a tool from the model's context entirely, while pattern-based denials like Bash(rm *) still leave the tool visible but block matching commands. The guide recommends never allowing unrestricted Bash access and treating every permission denial as useful data to refine policy over time.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

How to Self-Host Hermes AI Agent Using OpenRouter's Free Inference Models

Developers can now run the Hermes Agent by Nous Research on local infrastructure while offloading compute-heavy inference to free-tier models via OpenRouter, avoiding costly AI subscriptions. In this setup, the local machine manages the agent control loop, memory, and decision logic, while model inference is handled through HTTPS calls to OpenRouter's servers. Any model used with the framework must support structured tool calling and offer a minimum context window of 64,000 tokens to function reliably. Since OpenRouter's model catalog changes frequently, developers are advised to use a dynamic Python script to filter compatible free models rather than relying on hardcoded IDs. For those requiring full data privacy with zero external data flow, the Hermes Agent also supports local LLM backends such as Ollama, vLLM, and llama.cpp.

0
ProgrammingDEV Community ·

Analyst Builds Excel Dashboard to Decode Jumia Product Pricing and Review Trends

A data analysis project used Microsoft Excel to transform a 116-row Jumia product dataset into actionable insights on pricing, discounts, ratings, and customer reviews. The dataset contained six fields — product name, current price, old price, discount, ratings, and reviews — with 58 blank entries across the ratings and review columns. Data cleaning involved removing formatting inconsistencies, trimming whitespace, converting text-formatted price fields to currency, and stripping redundant labels from the ratings column. Blank rating and review cells were intentionally left empty rather than filled with zeros to avoid misrepresenting unreviewed products as poorly rated. The enriched dataset was then categorised using Excel formulas to classify products by price tier, discount range, and rating performance, enabling a structured interactive dashboard for e-commerce decision-making.

0
ProgrammingDEV Community ·

Developer builds 30 browser-based dev tools to avoid leaking API tokens online

A developer launched DevTools Kit, a free collection of 30 utilities — including JWT decoders, formatters, converters, and a side-by-side code diff tool — that run entirely in the browser without sending data to any server. The project was motivated by the common but risky practice of pasting sensitive tokens and production data into unknown third-party websites. Every tool operates client-side, meaning it continues to function even when the network connection is disabled. Built with Vue 3 and deployed as static pages on Cloudflare Pages, the toolkit achieves perfect Lighthouse scores for performance, SEO, and best practices. DevTools Kit requires no sign-up, displays no ads, and collects no analytics, and is accessible at devtoolskit.uvercy.com.