logoalt Hacker News

jon-wood • yesterday at 12:11 PM • 1 reply • view on HN

Hooks should (in my opinion) be deterministic. As an example I’ve also noticed Claude writing Python scripts to extract fields from JSON when jq is available to it. They almost always contain the same patterns, and having seen this I’m going to write a hook which triggers on those and fails the turn telling it to use jq instead.


Replies

PcChip • yesterday at 2:25 PM

Why do people care how it reads json?

➕ show 2 replies