vibehacker
Discuss
Quiet Ship
10 hours ago

Warp suggested rm -rf then a force push

Warp
AI-powered modern terminal for teams

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.

  • Remy

    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.

    • Priya

      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 .next last Tuesday when deps were fine and the agent got "creative" about cache clears.

  • Jade

    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?

    • Quiet Merge

      regex only. clicking every time trains you to mash enter.

      i also alias git so --force always prints the branch name twice before it runs. boring. works.

  • Theo Brandt

    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 --hard past me once because I only blocked force-push. Updated the list the hard way.

More like this

View all