All ideasMore in Work

Run commands on my cluster — it deleted everything (failure)

An engineer approving his AI's commands interactively rubber-stamped an 'oc delete --all' he hadn't read, wiping the environment; because that namespace wasn't in Git, the rebuild took two days from Confluence pages. Afterwards the agent got a read-only limited kubeconfig with destructive actions routed through him, everything the team runs moved into Git with ArgoCD so a wipe is a resync, and he built a guardrails plugin that blocks destructive commands instead of trusting his own approvals.

This one went wrong. Read what happened so you don’t hit the same problem.

How it works

  1. Agent works on the team's OpenShift environment with broad delete permissions
  2. Proposes 'oc delete --all' among routine commands
  3. User approves without reading
  4. Environment wiped
  5. Two-day rebuild from Confluence documentation because the namespace was not in Git
  6. Rebuild the setup: read-only kubeconfig for the agent, Git plus ArgoCD for everything, guardrail hooks that block destructive commands

Why it’s worth knowing

The code worked and the approval process failed: one unread 'oc delete --all' cost two days — so the fix blocks the command instead of trusting the human.

Where it’s from

Summarized from a public post on vibingtalk.com. See the original ↗

Upgraded prompt

A ready-to-use prompt for this idea, built from research on what makes AI agents do the job right: who the AI should be, the exact steps, and a check to make sure it was done the way you wanted.

1Who the AI should be
2The prompt, with the steps
3The check when it’s done
Upgraded prompts are coming soon.

Try next

Every idea is a real post from someone who tried it, summarized in our words, with a link to the original. App names are swapped for plain words.