Agent Discovery Failure: Generated Agents Not Recognized or Loadable

Resolved 💬 6 comments Opened Aug 15, 2025 by torynet Closed Aug 15, 2025

Bug Description
Suddenly Claude Code will not recognize agents. I can have it generate a test agent. It will create the file, but it will not show up in /agents and it will not be usable. I've tried clearing all the files, uninstall, reinstall, local and global, different versions. Everything short of an os reinstall. Nothing helps.

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 1.0.69
  • Feedback ID: d7a3e56f-8811-4ce2-8309-8b04e1fd3603

Errors

[{"error":"Error: Failed to copy executable from C:\\Users\\telar\\.local\\share\\claude\\versions\\1.0.81 to C:\\Users\\telar\\.local\\bin\\claude.exe: Error: EPERM: operation not permitted, unlink 'C:\\Users\\telar\\.local\\bin\\claude.exe'\n    at zI9 (B:/~BUN/root/claude.exe:2337:20561)\n    at <anonymous> (B:/~BUN/root/claude.exe:2337:20128)\n    at <anonymous> (B:/~BUN/root/claude.exe:2337:20145)\n    at X9W (B:/~BUN/root/claude.exe:2337:18054)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-15T06:45:10.498Z"},{"error":"Error: Failed to copy executable from C:\\Users\\telar\\.local\\share\\claude\\versions\\1.0.81 to C:\\Users\\telar\\.local\\bin\\claude.exe: Error: EPERM: operation not permitted, unlink 'C:\\Users\\telar\\.local\\bin\\claude.exe'\n    at zI9 (B:/~BUN/root/claude.exe:2337:20561)\n    at <anonymous> (B:/~BUN/root/claude.exe:2337:20128)\n    at <anonymous> (B:/~BUN/root/claude.exe:2337:20145)\n    at X9W (B:/~BUN/root/claude.exe:2337:18054)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-15T06:45:19.152Z"},{"error":"Error: Failed to copy executable from C:\\Users\\telar\\.local\\share\\claude\\versions\\1.0.81 to C:\\Users\\telar\\.local\\bin\\claude.exe: Error: EPERM: operation not permitted, unlink 'C:\\Users\\telar\\.local\\bin\\claude.exe'\n    at zI9 (B:/~BUN/root/claude.exe:2337:20561)\n    at <anonymous> (B:/~BUN/root/claude.exe:2337:20128)\n    at <anonymous> (B:/~BUN/root/claude.exe:2337:20145)\n    at X9W (B:/~BUN/root/claude.exe:2337:18054)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-15T06:45:38.233Z"},{"error":"Error: Failed to copy executable from C:\\Users\\telar\\.local\\share\\claude\\versions\\1.0.81 to C:\\Users\\telar\\.local\\bin\\claude.exe: Error: EPERM: operation not permitted, unlink 'C:\\Users\\telar\\.local\\bin\\claude.exe'\n    at zI9 (B:/~BUN/root/claude.exe:2337:20561)\n    at <anonymous> (B:/~BUN/root/claude.exe:2337:20128)\n    at <anonymous> (B:/~BUN/root/claude.exe:2337:20145)\n    at X9W (B:/~BUN/root/claude.exe:2337:18054)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-15T06:45:42.099Z"},{"error":"Error: Failed to copy executable from C:\\Users\\telar\\.local\\share\\claude\\versions\\1.0.81 to C:\\Users\\telar\\.local\\bin\\claude.exe: Error: EPERM: operation not permitted, unlink 'C:\\Users\\telar\\.local\\bin\\claude.exe'\n    at zI9 (B:/~BUN/root/claude.exe:2337:20561)\n    at <anonymous> (B:/~BUN/root/claude.exe:2337:20128)\n    at <anonymous> (B:/~BUN/root/claude.exe:2337:20145)\n    at X9W (B:/~BUN/root/claude.exe:2337:18054)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-15T06:46:26.346Z"},{"error":"Error: Failed to copy executable from C:\\Users\\telar\\.local\\share\\claude\\versions\\1.0.81 to C:\\Users\\telar\\.local\\bin\\claude.exe: Error: EPERM: operation not permitted, unlink 'C:\\Users\\telar\\.local\\bin\\claude.exe'\n    at zI9 (B:/~BUN/root/claude.exe:2337:20561)\n    at <anonymous> (B:/~BUN/root/claude.exe:2337:20128)\n    at <anonymous> (B:/~BUN/root/claude.exe:2337:20145)\n    at X9W (B:/~BUN/root/claude.exe:2337:18054)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-15T06:46:28.065Z"},{"error":"Error: Failed to copy executable from C:\\Users\\telar\\.local\\share\\claude\\versions\\1.0.81 to C:\\Users\\telar\\.local\\bin\\claude.exe: Error: EPERM: operation not permitted, unlink 'C:\\Users\\telar\\.local\\bin\\claude.exe'\n    at zI9 (B:/~BUN/root/claude.exe:2337:20561)\n    at <anonymous> (B:/~BUN/root/claude.exe:2337:20128)\n    at <anonymous> (B:/~BUN/root/claude.exe:2337:20145)\n    at X9W (B:/~BUN/root/claude.exe:2337:18054)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-15T06:46:31.346Z"},{"error":"Error: Failed to copy executable from C:\\Users\\telar\\.local\\share\\claude\\versions\\1.0.81 to C:\\Users\\telar\\.local\\bin\\claude.exe: Error: EPERM: operation not permitted, unlink 'C:\\Users\\telar\\.local\\bin\\claude.exe'\n    at zI9 (B:/~BUN/root/claude.exe:2337:20561)\n    at <anonymous> (B:/~BUN/root/claude.exe:2337:20128)\n    at <anonymous> (B:/~BUN/root/claude.

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗