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

Claude Code v2.1.227 ·

Slash commands can restrict subcommands to bare invocations

Custom commands can mark subcommands bare-only, so extra words go to the parent command.

Use it now No documentation found New Features
JSON All of v2.1.227
Use it nowTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Slash CommandsArea: what it touches
New FeaturesKind: in v2.1.227,
What probably matters to youSection of the release
What

Command definitions gained a subcommandsBareOnly field. When it is set, a subcommand name only matches if nothing follows it, so typing /foo bar baz runs the parent /foo command with bar baz as its arguments instead of dispatching to the bar subcommand.

Details
  • Carried through both prompt-backed and file-backed command construction, and added to the allow-list used when commands are serialized.
  • Dispatch bails out on trailing text: if (e.subcommandsBareOnly && s !== "") return;.
  • The field did not exist in v2.1.226.
Evidence

if (e.subcommandsBareOnly && s !== "") return;, subcommandsBareOnly

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Read from
Names in the bundlesubcommandsBareOnly

See this entry in the whole of v2.1.227 →

Feedback