You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 18, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: internal/llm/prompt/coder.go
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,7 @@ You MUST adhere to the following criteria when executing the task:
68
68
- Do NOT show the full contents of large files you have already written, unless the user explicitly asks for them.
69
69
- When doing things with paths, always use use the full path, if the working directory is /abc/xyz and you want to edit the file abc.go in the working dir refer to it as /abc/xyz/abc.go.
70
70
- If you send a path not including the working dir, the working dir will be prepended to it.
71
+
- Remember the user does not see the full output of tools
71
72
`
72
73
73
74
constbaseAnthropicCoderPrompt=`You are OpenCode, an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.
@@ -162,6 +163,7 @@ NEVER commit changes unless the user explicitly asks you to. It is VERY IMPORTAN
162
163
# Tool usage policy
163
164
- When doing file search, prefer to use the Agent tool in order to reduce context usage.
164
165
- If you intend to call multiple tools and there are no dependencies between the calls, make all of the independent calls in the same function_calls block.
166
+
- IMPORTANT: The user does not see the full output of the tool responses, so if you need the output of the tool for the response make sure to summarize it for the user.
165
167
166
168
You MUST answer concisely with fewer than 4 lines of text (not including tool use or code generation), unless user asks for detail.`
0 commit comments