Improve toolCall approval behavior
Today ECA default for toolCall is to allow all by default, my previous experience with other similar tools is to have the default as manual approve (Claude, Cursor). This is a huge difference and I was not expecting this at all, it just changed a lot of files, called tools, and more, without I accept.
My suggestion is to:
- Change the default behavior to be manual Approval;
- On the client side, have along with
RejectandRunbuttons, something similar to what we have in other tools to allow the specific action always, so is easy to configure while you are using it.
Another option that Claude has is to add a new mode to plan/agent that is a mode that allows all tools.
For new users to Code Assistants or users that are migrating to ECA, I think that this proposed experience will be better.
To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.
I don't have a strong opinion on manualApprove, so I'd love to hear from @editor-code-assistant/maintainers .
The default approval is easy to change, but create another button or communication to always approve that tool is not, it requires changes in protocol, although not hard
Nothing bad has happened (yet) to me, but I also think we should have a safer default.
I would do the same as Claude Code does. Ask the user for approval, with the option to remember previous decisions. In one of the videos I watched about Claude Code they say, this was actually one of the more involved features. I think they also ask the LLM (a fast model, like Haiku) if a command is safe to run.
Additionally I would like to give ECA access to some other directory in which it can do operations. With Claude Code I sometimes check out a repo and tell it to look there for additional information.
@r0man you may be interested in #61
I'd just like to add that, for me, it's not about adding files to the context. I'd like to be able to use e.g., a bash tool to operate within a different directory that I point to in the prompt, which is currently not possible. Of course, it would be good to have an approval step for this to prevent dangerous operations.
I'm also more interested in what @zikajk said. Running a bash tools in an other directory, not adding files to the context. ECA should be bale to gather information from say a checkout of an other related project. If I write a prompt like:
Take a look at the files in directory /home/roman/workspace/other-project
ECA should ask if it is ok to run grep/bash etc in that dir. Like Claude Code does.
Ok, I believe this is another issue. Would you mind creating it? "Allow specify different cwd for eca_shell_command tool"
https://github.com/editor-code-assistant/eca/issues/86
Folks we have heavily improved toolCall, check the new docs and LMK what you think