In this article
Permission resolution is an evaluation of applicable controls, so one visible allow entry does not establish the final decision for a tool call.
A tool can be installed and still require review or be blocked. Claude Code’s permission system evaluates rules for the proposed operation, while hooks and sandboxing contribute different controls. Understanding the order prevents a common debugging mistake: adding a broader permission when the real cause is a deliberate restriction from another scope.
Inspect the actual proposed tool call
A permission decision concerns the operation’s tool and relevant arguments. For a hypothetical repository report, reading pull-request metadata differs from modifying repository settings even if the same external service is involved. Start with the real invocation. A friendly action label in a UI is not enough to determine which rule matches, especially when a wrapper translates that label into a more capable command.
Evaluate restrictions before permissions
The documentation describes deny-first behavior, with matching ask rules requiring review before matching allow rules can resolve the call. Rules can come from multiple settings scopes. Therefore a project allow does not simply erase a user deny. When diagnosing a blocked read, inspect the active rule set and the matched operation rather than searching only for a missing allow statement in the nearest file.
Do not confuse instruction text with a rule
A CLAUDE.md statement can explain that a report should only read data, but it is context for the model. Technical permission configuration determines whether a tool call proceeds without review or is refused. Keep the desired workflow and the execution controls aligned. A report-only product can expose a narrow tool surface, making its capabilities easier to understand than a general command tool paired only with restrictive prose.
Check hook and sandbox responsibilities
A PreToolUse hook does not universally bypass deny and ask rules; the current documentation explains their precedence. Sandboxing addresses technical filesystem and network boundaries for commands. These controls can coexist because they answer different questions. If a command fails after permission review, inspect whether the failure concerns the sandbox, the process or the target service before changing the original permission rule.
Validate the intended capability boundary
For the hypothetical report, exercise the intended read and a nearby modifying operation in a controlled configuration check. Confirm that the observed decisions match the product’s scope. Avoid using a destructive operation merely to prove a rule; inspection and harmless representative fixtures are sufficient where supported. The final configuration should remain explainable to the user who owns the workspace and the service account.
Documentation and further study
Related engineering guides: Reproducible inference stacks: preserving a GPU pilot’s result; Choose a local AI stack: desktop chat, shared UI or coding agent.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.