All Articles
I Kept Saying Yes to "Should I Also Fix This?" — Where to Draw the Line on Out-of-Scope Findings
When a one-change task with Claude keeps growing through "should I also fix…?", one question decides what gets fixed now and what gets recorded for later. Includes the few lines I put in my instructions and a small script that keeps findings from disappearing.
My Hook Ran in VS Code but Never in Android Studio — Keep One Settings File and Start Claude Code at the Repo Root
Same repository, same Mac, yet hooks and allow rules only worked when Claude Code was opened from VS Code. The cause was the launch directory, not the editor. Here is a script that lists which settings files load from a given folder, plus how I decide what goes in which file.
After Sonnet 4.5 Retired: Checking the Three Things That Change Without an Error, Even When the Old Model No Longer Answers
claude-sonnet-4-5 retired from the Claude API on November 30, 2026, and calls now return a 404. Switching to claude-sonnet-5-5 raises no 400, yet thinking runs by default, max_tokens covers more than the answer, and stop_reason shifts. Three ways to fill the 'before' column after retirement (old logs, Bedrock, thinking on vs. off), a troubleshooting table, and how to get ahead of the Opus 4.5 deadline.
When Claude Code Can't Connect, Read the Two Lines in claude doctor's API Connectivity Section Side by Side
Claude Code 2.1.331 added an API connectivity section to claude doctor. Using real output from a machine behind a proxy, this walks through reading the API and Sign-in lines together, what "via https_proxy" tells you, ERR_PROXY_TUNNEL versus ECONNREFUSED, and a small script that adds a first guess.
How Many Input Tokens Does One More Tool Add? Separate the Fixed Overhead From Each Tool's Weight With count_tokens
Passing tools adds a fixed, model-specific block of tokens on top of the definitions themselves. A leave-one-out script for count_tokens, what to check when the fixed part doesn't match the docs, and how to read the shift from Opus 4.5 or Sonnet 4.6 to the 5.5 models in both tokens and dollars: the fixed part shrinks while the definitions grow.
When a Remote MCP Server Goes Silent After Its Token Expires, Check for mcp-remote First
A remote MCP tool call hangs with no error. How to tell an expired token from a slow tool, a script that finds servers bridged through mcp-remote, and how to switch to the native HTTP transport or cap the wait.
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.
When the Claude API Only Says “Connection error.”, Follow the Exception Three Levels Down and Sort It Into Four Causes
The Python SDK raises the same APIConnectionError message for DNS, proxy, certificate, and timeout failures. Here is a script that walks __cause__, the real output from reproducing all four, and the order I fix them in.
Copy Your Scheduled Tasks' Prompts and Times Once a Week, So You Can Restore Them If They Vanish
Scheduled tasks can disappear or need rescheduling after an app update or a save that fails to read its file. Here is a weekly habit for keeping three things—prompt, schedule, and connected folders—in your own folder, plus a small script that tells you which copies changed since last week.
My Porting Checklist Was Written in SwiftUI Terms, and It Couldn't Find a Single Purchase Item in My Objective-C Code
I built a small pipeline that hands Claude Code only the checks relevant to the file I'm editing, out of a 113KB list of 33 Android pitfalls. Three scripts, and how a SwiftUI vs Objective-C vocabulary gap let the most important items slip through.
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.
Using One MCP Server from Both Claude Code and Gemini CLI? Generate Both Configs from a Single Source
Paste a Claude Code .mcp.json entry into Gemini CLI and the HTTP server may refuse to connect. A side-by-side table of the differences (url vs httpUrl, variable expansion, server names) plus a Python script that writes both configs from one source file.