DictionaryContext Management
Path-Scoped Rules
Instructions that only apply to certain folders or file types, like rules posted on one room's door.
Definition
Instructions that apply only when the agent works on files matching a glob pattern, so context stays relevant to the code being edited. Cursor project rules use globs and descriptions to decide when each rule is attached.
Example
A Cursor rule with glob src/db/** saying 'always use parameterized queries' attaches only when the agent edits database code.