Agent Discovery Failure: Generated Agents Not Recognized or Loadable

Status Fixed / completed
Maintainer reply None cached
Activity 6 comments · opened Aug 15, 2025 · 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 ↗

6 Comments

github-actions[bot] · 1 year ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/5530
  2. https://github.com/anthropics/claude-code/issues/5715
  3. https://github.com/anthropics/claude-code/issues/5289

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

fwends · 1 year ago

I have seen this happening today also and then all of a sudden they appear again not only that I've seen it actually delete the MD files for the agents. They vanish completely as well as all the Json code I have now further had to make more protections so it doesn't delete his own files

sarantium · 1 year ago

I have the same issue as the OP. can't get it to list or use the agent whether created manually or with claude code.

whoishack · 1 year ago

@sarantium @fwends check your alls version number. When 1.0.79 was released is when I started having this issue and confirmed it was still an issue in 1.0.80(haven't tried 1.0.81). Roll back to 1.0.77 and you'll be back working again

torynet · 1 year ago

Well, I had tried going all the way back to 1.0.69 to no avail.
However, I finally cleaned out absolutely every reference to claude in my whole drive, and reinstalled with the 1.0.81 Windows native installation via irm https://claude.ai/install.ps1 | iex and that finally fixed it.
Unfortunately, though I have my user .claude folder in a repo to help control what goes into my user level memories, agents, config, etc. I wound up deleting a few things that were in the appdata folder and I think that messed with my setup a bit. Additionally my MCPs didn't seem to work the same way afterward, but I got a new .mcp.json file set up and I think I'm back on track.
I did not relish the idea of not having all these agents I've built up available.

github-actions[bot] · 1 year ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.