claude agents --json returns subset of agents shown in interactive agent view
Open 💬 0 comments Opened Jun 4, 2026 by sheldon
Bug description
Running claude agents --json returns a different (smaller) list of agents than what appears in the interactive claude agents view.
Steps to reproduce
- Run
claude agents— note the full list of agents shown in the interactive agent view. - Run
claude agents --json— observe the output. - Compare: the
--jsonoutput is missing agents that appear in the interactive view.
Expected behavior
claude agents --json should return the same complete set of agents as the interactive claude agents view.
Actual behavior
claude agents --json returns only a subset of the agents shown in the interactive view.
Environment
- Platform: macOS (darwin)
- Shell: zsh