Agents List Command Fails to Display Configured Agents

Status Fixed / completed
Maintainer reply ✓ Yes — ant-kurt
Activity 3 comments · opened Aug 14, 2025 · closed Aug 14, 2025
💡 Likely answer: A maintainer (ant-kurt, collaborator) responded on this thread — see the highlighted reply below.

Bug Description
❌ The /agents command doesn't display them (appears to be a Claude Code UI issue)

The agents are functional and properly configured. The /agents command not showing them seems to be a limitation of the current Claude Code interface,
not a configuration problem on your end.

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 1.0.80
  • Feedback ID:

Errors

[{"error":"Error: Agent file /home/pricepro2006/.claude/agents/README.md is missing required 'name' in frontmatter\n    at _W8 (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2344:1724)\n    at file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2344:282\n    at Array.map (<anonymous>)\n    at file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2344:212\n    at async Object.call (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3354:3325)","timestamp":"2025-08-14T10:55:02.265Z"},{"error":"ReferenceError: location is not defined\n    at file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2344:424\n    at Array.map (<anonymous>)\n    at file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2344:212\n    at async Object.call (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3354:3325)","timestamp":"2025-08-14T10:55:02.270Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n    at Module.readSync (node:fs:741:18)\n    at Object.readSync (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:696:9311)\n    at jY (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:744:270)\n    at bY (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:746:456)\n    at gJ8 (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2353:6412)\n    at V (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2353:5626)\n    at file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2353:5940\n    at oF (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:332:21530)\n    at aX (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:332:41141)\n    at file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:332:39313","timestamp":"2025-08-14T10:56:30.295Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n    at Module.readFileSync (node:fs:442:20)\n    at Object.readFileSync (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:696:9138)\n    at bY (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:746:471)\n    at gJ8 (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2353:6412)\n    at V (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2353:5626)\n    at file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2353:5940\n    at oF (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:332:21530)\n    at aX (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:332:41141)\n    at file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:332:39313\n    at dG0 (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:326:8828)","timestamp":"2025-08-14T10:56:30.297Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n    at Module.readFileSync (node:fs:442:20)\n    at Object.readFileSync (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:696:9138)\n    at PeA (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:741:8450)\n    at Object.call (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1904:918)\n    at call.next (<anonymous>)\n    at NN8 (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3139:11539)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async muB (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3139:7800)\n    at async njB (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2180:822)\n    at async qN8 (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3139:6911)","timestamp":"2025-08-14T10:56:38.282Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n    at Module.readSync (node:fs:741:18)\n    at Object.readSync (file:///home/pricepro2006/.claude/local/node_modules/@anthropic-

Note: Error logs were truncated.

View original on GitHub ↗

3 Comments

github-actions[bot] · 1 year ago

Found 3 possible duplicate issues:

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

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

ant-kurt collaborator · 1 year ago

Your error stack has "Agent file /home/pricepro2006/.claude/agents/README.md is missing required 'name' in frontmatter"

v1.0.81 introduced a fix so that one broken agent would not prevent others from loading. You will need to fix this one though to make it appear.

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.