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

  1. Run claude agents — note the full list of agents shown in the interactive agent view.
  2. Run claude agents --json — observe the output.
  3. Compare: the --json output 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

View original on GitHub ↗