{
  "id": 4488450,
  "title": "I added one hook to Claude Code, and it stopped making the same mistake twice",
  "url": "https://urgent.news/2026/08/30/i-added-one-hook-to-claude-code-and-it-stopped-making-the-same",
  "topic": "ai",
  "section": "AI",
  "published": "2026-08-30T19:30:15.000Z",
  "source": {
    "name": "XDA Developers",
    "slug": "xda-developers",
    "url": "https://www.xda-developers.com/added-one-hook-claude-code-stopped-same-mistake-twice/"
  },
  "original_language": "en",
  "account": null,
  "summary": "A user of Claude Code found a way to prevent the AI from making the same mistake multiple times by adding a hook. According to XDA Developers, the user had tried including instructions in the prompt and updating the CLAUDE.md file, but the AI would still repeat its mistakes. The hook was added to make Claude revisit its mistakes and check if it had repeated any of them.\n\nThe user had installed numerous skills, agents, and commands into Claude Code, which resulted in a significant cost. As reported by Dev.to, the user had installed 107 skills, 38 agents, and 15 commands, costing 9,857 tokens per session. The user noted that the cost is not just for the skills used, but also for the descriptions of all installed skills, agents, and commands, which sit in the context window for the whole session.\n\nThe user also shared a script to calculate the cost of the Claude Code configuration before typing anything. The script, called \"cc-tax,\" can be run against the home directory to determine the cost.",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 5,
    "also_reported_by": [
      {
        "outlet": "Dev.to",
        "title": "We said a Claude Code subagent costs 436k tokens. A cleaner measurement says 54k — here is what fooled us",
        "url": "https://urgent.news/2026/08/29/we-said-a-claude-code-subagent-costs-436k-tokens-a-cleaner",
        "published": "2026-08-29T02:17:00.000Z"
      },
      {
        "outlet": "Techmeme",
        "title": "Anthropic will \"permanently\" raise weekly Claude Code limits by 25% on Sept. 14 for most plans, which will work out a 17% reduction, given the current 50% boost (@claudedevs)",
        "url": "https://urgent.news/2026/08/29/anthropic-will-permanently-raise-weekly-claude-code-limits-by-25-on",
        "published": "2026-08-29T18:05:01.000Z"
      },
      {
        "outlet": "XDA Developers",
        "title": "I gave Claude Code my own spinner verbs, and now my terminal sounds like me",
        "url": "https://urgent.news/2026/08/29/i-gave-claude-code-my-own-spinner-verbs-and-now-my-terminal-sounds",
        "published": "2026-08-29T20:00:15.000Z"
      },
      {
        "outlet": "TechRadar",
        "title": "Top AI tools including Claude, Codex, and Hermes installed suspicious code inside corporate networks",
        "url": "https://urgent.news/2026/08/30/top-ai-tools-including-claude-codex-and-hermes-installed-suspicious",
        "published": "2026-08-30T12:05:00.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."
}