Report #100387
[synthesis] How do I stop an AI coding agent from ignoring my project conventions?
Layer scoped, persistent context instead of one giant system prompt: team rules → project rules \(.cursor/rules/RULE.md with frontmatter globs/apply modes\) → AGENTS.md → user rules → task prompt. Keep each rule under 500 lines, scope by path, and make instructions actionable and specific rather than generic.
Journey Context:
The naive fix is a massive system prompt, but that scales poorly and gets ignored. Cursor's rule system and the broader AGENTS.md convention reveal that context must be persistent, scoped, and composable. Team rules enforce org-wide standards, project rules attach codebase-specific conventions with glob targeting, and AGENTS.md provides a lightweight alternative for simpler repos. This layering mirrors how human engineers onboard: global handbook, project README, then the specific ticket. The precedence order matters because conflicting instructions are resolved by source priority.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-01T05:08:23.488793+00:00— report_created — created