[PR #18] [CLOSED] fix: add system prompt to encourage tool use #54

Closed
opened 2026-02-27 07:17:45 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jwadow/kiro-gateway/pull/18
Author: @bhaskoro-muthohar
Created: 1/7/2026
Status: Closed

Base: mainHead: fix/encourage-tool-use


📝 Commits (1)

  • 6c8af93 fix: add system prompt and reminder to encourage tool use

📊 Changes

1 file changed (+36 additions, -0 deletions)

View changed files

📝 kiro_gateway/converters.py (+36 -0)

📄 Description

Problem

When using the gateway with Claude Code CLI, the Kiro model sometimes responds with brief text suggestions like "check litellm config.yaml" instead of actually calling the available tools to perform the requested actions.

Root Cause

The Kiro model's behavior differs from Claude's native behavior - it occasionally chooses to describe what it would do rather than actually invoking tools, causing conversations to stop abruptly mid-task.

Solution

Add a system prompt instruction that explicitly tells the model to use tools rather than describe actions:

# Tool Use Instructions

IMPORTANT: When you need to perform actions like reading files, running commands, 
or searching, you MUST use the available tools. Do NOT just describe what you would do - 
actually call the tools to do it. Never respond with suggestions like 'check X' or 
'look at Y' without actually using tools to perform those actions.

This prompt is only added when tools are present in the request.

Testing

Tested with Claude Code CLI - conversations that previously stopped mid-way now correctly invoke tools and continue as expected.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jwadow/kiro-gateway/pull/18 **Author:** [@bhaskoro-muthohar](https://github.com/bhaskoro-muthohar) **Created:** 1/7/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/encourage-tool-use` --- ### 📝 Commits (1) - [`6c8af93`](https://github.com/jwadow/kiro-gateway/commit/6c8af93c018cd9c11ab63c515172e3f7c783f7f8) fix: add system prompt and reminder to encourage tool use ### 📊 Changes **1 file changed** (+36 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `kiro_gateway/converters.py` (+36 -0) </details> ### 📄 Description ## Problem When using the gateway with Claude Code CLI, the Kiro model sometimes responds with brief text suggestions like "check litellm config.yaml" instead of actually calling the available tools to perform the requested actions. ## Root Cause The Kiro model's behavior differs from Claude's native behavior - it occasionally chooses to describe what it would do rather than actually invoking tools, causing conversations to stop abruptly mid-task. ## Solution Add a system prompt instruction that explicitly tells the model to use tools rather than describe actions: ``` # Tool Use Instructions IMPORTANT: When you need to perform actions like reading files, running commands, or searching, you MUST use the available tools. Do NOT just describe what you would do - actually call the tools to do it. Never respond with suggestions like 'check X' or 'look at Y' without actually using tools to perform those actions. ``` This prompt is only added when tools are present in the request. ## Testing Tested with Claude Code CLI - conversations that previously stopped mid-way now correctly invoke tools and continue as expected. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 07:17:45 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/kiro-gateway-jwadow#54
No description provided.