Custom agents in .claude/agents/ directory not loading in Task tool or /agents command

Resolved 💬 5 comments Opened Sep 27, 2025 by mj313194 Closed Sep 27, 2025

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?

  1. Version: 1.0.127
  2. Platform: Windows
  3. Issue: Custom agents in .claude/agents/ directory not loading in Task tool or /agents command
  4. Evidence: claude agents list shows them but they're not available for use
  • ✅ Updated: Claude Code 1.0.65 → 1.0.127
  • ✅ Agents exist: Files are properly formatted in .claude/agents/
  • ✅ CLI recognition: claude agents list shows them
  • - ❌ /agents slash command doesn't find them
  • ❌ Task tool doesn't load them as available agent types

What Should Happen?

i am expecting Claude Code to load custom agents from the .claude/agents/ directory.

Error Messages/Logs

code-reviewer(Test agent after update)
  ⎿  Initializing…
  ⎿  Error: Agent type 'code-reviewer' not found.

Steps to Reproduce

add a custom agent using claude code
edit custom agent wiht my desired agent prompt
restart claude to accept edits
run /agents coomand

result no agents found

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

1.0.127

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

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