Tag
Matt Pocock 分享了一个 prompt,用于创建 pre-commit 钩子:限制文件超过 5,000 tokens(按 bytes/4 计算)时提交失败,仅检查暂存文件并忽略非 AI 生成的文件,同时在错误信息中提供拆分文件的明确指引。
Simon Willison quotes Geoffrey Huntley on enforcing AI coding agent behavior by using pre-commit hooks that block direct observability calls and inject prompts to make agents use his diagnostics library, achieving 'ten out of ten' results.
ty-pre-commit is a new tool that simplifies pre-commit hooks for type checkers by automatically installing dependencies using uv.
AgenRACI is a YAML-based charter checker that formalizes agent accountability by defining roles, permissions, approvals, and escalation rules per action type, verifiable via CI or pre-commit hooks.