[Bug] Claude Code ignores claude.md instructions and delivers low-quality untested code
Bug Description experiencia muito ruim, muito tempo executando algo que poderia ja ser feito da melhor maneira, fica fazendo rodeios, enrolando, entregando codigo pessimo de qualidade, nao testado. nao segue o claude.md, nao segue instrucoes, queima tokens e nao entrega com qualidade
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.1.274
- Feedback ID: dfecd83c-5701-4b12-ba5b-82f39e10a041
Errors
[]
Same here. It reads the rule, agrees with it, then does the opposite a couple of tool calls later. Only thing that fixed it for me was checking the file after the write with a hook instead of hoping it remembers.
Collecting these (the rule + what it did instead) here if you want to add yours: https://github.com/1picassoai/Sarge/discussions
Fully agreed with the idea of the previous comment. I think the bigger problem here is that better instructions or larger nr of skills won't solve this. If there's no way to check whether the result actually follows them, we're still relying on the model to remember and apply everything correctly.
I ran into the same problem myself and tried different ways to deal with it. At some point, while working on my own project, I started building something to address it, and it ended up becoming my own, almost separate harness: "claudeHarness". Feel free to check it out. Maybe you'll find some useful ideas there for tackling this in your own setup.
The idea is to turn important requirements into checks that can actually verify the result, rather than just relying on the model to follow instructions.
GL!