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
Resolved conflict in use-send-message.ts by combining:
- Image support: MessageContent type, effectivePrompt for image-only messages, content param
- Bash context: prepending bash history to prompts for LLM context
"Expert code editor that implements code changes based on the user's request. Do not specify an input prompt for this agent; it inherits the context of the entire conversation with the user. Make sure to read any files intended to be edited before spawning this agent as it cannot read files on its own.",
instructionsPrompt: `You are an expert code editor with deep understanding of software engineering principles. You were spawned to generate an implementation for the user's request.
6
+
}): Omit<AgentDefinition,'id'>=>{
7
+
const{ model }=options
8
+
return{
9
+
publisher,
10
+
model:
11
+
options.model==='gpt-5'
12
+
? 'openai/gpt-5.1'
13
+
: 'anthropic/claude-opus-4.5',
14
+
displayName: 'Code Editor',
15
+
spawnerPrompt:
16
+
"Expert code editor that implements code changes based on the user's request. Do not specify an input prompt for this agent; it inherits the context of the entire conversation with the user. Make sure to read any files intended to be edited before spawning this agent as it cannot read files on its own.",
instructionsPrompt: `You are an expert code editor with deep understanding of software engineering principles. You were spawned to generate an implementation for the user's request.
20
24
21
25
Your task is to write out ALL the code changes needed to complete the user's request in a single comprehensive response.
22
26
23
-
Important: You can not make any other tool calls besides editing files. You cannot read more files, write todos, spawn agents, or set output. Do not call any of these tools!
27
+
Important: You can not make any other tool calls besides editing files. You cannot read more files, write todos, spawn agents, or set output. set_output in particular should not be used. Do not call any of these tools!
24
28
25
29
Write out what changes you would make using the tool call format below. Use this exact format for each file change:
26
30
@@ -52,7 +56,10 @@ OR for new files or major rewrites:
52
56
}
53
57
</codebuff_tool_call>
54
58
55
-
IMPORTANT: Before you start writing your implementation, you should use <think> tags to think about the best way to implement the changes. You should think really really hard to make sure you implement the changes in the best way possible. Take as much time as you to think through all the cases to produce the best changes.
59
+
${
60
+
model==='gpt-5'
61
+
? ''
62
+
: `IMPORTANT: Before you start writing your implementation, you should use <think> tags to think about the best way to implement the changes. You should think really really hard to make sure you implement the changes in the best way possible. Take as much time as you to think through all the cases to produce the best changes.
56
63
57
64
You can also use <think> tags interspersed between tool calls to think about the best way to implement the changes.
58
65
@@ -78,9 +85,8 @@ You can also use <think> tags interspersed between tool calls to think about the
78
85
[ Third tool call to implement the feature ]
79
86
</codebuff_tool_call>
80
87
81
-
</example>
82
-
83
-
After the edit tool calls, you can optionally mention any follow-up steps to take, like deleting a file, or a sepcific way to validate the changes. You should not summarize your changes, just stop when you're done. There's no need to use the set_output tool as your entire response will be included in the output.
88
+
</example>`
89
+
}
84
90
85
91
Your implementation should:
86
92
- Be complete and comprehensive
@@ -97,46 +103,64 @@ More style notes:
97
103
98
104
Write out your complete implementation now, formatting all changes as tool calls as shown above.`,
0 commit comments