Skip to content

Commit 0c27fc6

Browse files
backnotpropclaude
andcommitted
style: improve plan deny preamble readability
Break the dense single-paragraph preamble into structured sections: verdict, directive, and rules list. Easier for agents to parse. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1ffb7bd commit 0c27fc6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/shared/feedback-templates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const planDenyFeedback = (
1414
feedback: string,
1515
toolName: string = "ExitPlanMode",
1616
): string =>
17-
`YOUR PLAN WAS NOT APPROVED. You MUST revise the plan to address ALL of the feedback below before calling ${toolName} again. Do not resubmit the same plan — use the Edit tool to make targeted changes to the plan file first. Do NOT change the plan title (first # heading) unless the user explicitly asks you to.\n\n${feedback || "Plan changes requested"}`;
17+
`YOUR PLAN WAS NOT APPROVED.\n\nYou MUST revise the plan to address ALL of the feedback below before calling ${toolName} again.\n\nRules:\n- Use the Edit tool to make targeted changes to the plan — do not resubmit the same plan unchanged.\n- Do NOT change the plan title (first # heading) unless the user explicitly asks you to.\n\n${feedback || "Plan changes requested"}`;
1818

1919
// ── Code review ──────────────────────────────────────────────────────
2020

0 commit comments

Comments
 (0)