How to stop duplicating rules across AGENTS.md, CLAUDE.md and Cursor rules

saurabh53 · reddit · 2026-11-23

Managing instruction files across multi-tool teams often means duplicated guidelines in AGENTS.md, CLAUDE.md and .cursor/rules/.mdc. The author breaks down file roles, scoping, imports, and cross-tool support, with a starter template. Key takeaways: when both AGENTS.md and CLAUDE.md exist, Claude Code may prioritize CLAUDE.md — fix by adding @AGENTS.md at the top; and keep shared instructions short, focused only on details agents can't infer from the repo itself.

Original post →

More from coding & agent

coding & agent channel →