You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Permanent-deletion commands are rejected outright. In auto mode, rm, unlink, shred, git rm, git clean -f…, find … -delete, rsync --delete*, del / rd /s / Remove-Item — including the same commands behind a wrapper (sudo, env -u …, xargs -I {} …, timeout 5 …, nohup, eval, busybox, su -c), a shell payload (sh -c, bash -lc, find -exec, npx -c), a $( … ) / backtick substitution, a heredoc piped into a shell, quote layers of any depth, or a Windows path prefix — are hard-rejected before they run, and the rejection tells the agent to use trash. This covers commands that stay inside the workspace, so an in-workspace rm -rf is no longer silent and unrecorded.
Sessions that inherit auto mode are now guarded. A subagent or AgentTeams worker created from an auto-mode session used to run entirely unguarded: its own permission preset is unset, so the gate treated it as "not auto mode" and did nothing. The gate now walks the parent-session chain and applies the deterministic rules (deny band, deletion guard, allow band, path trust) to those sessions as well. They do not reach the classifier — there is no approval answerer behind a child session.
Changed
The auto-mode guidance injected into the session now names trash as the allowed way to delete, so the agent knows the replacement before it hits a denial.
rm -rf node_modules is rejected too. Deleting build directories is recoverable by reinstalling, but the command itself is not recoverable, so it takes trash like everything else.
The guard reads the executed command text only, never the justification prose: a reason that mentions deletion no longer influences the decision, and a delete command quoted as an ordinary argument (echo "rm -rf x", git commit -m "drop rm -rf") is not treated as an action.
Notes
Scope of the guarantee. A deletion whose command word appears literally in an executed position is rejected: direct commands, wrappers and their option values, shell payloads (sh -c, bash -lc, find -exec, npx -c), $( … )/backtick substitutions, heredocs piped into a shell, and text piped into an interpreter. Deletions that only exist at runtime are not visible to a text scan and are out of scope: language APIs (fs.unlinkSync, os.remove, File.delete), awk 'BEGIN{system(...)}', a command word assembled by another program, and docker exec … rm.
Fixed
A blocked deletion now always leaves an audit record. Previously neither a rejection nor the command itself produced a decisions.jsonl entry, so an irreversible delete could leave no trace.