feat: clarify direct prompt instructions in create-prompt (#324)

- Added IMPORTANT note explaining direct prompts are user instructions that take precedence
- Updated the direct instruction notice to be marked as CRITICAL and HIGH PRIORITY
- These changes make it clearer that direct prompts override other context
This commit is contained in:
Ashwin Bhat
2025-07-22 07:26:14 -07:00
committed by GitHub
parent c96a923d95
commit 0d204a6599
2 changed files with 4 additions and 2 deletions

View File

@@ -275,7 +275,7 @@ describe("generatePrompt", () => {
expect(prompt).toContain("Fix the bug in the login form");
expect(prompt).toContain("</direct_prompt>");
expect(prompt).toContain(
"DIRECT INSTRUCTION: A direct instruction was provided and is shown in the <direct_prompt> tag above",
"CRITICAL: Direct user instructions were provided in the <direct_prompt> tag above. These are HIGH PRIORITY instructions that OVERRIDE all other context and MUST be followed exactly as written.",
);
});