Claude doesn't follow documented rules in CLAUDE.md

Resolved 💬 6 comments Opened Dec 1, 2025 by nicwhall Closed Feb 28, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

  1. Problem: Claude doesn't follow documented rules in CLAUDE.md even after reading them
  2. Specific failures:
  • Guessed import names instead of verifying with Grep/Read first (Rule 8)
  • Fixed repeated code pattern 5+ times instead of creating helper first (Rule 10 - DRY)
  1. Impact: Wasted user tokens, multiple failed server starts, frustration

What Should Happen?

  1. Claude should follow documented rules in CLAUDE.md

Error Messages/Logs

Steps to Reproduce

Create claude.md with behavior rules

Claude Model

Sonnet (default)

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.0.55 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

PyCharm terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗