LGTM
← Back to the feed

Tweet #19

Matt Pocock @mattpocockuk

Open on X

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.