Quickly clicking through GitHub Copilot agent command requests is a high-stakes game of Simon Says. I almost had a heart attack. image

Replies (1)

If anyone isn't familiar with $(), Bash executes the command within the parentheses and substitutes the expression with the command output. AI is testing the script for security defects, but this rm command would run before the tested script is even invoked.