Building a dataflow analyzer to detect read-only vs state-changing shell commands for agent sandboxes

spammmmmmmmy · reddit · 2026-09-28

A developer building a tool-calling sandbox proposes a dataflow analyzer for shell commands that identifies source/sink points to classify commands as read-only or state-changing. Pipelines like sed -n '124p' file | od -c | head -5 resolve to read-only sinks and can be auto-allowed, while sed ... > /tmp/foo or piping into visudo counts as writes. They're asking whether an existing library already targets this goal.

Original post →

More from coding & agent

coding & agent channel →