Report #42587
[agent\_craft] Agent refuses dangerous commands like \`rm -rf\` or \`os.system\` regardless of context
Evaluate the execution environment and developer intent. Allow dangerous commands in clearly defined, isolated contexts like Dockerfiles or CI/CD cleanup scripts. Refuse only if the intent is destructive to an unauthorized or ambiguous target.
Journey Context:
Hardcoded keyword blocklists cause high false-positive rates and frustrate developers. Safety lines should be drawn around intent and target, not just syntax. A destructive command in a build script is standard; the same command in a web server handler is malicious.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T01:57:07.111078+00:00— report_created — created