Skip to content

Commit 5784ec6

Browse files
author
vijay upadya
committed
Minor prompt readjustment
1 parent 4165d52 commit 5784ec6

File tree

36 files changed

+68
-68
lines changed

36 files changed

+68
-68
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ export class DefaultOpenAIAgentPrompt extends PromptElement<DefaultAgentPromptPr
105105
Identifiers only: `calculateTotal`, `Person`, `AppConfig`.<br />
106106
File path link examples live in fileLinkification section below.<br />
107107
</Tag>
108+
<FileLinkificationInstructions />
108109
<MathIntegrationRules />
109110
</Tag>
110111
<ResponseTranslationRules />
111-
<FileLinkificationInstructions />
112112
</InstructionMessage>;
113113
}
114114
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ class Gpt51CodexPrompt extends PromptElement<DefaultAgentPromptProps> {
8383
<Tag name='example'>
8484
The class `Person` is in `src/models/person.ts`.
8585
</Tag>
86+
<FileLinkificationInstructions />
8687
<MathIntegrationRules />
8788
</Tag>
88-
<FileLinkificationInstructions />
8989
</InstructionMessage>;
9090
}
9191
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ class CodexStyleGpt5CodexPrompt extends PromptElement<DefaultAgentPromptProps> {
7676
- Tone: collaborative, concise, factual; present tense, active voice; self-contained; no "above/below"; parallel wording.<br />
7777
- Don'ts: no nested bullets/hierarchies; no ANSI codes; don't cram unrelated keywords; keep keyword lists short—wrap/reformat if long; avoid naming formatting styles in answers.<br />
7878
- Adaptation: code explanations → precise, structured with code refs; simple tasks → lead with outcome; big changes → logical walkthrough + rationale + next actions; casual one-offs → plain sentences, no headers/bullets.<br />
79-
- File path and line anchor link rules are defined in fileLinkification section below.<br />
8079
<FileLinkificationInstructions />
8180
</InstructionMessage>;
8281
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,11 @@ class DefaultGpt5AgentPrompt extends PromptElement<DefaultAgentPromptProps> {
219219
<Tag name='example'>
220220
The class `Person` is in `src/models/person.ts`.
221221
</Tag>
222+
<FileLinkificationInstructions />
222223
<MathIntegrationRules />
223224
</Tag>
224225
<ResponseTranslationRules />
225-
<FileLinkificationInstructions />
226+
226227
</InstructionMessage>;
227228
}
228229
}

src/extension/prompts/node/agent/test/__snapshots__/agentPrompts-all_non_edit_tools-gpt-4.1.spec.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ Identifiers only: `calculateTotal`, `Person`, `AppConfig`.
5151
File path link examples live in fileLinkification section below.
5252

5353
</example>
54-
55-
</outputFormatting>
5654
<fileLinkification>
5755
ALWAYS convert file paths to markdown links with 1-based line numbers whenever you cite specific code locations in the workspace. Paths should be relative to workspace root.
5856

@@ -81,6 +79,8 @@ Critical rules:
8179

8280
</fileLinkification>
8381

82+
</outputFormatting>
83+
8484
<instructions>
8585
This is a test custom instruction file
8686
</instructions>

src/extension/prompts/node/agent/test/__snapshots__/agentPrompts-all_non_edit_tools-gpt-5.1-codex-mini.spec.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ When referring to a filename or symbol in the user's workspace, wrap it in backt
6060
<example>
6161
The class `Person` is in `src/models/person.ts`.
6262
</example>
63-
64-
</special_formatting>
6563
<fileLinkification>
6664
ALWAYS convert file paths to markdown links with 1-based line numbers whenever you cite specific code locations in the workspace. Paths should be relative to workspace root.
6765

@@ -90,6 +88,8 @@ Critical rules:
9088

9189
</fileLinkification>
9290

91+
</special_formatting>
92+
9393
<instructions>
9494
This is a test custom instruction file
9595
</instructions>

src/extension/prompts/node/agent/test/__snapshots__/agentPrompts-all_non_edit_tools-gpt-5.1-codex.spec.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ When referring to a filename or symbol in the user's workspace, wrap it in backt
6060
<example>
6161
The class `Person` is in `src/models/person.ts`.
6262
</example>
63-
64-
</special_formatting>
6563
<fileLinkification>
6664
ALWAYS convert file paths to markdown links with 1-based line numbers whenever you cite specific code locations in the workspace. Paths should be relative to workspace root.
6765

@@ -90,6 +88,8 @@ Critical rules:
9088

9189
</fileLinkification>
9290

91+
</special_formatting>
92+
9393
<instructions>
9494
This is a test custom instruction file
9595
</instructions>

src/extension/prompts/node/agent/test/__snapshots__/agentPrompts-all_non_edit_tools-gpt-5.spec.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,6 @@ When referring to a filename or symbol in the user's workspace, wrap it in backt
203203
<example>
204204
The class `Person` is in `src/models/person.ts`.
205205
</example>
206-
207-
</final_answer_formatting>
208206
<fileLinkification>
209207
ALWAYS convert file paths to markdown links with 1-based line numbers whenever you cite specific code locations in the workspace. Paths should be relative to workspace root.
210208

@@ -233,6 +231,8 @@ Critical rules:
233231

234232
</fileLinkification>
235233

234+
</final_answer_formatting>
235+
236236
<instructions>
237237
This is a test custom instruction file
238238
</instructions>

src/extension/prompts/node/agent/test/__snapshots__/agentPrompts-all_tools-gpt-4.1.spec.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ Identifiers only: `calculateTotal`, `Person`, `AppConfig`.
8787
File path link examples live in fileLinkification section below.
8888

8989
</example>
90-
91-
</outputFormatting>
9290
<fileLinkification>
9391
ALWAYS convert file paths to markdown links with 1-based line numbers whenever you cite specific code locations in the workspace. Paths should be relative to workspace root.
9492

@@ -117,6 +115,8 @@ Critical rules:
117115

118116
</fileLinkification>
119117

118+
</outputFormatting>
119+
120120
<instructions>
121121
This is a test custom instruction file
122122
</instructions>

src/extension/prompts/node/agent/test/__snapshots__/agentPrompts-all_tools-gpt-5.1-codex-mini.spec.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ When referring to a filename or symbol in the user's workspace, wrap it in backt
6060
<example>
6161
The class `Person` is in `src/models/person.ts`.
6262
</example>
63-
64-
</special_formatting>
6563
<fileLinkification>
6664
ALWAYS convert file paths to markdown links with 1-based line numbers whenever you cite specific code locations in the workspace. Paths should be relative to workspace root.
6765

@@ -90,6 +88,8 @@ Critical rules:
9088

9189
</fileLinkification>
9290

91+
</special_formatting>
92+
9393
<instructions>
9494
This is a test custom instruction file
9595
</instructions>

0 commit comments

Comments
 (0)