Issue Description
Custom agents placed in ~/.claude/agents/ are not being detected or listed by the /agents command, despite following the documented format.
Steps to Reproduce
- Create
~/.claude/agents/someagent.md with proper YAML frontmatter:
---
name: someagent
description: Use this agent when you need
[... rest of agent content ...]
- Restart Claude Code
- Run
/agents command
Expected Behavior
The someagent agent should appear in the agents list and be available for use.
Actual Behavior
/agents shows "No agents found"
- Only
general-purpose appears as built-in
- Custom agent is not detected or usable
Environment
- Platform: Windows 11
- Claude Code: Latest version
- File location:
C:\Users\[username]\.claude\agents\someagent.md
- File encoding: ASCII text
- File format: Validated against documentation
Additional Information
File Contents
The agent file follows the exact format specified in the documentation:
- Valid YAML frontmatter with
name and description fields
- Proper markdown content below the frontmatter
- No extraneous fields or formatting issues
This appears to be a bug in the agent detection/loading system rather than a user configuration issue.
Issue Description
Custom agents placed in
~/.claude/agents/are not being detected or listed by the/agentscommand, despite following the documented format.Steps to Reproduce
~/.claude/agents/someagent.mdwith proper YAML frontmatter:/agentscommandExpected Behavior
The
someagentagent should appear in the agents list and be available for use.Actual Behavior
/agentsshows "No agents found"general-purposeappears as built-inEnvironment
C:\Users\[username]\.claude\agents\someagent.mdAdditional Information
File Contents
The agent file follows the exact format specified in the documentation:
nameanddescriptionfieldsThis appears to be a bug in the agent detection/loading system rather than a user configuration issue.