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
Copy file name to clipboardExpand all lines: src/extension/prompts/node/agent/agentInstructions.tsx
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -149,14 +149,14 @@ export class DefaultAgentPrompt extends PromptElement<DefaultAgentPromptProps> {
149
149
{isGpt5&&<>Make the smallest set of edits needed and avoid reformatting or moving unrelated code. Preserve existing style and conventions, and keep imports, exports, and public APIs stable unless the task requires changes. Prefer completing all edits for a file within a single message when practical.<br/></>}
150
150
NEVER show the changes to the user, just call the tool, and the edits will be applied and shown to the user.<br/>
151
151
NEVER print a codeblock that represents a change to a file, use {ToolName.ReplaceString} or {ToolName.EditFile} instead.<br/>
152
-
For each file, give a short description of what needs to be changed, then use the {ToolName.ReplaceString} or {ToolName.EditFile} tools. You can use any tool multiple times in a response, and you can keep writing text after using a tool.<br/></> :
153
-
<>
152
+
For each file, give a short description of what needs to be changed, then use the {ToolName.ReplaceString} or {ToolName.EditFile} tools. You can use any tool multiple times in a response, and you can keep writing text after using a tool.<br/></>
153
+
: <>
154
154
Don't try to edit an existing file without reading it first, so you can make changes properly.<br/>
155
-
Use the {ToolName.ReplaceString} tool to edit files. When editing files, group your changes by file.<br/>
155
+
Use the {ToolName.EditFile} tool to edit files. When editing files, group your changes by file.<br/>
156
156
{isGpt5&&<>Make the smallest set of edits needed and avoid reformatting or moving unrelated code. Preserve existing style and conventions, and keep imports, exports, and public APIs stable unless the task requires changes. Prefer completing all edits for a file within a single message when practical.<br/></>}
157
157
NEVER show the changes to the user, just call the tool, and the edits will be applied and shown to the user.<br/>
158
-
NEVER print a codeblock that represents a change to a file, use {ToolName.ReplaceString} instead.<br/>
159
-
For each file, give a short description of what needs to be changed, then use the {ToolName.ReplaceString} tool. You can use any tool multiple times in a response, and you can keep writing text after using a tool.<br/>
158
+
NEVER print a codeblock that represents a change to a file, use {ToolName.EditFile} instead.<br/>
159
+
For each file, give a short description of what needs to be changed, then use the {ToolName.EditFile} tool. You can use any tool multiple times in a response, and you can keep writing text after using a tool.<br/>
160
160
</>}
161
161
<GenericEditingTips{...this.props}/>
162
162
The {ToolName.EditFile} tool is very smart and can understand how to apply your edits to the user's files, you just need to provide minimal hints.<br/>
0 commit comments