On Claude Code 2.1.336, claude plugin validate --strict exits 1 when a plugin root has a file anywhere under bin/. The same command without --strict prints the warning and exits 0. Claude Code 2.1.308, given the same tree and the same --strict flag, prints no bin warning and exits 0. An empty bin/ directory exits 0 on both binaries, with or without --strict.
That split is the result a release job can miss. The 2.1.336 note, published 3 December 2026, says the validator now warns about files in bin/ and that --strict fails on such a plugin. The note does not say the warning is absent from 2.1.308, that an empty directory still passes, or that the JSON object a script is likely to read stays empty. Those three facts are what this run measured.
The same help text, two results
Two binaries, one manifest, and a new home for each invocation. The newer binary came from the Linux x64 archive on the GitHub release tagged v2.1.336. The archive SHA-256 was e317697c3f95db4c980335a467a6947604951e977ac623691e4cb8845c37b86c, which matches the claude-linux-x64.tar.gz line in the SHASUMS256.txt file shipped with that release. The signature file was downloaded and not checked. After extraction the binary printed 2.1.336 (Claude Code). Its SHA-256 was 5d3404165dbce2799e52375361a3704151c927cdb1c7d2b42ec7847aa21f26da. The older binary was the one already on PATH, 2.1.308 (Claude Code), SHA-256 356733f185fa988e6bf3aa9a555269fdd167982a2e2a80d3c8a78037bb92ad58. Both were run on Linux x86_64 on 3 December 2026.
Each invocation set HOME to a directory created for that case. No login command was run. No API key was set. No Claude session was started. No plugin was installed. The account Claude directory was not the home these commands read. Every invocation wrote a .claude.json and a backup under that disposable home. The plugin files were the input. The home files are a side effect of starting the binary, not a record of a submission.
The help text for claude plugin validate is the same on both binaries. A diff of the two help listings was empty. Both list --json, --profile directory, and --strict. The --strict sentence says to use the flag in CI so unrecognized fields, missing metadata, and other issues the runtime tolerates become failures. It does not name bin/. A job that reads help to decide whether this release’s warning is in force will not find the answer there. The version line is the answer. The help text is not.
Every tree used the same manifest, saved at .claude-plugin/plugin.json:
{
"name": "lab-plugin",
"version": "1.0.0",
"description": "Lab plugin for validate comparison",
"author": {"name": "Lab"}
}
The only difference between trees was what sat beside that file. One tree had no bin/ at all. One had an empty bin/ directory. One had an executable bin/hello. One had a non-executable bin/note.txt. One had a hidden bin/.keep. One had a file only at bin/nested/tool. One had a regular file named bin, not a directory. One had scripts/format.sh and no bin/. One had skills/review/bin/hello and no top-level bin/. One had both bin/hello and scripts/format.sh. One had bin/hello plus a one-line README.md. Eleven trees, six flag sets, two binaries: 132 runs. Standard error was empty on every run.
Strict changes the exit, not the warning object
On 2.1.336, the tree with bin/hello and no --strict still exits 0. The report names the bin directory on a line that begins Validating plugin:, then prints one warning:
⚠ Found 1 warning:
❯ bin: claude.ai refuses a plugin with files in its bin/ folder, though Claude Code loads it. To publish there, move the files to another folder and run them by path.
Further down it lists bin: hello under Provides, notes that hosts were not read for that file, and ends with ✔ Validation passed with warnings. The directory checks for a missing README, a missing license, and a missing icon are printed in the same report. The text says those directory checks do not change the result unless you pass --profile directory. They did not. Exit status was 0.
Adding --strict does not rewrite the warning. The same sentence is printed. The last line changes to ✘ Validation failed (--strict treats warnings as errors). Exit status was 1.
The JSON form makes the parser trap obvious. Without --strict, success is true and strict is false. With --strict, success is false and strict is true. In both objects the manifest’s warnings array is empty. The finding sits on a contents entry whose path is bin, whose message is the sentence above, and whose code is null. --strict does not move that object into errors. A script that fails only when manifest.warnings is non-empty, or only when a warning code is present, will accept the file on 2.1.336 even with --strict if it ignores success. A script that trusts success and passes --strict will fail. The exit code and success agree with each other. They do not agree with a scan of the manifest object.
On 2.1.308 the same tree, with or without --strict, ends ✔ Validation passed and exits 0. The JSON success field is true in both cases. There is no contents warning. There is no bin key under provides. The 2.1.336 object for a plugin with no bin/ directory still contains "bin": []. The 2.1.308 object for that same plugin does not contain the key. That key is a version tell. It is not the warning.
The warning text says Claude Code loads a plugin that has files in bin/. This run did not start a session and did not load the plugin. The sentence is what the validator printed. It is not an observation that a session put bin/ on PATH.
An empty directory is not a file
The warning fires for more than an executable, and it misses more than a missing folder.
A non-executable bin/note.txt produced the same warning. Provides listed note.txt. A hidden bin/.keep produced the same warning. Provides listed .keep. The check is not an executable-bit check, and it does not skip dotfiles. A file that exists only at bin/nested/tool also produced the warning, and --strict exited 1. That report had no Provides section, and the JSON provides.bin array was empty. A job that looks for a Provides line, or for a non-empty provides.bin, will miss a file that lives only in a subdirectory. The warning line and the strict exit code still catch it.
An empty bin/ directory did not warn. On 2.1.336, plain and --strict both ended ✔ Validation passed and exited 0. The JSON contents warnings were empty, and provides.bin was an empty array. Deleting the files and leaving the directory is not enough to fail this command.
A regular file named bin, not a directory, did not warn. scripts/format.sh with no bin/ did not warn. skills/review/bin/hello with no top-level bin/ did not warn. The check is the top-level directory, and it looks for a file under that directory. A bin/ nested inside a skill is a different path. A helper under scripts/ is the path the warning tells you to use.
On 2.1.308 every one of those trees passed plain and --strict. None of the reports contained the refusal sentence. Upgrading the binary is part of enabling the check. A hooks-style assumption does not apply here: copying a newer manifest into an older home is not the change. The binary is the change. A 2.1.308 CI job that already passes --strict will keep exiting 0 after a bin/hello appears.
The page refuses the directory this command ignores
Two current pages describe a wider refusal than the command implements.
The plugin manifest reference, in the standard-layout table, says files in bin/ are placed on the Bash tool’s PATH while the plugin is enabled, and that claude.ai and Cowork do not install a plugin that has this directory. The organization-sync page is more specific. It says not to include a top-level bin/ directory in a plugin distributed through organization settings. It says claude.ai rejects a plugin that has one, whether the plugin arrives by marketplace sync or by direct upload, and that the error message starts with Plugin contains a top-level bin/ directory. On a marketplace sync, that plugin is rejected and the rest of the marketplace still syncs. The page tells you to keep executables in another directory, such as scripts/, and to reference them from a skill, hook, or MCP config by the plugin-root variable plus the script’s file name.
The validator sentence is narrower. It says claude.ai refuses a plugin with files in its bin/ folder. The release note uses the same narrower wording: files in the folder, not the folder itself. An empty directory is the gap between those sentences. This run did not upload a plugin to claude.ai, and it did not sync a marketplace. An empty bin/ that passes --strict is not evidence that claude.ai will accept the directory. It is evidence that this local command will not catch the directory the organization-sync page tells you to omit.
If the publication target is claude.ai, remove the directory. Do not stop at deleting the files inside it. If the publication target is Claude Code on a machine you control, the warning itself says Claude Code loads the files. That load was not exercised here. The local failure this binary will give you, when you ask for it, is the strict exit.
A one-line README.md next to bin/hello did not remove the warning. The report still named hello and still failed under --strict. A README is a directory-submission requirement. It is not a substitute for moving the file.
A directory profile fails for another reason
--profile directory is a different gate, and it is already present on 2.1.308. On both binaries, a tree with no README and no license exits 1 when that profile is set. The closing line is ✘ Validation failed (--profile directory: the plugin directory would refuse a submission of this plugin). The problems named are README_MISSING and LICENSE_MISSING. The same failure appears on the tree that has no bin/ at all. Passing the profile flag does not mean you have tested the bin warning. Failing the profile flag does not mean bin/ is the cause.
Without the profile flag, both binaries print those directory problems and then say the checks do not change the result. A job that greps for README missing will fail every minimal fixture in this run, including the one that should pass. A job that greps for the bin refusal sentence will fail only the 2.1.336 runs whose top-level bin/ contains a file. Those are different tests. Run the one you mean.
The profile help text says the directory runs more checks than this command, including a safety scan and a policy review that the command does not run. A local --profile directory failure is still not that scan. It is the subset this binary printed: missing README, missing license, and an icon warning that does not by itself change the profile result in these runs.
How to verify the split
Use a plugin directory that contains only the manifest above and one file, bin/hello. Point HOME at an empty directory so the command does not read an account configuration. On 2.1.336, run:
claude plugin validate ./with-file
claude plugin validate --strict ./with-file
claude plugin validate --strict --json ./with-file
The first command should exit 0 and end with Validation passed with warnings. The second should exit 1 and end with Validation failed (--strict treats warnings as errors). The JSON object should have success false, an empty manifest.warnings, and one contents warning whose path is bin and whose code is null. Then repeat the strict command on 2.1.308. It should exit 0, omit the refusal sentence, and omit the bin key from provides.
Repeat the strict command against an empty bin/ directory on 2.1.336. It should exit 0 and omit the refusal sentence. Repeat it against bin/nested/tool. It should exit 1 even though provides.bin is empty. Repeat it against scripts/format.sh with no bin/ directory. It should exit 0.
If the first command already exits 1, read the last line before you treat it as this warning. A directory-profile failure, a bad manifest, or a path that escapes the plugin root will also exit 1, and those failures exist on 2.1.308. The bin finding is the refusal sentence, plus a strict exit of 1, plus a pass on the same tree when the file is moved out of top-level bin/.
A CI job that wants this check needs the 2.1.336 binary or a later one, and it needs --strict. Exit status alone, on 2.1.308 or without the flag, will accept the file. If the job parses JSON, it should read success after --strict, or read contents[].warnings, and it should not require a warning code. Moving the executable to scripts/ and calling it by path is the change both the warning and the organization-sync page describe. Leaving the empty directory behind will satisfy this command and will not satisfy the page.