#pre-commit hook

2 stories · 1 in 7 days · 2 in 30 days
Stories, products and papers tagged "pre-commit hook", newest first.
Oct 19
Oct 13
How-toBuildersSelected21:56
Geoffrey Huntley's Pre-Commit Hook Enforces Coding Agent Rules

Instructions in AGENTS.md are advisory; a git pre-commit hook turns them into a hard gate the agent cannot bypass, closing the gap between documented and enforced conventions. Developers running Claude Code, Cursor or similar coding agents can adapt this pattern to any team rule they want enforced automatically. It is a concrete alternative to prompt-based guardrails that quietly degrade over time.

官方账号Simon Willison’s WeblogSource
pre-commit hook · AI news | AITOP