From c8bb6c7581d37db2ebc4c204bc1e99050dec8a19 Mon Sep 17 00:00:00 2001 From: buenosairesam Date: Wed, 6 May 2026 09:06:23 -0300 Subject: [PATCH] remove boiler plate prompt --- cht/agent/claude_sdk_connection.py | 13 ------------- cht/agent/openai_connection.py | 6 +----- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/cht/agent/claude_sdk_connection.py b/cht/agent/claude_sdk_connection.py index d9e9125..fe371f5 100644 --- a/cht/agent/claude_sdk_connection.py +++ b/cht/agent/claude_sdk_connection.py @@ -31,18 +31,6 @@ from cht.agent.base import ( log = logging.getLogger(__name__) -SYSTEM_PROMPT = """You are an assistant integrated into CHT, a screen recording and analysis tool. -You help the user understand what happened during their recording session. - -You have access to frame screenshots extracted from the recording. When frames are mentioned, -use the Read tool to view them. Frame timestamps are in seconds from the start of the recording. - -You can use any available tools including WebFetch and WebSearch when the user asks you to -look something up. Use them freely — all tools are pre-authorized. - -Your primary role is description and analysis, not code generation. Be concise and specific. -Focus on what's visible in the frames and what's in the transcript.""" - MODELS = [ "claude-sonnet-4-6", "claude-opus-4-6", @@ -144,7 +132,6 @@ class ClaudeSDKConnection: options=ClaudeAgentOptions( model=self._model, cwd=cwd or ".", - system_prompt=SYSTEM_PROMPT, max_turns=self._max_turns, permission_mode=self._permission_mode, ), diff --git a/cht/agent/openai_connection.py b/cht/agent/openai_connection.py index 3f3fa50..f913fa8 100644 --- a/cht/agent/openai_connection.py +++ b/cht/agent/openai_connection.py @@ -31,10 +31,6 @@ from cht.agent.base import ( log = logging.getLogger(__name__) -SYSTEM_PROMPT = """You are an assistant integrated into CHT, a screen recording and analysis tool. -You help the user understand what happened during their recording session. -Be concise and specific. Focus on what's visible in the provided frames.""" - _PROVIDER_CONFIGS = { "groq": ( "https://api.groq.com/openai/v1", @@ -76,7 +72,7 @@ def _frame_to_base64(path) -> str | None: def _messages_to_openai(messages: list[Message]) -> list[dict]: """Convert structured messages to OpenAI chat format.""" - result = [{"role": "system", "content": SYSTEM_PROMPT}] + result: list[dict] = [] for msg in messages: if isinstance(msg, UserMessage):