Invalid Tool Name Format Constraint
Resolved 💬 2 comments Opened Mar 24, 2025 by digital-soul18 Closed Mar 24, 2025
Bug Description
Getting error doing init:
/init is analyzing your codebase…
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools.10.custom.name: String should match pattern '^[a-zA-Z0-9_-]{1,64}$'"}}
Environment Info
- Platform: macos
- Terminal: Apple_Terminal
- Version: 0.2.35
- Feedback ID: be3a0594-237e-4575-b9ab-2104e859e898
Errors
[{"error":"Error: Command failed: /usr/local/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-darwin/rg --files --glob *.md /Users/SOHBEHL_1/.claude/commands\nrg: /Users/SOHBEHL_1/.claude/commands: IO error for operation on /Users/SOHBEHL_1/.claude/commands: No such file or directory (os error 2)\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at ChildProcess.exithandler (node:child_process:414:12)\n at ChildProcess.emit (node:events:524:28)\n at ChildProcess.emit (node:domain:489:12)\n at maybeClose (node:internal/child_process:1101:16)\n at Socket.<anonymous> (node:internal/child_process:456:11)\n at Socket.emit (node:events:524:28)\n at Socket.emit (node:domain:489:12)\n at Pipe.<anonymous> (node:net:350:12)","timestamp":"2025-03-24T00:19:48.161Z"},{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:882:11)\n at execSync (node:child_process:954:15)\n at ag (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:423:2092)\n at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:507:11057\n at Z (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:414:12512)\n at Lw (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:507:10608)\n at nL2 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1088:5352)\n at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1156:554","timestamp":"2025-03-24T00:19:48.221Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools.10.custom.name: String should match pattern '^[a-zA-Z0-9_-]{1,64}$'\"}}\n at w5.generate (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:514:2499)\n at V5.makeStatusError (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:518:7207)\n at V5.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:518:8150)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-03-24T00:20:21.226Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗