branch: externals/ellama
commit 84327b13fb8bbe83262f3ad5939bed409afdca64
Author: Sergey Kostyaev <[email protected]>
Commit: Sergey Kostyaev <[email protected]>

    Make task tool unaccessible for general subagents
---
 ellama-tools.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ellama-tools.el b/ellama-tools.el
index 923dc5b192..52272f0268 100644
--- a/ellama-tools.el
+++ b/ellama-tools.el
@@ -92,7 +92,9 @@ Tools from this list will work without user confirmation."
         (tools (plist-get cfg :tools)))
     (cond
      ((eq tools :all)
-      ellama-tools-available)
+      (cl-remove-if
+       (lambda (tool) (string= (llm-tool-name tool) "task"))
+       ellama-tools-available))
      ((listp tools)
       (cl-remove-if-not
        (lambda (tool) (member (llm-tool-name tool) tools))

Reply via email to