Report #99532
[frontier] Agent ignores project-specific rules as it explores deeper into a codebase
Use a hierarchical file-based instruction system \(managed → user → project → local\) loaded in reverse priority order, with path-scoped rules under .claude/rules/ that lazy-load only when matching files are read. Keep project memory ≤60-200 lines and move details to topic files.
Journey Context:
Source-level analysis of Claude Code shows a four-level CLAUDE.md hierarchy and a deliberate trade-off: file-based Markdown memory is fully inspectable, editable, and version-controllable, but less expressive than opaque vector retrieval. Path-scoped rules lazy-load only when the agent reads files matching a glob, preventing irrelevant rules from polluting the context. The common mistake is one giant CLAUDE.md; research-derived best practice is a concise root file plus scoped rules and topic files. This pattern is now spreading to other code agents because it gives the operator deterministic control over what the model sees.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-29T05:17:37.162122+00:00— report_created — created