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 <cpfiffer@users.noreply.github.com>
This commit is contained in:
Cameron
2026-01-08 18:04:20 -08:00
committed by GitHub
parent 989bcfdea8
commit 2610b4594f

View File

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