Developer Productivity with Claude
A developer on your team is working on a large monorepo with Claude Code. They've structured path-scoped rules in .claude/rules/ with paths: frontmatter to enforce service-specific coding standards. After several hours of editing files across the codebase, the session auto-compacts. The developer then returns to the payments service directory and makes edits — but Claude ignores the payments-specific formatting rules it was following earlier. Examining the setup, you find the rules are loaded only via paths: frontmatter. What is the most likely explanation for this behavior, and what is the correct architectural fix?