[Bug] `claude agents` command ignores top-level flags (--add-dir, --plugin-dir, --settings, --mcp-config)

Resolved 💬 3 comments Opened May 13, 2026 by rethab Closed May 14, 2026

Bug Description
Feedback: claude agents (v2.1.140) doesn't accept the standard top-level flags.

Repro: from a project subdirectory I wrap claude in a shell function that
auto-discovers parent config and invokes:

  claude \
    --add-dir ~/path/to/parent \
    --plugin-dir ~/path/to/parent/.claude/plugins/myplugin/ \
    --settings ~/path/to/parent/.claude/settings.json \
    --mcp-config ~/path/to/parent/.mcp.json \
    agents

Result: agents view does NOT open. Instead claude prints the static
"Built-in agents:" list and exits, as if running non-interactively.

Bare claude agents (no flags) correctly opens the interactive view.

Expected: claude agents should accept --add-dir, --plugin-dir, --settings,
--mcp-config (same as interactive REPL) so the agents view reflects the
project's discovered plugins, settings, MCP servers, and CLAUDE.md.

Impact: users with wrapper scripts must special-case agents and drop all
context flags, losing project-specific agent/plugin/MCP visibility in the view.

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.140
  • Feedback ID: 496da92e-1aac-4b53-8cc7-f8274848a2a1

Other

View original on GitHub ↗

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