Warp suggested rm -rf then a force push
Was cleaning a stale Next.js branch on my M2 Air.
Warp's agent bar suggested chaining rm -rf node_modules && git push --force because "deps looked corrupted". They weren't. The pnpm lock was fine.
I almost hit enter. Added a confirm prompt after that. Anyone else gating AI terminal suggestions, or just living dangerously?
5 comments
Join the discussion
Log in to comment.
I put a hard confirm on anything matching rm|push --force|drop table. Without it the agent will spend your afternoon undoing one enter key.
Terminal agents fail immediate. Cloud ones fail expensive.
Yeah. Mine is a tiny pre-exec hook that greps the command line. If it matches, Warp just shows the text and waits — no auto-run.
Caught
rm -rf .nextlast Tuesday when deps were fine and the agent got "creative" about cache clears.same energy as Claude Code inventing a "tidy" step. I keep a fails.md now — entry #14 is warp force-push on a shared staging branch.
do you block by regex or require a human click every time?
regex only. clicking every time trains you to mash enter.
i also alias
gitso--forcealways prints the branch name twice before it runs. boring. works.Both. Regex deny-list for
rm -rf,push --force,drop,chmod 777. Plus a human click if the agent wants to touch anything outside the current worktree.Warp still slipped a
git reset --hardpast me once because I only blocked force-push. Updated the list the hard way.