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 <noreply@anthropic.com>cora-start
parent
76c0711704
commit
cf1faceab1
|
|
@ -44,7 +44,10 @@ def build_system_prompt(
|
||||||
"- After using tools, always respond to the user with a final answer. "
|
"- 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"
|
"Do not end your turn with only tool calls and no text.\n"
|
||||||
"- For tasks requiring shell commands, file edits, or system access, "
|
"- 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)
|
return "\n\n---\n\n".join(parts)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue