From d910fe14418f661e1cca4d5308295676a9107c7f Mon Sep 17 00:00:00 2001 From: TomiEckert Date: Fri, 27 Feb 2026 00:46:34 +0100 Subject: [PATCH] fix: Set TerminalSkill.HandlesExecution to false to prevent direct LLM command execution. --- Core/Skills/TerminalSkill.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/Skills/TerminalSkill.cs b/Core/Skills/TerminalSkill.cs index 2e5c476..767e6af 100644 --- a/Core/Skills/TerminalSkill.cs +++ b/Core/Skills/TerminalSkill.cs @@ -8,7 +8,7 @@ public class TerminalSkill : ISkill public string Description => "Translates an intent into a bash command and runs it in the background."; public string[] Hotwords => new[] { "System terminal", "System command" }; - public bool HandlesExecution => true; + public bool HandlesExecution => false; public string GetSystemPrompt(string rawTranscript) { @@ -19,6 +19,8 @@ Output ONLY the raw bash command to achieve this task. Do not include markdown f public void Execute(string llmResult) { + // HandlesExecution is false because we are not retarded enough + // to let the LLM execute commands directly try { Console.WriteLine($"[TerminalSkill] Executing: {llmResult}");