[Bug] Global agents in ~/.claude/agents/ not recognized, only project-local agents work

Resolved 💬 5 comments Opened Mar 6, 2026 by s4na Closed May 6, 2026

Bug Description
Bug Description
~/.claude/agents/ (global) is not recognized. Only repo/.claude/agents/ (project-local) works.

Environment

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.70

Steps to Reproduce

  1. Place an agent .md file in ~/.claude/agents/
  2. Restart Claude Code
  3. Run /agents command

Expected
Agents in ~/.claude/agents/ should appear in /agents list and be available across all projects.

Actual
Agents in ~/.claude/agents/ are not listed. Only agents in repo/.claude/agents/ are recognized.

Related Issues
Similar issues have been reported previously:

  • #4728: Custom agents in ~/.claude/agents/ not detected by /agents command
  • #5750: Global agents not visible in project context (v1.0.80 regression)

This may be a regression reintroduced in v2.1.70.

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.70
  • Feedback ID: 8067f501-b23c-4394-9ec8-35ddcc31fa64

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/nabetani.satoshi/.local/share/claude/versions/2.1.70 (expected in multi-process scenarios)\n    at yb_ (/$bunfs/root/src/entrypoints/cli.js:2589:2066)\n    at pcR (/$bunfs/root/src/entrypoints/cli.js:2589:1210)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-06T07:40:51.247Z"}]

View original on GitHub ↗

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