Elffuss BraidHub

kikocis/continue public

docs: update rule properties
Changeset755feced0982e991392d9b545b32cf1ae1c364c5c15da4aee65b2d328258af51
AuthorPatrick Erichsen <patrick.a.erichsen@gmail.com> · 2025-06-12 15:35 -07:00
CommitterGitHub <noreply@github.com> · 2025-06-12 15:35 -07:00
Parents644f6c58c7d7

Browse the files at this changeset

1 file changed

modified docs/docs/customize/deep-dives/rules.mdx +2 −1
@@ -63,8 +63,9 @@
6363
6464 - `name` (**required** for YAML): A display name/title for the rule
6565 - `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.
6667 - `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
6869 - `alwaysApply`: undefined - Default behavior: include if no globs exist OR globs exist and match
6970
7071 <Tabs groupId="rules-example">