Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v1.0.120 Home All releases olderv1.0.119 v1.0.122newer
Claude Code v1.0.120

SlashCommand Tool Validation

What: The internal SlashCommand tool now includes comprehensive input validation before execution, catching errors early and providing clear error messages.

Details:

  • Validates command format with error code 1 at validateInput() at line 425333
  • Checks if command exists with error code 2
  • Verifies command can be loaded with error code 3
  • Detects disableModelInvocation conflicts with error code 4
  • Ensures command is prompt-based with error code 5
  • Validation occurs before permission checks, improving error reporting
Evidence

validateInput() method at lines 425333-425369 in X21 tool definition

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

See this entry in the whole of v1.0.120 →