From 27abea6ca5704be00df865f45b04df6d8b4e0a1b Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Fri, 4 Oct 2024 18:37:14 -0400 Subject: [PATCH] Fixes --- src/core/ClaudeDev.ts | 3 --- src/core/prompts/system.ts | 4 +++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/core/ClaudeDev.ts b/src/core/ClaudeDev.ts index 7cdef9c..639d523 100644 --- a/src/core/ClaudeDev.ts +++ b/src/core/ClaudeDev.ts @@ -1611,7 +1611,6 @@ export class ClaudeDev { // this also indicates the end of the text content textContent.partial = false // remove the partially accumulated tool use tag from the end of text ( prevLength) { diff --git a/src/core/prompts/system.ts b/src/core/prompts/system.ts index 0b75679..afd8709 100644 --- a/src/core/prompts/system.ts +++ b/src/core/prompts/system.ts @@ -80,7 +80,9 @@ You must respond to the user's message with a SINGLE tool use. When formulating \`\`\` ...Your thoughts... -[Tool Use] + +value + \`\`\` CRITICAL RULE: You are only allowed to use one tool per message. Multiple tool uses in a single message is STRICTLY FORBIDDEN. Even if it may seem efficient to use multiple tools at once, the system will crash and burn if you do so.