[Bug] Anthropic API Error: Duplicate Tool Names in Subagent Configuration
Status Closed — duplicate
Maintainer reply None cached
Activity 6 comments · opened Oct 31, 2025 · closed Oct 31, 2025
Bug Description
Many subagents are constantly failing with the following error: API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools: Tool names must be unique."},"request_id":"req_011CUfTcJtsZ2dVC6WXhTnNL"}
Environment Info
- Platform: darwin
- Terminal: cursor
- Version: 2.0.30
- Feedback ID: 62578e64-4d87-4b71-8721-b57de49a3cbd
Errors
[{"error":"Error\n at Jh (/$bunfs/root/claude:53:1142)\n at <anonymous> (/$bunfs/root/claude:58:9841)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:60:2146)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-10-31T13:35:08.699Z"},{"error":"Error\n at Jh (/$bunfs/root/claude:53:1142)\n at <anonymous> (/$bunfs/root/claude:58:9841)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at spawnSync (unknown)\n at spawnSync (node:child_process:226:22)\n at dHR (/$bunfs/root/claude:88:1337)\n at ZG (/$bunfs/root/claude:88:3436)\n at read (/$bunfs/root/claude:762:3027)\n at request (/$bunfs/root/claude:60:2146)\n at processTicksAndRejections (native:7:39)\n at spawnSync (unknown)\n at spawnSync (node:child_process:226:22)\n at dHR (/$bunfs/root/claude:88:1337)\n at ZG (/$bunfs/root/claude:88:3436)\n at read (/$bunfs/root/claude:762:3027)\n at read (/$bunfs/root/claude:762:2154)\n at <anonymous> (/$bunfs/root/claude:3607:14527)\n at A (/$bunfs/root/claude:11:15095)","timestamp":"2025-10-31T13:35:17.902Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth token has expired. Please obtain a new token or refresh your existing token.\"},\"request_id\":\"req_011CUfN5N7u6wGxfrW6QFPuo\"}\n at generate (/$bunfs/root/claude:380:26132)\n at makeRequest (/$bunfs/root/claude:525:5345)\n at processTicksAndRejections (native:7:39)\n at spawnSync (unknown)\n at spawnSync (node:child_process:226:22)\n at dHR (/$bunfs/root/claude:88:1337)\n at ZG (/$bunfs/root/claude:88:3436)\n at read (/$bunfs/root/claude:762:3027)\n at read (/$bunfs/root/claude:762:2154)\n at <anonymous> (/$bunfs/root/claude:3607:14527)","timestamp":"2025-10-31T13:35:18.151Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at Fq (/$bunfs/root/claude:1119:3185)\n at map (native:1:11)\n at M3 (/$bunfs/root/claude:1119:2902)\n at WQ0 (/$bunfs/root/claude:2718:402)\n at IXB (/$bunfs/root/claude:1148:198029)\n at sZ (/$bunfs/root/claude:100:19415)\n at hn (/$bunfs/root/claude:102:42816)\n at N1 (/$bunfs/root/claude:102:38357)\n at $d (/$bunfs/root/claude:102:38285)\n at $E (/$bunfs/root/claude:102:38139)","timestamp":"2025-10-31T13:35:18.385Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at Fq (/$bunfs/root/claude:1119:3185)\n at map (native:1:11)\n at M3 (/$bunfs/root/claude:1119:2902)\n at WQ0 (/$bunfs/root/claude:2718:402)\n at IXB (/$bunfs/root/claude:1148:198029)\n at sZ (/$bunfs/root/claude:100:19415)\n at hn (/$bunfs/root/claude:102:42816)\n at N1 (/$bunfs/root/claude:102:38357)\n at $d (/$bunfs/root/claude:102:38285)\n at $E (/$bunfs/root/claude:102:38139)","timestamp":"2025-10-31T13:35:18.386Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at Fq (/$bunfs/root/claude:1119:3185)\n at map (native:1:11)\n at M3 (/$bunfs/root/claude:1119:2902)\n at WQ0 (/$bunfs/root/claude:2718:402)\n at IXB (/$bunfs/root/claude:1148:198029)\n at sZ (/$bunfs/root/claude:100:19415)\n at hn (/$bunfs/root/claude:102:42816)\n at N1 (/$bunfs/root/claude:102:38357)\n at $d (/$bunfs/root/claude:102:38285)\n at $E (/$bunfs/root/claude:102:38139)","timestamp":"2025-10-31T13:35:18.387Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at Fq (/$bunfs/root/claude:1119:3185)\n at map (native:1:11)\n at M3 (/$bunfs/root/claude:1119:2902)\n at WQ0 (/$bunfs/root/claude:2718:402)\n at IXB (/$bunfs/root/claude:1148:198029)\n at sZ (/$bunfs/root/claude:100:19415)\n at hn (/$bunfs/root/claude:102:42816)\n at N1 (/$bunfs/root/claude:102:38357)\n at $d (/$bunfs/root/claude:102:382
Note: Error logs were truncated.
This issue is happening consistently when I'm using Claude Code CLI within Cursor terminal.
It happens consistently for specific subagents, such as the Explore, Plan, and my custom context-prime subagent that's similar to Explore.
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗