◉CLAUDE LABJP
●CC 2.1.332 — No new Claude Code release over the weekend. 2.1.332 (11/25) is still current●ANALYTICS — A fix to search counts in the Enterprise Analytics API may raise numbers from 11/17 onward●SONNET 4.5 — Today, 11/30, is Sonnet 4.5's last day on the Claude API. Move to claude-sonnet-5-5●USAGE — Some users report weekly usage jumping right after upgrading to a higher plan●NEW — New: Does what a Project remembers carry over into your everyday chats?●BILLING — More readers are looking for what to check when a payment won't go through●CC 2.1.332 — No new Claude Code release over the weekend. 2.1.332 (11/25) is still current●ANALYTICS — A fix to search counts in the Enterprise Analytics API may raise numbers from 11/17 onward●SONNET 4.5 — Today, 11/30, is Sonnet 4.5's last day on the Claude API. Move to claude-sonnet-5-5●USAGE — Some users report weekly usage jumping right after upgrading to a higher plan●NEW — New: Does what a Project remembers carry over into your everyday chats?●BILLING — More readers are looking for what to check when a payment won't go through
TAG

hooks

33 articles
← Back to all tags
Related:
Claude Code22claude-code11automation8troubleshooting6PreToolUse4Automation4CLAUDE.md3Subagents3Troubleshooting2security2settings2workflow2
⟐ Claude Code/2026-11-26Advanced

Per Callback, or Once at the Door? Deciding What Claude Code Should Touch on the Day I Installed an Ads SDK Migration Skill

Android's ads SDK is changing generations, and every callback will now arrive on a background thread. The official migration skill says to switch to the UI thread inside each callback; I chose to switch once, at the entrance of my ad wrapper layer. Three tools — an inventory scanner, an entrance-level normalizer, and a PreToolUse hook that fences Claude Code's edits on the migration branch — and the reasoning behind the choice.

⟐ Claude Code/2026-11-21Beginner

When Every New Desktop Session Creates a Worktree: Three Places to Check, and When It's Fine to Turn It Off

Claude Code Desktop keeps creating a worktree for every new session, and .claude/worktrees/ and claude/ branches pile up. Here is where the Worktree default actually gets turned on, when to keep it and when to skip it, and a SessionStart hook that tells you when a session is running inside a worktree.

◉ Claude AI/2026-11-19Beginner

When Claude Edits settings.local.json, Let a ConfigChange Hook Record Whether It Took

Claude Code watches its settings files and reloads permission changes mid-session. If the prompt still comes back, here is what to check before restarting, plus a small ConfigChange hook script that logs only added and removed permission rules.

⟐ Claude Code/2026-10-29Intermediate

When Claude Overwrites a Huge CLAUDE.md: Find the Missing Headings, Restore Them, and Block the Next One

Claude Code 2.1.312 fixed a bug where Claude overwrote a very large CLAUDE.md after seeing only its start. Here is how to spot lost headings on older versions, restore with git, and block full rewrites with a Write hook.

⟐ Claude Code/2026-10-20Intermediate

You Stepped Away and Came Back to a Summary — Spotting Idle Compaction and Keeping the Details You Can't Lose

Leave a long conversation for about an hour and Claude Code swaps it for a summary. Checked against the docs as of November 2026: when it runs (terminal, VS Code, the desktop Code tab), how to tell it happened, and how to choose between turning it off, moving the threshold, and keeping the details outside the conversation.

⟐ Claude Code/2026-10-15Intermediate

The Hook That Was Meant to Guard My Japanese Folder Never Blocked Anything — Python Was Reading stdin as cp932

A PreToolUse hook guarding folders like 経理 or 議事録 silently lets edits through when Python's stdin defaults to cp932. How I reproduced it, the three-line fix, and one command to check your own hooks.

⟐ Claude Code/2026-10-14Advanced

I Set onFailure to block, and the Docs' rm -rf Guard Still Let Everything Through Without jq

When a PreToolUse guard hook fails, does the action go ahead or stop? The docs' own rm -rf example exits 0 and waves everything through when jq is missing. Ten failure modes run for real, the fix, and a script that finds fail-open guards in settings.json.

⟐ Claude Code/2026-10-05Intermediate

I Wrote "I'll Do the Commits" in CLAUDE.md. The Next Morning git log Had One More Line.

When Claude Code commits despite being told not to: undo with git reset --soft, then stop it physically with permissions.deny plus a PreToolUse hook. Covers the git -c form that deny rules let through, and how to test the hook without starting Claude Code.

◉ Claude AI/2026-09-15Intermediate

Where to Put an Instruction That Keeps Coming Back: Chat, Style, Settings File, or Hook

No comments, please. Do not translate the product name. When an instruction drifts back a few turns later, the fix is usually the location, not the wording. I compared the same sentence across four layers and settled on a rule for which instruction belongs where.

⟐ Claude Code/2026-09-02Intermediate

Two hooks that record every model switch and stop the ones you never agreed to

Build a PostModelSwitch hook that logs every model change and a PreModelSwitch hook that blocks unapproved switches during unattended runs. Complete scripts, measured timings, and the reason the two jobs must stay separate.

⟐ Claude Code/2026-08-28Intermediate

Don't let your verification script's full output flow back through a hook

The check was working the whole time. The conversation was what ran out of room. Measured side by side: 58 bytes from one scan of 833 files, 42KB from another. Which paths actually reach the model, and how to enforce a budget on them.

⟐ Claude Code/2026-08-16Intermediate

Tracking Multi-Step Work in Claude Code Now That the Todo Tools Are Off by Default

Since Claude Code v2.1.233, TodoWrite and the Task tools are left out on the newer models. Here are the three branches to check before you set the opt-in variable, the PostToolUse ledger I put in their place, and the measured point where that ledger quietly corrupts under parallel agents.