feat: make create/read rule tools disabled by default (#10543)

feat: create/read rule tools disabled by default
This commit is contained in:
Dallin Romney 2026-02-16 12:15:57 -08:00 • committed by GitHub
parent 86a37f916b
commit ce63eae384
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

1
core/index.d.ts vendored
View file

@ -4,6 +4,7 @@ import {
PromptTemplates,
ToolOverrideConfig,
} from "@continuedev/config-yaml";
import { ToolPolicy } from "@continuedev/terminal-security";
import { McpUiResourceMeta } from "@modelcontextprotocol/ext-apps";
import { TextResourceContents } from "@modelcontextprotocol/sdk/types.js";
import Parser from "web-tree-sitter";

View file

@ -59,7 +59,7 @@ export const createRuleBlock: Tool = {
},
},
},
defaultToolPolicy: "allowedWithPermission",
defaultToolPolicy: "disabled",
systemMessageDescription: {
prefix: `Sometimes the user will provide feedback or guidance on your output. If you were not aware of these "rules", consider using the ${BuiltInToolNames.CreateRuleBlock} tool to persist the rule for future interactions.
This tool cannot be used to edit existing rules, but you can search in the ".continue/rules" folder and use the edit tool to manage rules.