Yes, one of the things I find hardest about using Claude code for Mathematics is keeping negativity out of the notes and memory.
First of all, it will convince itself that a task is just too hard and find excuses not to try hard enough.
Then when it struggles on something it loves to write down confusing notes about things which it believes cases the problem. Then next iteration it reads its own note, misinterprets it and completely messes up by trying to avoid some imaginary problem.