mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 18:16:08 +00:00
`ccs agents` exited with "Profile not found: agents" instead of opening the Claude agent view. The first positional token was treated as a profile name, so `detectProfileType` threw for any bare Claude subcommand that is not also a profile. `ccs <profile> agents` (#1218) and `ccs default agents` already worked; only the bare form was unrouted. On the profile-not-found path, reroute documented Claude subcommands (agents, mcp, plugin, project, setup-token, auto-mode, remote-control, ultrareview, upgrade, install) through the default profile so they launch `claude <subcommand>` — where the existing launcher already strips interactive-session args. Gated to the claude target so codex/droid keep their own subcommand routing, and only reached when no profile of that name exists, so a real configured profile still wins. CCS commands that shadow Claude subcommands (doctor, update, auth) are intercepted earlier by the root-command router and are unaffected. Closes #1404