From 20708e60332427a679de58386f0f4963856bd31a Mon Sep 17 00:00:00 2001 From: PeninsulaInd Date: Mon, 16 Feb 2026 17:39:21 -0600 Subject: [PATCH] Fix execution brain tool permissions in non-interactive mode Add --allowedTools flag to Claude Code CLI subprocess so tools are pre-approved and don't prompt for permission in pipe mode. Co-Authored-By: Claude Opus 4.6 --- cheddahbot/llm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cheddahbot/llm.py b/cheddahbot/llm.py index f110cb9..c8bb9bd 100644 --- a/cheddahbot/llm.py +++ b/cheddahbot/llm.py @@ -145,6 +145,7 @@ class LLMAdapter: claude_bin, "-p", "--output-format", "json", "--tools", tools, + "--allowedTools", tools, ] if model: cmd.extend(["--model", model])