[Bug] Custom agents in .claude/agents/ directory not loaded

Resolved 💬 3 comments Opened Jan 15, 2026 by mabry-prv Closed Jan 19, 2026

Bug Description
Issue: Custom agents in .claude/agents/ not loaded

Claude Code version: 2.1.7
OS: macOS Darwin 25.2.0

Steps to reproduce:

  1. Create .claude/agents/code-reviewer.md with valid YAML frontmatter
  2. Run /agents command
  3. Shows "No agents found" despite files existing

Expected: Agents from .claude/agents/*.md should appear in /agents list
Actual: "No agents found"

Agent file format (confirmed valid per docs):
---
name: code-reviewer
description: Use this agent to perform comprehensive code reviews...
model: opus
---
[agent body]

Environment Info

  • Platform: darwin
  • Terminal: WezTerm
  • Version: 2.1.7
  • Feedback ID: 14c7562c-ed6c-473d-950a-8c548018336d

Errors

[{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/claude:858:3940)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-15T22:06:36.216Z"}]

View original on GitHub ↗

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