Agent Loading Failure After Version Upgrade to 1.0.80
Status Closed — duplicate
Maintainer reply ✓ Yes — sid374
Workaround ✓ Mentioned in thread ↓
Activity 13 comments · opened Aug 13, 2025 · closed Aug 19, 2025
💡 Likely answer: A maintainer (sid374, contributor)
responded on this thread — see the highlighted reply below.
Bug Description
I just upgraded from 1.0.77 to 1.0.80 and none of my agents are loading.
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 1.0.80
- Feedback ID: d0c5a306-2508-44a6-9d61-2552f80eac6e
Errors
[{"error":"Error: Agent file /Users/john/.claude/agents/marketing/instagram-curator.md is missing required 'name' in frontmatter\n at _W8 (file:///Users/john/Library/Application%20Support/fnm/node-versions/v22.18.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:2344:1724)\n at file:///Users/john/Library/Application%20Support/fnm/node-versions/v22.18.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:2344:282\n at Array.map (<anonymous>)\n at file:///Users/john/Library/Application%20Support/fnm/node-versions/v22.18.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:2344:212\n at async file:///Users/john/Library/Application%20Support/fnm/node-versions/v22.18.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:2344:131\n at async duB (file:///Users/john/Library/Application%20Support/fnm/node-versions/v22.18.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:3151:4)\n at async Object.prompt (file:///Users/john/Library/Application%20Support/fnm/node-versions/v22.18.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:3223:1219)\n at async GPB (file:///Users/john/Library/Application%20Support/fnm/node-versions/v22.18.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1847:191)\n at async Promise.all (index 0)\n at async Promise.all (index 0)","timestamp":"2025-08-13T21:32:21.674Z"},{"error":"ReferenceError: location is not defined\n at file:///Users/john/Library/Application%20Support/fnm/node-versions/v22.18.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:2344:424\n at Array.map (<anonymous>)\n at file:///Users/john/Library/Application%20Support/fnm/node-versions/v22.18.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:2344:212\n at async file:///Users/john/Library/Application%20Support/fnm/node-versions/v22.18.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:2344:131\n at async duB (file:///Users/john/Library/Application%20Support/fnm/node-versions/v22.18.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:3151:4)\n at async Object.prompt (file:///Users/john/Library/Application%20Support/fnm/node-versions/v22.18.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:3223:1219)\n at async GPB (file:///Users/john/Library/Application%20Support/fnm/node-versions/v22.18.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1847:191)\n at async Promise.all (index 0)\n at async Promise.all (index 0)\n at async TPB (file:///Users/john/Library/Application%20Support/fnm/node-versions/v22.18.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1857:19768)","timestamp":"2025-08-13T21:32:21.678Z"},{"error":"Error: 413 {\"error\":{\"type\":\"request_too_large\",\"message\":\"Request exceeds the maximum size\"}}\n at D6.generate (file:///Users/john/Library/Application%20Support/fnm/node-versions/v22.18.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:936:2639)\n at sP.makeStatusError (file:///Users/john/Library/Application%20Support/fnm/node-versions/v22.18.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:953:2101)\n at sP.makeRequest (file:///Users/john/Library/Application%20Support/fnm/node-versions/v22.18.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:953:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-13T21:33:26.412Z"},{"error":"Error: Request was aborted.\n at _Z1._createMessage (file:///Users/john/Library/Application%20Support/fnm/node-versions/v22.18.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:944:7955)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-13T21:37:06.255Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.0: all messages must have non-empty content except for the optional final assistant message\"}}\n at D6.generate (file:///Users/john/Library/Application%20Support/fnm/node-versions/v22.18.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:936:2371)\n at sP.makeStatusError (file:///Users/john/Library/Application%20Support/fnm/node-versions/v22.18.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:953:2101)\n at sP.makeRequest (file:///Users/john/Library/Application%20Support/fnm/node-versions/v22.18.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:953:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-13T21:50:49.492Z"}]
13 Comments
It seems like if ANY agent file fails to load then ALL agent files will fail to load even if they are valid.
I had a few agent files that were missing frontmatters and a README.md in my ~/.claude/agents folder that cause the whole agent loading subsystem to fail
Investigation Report: Agent Loading Cascade Failure
Summary
I've conducted a thorough investigation into the agent loading failure issue. The problem is confirmed: when ANY agent file fails to load, ALL agent files fail to load, even if they are otherwise valid.
Root Cause Analysis
The issue appears to stem from a fail-fast behavior in the agent loading mechanism introduced between versions 1.0.77 and 1.0.88. This is most likely caused by one of the following patterns:
Promise.all()to load all agents simultaneously. When any single promise rejects (due to invalid frontmatter, missing name field, etc.), the entire Promise.all() rejects, causing all agents to fail.Technical Details
Based on the error messages and behavior:
~/.claude/agents/directorynamefieldProposed Solution
The agent loader should be refactored to:
Temporary Workaround
Until a fix is released, users can:
Impact Assessment
Recommended Priority
This should be treated as a high-priority bug as it:
The fix should be relatively straightforward - implementing proper error isolation in the agent loading pipeline.
Thanks for the report. Fix coming in next version
If this is the cause, it also breaks having any documentation or supporting files in
~/.claude/agents/*/if having any .md file not having agent metadata breaks it.i'm fairly certain i'm experiencing this as well since the update today. Claude is telling me there's issues with the task agent finding any custom agents.
After removing the custom "tools: " block in my agent he started working again, hope this helps someone
Same issue here, and newly created agents by Claude, don't show up either, effectively cant use any subagents.
Im on a Mac.
In my setup, I have an agent that relies on several supporting files and scripts, which I organize within a nested folder structure under agents/. However, this approach currently breaks functionality. It would be beneficial to support nested structures like this, otherwise, we’re forced to keep agent-related files scattered elsewhere in the project, which is tedious and challenging to maintain.eg:
This is my setup as well, nice to see someone else thinking along the same lines :)
Apologies for the regression. Fix will be out with the next release
---
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
This issue has been automatically closed as a duplicate of #5758.
If this is incorrect, please re-open this issue or create a new one.
🤖 Generated with Claude Code
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.