File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed
Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " kilo-code " : patch
3+ ---
4+
5+ Slightly improved reliability of Opus with Claude Code
Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ export class ClaudeCodeHandler extends BaseProvider implements ApiHandler {
9595 }
9696 }
9797
98+ let toolReminder = false // kilocode_change
9899 for ( const content of message . content ) {
99100 switch ( content . type ) {
100101 case "text" :
@@ -117,6 +118,15 @@ export class ClaudeCodeHandler extends BaseProvider implements ApiHandler {
117118 break
118119 case "tool_use" :
119120 console . error ( `tool_use is not supported yet. Received: ${ JSON . stringify ( content ) } ` )
121+ // kilocode_change start
122+ if ( ! toolReminder ) {
123+ yield {
124+ type : "text" ,
125+ text : "Preparing to use tools in XML format... " ,
126+ }
127+ toolReminder = true
128+ }
129+ // kilocode_change end
120130 break
121131 }
122132 }
Original file line number Diff line number Diff line change @@ -157,6 +157,12 @@ export async function* runClaudeCode(
157157// We want the model to use our custom tool format instead of built-in tools.
158158// Disabling built-in tools prevents tool-only responses and ensures text output.
159159const claudeCodeTools = [
160+ // kilocode_change start
161+ "AskUserQuestion" ,
162+ "KillShell" ,
163+ "Skill" ,
164+ "SlashCommand" ,
165+ // kilocode_change end
160166 "Task" ,
161167 "Bash" ,
162168 "Glob" ,
You can’t perform that action at this time.
0 commit comments