Pre-tool hooks that block coding agents from editing too early — overkill or useful?
Vegetable-Pound6846 · reddit · 2026-11-29
The author's coding agent in Antigravity keeps editing files before reading the codebase; soft rules in AGENTS.md drift once context grows. He found a repo called Loseless that uses physical pre-tool hooks (for Antigravity and Gemini CLI) to block edits until dependencies are actually checked. He hasn't wired it up yet, fearing it makes the agent annoying and slow, and asks whether anyone has tried hard-blocking tool calls vs. prompting and reviewing diffs.
More from coding & agent
- Standard Agent Specification v0.2.0: an open standard for portable, composable agents — adnan_hashmi · 2026-11-29
- Practitioner's tool sweep: Claude Code excellent but dev-oriented, Replit workflow hasn't hit a wall — laughlinrigby · 2026-11-29
- Karpathy let Claude Code run 7 hours: 45,000 lines, 31 datasets, a few skipped states — AryHHAry · 2026-11-29
- Agent wrote 45k lines in 7 hours but skipped states — verification is the bottleneck — AryHHAry · 2026-11-29
- Agent Skills directory tops 1.5M installs, Vercel and Matt Pocock dominate leaderboard — adnan_hashmi · 2026-11-29
- drawio-skill Hits 11k GitHub Stars: Turn Code and Natural Language Into Editable Diagrams — tom_doerr · 2026-11-29