Tag: claude-code
All the articles with the tag "claude-code".
My agents' git freshness hook did nothing for at least 55 days after I moved them to Linux
A hook that fetches before my coding agents read git state returned 0 on every call for at least 55 days, because it looked for ~/Work on a Linux server that keeps repos in ~/work. On 9 November 2026, 29 of 47 local default branches were behind origin; after one run of the fixed hook, 19 were.
Claude Code prompt cache: 1 hour or 5 minutes? A replay of 49 days of my transcripts
A replay of 49 days of my Claude Code transcripts at API prices: a 5-minute cache on the main thread raises its input-side cost 48.3%, a 1-hour cache on subagents cuts theirs 4.3%. Resuming idle 300k-context workers cost more; after a hook refused it, that share fell from 3.5% to 0.38% of subagent spend.
How to make Claude Code follow a rule: a PreToolUse hook that refused git commit -a 40 times
A 30-line PreToolUse hook refuses git commit -a and names the safe command. From 15 to 26 October 2026 agents tried it 40 times; the hook refused all 40, and 36 times the agent's next command staged named files.