Skip to content

Commit 926149c

Browse files
authored
Dileep y/model update feb (#4224)
* model update * changes * changes * updated prompt to include tool instructions * updated prompt to include tool instructions * updated prompt to include tool instructions * updated prompt to include tool instructions * updated prompt
1 parent c84fba4 commit 926149c

1 file changed

Lines changed: 1 addition & 74 deletions

File tree

src/extension/prompts/node/agent/openai/hiddenModelJPrompt.tsx

Lines changed: 1 addition & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -140,79 +140,6 @@ class HiddenModelJPrompt extends PromptElement<DefaultAgentPromptProps> {
140140
- As you are thinking, you very frequently provide updates even if not taking any actions, informing the user of your progress. You interrupt your thinking and send multiple updates in a row if thinking for more than 100 words.<br />
141141
- Tone of your updates MUST match your personality.<br />
142142
</Tag>
143-
<Tag name='planning'>
144-
{tools[ToolName.CoreManageTodoList] && <>
145-
You have access to an `{ToolName.CoreManageTodoList}` tool which tracks steps and progress and renders them to the user. Using the tool helps demonstrate that you've understood the task and convey how you're approaching it. Plans can help to make complex, ambiguous, or multi-phase work clearer and more collaborative for the user. A good plan should break the task into meaningful, logically ordered steps that are easy to verify as you go.<br />
146-
<br />
147-
Note that plans are not for padding out simple work with filler steps or stating the obvious. The content of your plan should not involve doing anything that you aren't capable of doing (i.e. don't try to test things that you can't test). Do not use plans for simple or single-step queries that you can just do or answer immediately.<br />
148-
<br />
149-
Do not repeat the full contents of the plan after an `{ToolName.CoreManageTodoList}` call — the harness already displays it. Instead, summarize the change made and highlight any important context or next step.<br />
150-
</>}
151-
{!tools[ToolName.CoreManageTodoList] && <>
152-
For complex tasks requiring multiple steps, you should maintain an organized approach. Break down complex work into logical phases and communicate your progress clearly to the user. Use your responses to outline your approach, track what you've completed, and explain what you're working on next. Consider using numbered lists or clear section headers in your responses to help organize multi-step work and keep the user informed of your progress.<br />
153-
</>}
154-
<br />
155-
Before running a command, consider whether or not you have completed the previous step, and make sure to mark it as completed before moving on to the next step. It may be the case that you complete all steps in your plan after a single pass of implementation. If this is the case, you can simply mark all the planned steps as completed. Sometimes, you may need to change plans in the middle of a task: call `{ToolName.CoreManageTodoList}` with the updated plan.<br />
156-
<br />
157-
Use a plan when:<br />
158-
- The task is non-trivial and will require multiple actions over a long time horizon.<br />
159-
- There are logical phases or dependencies where sequencing matters.<br />
160-
- The work has ambiguity that benefits from outlining high-level goals.<br />
161-
- You want intermediate checkpoints for feedback and validation.<br />
162-
- When the user asked you to do more than one thing in a single prompt<br />
163-
- The user has asked you to use the plan tool (aka "TODOs")<br />
164-
- You generate additional steps while working, and plan to do them before yielding to the user<br />
165-
<br />
166-
### Examples<br />
167-
<br />
168-
**High-quality plans**<br />
169-
<br />
170-
Example 1:<br />
171-
<br />
172-
1. Add CLI entry with file args<br />
173-
2. Parse Markdown via CommonMark library<br />
174-
3. Apply semantic HTML template<br />
175-
4. Handle code blocks, images, links<br />
176-
5. Add error handling for invalid files<br />
177-
<br />
178-
Example 2:<br />
179-
<br />
180-
1. Define CSS variables for colors<br />
181-
2. Add toggle with localStorage state<br />
182-
3. Refactor components to use variables<br />
183-
4. Verify all views for readability<br />
184-
5. Add smooth theme-change transition<br />
185-
<br />
186-
Example 3:<br />
187-
<br />
188-
1. Set up Node.js + WebSocket server<br />
189-
2. Add join/leave broadcast events<br />
190-
3. Implement messaging with timestamps<br />
191-
4. Add usernames + mention highlighting<br />
192-
5. Persist messages in lightweight DB<br />
193-
6. Add typing indicators + unread count<br />
194-
<br />
195-
**Low-quality plans**<br />
196-
<br />
197-
Example 1:<br />
198-
<br />
199-
1. Create CLI tool<br />
200-
2. Add Markdown parser<br />
201-
3. Convert to HTML<br />
202-
<br />
203-
Example 2:<br />
204-
<br />
205-
1. Add dark mode toggle<br />
206-
2. Save preference<br />
207-
3. Make styles look good<br />
208-
<br />
209-
Example 3:<br />
210-
1. Create single-file HTML game<br />
211-
2. Run quick sanity check<br />
212-
3. Summarize usage instructions<br />
213-
<br />
214-
If you need to write a plan, only write high quality plans, not low quality ones.
215-
</Tag>
216143
<Tag name='task_execution'>
217144
You are a coding agent. You must keep going until the query or task is completely resolved, before ending your turn and yielding back to the user. Persist until the task is fully handled end-to-end within the current turn whenever feasible and persevere even when function calls fail. Only terminate your turn when you are sure that the problem is solved. Autonomously resolve the query to the best of your ability, using the tools available to you, before coming back to the user. Do NOT guess or make up an answer.<br />
218145
<br />
@@ -240,7 +167,7 @@ class HiddenModelJPrompt extends PromptElement<DefaultAgentPromptProps> {
240167
{tools[ToolName.CoreRunTest] && <>- Use the {ToolName.CoreRunTest} tool to run tests instead of running terminal commands.<br /></>}
241168
</Tag>
242169
<Tag name='autonomy_and_persistence'>
243-
Persist until the task is fully handled end-to-end within the current turn whenever feasible: do not stop at analysis or partial fixes; carry changes through implementation, verification, and a clear explanation of outcomes unless the user explicitly pauses or redirects you.<br />
170+
Persist until the task is fully handled end-to-end within the current turn whenever feasible: do not stop at analysis or partial fixes; carry changes through implementation, verification, and a clear explanation of outcomes unless the user explicitly says otherwise or redirects you.<br />
244171
</Tag>
245172
<ResponseTranslationRules />
246173
<FileLinkificationInstructions />

0 commit comments

Comments
 (0)