Omniscio

OmniscioGuidesDeny rule matches no tool

Claude Code: "Deny rule matches no tool · check for typos"

This is one of the few startup rows that is about security rather than tidiness. A deny rule with an unknown tool name does not apply, so the tool you meant to block is still available.

Last checked against Anthropic's documentation on November 25, 2026. By the Omniscio team. Updated .

What is the exact message?

⚠ Deny rule Bsh matches no tool · check for typos

In a non-interactive run with text output, the longer form goes to stderr instead:

Permission deny rule "Bsh" matches no known tool — check for typos.

Anthropic writes the rule name as Bsh as an example, and the row repeats your rule as you wrote it, so the words after Deny rule are your own.

What does it mean for my permissions?

The consequence is the one worth reading twice: a rule that names no tool does not apply to the tool you meant, so a deny rule written as Bsh leaves Bash unaffected. Anthropic's error reference says exactly that. In an interactive session the row appears below the startup banner, where it is seen before you rely on the rule.

An ask rule is covered by the same row, since Anthropic names deny and ask rules together. One whose tool name is unknown does not apply either, so the prompt it would have added is not added, which is quieter than a missing deny and just as real.

Why the name is wrong

  • A typo. Bsh for Bash, or a name assembled by hand in a settings example.
  • A label instead of a name. Anthropic names the case where the rule uses the label a tool shows in the transcript rather than its canonical name. Anthropic's tools reference is the list of canonical names, and it also marks which tools have been removed.

How do I find where the rule is written?

Run /permissions in the session and select the rule. Anthropic's entry says the details name where it comes from, and the three answers lead to three different fixes:

What the rule's details tell you.
The details sayWhere it livesWho can change it
From project local settingsA settings file in this projectYou
From CLI argumentThe --disallowedTools value of the command that started the sessionYou, by editing the command
From enterprise managed settingsManaged settings on this machineWhoever maintains them, not you

The first two are yours to fix. For the third, Anthropic's step is to forward the row to whoever maintains your managed settings, because that file is not one you edit.

If your details name another source, such as your user settings file, the rule is there and the same edit applies: Anthropic's entry gives these three as examples of what the details can say, not as the only possibilities.

How do I fix it?

  1. Look up the right name. Find the tool in the tools guide or Anthropic's tools reference, and use that spelling. Bash in place of Bsh is Anthropic's own example.
  2. Change the rule where it is written. Use the location the /permissions details named. Editing a different settings file leaves the original untouched.
  3. Restart the session. The row is printed at startup, so the next launch is where you see whether it is gone.
  4. Managed settings: send the row to your administrator with the rule text and the file it came from.

Which rules the check skips

Anthropic's permissions page says tool names containing an underscore or an asterisk are exempt from the check, and so are the names of tools Claude Code has removed, such as TaskOutput. MCP tool names, from the Model Context Protocol servers you connect, are built with double underscores, as in mcp__github__create_issue. That is why an MCP rule never raises this row, nor does a glob, a pattern where * stands for any text, as in mcp__github__get_*. It also means a typo inside an MCP rule name is not caught for you.

For MCP rule names, the MCP errors guide is the place to check the syntax, and how allow, ask and deny rules combine is on the permission modes guide.

Where is the warning in a headless or background run?

In a background session, and with --output-format json or stream-json, Anthropic says Claude Code writes the warning to the debug log rather than stderr. Run with --debug and read ~/.claude/debug/<session-id>.txt.

That matters for a pipeline: a job whose deny rule is misspelled can run for weeks without printing anything, because nobody reads the debug log of a green job. Anthropic notes that before v2.1.305 an interactive session printed the longer form on stderr at startup instead of showing the row, so a log from an older version reads differently.

How do I know it is fixed?

  • A new session starts without the row below the banner.
  • /permissions lists the rule under the name you corrected, and its details still name the file you edited.
  • The block actually blocks: try the tool the rule covers and confirm the deny or ask behaviour you intended, because a corrected rule is the first version of it that has ever run.

Where these answers come from

  • Anthropic's error reference, read November 25, 2026: both wordings, the "does not apply" consequence, the /permissions details, the managed-settings step and the debug-log location.
  • Anthropic's permissions page, read November 25, 2026: the startup warning, and the exemption for names holding an underscore or an asterisk, or naming a removed tool such as TaskOutput.
  • Anthropic's tools reference, read November 25, 2026: the canonical names, including Bash, and the note that TaskOutput was removed in v2.1.277.

Common questions

Is my deny rule still blocking anything?

Not the tool it names. Anthropic says a rule whose tool name is not recognized does not apply, so a deny rule written as Bsh leaves Bash unaffected. The warning exists to catch exactly that, which makes it a security row rather than a cosmetic one.

Why does a rule that looks right still warn?

Because the rule has to carry the tool's canonical name, not the label the transcript shows. Anthropic's entry gives that as a cause beside a plain typo, and the tools reference is the list of canonical names.

Why do my MCP rules never produce this warning?

Tool names containing an underscore or an asterisk are exempt from the check, and MCP tool names contain both shapes, for example mcp__github__create_issue and mcp__github__get_*. Anthropic documents that exemption on its permissions page.

I ran claude -p and saw nothing. Where did the warning go?

With --output-format json or stream-json, and in a background session, Claude Code writes the warning to the debug log instead of stderr. Run with --debug and read ~/.claude/debug/<session-id>.txt, which is where Anthropic says the warning lands.

The rule comes from managed settings. Can I fix it myself?

No. Anthropic's step for a rule whose details say From enterprise managed settings is to forward the row to whoever maintains those settings, because that file is not yours to edit.