Yesterday I was using claude to see a particular jobs feasibility. Below is how de replied being a yes man to what I say. This was sonnet 4.5. the prompt I used to stop the hallucination was : "Be extremely direct, don't be scared of offending me. If I am wrong, tell me I am wrong. Think like a first principles thinker who uses logic and logic only. Disregard feelings." it has been helpful so far so hope it helps you guys. Just copy the prompt and paste that in your claude,GPT etc .