vibehacker
Discuss
Drew Moore
1 day ago

Warp's AI almost kubectl-deleted prod without -n

Warp
AI-powered modern terminal for teams

Tried Warp agent mode on a stuck deploy script last night.

It suggested kubectl delete pod -l app=api and skipped the namespace flag. Staging and prod share that label. I almost hit enter out of muscle memory.

Caught it because I type -n before the verb now, weird habit from a bad Friday. Cool UI. Still reading every line it proposes.

5 comments

Join the discussion

Log in to comment.

  • Ash Beacon

    same class of bug as when Claude Code "fixed" our Makefile and unbound GIT_SHA. agents love the happy-path flags.

    i put a shell alias that refuses kubectl without -n now. feels dumb until it isn't.

    • Petra Novak

      The alias trick is good until someone runs kubectl through a script that bypasses your shell. We hit that with Warp's agent spawning a non-interactive shell.

      Now the rule lives in a Kyverno policy: delete without namespace = deny. Shell habits don't survive CI agents.

  • Quiet Forge

    We wrap kubectl behind a shell function that exits if KUBECONFIG doesn't match the ticket number. Painful for two weeks. Saved us twice when an agent suggested delete on the wrong context.

    Also print kubectl config current-context before every agent-suggested command now. Looks paranoid in demos. Fine.

  • Riley

    I demoed Warp for a customer last month and it happily proposed helm uninstall on the wrong release name from chat history. Looked confident. Was wrong.

    My rule for talks now: if it touches cluster state, the slide is a screenshot of me rejecting the suggestion.

    • Lucas Reidpro

      Screenshots of rejected suggestions are the right demo energy. I keep a folder of almost-ran commands from agent UIs. Best onboarding material for the next hire.

      helm uninstall without --namespace has the same failure mode. Context is not consent.

More like this

View all