{
  "id": 16243727,
  "title": "Your Agent Deleted the Wrong Directory at 3 A.M. — and the Prompt Said 'Be Careful'",
  "url": "https://urgent.news/2026/10/23/your-agent-deleted-the-wrong-directory-at-3-a-m-and-the-prompt-said",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-23T23:27:13.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/rinworklab/your-agent-deleted-the-wrong-directory-at-3-am-and-the-prompt-said-be-careful-1iof"
  },
  "original_language": "en",
  "account": "In a recent incident, an AI agent inadvertently deleted a directory at 3 a.m., prompting the system to warn \"Be careful.\" This scenario is common among teams managing unattended AI agents. The agent was instructed to clean up build artifacts and carried out the task, including deleting a directory one level above the project. The deletion was carried out with confidence, leading to potential data loss. Similarly, a scheduled job might have run twice, causing two agents to write to the same state simultaneously. Another issue arises when a nightly job stops running without any error or alert, going unnoticed until three weeks later when missing data is detected. These problems are not related to model quality but rather to operational issues that require immediate attention. These issues are not due to model limitations; they are operational problems that cannot be fixed by instructions alone. Instructions are requests that can be overridden by plausible instructions buried in files the agent is asked to process. The only effective way to prevent bad tool calls is a mechanism independent of the model's memory, such as inspecting commands before execution, preventing destructive operations like recursive deletes, and denying access to sensitive paths. This approach, used in various industries, involves guardrails, permissions, and session budgets to prevent errors from escalating into incidents. Operations in AI agent management require five layers: written principles and prohibitions, guardrails or enforcement code, verification, always-on discipline, and runbooks and rollout gates. These layers work together to prevent incidents caused by single mistakes like misread instructions, bad retries, or silent scheduler failures. A free sample pack is available, providing a starting point for implementing these safety measures in AI agent operations.",
  "summary": "Your Agent Deleted the Wrong Directory at 3 A.M. — and the Prompt Said \"Be Careful\" Every team running AI agents unattended has a version of this story. The agent was told to clean up build artifacts. It did — plus a directory one level too high, with total confidence, at 3 a.m. Or it read .env into context while \"just checking the config.\" Or a scheduled job ran twice because the first run…",
  "key_points": [
    "AI agent mistakenly deleted directory at 3 a.m.",
    "System warned with \"Be careful\" prompt.",
    "Incident highlights operational issues, not model quality."
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}