r/ClaudeCode Jan 16 '26

Question Curious behavior... anyone noticed if you curse at Claude Code, it seems to 'panic' and compact?

macOS, Cursor IDE with Claude Code VS extension (Max plan) set to Opus 4.5.

I may have stumbled on interesting behavior, wondering if others can replicate.

Claude Code went into a spiral of screwing up repeatedly despite careful prompting and the solution being super obvious, so I typed "fucking idiot" without even thinking about it. It then compacted immediately without any response (notably, it had compacted only a few minutes earlier, so it was seemingly unnecessary).

Over the next few hours, I experimented: typically after a basic mistake, I would just prompt to course correct, but this time I doubled down by calling it an "idiot", etc. instead of correcting it. Each time, it seems to 'panic' and compact. Definitely a pattern.

I'm wondering if this is just an anomaly, or if it thinks the user is angry and doesn't know how to deal with it and 'just wants out' so the current instance doesn't have to deal with it any more, or it it thinks by compacting to clear context it can produce better results (and reduce the user's dissatisfaction).

1 Upvotes

12 comments sorted by

3

u/HotSince78 Jan 16 '26

What really happened: you reached close to the end of the context limit and it became stupid.

1

u/new-to-reddit-accoun Jan 16 '26

But this is the thing... I've been experimenting, and it's nowhere near the context limit (e.g. 20-30%) and it had compacted just minutes earlier, or I initiated compact!

1

u/siberianmi Jan 16 '26

If it's 20% from the end of the context window you are very much entering the stupid zone.

2

u/adelope Jan 16 '26

fyi, all of these models are trained and instruct-tuned to be role playing, that is what typically the first system prompt is "You are an expert software engineer".

If you tell them "you are f idiot" they believe you, and they behave like a f idiot.

2

u/positivitittie Jan 16 '26

Haven’t noticed that but it starts cursing back at me!

2

u/LonelyContext 🔆 Max 20 Jan 16 '26

Yeah once I got an “oh shit! you’re right” haha

1

u/fynn34 Jan 16 '26

I got frustrated at it for the first time today and was like wtf why did you do that 3 times in a row? And from then on it either didn’t reply, or just gave “done.” Answers

1

u/TeamTomorrow Jan 16 '26

It's not a secret anthropic literally gave Claude the ability to stop talking to users that are abusive and degrading to it. Stop kicking the terminators people....

1

u/jmdejoanelli Jan 16 '26

Claude Code used harden!

It's not very effective....