LLM-based security analyzer in CLI is ready for do...
# random
c
LLM-based security analyzer in CLI is ready for dog fooding in cases people are feeling adventurous & not scared of the agent destory your laptop lolsob -- feedbacks are welcomed as we optimize the prompt for it!
uvx --python 3.12 --from git+https://github.com/All-Hands-AI/OpenHands@add-llm-risk-analyzer openhands
👀 1
l
shouldn't it have stopped? maybe it's gemini flash not passing the right parameters? Edit: I think high risk commands should come with a warning (also different border color?), and the menu text/items should be changed.
c
Good point, maybe it is because you first click the button so it override it? Good find!!
We should maybe visualize the risk for every action though
l
I was expecting a second prompt since it looks like the normal one. Maybe rename the menu entry so that it's clear that it's going to proceed with the current command and then prompt for high-risk ones.
Some (hopefully) proper feedback: If it were me, I'd simply put an orange border and a warning like 'The LLM recommends reviewing this command for potential side effects:' (also keeping the explanation from the LLM). Then adjust based on testing results. Also, I think most users will opt to use that feature when available, so think of that as 'on by default' before shipping. I'd keep it optional for users (clearly labeled as 'beta', and enabled through the '/settings' menu), so that it can be tested to make sure it's accurate and not too annoying before enabling it by default for all. I think devs might also be (even more) scared of the 'medium' cases, when the CLI installs software/libraries that could be hallucinated and potentially dangerous (I think that's unlikely, but it's being treated like quite a big deal lately). It would be nice to have a filter that limits installs to 'safe' packages/software: the llm could provide a list of the packages it's going to install, and they could be checked against information from the software registries (the date when the package was added, the number of downloads (if available), etc. - maybe there are services that can assess the 'safety' of a package?). You might want to poll users on that as a future feature.