logoalt Hacker News

madeofpalkyesterday at 10:54 PM3 repliesview on HN

:(

how can i get claude to always make sure it prettier-s and lints changes before pushing up the pr though?


Replies

mckirkyesterday at 11:07 PM

I think what that research found is that _auto-generated_ agent instructions made results slightly worse, but human-written ones made them slightly better, presumably because anything the model could auto-generate, it could also find out in-context.

But especially for conventions that would be difficult to pick up on in-context, these instruction files absolutely make sense. (Though it might be worth it to split them into multiple sub-files the model only reads when it needs that specific workflow.)

JofArnoldyesterday at 11:09 PM

Run prettier etc in a hook.

emsimotyesterday at 11:10 PM

Git hooks