[bug] custom agents not being located
Status Fixed / completed
Maintainer reply ✓ Yes — dicksontsai
Activity 11 comments · opened Sep 11, 2025 · closed Oct 28, 2025
💡 Likely answer: A maintainer (dicksontsai, collaborator)
responded on this thread — see the highlighted reply below.
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
I'm in a loop where I create a new custom agent, complete agent creation, save it. Then when I use command /agent, I get the message "I have no agents." But when I try to re-create the agent, when I complete and try to save it, I get the message "agent exists." Claude Code can find the agent file, has tried troubleshooting the issue, but we can't resolve getting the /agent command to show my custom agents. How do we resolve? i'm running the latest version (1.0.111),
What Should Happen?
/agent should pull my list of custom agents and let me use them in my project.
Error Messages/Logs
Steps to Reproduce
- run command /agent
- create new agent
- save agent
- exit agent creation flow
- run command /agent to access created agent
- get message 'no custom agents found'
- create same agent again
- save new agent
- get error message that agent already exists
- claude in my terminal can find the agent files. only the command /agent cant
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
(1.0.111),
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
11 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
How are you creating your agent, with Claude or manual? How are you saving the agent? Some screenshots of what you see will be helpful to determine why your agents aren't saving properly.
try brew install ripgrep, then check
seeing similar, works when rolled back to
1.0.110./agentson1.0.111shows only builtin agents - oddly if I then have claude create an agent (literally just say hi, kind of agent) it THEN finds all custom agents too. Closing claude code and re-opening reverts back to the faulty behaviourfor reference i have ripgrep install from homebrew and ripgrep ignores off according to my
settings.json:|1.0.111|1.0.110|
|---|---|
|!Image| !Image|
same issue. can you tell me how to downgrade versions to 1.0.110 so I can get back my agents? My custom slash commands also broke and are not showing up.
Ok figured it out! Just do
claude install 1.0.110and then my agents and custom slash commands are working again.check you turn off autoUpdate or it will come back 😅
"USE_BUILTIN_RIPGREP": "0"seems to allow latest claude code to find agents/commands, but am unable to diagnose why - i presume i have something somewhere adding some ignores, but I'm not sure how to debug what claude's rg instance can seeHad the same problem - custom commands AND agents not showing up in /help even though search was working.
Found the culprit was my ripgrep config. I had --color=always in my ~/.ripgreprc which was embedding ANSI color codes in file paths during Claude Code's
discovery process. It was trying to read files like [0m[1m[32m/path/to/command.md[0m instead of the actual path.
Fixed it by changing --color=always to --color=auto in my ripgrep config. Still get colors in terminal but Claude Code gets clean paths for file
discovery.
Worth checking if you have custom ripgrep settings - might be the same issue.
Hey folks - this should be resolved in the next release, which also drops support for custom ripgrep configs in 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.