Tweet #19
Matt Pocock @mattpocockuk
Prompt of the day: Create a pre-commit hook that prevents files over 5,000 tokens. Tokens = bytes/4. Run only on staged files. Ignore files which are not authored by agents, like lockfiles or codegen. Provide explicit instructions on how to split files in the error message. The simplest investment I ever made in my codebase. So good.
Open on X ↗· 2 views · 2 clicks
Join the conversation with the author on X.
SHARE YOUR PICK
Put it on your timeline.
Download the card and post it on X.
