Original Reddit post

Claude will confidently use gemini-2.0-flash (deprecated), old SDK patterns, outdated package versions, etc. It knows better if you ask it directly, it just doesn’t think to check when writing code. Add to your CLAUDE.md:

Version & SDK Policy When writing code that uses any external SDK, API, or AI model: 1. STOP before writing any import or install command 2. Search for the latest package version, correct model identifiers, and current initialization pattern 3. Use what you find, NOT your training data

Super easy, but it might help others too :) submitted by /u/Ill_Introduction9485

Originally posted by u/Ill_Introduction9485 on r/ClaudeCode