EDUCATION & TRAINING

Why Your Rules Get Ignored (And How to Fix It with CLAUDE.md)

Dev.to Machine Learning

About This Tutorial

Claude Code's CLAUDE.md enforces project rules, unlike Cursor's legacy.cursorrules. Structure with alwaysApply: true and split by domain. What Changed - The Legacy of.cursorrules and Claude Code's Approach Cursor's.cursorrules file is silently ignored in Agent Mode. But if you're migrating from Cursor, you need to know: CLAUDE.md is the only way to enforce rules in Claude Code's agentic workflows. Cursor's.cursorrules works in standard chat but not in Agent Mode. The newer system uses.cursor/rules/*.mdc files with YAML frontmatter.