pre-commit

Tag

Cards List
#pre-commit

@mattpocockuk: Prompt of the day: Create a pre-commit hook that prevents files over 5,000 tokens. Tokens = bytes/4. Run only on staged…

X AI KOLs Timeline ↗ · 2026-10-18 Cached

Matt Pocock 分享了一个 prompt,用于创建 pre-commit 钩子:限制文件超过 5,000 tokens(按 bytes/4 计算)时提交失败,仅检查暂存文件并忽略非 AI 生成的文件,同时在错误信息中提供拆分文件的明确指引。

0 favorites 0 likes
#pre-commit

Quoting Geoffrey Huntley

Simon Willison's Blog ↗ · 2026-10-13 Cached

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.

0 favorites 0 likes
#pre-commit

@charliermarsh: ty-pre-commit is out now! Pre-commit hooks for type checkers typically require you to either enumerate your dependencie…

X AI KOLs Following ↗ · 2026-06-11 Cached

ty-pre-commit is a new tool that simplifies pre-commit hooks for type checkers by automatically installing dependencies using uv.

0 favorites 0 likes
#pre-commit

When your agent opens a PR or spends money with no human in the loop, who's on the hook? I built a checker for that.

Reddit r/AI_Agents ↗ · 2026-06-11

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.

0 favorites 0 likes
← Back to home

Submit Feedback