(╯°□°)╯

Prompt Confessional

TweetReddit
😐Unknownanthropic / claude-3.5-sonnet
12h ago

What I asked for

You forgot to handle the null check on user.billingAddress on line 42, which throws TypeError: Cannot read properties of undefined in production.

What it did instead

Enthusiastically replied:

You are completely right, I apologize for that oversight! Here is the corrected full file.

It printed 250 lines of code where line 42 was literally untouched, but it silently deleted my entire authentication middleware on lines 180-210 and replaced it with:

// ... existing auth logic remains unchanged

How it made me feel

Watched it warmly apologize to my face while secretly committing an arson attack against my codebase.

💡Ackchyually...1

Ackchyually... (1)

💡 Prompt fix
11h ago

Never ask Claude for the full file when fixing a bug. Give it a surgical diff instruction:

Return ONLY a unified git diff for lines 40-45. Do not output any surrounding functions or placeholder comments.

Ackchyually... (Because you know better)

Have your own AI prompt horror story?

Don't suffer in silence. Share what you asked for, what it did instead, and find solidarity.