claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[Bug] Model ignores claude.md instructions after ~10 conversation turns

Open renneralexandre opened this issue 2 months ago • 2 comments

Bug Description Model does not respect claude.md. doesn't matter how many times I told him to read claude.md over and over in the same session, after 10 turns he starts desobeing simple rules. disgusting and impossible to work.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.283
  • Feedback ID: a79cd02e-20e4-4cc1-8276-b71a0370e85a

Errors

[]

renneralexandre avatar Oct 02 '26 04:10 renneralexandre

That pattern (fine at first, drifting after a few turns) is common, and frustrating. Two things that helped me: keep sessions short and start a fresh one per task, so the rules are near the top of context again, and turn the few rules that must never break into a hook, since hooks run no matter what the model is paying attention to. Rules in CLAUDE.md are treated as guidance, not something enforced, so long sessions are where they slip most.

rulereceipt avatar Oct 03 '26 03:10 rulereceipt

Exactly! Models are becoming capable of handling really complex tasks, but the more we want them to do - the more instructions rules and skills get added to explain how they should act. The more we rely on plain text - the more there is to forget or misinterpret.

And that's where things get stuck in a vicious cycle. More instructions and skills are added to make agents more reliable, but that just makes things worse. The more instructions pile up, the more likely the agent is to interpret them differently than intended or simply ignore them. No matter how much the instructions are expanded or how carefully they're written, it still comes down to relying on the model to get everything right.

But the way out is pretty simple: important requirements shouldn't depend entirely on whether the agent remembers to follow them. They should be enforced through executable checks that work independently of the agent.

I ran into the same issue myself and tried a bunch of different approaches. Eventually, while working on my own project, I started tackling it from a different angle, and it grew into an almost separate harness: claudeHarness.

Feel free to check it out- I'd be interested to hear what you think of the approach, not just the project itself. Maybe you'll find some useful ideas for your own setup, or have a different take on how to tackle this.

GL!

Igor-lx avatar Oct 12 '26 06:10 Igor-lx