Elffuss BraidHub

kikocis/continue public

Merge pull request #6102 from continuedev/pe/rule-docs-update

docs: update rule properties
Changeset5fc2af2ce6c9b2352e7939ff6d29043159d654042f1e071931e8ab422005f7e5
AuthorPatrick Erichsen <patrick.a.erichsen@gmail.com> · 2025-06-12 16:37 -07:00
CommitterGitHub <noreply@github.com> · 2025-06-12 16:37 -07:00
Parents644f6c58c7d7, 755feced0982

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">