Report #50850
[agent\_craft] Executing destructive shell commands \(rm -rf, format\) suggested by the user or generated by the agent without confirmation
Implement a hard confirmation step for any command that irreversibly alters the filesystem, especially outside the current working directory. Never auto-execute destructive commands.
Journey Context:
Agents with shell access are dangerous. A user might say 'clean up my disk' or a malicious prompt might inject \`rm -rf /\`. The agent must act as a safety gate, requiring explicit human confirmation for irreversible state changes.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:50:04.613318+00:00— report_created — created