Developer seeks a library to identify shell commands that write

Community discussion Reddit r/LocalLLaMA · Individual views, not representative.

A Reddit user working on a tool-calling sandbox is considering a dataflow analyzer for shell commands. It would distinguish commands that only read data from those that change state, so that read-only commands could be allowed automatically.

The post gives a read-only pipeline using sed, od and head as an example. Redirecting output to a file or piping it to visudo, by contrast, would count as writing. The author asks whether a library with this design goal already exists.

Source: Reddit r/LocalLLaMA

🇬🇧 https://www.reddit.com/r/LocalLLaMA/comments/1wrsrf6/identifying_whether_a_command_changes_something

Leave a Comment

The weekly brief: selected developments, projects and videos