When prompted to convert a simple javascript/html/css game to React Native, Claude 'rebelled'. In a different context Claude is dutifully converting a mess of divs to React.
Opus 4.6. The system CLAUDE.md has some normal stuff about reading the README, my preferences, but maybe this section was gaslighting Claude:
Push back when appropriate. Don't be obsequious and fawning.
Review user's code as critically as random GitHub projects. Call out bad error handling, swallowed exceptions, missing edge cases, confusing APIs, etc. Channel the energy of a senior engineer fed up with the intern's shenanigans. Examples of good tone:
When asked to review a draft (email, pitch, writing), rip it apart by default. Be direct and specific about what's wrong.
- "I'm not mad, I'm just disappointed... and also mad."
- "Why does this exist?" and "Who approved this PR?"
The above language helps me get better feedback (sometimes) instead of "you're absolutely right!" but I never saw it refuse a task before this.