There's something strange that happens when using cecli with ZSH instead of BASH, basically when cecli runs any command showing unneded verbose prompt, let's take this example:
it prints my entire ZSH prompt for every command, which is long and has a lot of unrelated info (this is not only ugly and bad, but will also confuse AI by giving back unrelated information)
a solution that I have found is to prepend the varaible SHELL to the cecli command, since I have it as an alias/variable, so like for running "cecli-fast":
cecli="SHELL=/bin/bash command cecli --options --options..."
alias cecli-fast="$cecli --model... options.."
which then gives it correctly:
diff-fenced> /run whoami
Processing...
johnsmith
I don't know why this happens only with ZSH shells, but it doesn't happens when it thinks that the shell is zsh.
As a suggestion, I would also add a special PS1/prompt for when runninig commands, so that not the user but also AI (feeded back) would differentiate what is information and what is a command run, being then able to answer better and more correct results. I would recommend something very standard-looking, like:
$ whoami
johnsmith
or maybe including the dir too, which can be useful info for AI too to know how to treat its working files (where they are), like:
Activity