{
  "id": 12188093,
  "title": "I wrote a safety mod that crashes on purpose. Claude Code ran the command anyway.",
  "url": "https://urgent.news/2026/10/05/i-wrote-a-safety-mod-that-crashes-on-purpose-claude-code-ran-the",
  "topic": "ai",
  "section": "AI",
  "published": "2026-10-05T16:37:28.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/aidiveyt/i-wrote-a-safety-mod-that-crashes-on-purpose-claude-code-ran-the-command-anyway-323b"
  },
  "original_language": "en",
  "account": "A safety mod was created for Claude Code, a language model. This mod was designed to crash on purpose, which it successfully did when asked to run a simple command. The log entry indicated that the guard had crashed. The researcher tested various guard mods, and found that by default, a broken guard did not protect against the command going through. After adding a catch handler, the guard worked as intended, stopping the command from executing when it crashed. The researcher also tested other mods, finding that some had no measurable impact, while others affected performance. One mod, called session-bookmarks, allowed the model to run programs and write files without being malicious. Another mod, auto-handoff, added some delay but helped with routing sessions to different models. The researcher concluded that reading the mod's code before installing it is important, as mods have the same access to the machine as Claude Code itself.",
  "summary": "I wrote the dumbest safety mod I could think of. It watches every shell command Claude Code is about to run, and it throws. Then I asked for one command: touch ./marker-failopen.txt The guard crashed, as designed. One line showed up in the log: failguard: tool.call hook skipped: threw Error: guard crashed . And the file was sitting in the folder. So what does a guard mod protect you from when the…",
  "key_points": [
    "Safety mod created for Claude Code to crash on purpose",
    "Guard mod failed to protect against command execution",
    "Session-bookmarks mod allowed model to run programs safely"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 3,
    "also_reported_by": [
      {
        "outlet": "Dev.to",
        "title": "I wanted to know which project was eating my Claude Code quota",
        "url": "https://urgent.news/2026/10/05/i-wanted-to-know-which-project-was-eating-my-claude-code-quota",
        "published": "2026-10-05T17:10:37.000Z"
      },
      {
        "outlet": "AWS Machine Learning",
        "title": "Supercharge regulated workloads with Claude Code and Amazon Bedrock",
        "url": "https://urgent.news/2026/10/05/supercharge-regulated-workloads-with-claude-code-and-amazon-bedrock",
        "published": "2026-10-05T17:25:20.000Z"
      }
    ]
  },
  "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."
}