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.

Original post →

More from coding & agent

coding & agent channel →