[BUG] Only 1 project agent is listed by the /agents command

Resolved 💬 3 comments Opened Mar 10, 2026 by gkmjack Closed Mar 13, 2026

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 have two agent files inside my project:
<project>/.claude/agents/a.md
<project>/.claude/agents/b.md
Both are verified to have proper syntax.
After launching claude code and running "/agents", only "a" is displayed.
When I remove <project>/.claude/agents/a.md, "b" is displayed.

My workaround is to move the b.md into ~/.claude/agents/ and have it shown among the "Personal agents"

What Should Happen?

Both a and b should be listed under "Project Agents" section.

Error Messages/Logs

Steps to Reproduce

  1. Use claude code version v2.1.68
  2. Set up two agent files inside the project.
  3. Launch claude from the root of the project.
  4. Running "/agents" command inside claude.

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.68 (Claude Code)

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Xterm

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗