From 2610b4594f2fe20b4ff8a29a59552720281eed4a Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 8 Jan 2026 18:04:20 -0800 Subject: [PATCH] feat: allow Skill tool in plan mode for load/unload/refresh commands (#501) Co-authored-by: letta-code <248085862+letta-code@users.noreply.github.com> Co-authored-by: Cameron --- src/permissions/mode.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/permissions/mode.ts b/src/permissions/mode.ts index 654859a..b78303d 100644 --- a/src/permissions/mode.ts +++ b/src/permissions/mode.ts @@ -214,6 +214,15 @@ class PermissionModeManager { } } + // Allow Skill tool with read-only commands (load, unload, refresh) + // These commands only modify memory blocks, not files + if (toolName === "Skill" || toolName === "skill") { + const command = toolArgs?.command as string | undefined; + if (command && ["load", "unload", "refresh"].includes(command)) { + return "allow"; + } + } + // Allow read-only shell commands (ls, git status, git log, etc.) const shellTools = [ "Bash",