Hi, they're also trying to do something similar with shell. I'm not sure who's better.
[demo](https://x-cmd.com/mod/gemini)
[source code](https://github.com/x-cmd/x-cmd/blob/main/mod/gemini/lib/main)
EDIT: I was wrong. Ignore the next paragraph.
~~I haven't looked into details but it looks reading from somewhere like `.bash_history`. That's a good idea to get user input from. But as far as I learned, it cannot use the terminal ouput as context. I might be wrong. I should read more about its implementation.~~
It turns out it cannot make use of terminal output. But I like it that it use awk to process the response. I might also be able to use awk to get rid of the dependencies of jq and perl. Thank you for letting me know this.
I will add it in the related projects chapter in README