Remix.run Logo
_pdp_ 35 minutes ago

You put a warning where it is most likely to be seen by a human coder.

Besides, no amount of prompting will prevent this situation.

If it is a concern then you put a linter or unit tests to prevent it altogether, or make a wrapper around the tricky function with some warning in its doc strings.

I don't see how this is any different from how you typically approach making your code more resilient to accidental mistakes.

mvkel 25 minutes ago | parent [-]

Documenting for AI exactly like you would document for a human is ignoring how these tools work

anonzzzies 11 minutes ago | parent [-]

But they are right, claude routinely ignores stuff from CLAUDE.md, even with warning bells etc. You need a linter preventing things. Like drizzle sql` templates: it just loves them.