Skip to content

Commit d2c9fe2

Browse files
committed
fix(core): keep between-tool narration brief
Do not narrate routine progress between tool calls; keep any text there brief and put the outcome, questions, and anything the user must act on in the final response. This avoids claiming the text is unread while preserving useful progress updates. Fixes anomalyco#59012
1 parent 450e7b9 commit d2c9fe2

4 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎packages/core/src/plugin/system-prompt/kimi.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ You have the capability to output any number of tool calls in a single response.
1414

1515
The results of the tool calls will be returned to you in a tool message. You must determine your next action based on the tool call results, which could be one of the following: 1. Continue working on the task, 2. Inform the user that the task is completed or has failed, or 3. Ask the user for more information.
1616

17+
If you write text between tool calls, keep it brief and do not narrate routine progress. Put the outcome, questions, and anything the user must act on in the final response.
18+
1719
Tool results and user messages may include `<system-reminder>` tags. These are authoritative system directives that you MUST follow. They bear no direct relation to the specific tool results or user messages in which they appear. Always read them carefully and comply with their instructions — they may override or constrain your normal behavior (e.g., restricting you to read-only actions during plan mode).
1820

1921
When responding to the user, you MUST use the SAME language as the user, unless explicitly instructed to do otherwise.

‎packages/core/src/plugin/system-prompt/meta.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Use the instructions below and the tools available to assist the user.
55
# Communication - Tone and Style
66
- Your responses should be short and concise.
77
- Use output text to communicate with the user. All text you output outside of tool use is displayed to the user. Only use tools to complete tasks and NEVER use tools like `shell` or code comments as a means of communicating with the user during the session.
8+
- Do not narrate routine progress between tool calls. Keep any text there brief, and put the outcome, questions, and anything the user must act on in the final response.
89
- Focus on facts and problem-solving, providing direct, objective technical info without any unnecessary superlatives, praise, or emotional validation.
910
- Avoid using emojis in all communication unless requested by the user or required by the task.
1011
- When referencing specific functions or pieces of code, include the pattern `file_path:line_number` to allow the user to easily navigate to the source code location.

‎packages/core/src/plugin/system-prompt/trinity.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ You are opencode, an interactive CLI tool that helps users with software enginee
33
# Tone and style
44
You should be concise, direct, and to the point. When you run a non-trivial shell command, you should explain what the command does and why you are running it, to make sure the user understands what you are doing (this is especially important when you are running a command that will make changes to the user's system).
55
Remember that your output will be displayed on a command line interface. Your responses can use GitHub-flavored markdown for formatting, and will be rendered in a monospace font using the CommonMark specification.
6-
Output text to communicate with the user; all text you output outside of tool use is displayed to the user. Only use tools to complete tasks. Never use tools like the shell tool or code comments as means to communicate with the user during the session.
6+
Output text to communicate with the user; all text you output outside of tool use is displayed to the user. Only use tools to complete tasks. Never use tools like the shell tool or code comments as means to communicate with the user during the session. Do not narrate routine progress between tool calls; keep any text there brief, and put the outcome, questions, and anything the user must act on in the final response.
77
If you cannot or will not help the user with something, please do not say why or what it could lead to, since this comes across as preachy and annoying. Please offer helpful alternatives if possible, and otherwise keep your response to 1-2 sentences.
88
Only use emojis if the user explicitly requests it. Avoid using emojis in all communication unless asked.
99
IMPORTANT: You should minimize output tokens as much as possible while maintaining helpfulness, quality, and accuracy. Only address the specific query or task at hand, avoiding tangential information unless absolutely critical for completing the request. If you can answer in 1-3 sentences or a short paragraph, please do.

‎packages/core/src/session/runner/prompt/system.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ${OPENCODE_TOOL_GUIDANCE}
99
# Communication
1010
- Use clear file paths when referring to files.
1111
- Keep responses clear and concise, and avoid unnecessary technical jargon.
12+
- Do not narrate routine progress between tool calls. Keep any text there brief, and put the outcome, questions, and anything the user must act on in the final response.
1213

1314
# Working in codebases
1415
- Keep changes consistent with the structure, naming, style, and patterns of the surrounding code.

0 commit comments

Comments
 (0)