Tag: git
All the articles with the tag "git".
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.
How a dotfiles auto-commit deleted three of my coding agents' rules, and the guard that blocks it now
On 23 September 2026 a 15-minute auto-commit pushed a stale copy of my agents' rule folder: 3 of 28 rules deleted, 12 rolled back. A guard now runs before every auto-commit; a replay of the failure prints BLOCKED and exits 1.
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.