From e2217f91a9d529fe78d4fe65e020f05c9afb1b84 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Sun, 15 Feb 2026 14:13:33 -0800 Subject: [PATCH] feat: create/read rule tools disabled by default --- core/index.d.ts | 1 + core/tools/definitions/createRuleBlock.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/index.d.ts b/core/index.d.ts index 1e7c6ac4baf..82941d189e7 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -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"; diff --git a/core/tools/definitions/createRuleBlock.ts b/core/tools/definitions/createRuleBlock.ts index 2b8f1c4edfc..f236bdb0f69 100644 --- a/core/tools/definitions/createRuleBlock.ts +++ b/core/tools/definitions/createRuleBlock.ts @@ -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.