From cf1faceab10d0f2105eb33c472d706a037569169 Mon Sep 17 00:00:00 2001 From: PeninsulaInd Date: Mon, 16 Feb 2026 18:18:00 -0600 Subject: [PATCH] Route specialized tools directly instead of delegating to execution brain The LLM was delegating write_press_releases to the execution brain (Claude Code CLI subprocess), bypassing the Python tool's orchestration, skill prompts, and pipeline status updates. Add an exception to the system prompt so specialized tools are called directly. Co-Authored-By: Claude Opus 4.6 --- cheddahbot/router.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cheddahbot/router.py b/cheddahbot/router.py index 1fff7a3..fd426dc 100644 --- a/cheddahbot/router.py +++ b/cheddahbot/router.py @@ -44,7 +44,10 @@ def build_system_prompt( "- After using tools, always respond to the user with a final answer. " "Do not end your turn with only tool calls and no text.\n" "- For tasks requiring shell commands, file edits, or system access, " - "use the delegate_task tool instead of trying to do it yourself." + "use the delegate_task tool instead of trying to do it yourself.\n" + "- EXCEPTION: If a specialized tool exists for the request (e.g. write_press_releases), " + "call that tool directly — do NOT delegate it. Specialized tools have their own " + "orchestration and skill prompts built in." ) return "\n\n---\n\n".join(parts)