Changesets · Branches · Tags · Compare
| Changeset | 755feced0982e991392d9b545b32cf1ae1c364c5c15da4aee65b2d328258af51 |
|---|---|
| Author | Patrick Erichsen <patrick.a.erichsen@gmail.com> · 2025-06-12 15:35 -07:00 |
| Committer | GitHub <noreply@github.com> · 2025-06-12 15:35 -07:00 |
| Parents | 644f6c58c7d7 |
1 file changed
modified docs/docs/customize/deep-dives/rules.mdx +2 −1
| @@ -63,8 +63,9 @@ | ||
| 63 | 63 | |
| 64 | 64 | - `name` (**required** for YAML): A display name/title for the rule |
| 65 | 65 | - `globs` (optional): When files are provided as context that match this glob pattern, the rule will be included. This can be either a single pattern (e.g., `"**/*.{ts,tsx}"`) or an array of patterns (e.g., `["src/**/*.ts", "tests/**/*.ts"]`). |
| 66 | +- `description` (optional): A description for the rule. Agents may read this description when `alwaysApply` is false to determine whether the rule should be pulled into context. | |
| 66 | 67 | - `alwaysApply`: true - Always include the rule, regardless of file context |
| 67 | -- `alwaysApply`: false - Only include if globs exist AND match file context | |
| 68 | +- `alwaysApply`: false - Included if globs exist AND match file context, or the agent decides to pull the rule into context based on it's description | |
| 68 | 69 | - `alwaysApply`: undefined - Default behavior: include if no globs exist OR globs exist and match |
| 69 | 70 | |
| 70 | 71 | <Tabs groupId="rules-example"> |