Custom agents not appearing in /agents interface despite being properly configured
Status Fixed / completed
Maintainer reply ✓ Yes — sid374
Activity 13 comments · opened Aug 5, 2025 · closed Aug 20, 2025
💡 Likely answer: A maintainer (sid374, contributor)
responded on this thread — see the highlighted reply below.
Environment
- Platform (select one):
- [x] AWS Bedrock
- Claude CLI version: 1.0.69 (Claude Code)
- Operating System: macOS Darwin 24.5.0
- Terminal: Terminal.app
Bug Description
Custom agents are properly configured in ~/.claude/agents/ directory but are not appearing in the /agents slash command interface. The interface shows "No agents found" despite having 3 valid agent configuration files with proper YAML frontmatter.
Steps to Reproduce
- Create custom agent files in
~/.claude/agents/directory (e.g.,git-worktree-creator.md,merge-conflict-resolver.md,pr-creator.md) - Ensure files have proper YAML frontmatter with
name,description, andmodelfields - Run
/agentscommand in Claude Code - Observe the agents interface
Expected Behavior
The /agents command should display all 3 configured custom agents in the interface, allowing them to be selected and used.
Actual Behavior
Interface displays "No agents found" and only shows the built-in general-purpose agent. Custom agents are completely missing from the UI despite being present and properly formatted.
Additional Context
- All agent files are properly formatted with valid YAML frontmatter
- No errors appear in logs (
~/Library/Logs/Claude/main.log) - Files have correct permissions and are readable
- Agent discovery mechanism appears to be failing silently
- Example agent config structure:
\\\yaml\
---
name: git-worktree-creator
description: "Use this agent when you need to create a new git worktree..."
model: us.anthropic.claude-3-5-haiku-20241022-v1:0
---
\\
13 Comments
Additional context: I want to emphasize that there's insufficient visibility into what's happening under the hood to provide more debugging detail.
This makes it very difficult for users to self-diagnose or provide more detailed bug reports. Consider adding:
The current behavior provides no feedback about why agents aren't loading, making troubleshooting nearly impossible.
Found 3 possible duplicate issues:
If your issue is a duplicate, please close it and 👍 the existing issue instead.
🤖 Generated with Claude Code
Did you also try creating custom agents in the project directory:
.claude/agents? Also are these manually created agents or through the/agentswizard? If you could paste your agent.mdfile here (after removing any sensitive information) that would help debug this. Thanks!I'm having the same issue on Linux (Ubuntu 24.04) using both the npm installation and local installation. I've confirmed it's not working on versions 1.0.60, 1.0.61, 1.0.70, 1.0.71. I've tried with agents in both
~/.claude/agentsand/my-project/.claude/agents. i've tried creating them using the Claude generator and also pulling in agents manually. Doesn't seem to make a difference. Here's some additional information:Hope this helps troubleshoot
Same issue and I haven’t touched my agent files in a couple weeks when they were working. So I can confirm the format of the agents were fine and working great, and then sometime in the last week they stopped working. They were all auto generated by Claude code.
Ok I figured it out! I documented the solution here: https://github.com/anthropics/claude-code/issues/4741#issuecomment-3177976916
I do not want to re-spam / copy the entire solution / details in several gh issues so I am linking back to my detailed solution and write-up. Hope this helps others!!
yup it was the ripgrep thing for me too smh
FWIW, on linux, simply executing
sudo apt install ripgrepfixed everything for me. Thank you for posting @GitMurf !@ant-kurt it seems there are several issues, all related to ripgrep (see last couple comments above). If
ripgrepis not installed at all on the system, it seems some people have issues... or if there is a.ripgreprcfile it seems many folks like me have issues.Probably worth some extra checks in things like the
/doctorcommand forripgrepspecific issues / warnings.Check the
agentsdirectory for any invalid Agent markdown files, such asREADME.md. If you find any, delete them to resolve the issue. Hidden directories, including the.githubdirectory, can also cause agents to be missing if they contain invalid .md files.In trying to avoid spamming every thread with the same, long, description, I've posted how I fixed this issue here: https://github.com/anthropics/claude-code/issues/4623#issuecomment-3187221181
This should be resolved as of v1.0.84 - we made some changes to both ripgrep and malformed agent parsing.
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.