Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions src/extension/prompts/node/agent/vscModelPrompts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ class VSCModelPromptResolverA implements IAgentPrompt {
}

resolveReminderInstructions(endpoint: IChatEndpoint): ReminderInstructionsConstructor | undefined {
return VSCModelReminderInstructions;
return VSCModelReminderInstructionsA;
}
}

Expand All @@ -291,11 +291,11 @@ class VSCModelPromptResolverB implements IAgentPrompt {
}

resolveReminderInstructions(endpoint: IChatEndpoint): ReminderInstructionsConstructor | undefined {
return VSCModelReminderInstructions;
return VSCModelReminderInstructionsB;
}
}

class VSCModelReminderInstructions extends PromptElement<ReminderInstructionsProps> {
class VSCModelReminderInstructionsA extends PromptElement<ReminderInstructionsProps> {
async render(state: void, sizing: PromptSizing) {
return <>
{getEditingReminder(this.props.hasEditFileTool, this.props.hasReplaceStringTool, false /* useStrongReplaceStringHint */, this.props.hasMultiReplaceStringTool)}
Expand All @@ -308,5 +308,17 @@ class VSCModelReminderInstructions extends PromptElement<ReminderInstructionsPro
}
}

class VSCModelReminderInstructionsB extends PromptElement<ReminderInstructionsProps> {
async render(state: void, sizing: PromptSizing) {
return <>
{getEditingReminder(this.props.hasEditFileTool, this.props.hasReplaceStringTool, false /* useStrongReplaceStringHint */, this.props.hasMultiReplaceStringTool)}
You MUST preface each tool call batch with a brief status update.<br />
Focus on findings and next steps. Vary your openings—avoid repeating "I'll" or "I will" consecutively.<br />
When you have a finding, be enthusiastic and specific (2 sentences). Otherwise, state your next action only (1 sentence).<br />
Don't over-express your thoughts in preamble, do not use preamble to think or reason. This is a strict and strong requirement.<br />
</>;
}
}

PromptRegistry.registerPrompt(VSCModelPromptResolverA);
PromptRegistry.registerPrompt(VSCModelPromptResolverB);