Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

--disallowedTools

cli never mined documented JSON

A Claude Code CLI flag, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.

Also written --disallowed-tools. Every list on this page counts all of these spellings together.

Deny rules. A bare tool name removes the matching tools from Claude's context: "Edit" removes Edit, "" removes every tool, and "mcp__" removes every MCP tool. A scoped rule such as Bash(rm *) leaves the tool available and denies only calls that match as written. A rule naming EndConversation can't remove it while any other tool remains

Anthropic's own wording. Read off CLI reference, captured 2026-09-26.

First seen — never in a mined build
Last seen — never in a mined build
Builds0 / 149on this box, as of v2.1.308
Written about v0.2.120 first named in a changelog, 19 May 2025

In the changelogs

13

Releases whose published page names --disallowedTools.

  1. v2.1.299
    --tools explains that it cannot remove MCP tools

    Passing an MCP tool to --tools now fails with a message saying to use --disallowed-tools instead

    found in this entry's text, named in this entry

  2. v2.1.299
    Cloud sessions now warn that wildcard connector deny rules block nothing

    In a cloud session, a --disallowed-tools rule with * in a claude.ai connector's name is now reported as blocking no connector

    found in this entry's text, named in this entry

  3. v2.1.296
    Cloud sessions now refuse tool restrictions instead of quietly ignoring them

    Starting a cloud session with --tools or --disallowed-tools restrictions it cannot apply now fails with an error

    found in this entry's text, named in this entry

  4. v2.1.285
    Cloud sessions gain messages for limiting tools with --tools

    Cloud sessions now have messages for limiting a session to the tools you list with --tools, covering empty lists, unsupported cases and org limits

    found in this entry's text

  5. v2.1.281
    --disallowed-tools is now accepted when starting a cloud session

    --disallowed-tools is now passed through to new cloud sessions, but still refused when attaching to an existing one

    found in this entry's text, named in this entry

  6. v2.1.281
    --disallowedTools now forwarded to cloud sessions

    Tools you block with --disallowedTools now stay blocked in cloud sessions you start

    found in this entry's text

  7. v2.1.281
    Cloud sessions: clear errors for a deny list on attach and for an unclosed --disallowed-tools rule

    Cloud sessions now give clear errors when attach flags would change the deny list, or a --disallowed-tools rule has an unclosed parenthesis

    found in this entry's text, named in this entry

  8. v2.1.281
    Cloud sessions: clearer --tools rejection; --disallowed-tools no longer listed as rejected

    Cloud sessions reject --tools with a clearer message, and --disallowed-tools is no longer on the rejected list

    found in this entry's text, named in this entry

  9. v2.1.257
    allowManagedPermissionRulesOnly semantics clarified/expanded

    The allowManagedPermissionRulesOnly description now spells out exactly which rule sources it ignores and which still apply.

    found in this entry's text

  10. v2.1.242
    Cloud-hosted sessions now refuse local CLI options instead of quietly dropping them

    Running with --cloud now tells you which local CLI options were ignored or refused, and why.

    found in this entry's text

  11. v2.1.234
    Early flag scan no longer mistakes tool lists and directories for flags

    Tool lists and directories passed to flags are no longer misread as flags themselves at startup.

    named in this entry, found in this entry's text

  12. v2.1.232
    Cloud gateway sign-in explains its restart, and refuses when it cannot

    Cloud gateway sign-in explains its restart, and ends the session when a restart can't carry state.

    found in this entry's text

  13. v0.2.120
    Tool Permission Handling Improvements

    found in this entry's text

First cited

0

No release's published evidence quotes this name. The ledger indexes the Evidence lines of every changelog on this site, so this says nobody here has ever quoted it; it says nothing about how old the name is.

Presence across releases

0

The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.

Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the CLI flag does. All CLI flags.

Feedback