From c05913a09e53e195b9a108647c09c061ced19d17 Mon Sep 17 00:00:00 2001 From: Fahad Date: Fri, 3 Oct 2025 10:50:44 +0400 Subject: [PATCH] refactor: generic name for the CLI agent --- tools/simple/base.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/simple/base.py b/tools/simple/base.py index 7a04911..2b37f2c 100644 --- a/tools/simple/base.py +++ b/tools/simple/base.py @@ -635,7 +635,7 @@ class SimpleTool(BaseTool): return { "continuation_id": continuation_id, "remaining_turns": remaining_turns, - "note": f"Claude can continue this conversation for {remaining_turns} more exchanges.", + "note": f"You can continue this conversation for {remaining_turns} more exchanges.", } else: # New conversation - create thread and offer continuation @@ -659,7 +659,7 @@ class SimpleTool(BaseTool): return { "continuation_id": new_thread_id, "remaining_turns": MAX_CONVERSATION_TURNS - 1, - "note": f"Claude can continue this conversation for {MAX_CONVERSATION_TURNS - 1} more exchanges.", + "note": f"You can continue this conversation for {MAX_CONVERSATION_TURNS - 1} more exchanges.", } except Exception: return None @@ -982,4 +982,10 @@ Please provide a thoughtful, comprehensive response:""" # Restore original guidance method self.get_websearch_guidance = original_guidance + if system_prompt: + marker = "\n\n=== USER REQUEST ===\n" + if marker in full_prompt: + _, user_section = full_prompt.split(marker, 1) + return f"=== USER REQUEST ===\n{user_section}" + return full_prompt