eca icon indicating copy to clipboard operation
eca copied to clipboard

Add `/agent` command allowing you to switch between agents

Open SGospodinov opened this issue 7 months ago • 5 comments

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

I recently opened a PR (#412) to add support for the /model command allowing you to switch the model directly from the chat, similar to other harnesses. That got merged and got me thinking if adding a similar command for switching between agents will be a feature that people might find useful.

Something like /agent [agent-name].

I'm also wondering if there are any similar commands like this that might be worth adding.

I'm happy to work on it if that's the case.

SGospodinov avatar Apr 26 '26 10:04 SGospodinov

@SGospodinov I see no harm having that but all eca clients can already change agents via clients, so what this adds? maybe it's good to have a option like people that are used to claude code and other AI clients? c/c @zikajk

ericdallo avatar Apr 26 '26 14:04 ericdallo

Me neither, same for /model. I find it confusing tbh to have multiple ways to do the same while those commands could be reserved for eg. providing info about agent/model.

zikajk avatar Apr 26 '26 14:04 zikajk

For me was primarily the compatibility with other AI clients, and maybe slightly easier to implement in a potential CLI client (saw the discussion #419), but I understand how it could be confusing to have 2 ways of achieving the same result.

SGospodinov avatar Apr 26 '26 21:04 SGospodinov

Personally, I’d prefer a shortcut in the CLI, but I can imagine that many users will expect /model. It’s probably not a big deal, but I’d say we should be consistent—either allow switching everything via commands or nothing at all.

zikajk avatar Apr 27 '26 07:04 zikajk

Yeah, thinking in having #419 soon, I don't see a issue with this one, feel free to add @SGospodinov

ericdallo avatar Apr 27 '26 13:04 ericdallo