Agent Loading Failure: Unable to Initialize Previously Created Agents
Bug Description no matter what I do claude won't load the agents it created
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 1.0.62
- Feedback ID: 7db2864c-4ad3-4810-af9b-8c952803411d
Errors
[{"error":"Error: Command failed: tasklist | findstr /I \"Code.exe Cursor.exe Windsurf.exe idea64.exe pycharm64.exe webstorm64.exe phpstorm64.exe rubymine64.exe clion64.exe goland64.exe rider64.exe datagrip64.exe appcode.exe dataspell64.exe aqua64.exe gateway64.exe fleet.exe studio64.exe\"\nFINDSTR: Cannot open Code.exe Cursor.exe Windsurf.exe idea64.exe pycharm64.exe webstorm64.exe phpstorm64.exe rubymine64.exe clion64.exe goland64.exe rider64.exe datagrip64.exe appcode.exe dataspell64.exe aqua64.exe gateway64.exe fleet.exe studio64.exe\r\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 i7 (file:///C:/Users/sgusi/AppData/Roaming/nvm/v22.12.0/node_modules/@anthropic-ai/claude-code/cli.js:865:5108)\n at Tt (file:///C:/Users/sgusi/AppData/Roaming/nvm/v22.12.0/node_modules/@anthropic-ai/claude-code/cli.js:1346:1937)\n at file:///C:/Users/sgusi/AppData/Roaming/nvm/v22.12.0/node_modules/@anthropic-ai/claude-code/cli.js:1896:7279\n at async file:///C:/Users/sgusi/AppData/Roaming/nvm/v22.12.0/node_modules/@anthropic-ai/claude-code/cli.js:1897:1485\n at async Promise.all (index 12)\n at async Kw0 (file:///C:/Users/sgusi/AppData/Roaming/nvm/v22.12.0/node_modules/@anthropic-ai/claude-code/cli.js:1897:1444)","timestamp":"2025-07-29T11:59:39.564Z"},{"error":"Error: spawn /c/Users/sgusi/AppData/Roaming/nvm/v22.12.0/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-win32/rg.exe ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n at onErrorNT (node:internal/child_process:483:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2025-07-29T11:59:39.573Z"},{"error":"Error: spawn /c/Users/sgusi/AppData/Roaming/nvm/v22.12.0/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-win32/rg.exe ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n at onErrorNT (node:internal/child_process:483:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2025-07-29T11:59:40.187Z"},{"error":"Error: spawn /c/Users/sgusi/AppData/Roaming/nvm/v22.12.0/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-win32/rg.exe ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n at onErrorNT (node:internal/child_process:483:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2025-07-29T11:59:40.188Z"},{"error":"Error: Unknown command: /status. Available commands: /init, /pr-comments, /review\n at Object.call (file:///C:/Users/sgusi/AppData/Roaming/nvm/v22.12.0/node_modules/@anthropic-ai/claude-code/cli.js:2565:3461)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async xX8 (file:///C:/Users/sgusi/AppData/Roaming/nvm/v22.12.0/node_modules/@anthropic-ai/claude-code/cli.js:2451:10150)\n at async lb1 (file:///C:/Users/sgusi/AppData/Roaming/nvm/v22.12.0/node_modules/@anthropic-ai/claude-code/cli.js:2451:6569)\n at async e_1 (file:///C:/Users/sgusi/AppData/Roaming/nvm/v22.12.0/node_modules/@anthropic-ai/claude-code/cli.js:1778:1384)\n at async _X8 (file:///C:/Users/sgusi/AppData/Roaming/nvm/v22.12.0/node_modules/@anthropic-ai/claude-code/cli.js:2451:5713)\n at async jX8 (file:///C:/Users/sgusi/AppData/Roaming/nvm/v22.12.0/node_modules/@anthropic-ai/claude-code/cli.js:2451:5198)\n at async pP (file:///C:/Users/sgusi/AppData/Roaming/nvm/v22.12.0/node_modules/@anthropic-ai/claude-code/cli.js:2451:3660)\n at async b0 (file:///C:/Users/sgusi/AppData/Roaming/nvm/v22.12.0/node_modules/@anthropic-ai/claude-code/cli.js:2944:2691)","timestamp":"2025-07-29T12:00:17.342Z"},{"error":"Error: Command failed: tasklist | findstr /I \"Code.exe Cursor.exe Windsurf.exe idea64.exe pycharm64.exe webstorm64.exe phpstorm64.exe rubymine64.exe clion64.exe goland64.exe rider64.exe datagrip64.exe appcode.exe dataspell64.exe aqua64.exe gateway64.exe fleet.exe studio64.exe\"\nFINDSTR: Cannot open Code.exe Cursor.exe Windsurf.exe idea64.exe pycharm64.exe webstorm64.exe phpstorm64.exe rubymine64.exe clion64.exe goland64.exe rider64.exe datagrip64.exe appcode.exe dataspell64.exe aqua64.exe gateway64.exe fleet.exe studio64.exe\r\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 i7 (file:///C:/Users/sgusi/AppData/Roaming/nvm/v22.12.0/node_modules/@anthropic-ai/claude-code/cli.js:865:5108)\n at Tt (file:///C:/Users/sgusi/AppData/Roaming/nvm/v22.12.0/node_modules/@anthropic-ai/claude-code/cli.js:1346:1937)\n at Object.call (file:///C:/Users/sgusi/AppData/Roaming/nvm/v2
Note: Error logs were truncated.
review there is a workaround https://github.com/anthropics/claude-code/issues/4626
Issues with custom agents, file search, and custom slash commands on Windows should be resolved for CMD and Powershell in 1.0.63, which released today but is not yet tagged as latest.
Downgrading to 1.0.61 will also mitigate.
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.